Auto IP Ban Hackers

Started on the old forum in May 2008 · view the original in the archive · old links redirect here

12 replies · 1,963 views · started 18 years ago · 1 min read

7 participants
khan1 Developer · 101 posts #1

Auto IP Ban Hackers

Version: 1.0.0 Category: Other useful scripts

Description: Lavalair xhtml ver----Protect admin , Mod and Owner tools------Auto IP Ban if hacked

View File

/tease.gif" style="vertical-align:middle" emoid="8P" border="0" alt="tease.gif" />t;line-height:100%">Submitted by khan1, on May 1 2008, 08:27 AM

khan1 Developer · 101 posts #2

File Updated Download Now (smiles)

sweetangel Lead · 885 posts #5

this is my original file admincp.php

<?php
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
//header('Content-type: application/vnd.wap.xhtml+xml'); 
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta forua="true" http-equiv="Cache-Control" content="max-age=0"/>
<meta forua="true" http-equiv="Cache-Control" content="must-revalidate"/>
</head>
<?php
include("config.php");
include("core.php");
connectdb();
$action = $_GET["action"];
$sid = $_GET["sid"];
$sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'"));
$sitename = $sitename[0];
$uid = getuid_sid($sid);
$theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'"));

if(!ismod(getuid_sid($sid)))
{
  echo "<head>";
  echo "<title>Error!!!</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  echo "[b]Permission Denied![/b]
";
  echo "
Only mod/admin can use this page...
";
  echo "<a href=\"index.php\">Home</a>";
  echo "</p>";
  echo "</body>";
  echo "</html>";
  exit();
}

if(islogged($sid)==false)
{
  echo "<head>";
  echo "<title>Error!!!</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  echo "You are not logged in
";
  echo "Or Your session has been expired

";
  echo "<a href=\"index.php\">Login</a>";
  echo "</p>";
  echo "</body>";
  echo "</html>";
  exit();
}

addonline(getuid_sid($sid),"Admin Tools","");

//////////////////////////admin tools//////////////////////////

if($action=="admincp")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  echo "[b]Admin Tools[/b]";
  echo "</p>";
  echo "

";
  $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_penalties WHERE penalty='1' OR penalty='2'"));
  echo "<a href=\"lists.php?action=banned&sid=$sid\">Banned($noi[0])</a>
";
  $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_penalties WHERE penalty='0'"));
  echo "<a href=\"lists.php?action=trashed&sid=$sid\">Trashed($noi[0])</a>
";
  $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_penalties WHERE penalty='2'"));
  echo "<a href=\"lists.php?action=ipban&sid=$sid\">Banned IPs($noi[0])</a>
";
  $admn = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'"));
  if($admn[0]==1)
  {
  echo "U Must Be An Admin To Use The Tools Below
";
  }
  echo "[b]1 [/b]<a accesskey=\"1\" href=\"admincp.php?action=fcats&sid=$sid\">Forum Categories</a>
";
  echo "[b]2 [/b]<a accesskey=\"2\" href=\"admincp.php?action=forums&sid=$sid\">Forums</a>
";
  echo "[b]3 [/b]<a accesskey=\"3\" href=\"admincp.php?action=ugroups&sid=$sid\">User groups</a>
";
  echo "[b]4 [/b]<a accesskey=\"4\" href=\"admincp.php?action=addperm&sid=$sid\">Add permissions</a>
";
  echo "[b]5 [/b]<a accesskey=\"5\" href=\"admincp.php?action=chrooms&sid=$sid\">Chatrooms</a>
";
  echo "</p>";
  echo "<p align=\"center\">";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////mod a user//////////////////////////

else if($action=="user")
{
  $who = $_GET["who"];
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  $unick = getnick_uid($who);
  echo "[b]Moderating $unick[/b]";
  echo "</p>";
  echo "<p align=\"center\">";
  if(isadmin(getuid_sid($sid)))
  {
  echo "<a href=\"admincp.php?action=plsopt&sid=$sid&who=$who\">Plusses</a>
";
  }
  echo "<a href=\"admproc.php?action=boot&sid=$sid&who=$who\">Boot</a>
";

  if(!istrashed($who))
  {
  echo "<a href=\"admincp.php?action=trash&sid=$sid&who=$who\">Trash</a>
";
  }else{
  echo "<a href=\"modproc.php?action=untr&sid=$sid&who=$who\">Untrash</a>
";
  }

  if(isadmin(getuid_sid($sid)))
  {
  if(!isbanned($who))
  {
  echo "<a href=\"admincp.php?action=ban&sid=$sid&who=$who\">Ban</a>
";
  }else{
  echo "<a href=\"ownrproc.php?action=unbn&sid=$sid&who=$who\">Unban</a>
";
  }
  }
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p></body>";
}
//////////////////////////trash user//////////////////////////

else if($action=="trash")
{
  $who = $_GET["who"];
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  $unick = getnick_uid($who);
  echo "Trashing $unick
";
  echo "<form action=\"admproc.php?action=trash&sid=$sid\" method=\"post\">";
  echo "Reason: <input name=\"pres\" maxlength=\"100\"/>
";
  echo "Days: <input name=\"pds\" style=\"-wap-input-format: '*N'\" maxlength=\"4\"/>
";
  echo "Hours: <input name=\"phr\" style=\"-wap-input-format: '*N'\" maxlength=\"4\"/>
";
  echo "Minutes: <input name=\"pmn\" style=\"-wap-input-format: '*N'\" maxlength=\"2\"/>
";
  echo "Seconds: <input name=\"psc\" style=\"-wap-input-format: '*N'\" maxlength=\"2\"/>
";
  echo "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
  echo "<input type=\"Submit\" value=\"Trash\" Name=\"Submit\"/></form>";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p></body>";
}
//////////////////////////ban user//////////////////////////

else if($action=="ban")
{
  $who = $_GET["who"];
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  $unick = getnick_uid($who);
  echo "Banning $unick
";
  echo "<form action=\"admproc.php?action=ban&sid=$sid\" method=\"post\">";
  echo "Reason: <input name=\"pres\" maxlength=\"100\"/>
";
  echo "Days: <input name=\"pds\" style=\"-wap-input-format: '*N'\" maxlength=\"4\"/>
";
  echo "Hours: <input name=\"phr\" style=\"-wap-input-format: '*N'\" maxlength=\"4\"/>
";
  echo "Minutes: <input name=\"pmn\" style=\"-wap-input-format: '*N'\" maxlength=\"2\"/>
";
  echo "Seconds: <input name=\"psc\" style=\"-wap-input-format: '*N'\" maxlength=\"2\"/>
";
  echo "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
  echo "<input type=\"Submit\" value=\"Ban\" Name=\"Submit\"/></form>";
  }
  echo "
[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p></body>";
}
//////////////////////////plusses//////////////////////////

else if($action=="plsopt")
{
  $who = $_GET["who"];
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  $unick = getnick_uid($who);
  echo "Add/Substract $unick's Plusses";
  echo "</p>";
  echo "

";
  echo "<form action=\"modproc.php?action=pls&sid=$sid\" method=\"post\">";
  $pen[0]="Substract";
  $pen[1]="Add";
  echo "Action: <select name=\"pid\">";
  for($i=0;$i<count($pen);$i++)
  {
  echo "<option value=\"$i\">$pen[$i]</option>";
  }
  echo "</select>
";
  echo "Reason: <input name=\"pres\" maxlength=\"100\"/>
";
  echo "Plusses: <input name=\"pval\" style=\"-wap-input-format: '*N'\" maxlength=\"3\"/>
";
  echo "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
  echo "<input type=\"Submit\" value=\"Edit User\" Name=\"Submit\"/></form>";
  }
  echo "
[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p></body>";
}
//////////////////////////add permissions//////////////////////////

else if($action=="addperm")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]Add permission[/b]";
  $forums = mysql_query("SELECT id, name FROM ibwf_forums ORDER BY position, id, name");
  echo "<form action=\"admproc.php?action=addperm&sid=$sid\" method=\"post\">";
  echo "

Forum: <select name=\"fid\">";
  while ($forum=mysql_fetch_array($forums))
  {
  echo "<option value=\"$forum[0]\">$forum[1]</option>";
  }
  echo "</select>";
  $forums = mysql_query("SELECT id, name FROM ibwf_groups ORDER BY  name, id");
  echo "
UGroups: <select name=\"gid\">";
  while ($forum=mysql_fetch_array($forums))
  {
  echo "<option value=\"$forum[0]\">$forum[1]</option>";
  }
  echo "</select>";
  echo "
<input type=\"Submit\" Name=\"Submit\" Value=\"Submit\">";
  }
  echo "
[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
else if($action=="addlink")
{
    echo "<head>";
    echo "<title>Admin Tools</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "</head>";
    echo "<body>";
    echo "<p align=\"center\">";
    echo "Please Enter The Address Of the Site To Add
";
    echo "<form action=\"admproc.php?action=addlink&sid=$sid\" method=\"post\">";
    echo "[b]url[/b]
";
    echo "<input name=\"url\"/>
";
    echo "[b]sitetitle[/b]
";
    echo "<input name=\"title\"/>
";
    echo "
<input type=\"Submit\" Name=\"Submit\" Value=\"Add Link\"></form>";
    echo "</p>";
    echo "<p align=\"center\">";
  echo "[b]8 [/b]<a accesskey=\"8\" href=\"linksites.php?sid=$sid\">Links</a>
";
  echo "[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
    echo "</body>";
}
//////////////////////////forum categories//////////////////////////

else if($action=="fcats")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "

";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]1 [/b]<a accesskey=\"1\" href=\"admincp.php?action=addcat&sid=$sid\">Add Category</a>
";
  echo "[b]2 [/b]<a accesskey=\"2\" href=\"admincp.php?action=edtcat&sid=$sid\">Edit Category</a>
";
  echo "[b]3 [/b]<a accesskey=\"3\" href=\"admincp.php?action=delcat&sid=$sid\">Delete Category</a>
";
  }
  echo "
[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////club tools//////////////////////////

else if($action=="club")
{
  $clid = $_GET["clid"];
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "

";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]1 [/b]<a accesskey=\"1\" href=\"admincp.php?action=gccp&sid=$sid&clid=$clid\">Give Credit Plusses</a>
";
  echo "[b]2 [/b]<a accesskey=\"2\" href=\"admproc.php?action=delclub&sid=$sid&clid=$clid\">Delete Club</a>
";
  }
  echo "
[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////chatrooms//////////////////////////

else if($action=="chrooms")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "

";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]1 [/b]<a accesskey=\"1\" href=\"admincp.php?action=addchr&sid=$sid\">Add Room</a>
";
  $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_rooms"));
  if($noi[0]>0)
  {
  echo "<form action=\"admproc.php?action=delchr&sid=$sid\" method=\"post\">";
  $rss = mysql_query("SELECT name, id FROM ibwf_rooms");
  echo "
<select name=\"chrid\">";
  while($rs=mysql_fetch_array($rss))
  {
  echo "<option value=\"$rs[1]\">$rs[0]</option>";
  }
  echo "</select>
";
  echo "<input type=\"Submit\" Name=\"Submit\" Value=\"Delete Room\">";
  }
  }
  echo "
[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////forums//////////////////////////

else if($action=="forums")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "

";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]1 [/b]<a accesskey=\"1\" href=\"admincp.php?action=addfrm&sid=$sid\">Add Forum</a>
";
  echo "[b]2 [/b]<a accesskey=\"2\" href=\"admincp.php?action=edtfrm&sid=$sid\">Edit Forum</a>
";
  echo "[b]3 [/b]<a accesskey=\"3\" href=\"admincp.php?action=delfrm&sid=$sid\">Delete Forum</a>
";
  }
  echo "
[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////user groups//////////////////////////

else if($action=="ugroups")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "

";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]1 [/b]<a accesskey=\"1\" href=\"admincp.php?action=addgrp&sid=$sid\">»Add User Group</a>
";
  //echo "[b]2 [/b]<a accesskey=\"2\" href=\"admincp.php?action=edtgrp&sid=$sid\">»Edit User group</a>
";
  echo "[b]3 [/b]<a accesskey=\"3\" href=\"admincp.php?action=delgrp&sid=$sid\">»Delete User group</a>
";
  }
  echo "
[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////add category//////////////////////////

else if($action=="addcat")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]Add Category[/b]

";
  echo "<form action=\"admproc.php?action=addcat&sid=$sid\" method=\"post\">";
  echo "Name:<input name=\"fcname\" maxlength=\"30\"/>
";
  echo "Position:<input name=\"fcpos\" style=\"-wap-input-format: '*N'\" size=\"3\"  maxlength=\"3\"/>
";
  echo "<input type=\"Submit\" Name=\"Submit\" Value=\"Add\">";
  }
  echo "
[b]8 [/b]<a accesskey=\"8\" href=\"admincp.php?action=fcats&sid=$sid\">Forum Categories</a>
";
  echo "[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////add forum//////////////////////////

else if($action=="addfrm")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]Add Forum[/b]

";
  echo "<form action=\"admproc.php?action=addfrm&sid=$sid\" method=\"post\">";
  echo "Name:<input name=\"frname\" maxlength=\"30\"/>
";
  echo "Position:<input name=\"frpos\" style=\"-wap-input-format: '*N'\" size=\"3\"  maxlength=\"3\"/>
";
  $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id, name");
  echo "Category: <select name=\"fcid\">";
  while ($fcat=mysql_fetch_array($fcats))
  {
  echo "<option value=\"$fcat[0]\">$fcat[1]</option>";
  }
  echo "</select>
";
  echo "<input type=\"Submit\" Name=\"Submit\" Value=\"Add\">";
  }
  echo "
[b]8 [/b]<a accesskey=\"8\" href=\"admincp.php?action=forums&sid=$sid\">Forums</a>
";
  echo "[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////give club plusses//////////////////////////

else if($action=="gccp")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]Add club plusses[/b]

";
  $clid = $_GET["clid"];
  echo "<form action=\"admproc.php?action=gccp&sid=$sid&clid=$clid\" method=\"post\">";
  echo "Plusses:<input name=\"plss\" maxlength=\"3\" size=\"3\" format=\"*N\"/>
";
  echo "<input type=\"Submit\" Name=\"Submit\" Value=\"Add\">";
  }
  echo "
[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////add chatroom//////////////////////////

else if($action=="addchr")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]Add Room[/b]

";
  echo "<form action=\"admproc.php?action=addchr&sid=$sid\" method=\"post\">";
  echo "Name:<input name=\"chrnm\" maxlength=\"30\"/>
";
  echo "Minimum Age:<input name=\"chrage\" style=\"-wap-input-format: '*N'\" maxlength=\"3\" size=\"3\"/>
";
  echo "Maximum Age:<input name=\"maxage\" style=\"-wap-input-format: '*N'\" maxlength=\"3\" size=\"3\"/>
";
  echo "Minimum Chat Posts:<input name=\"chrpst\" style=\"-wap-input-format: '*N'\" maxlength=\"4\" size=\"4\"/>
";
  echo "Permission:<select name=\"chrprm\">";
  echo "<option value=\"0\">Normal</option>";
  echo "<option value=\"1\">Moderators</option>";
  echo "<option value=\"2\">Admins</option>";
  echo "</select>
";
  echo "Censored:<select name=\"chrcns\">";
  echo "<option value=\"1\">Yes</option>";
  echo "<option value=\"0\">No</option>";
  echo "</select>
";
  echo "Fun:<select name=\"chrfun\">";
  echo "<option value=\"0\">No</option>";
  echo "<option value=\"1\">esreveR</option>";
  echo "<option value=\"2\">chatbot</option>";
  echo "</select>
";
  echo "<input type=\"Submit\" Name=\"Submit\" Value=\"Add\">";
  }
  echo "
[b]8 [/b]<a accesskey=\"8\" href=\"admincp.php?action=chrooms&sid=$sid\"><img src=\"../images/chat.gif\" alt=\"\"/>Chatrooms</a>
";
  echo "[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////add group//////////////////////////

else if($action=="addgrp")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]Add Group[/b]

";
  echo "<form action=\"admproc.php?action=addgrp&sid=$sid\" method=\"post\">";
  echo "Name:<input name=\"ugname\" maxlength=\"30\"/>
";
  echo "Auto Assign:<select name=\"ugaa\">";
  echo "<option value=\"1\">Yes</option>";
  echo "<option value=\"0\">No</option>";
  echo "</select>
";
  echo "
[size="1"][b]For Auto Assign Only[/b][/size]
";
  echo "Allow:<select name=\"allus\">";
  echo "<option value=\"0\">Member(s)</option>";
  echo "<option value=\"1\">Mod(s)</option>";
  echo "<option value=\"2\">Admin(s)</option>";
  echo "<option value=\"2\">Head Admin(s)</option>";
  echo "<option value=\"2\">Owner(s)</option>";
  echo "</select>
";
  echo "Min. Age:";
  echo "<input name=\"mage\" style=\"-wap-input-format: '*N'\" maxlength=\"3\" size=\"3\"/>";
  echo "
Max. Age:";
  echo "<input name=\"maxage\" style=\"-wap-input-format: '*N'\" maxlength=\"3\" size=\"3\"/>";
  echo "
Min. Posts:";
  echo "<input name=\"mpst\" style=\"-wap-input-format: '*N'\" maxlength=\"3\" size=\"3\"/>";
  echo "
Min. Plusses:";
  echo "<input name=\"mpls\" style=\"-wap-input-format: '*N'\" maxlength=\"3\" size=\"3\"/>
";
  echo "<input type=\"Submit\" Name=\"Submit\" Value=\"Add\">";
  }
  echo "
[b]8 [/b]<a accesskey=\"8\" href=\"admincp.php?action=ugroups&sid=$sid\">UGroups</a>
";
  echo "[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////edit forum//////////////////////////

else if($action=="edtfrm")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]Edit Forum[/b]

";
  echo "<form action=\"admproc.php?action=edtfrm&sid=$sid\" method=\"post\">";
  $forums = mysql_query("SELECT id,name FROM ibwf_forums ORDER BY position, id, name");
  echo "Forum: <select name=\"fid\">";
  while($forum=mysql_fetch_array($forums))
  {
  echo "<option value=\"$forum[0]\">$forum[1]</option>";
  }
  echo "</select>";
  echo "
Name:<input name=\"frname\" maxlength=\"30\"/>
";
  echo "Position:<input name=\"frpos\" style=\"-wap-input-format: '*N'\" size=\"3\"  maxlength=\"3\"/>
";
  $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id, name");
  echo "Category: <select name=\"fcid\">";
  while ($fcat=mysql_fetch_array($fcats))
  {
  echo "<option value=\"$fcat[0]\">$fcat[1]</option>";
  }
  echo "</select>
";
  echo "<input type=\"Submit\" Name=\"Submit\" Value=\"Edit\">";
  }
  echo "
[b]8 [/b]<a accesskey=\"8\" href=\"admincp.php?action=forums&sid=$sid\">Forums</a>
";
  echo "[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////delete forum//////////////////////////

else if($action=="delfrm")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]Delete Forum[/b]

";
  echo "<form action=\"admproc.php?action=delfrm&sid=$sid\" method=\"post\">";
  $forums = mysql_query("SELECT id,name FROM ibwf_forums ORDER BY position, id, name");
  echo "Forum: <select name=\"fid\">";
  while($forum=mysql_fetch_array($forums))
  {
  echo "<option value=\"$forum[0]\">$forum[1]</option>";
  }
  echo "</select>
";
  echo "<input type=\"Submit\" Name=\"Submit\" Value=\"Delete\">";
  }
  echo "
[b]8 [/b]<a href=\"admincp.php?action=forums&sid=$sid\">Forums</a>
";
  echo "[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin CP</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////delete group//////////////////////////

else if($action=="delgrp")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]Delete UGroup[/b]

";
  echo "<form action=\"admproc.php?action=delgrp&sid=$sid\" method=\"post\">";
  $forums = mysql_query("SELECT id,name FROM ibwf_groups ORDER BY name, id");
  echo "UGroup: <select name=\"ugid\">";
  while($forum=mysql_fetch_array($forums))
  {
  echo "<option value=\"$forum[0]\">$forum[1]</option>";
  }
  echo "</select>
";
  echo "<input type=\"Submit\" Name=\"Submit\" Value=\"Delete\">";
  }
  echo "
[b]8 [/b]<a accesskey=\"8\" href=\"admincp.php?action=forums&sid=$sid\">Forums</a>
";
  echo "[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////edit category//////////////////////////

else if($action=="edtcat")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]Edit Category[/b]

";
  echo "<form action=\"admproc.php?action=edtcat&sid=$sid\" method=\"post\">";
  $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id, name");
  echo "Edit: <select name=\"fcid\">";
  while ($fcat=mysql_fetch_array($fcats))
  {
  echo "<option value=\"$fcat[0]\">$fcat[1]</option>";
  }
  echo "</select>
";
  echo "Name:<input name=\"fcname\" maxlength=\"30\"/>
";
  echo "Position:<input name=\"fcpos\" style=\"-wap-input-format: '*N'\" size=\"3\"  maxlength=\"3\"/>
";
  echo "<input type=\"Submit\" Name=\"Submit\" Value=\"Edit\">";
  }
  echo "
[b]8 [/b]<a accesskey=\"8\" href=\"admincp.php?action=fcats&sid=$sid\">Forum Categories</a>
";
  echo "[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////delete category//////////////////////////

else if($action=="delcat")
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  if(!isadmin(getuid_sid($sid)))
  {
  echo "Permission Denied!
";
  }else{
  echo "[b]Delete Category[/b]

";
  echo "<form action=\"admproc.php?action=delcat&sid=$sid\" method=\"post\">";
  $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id, name");
  echo "Delete: <select name=\"fcid\">";
  while ($fcat=mysql_fetch_array($fcats))
  {
  echo "<option value=\"$fcat[0]\">$fcat[1]</option>";
  }
  echo "</select>
";
  echo "<input type=\"Submit\" Name=\"Submit\" Value=\"Delete\">";
  }
  echo "
[b]8 [/b]<a accesskey=\"8\" href=\"admincp.php?action=fcats&sid=$sid\">Forum Categories</a>
";
  echo "[b]9 [/b]<a accesskey=\"9\" href=\"admincp.php?action=admincp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}
//////////////////////////error//////////////////////////

else
{
  echo "<head>";
  echo "<title>Admin Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  echo "I don't know how did you get into here, but there's nothing to show

";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p></body>";
}
?>
</html>

where I add your code??

if like my post click:

External image (may be gone)

Guest #7

is anybody have this for wml?

amylee Principal · 1,092 posts #9

this will stop the lame wannabe "hackers" who think it's possible ppl use admin and username as passwords but still i can gain admin access within about 5-10 minutes all this does is ban ppl as they attempt doesnt actually fix the problem

Guest #11

you just change the xhtml header to wml..thats all

ozziemale31 Lead · 861 posts #12

i had already modded that for my site lol u never coded that mod see lavalair updates in my old posts you noobs External image (may be gone)) and theres bugs in that 2 so ive remodded mine so when u non admin or any1 visits the tools i get inboxed a copy of ther logs and my whole site goes in2 lockdown untill i click a button External image (may be gone))

External image (may be gone) External image (may be gone)

External image (may be gone)

*****

**Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer.. Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free ***

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close