Help Plzzzz With Delete Member Tool

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

4 replies · 505 views · started 18 years ago · 2 min read

5 participants
djsammy Junior · 43 posts #1
else if($action=="delu")
{
  $who = $_GET["who"];
  $user = getnick_uid($who);
  echo "<head>";
  echo "<title>Owner Tools</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  $uid = getuid_sid($sid);
  $perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'"));
  $trgtperm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE name='".$user."'"));

  if($trgtperm>$perm){ 
  echo "[b]<img src=\"../images/notok.gif\" alt=\"x\"/>
Error!!!
Permission Denied...[/b]
";
  echo "
U Cannot Delete $user
";
  echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  }else{

  echo "
";
  $res = mysql_query("DELETE FROM ibwf_buddies WHERE tid='".$who."' OR uid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_gbook WHERE gbowner='".$who."' OR gbsigner='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_ignore WHERE name='".$who."' OR target='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_mangr WHERE uid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_modr WHERE name='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_penalties WHERE uid='".$who."' OR exid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_posts WHERE uid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_private WHERE byuid='".$who."' OR touid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_popups WHERE byuid='".$who."' OR touid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_shouts WHERE shouter='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_topics WHERE authorid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_brate WHERE uid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_games WHERE uid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_presults WHERE uid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_vault WHERE uid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_blogs WHERE bowner='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_chat WHERE chatter='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_chat WHERE who='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_chonline WHERE uid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_online WHERE userid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_ses WHERE uid='".$who."'");
  $res = mysql_query("DELETE FROM ibwf_xinfo WHERE uid='".$who."'");
  deleteMClubs($who);
  $res = mysql_query("DELETE FROM ibwf_users WHERE id='".$who."'");
  if($res)
  {
  echo "<img src=\"../images/ok.gif\" alt=\"O\"/>User  deleted successfully";
  }else{
  echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting UGroup";
  }
  echo "

[b]8 [/b]<a accesskey=\"8\" href=\"admincp.php?action=chuinfo&sid=$sid\">User info</a>
";
  echo "
[b]9 [/b]<a accesskey=\"9\" href=\"ownercp.php?action=ownercp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner 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></body>";
}

can some one please sort this out please as its not working

this is a tool to delete members off site

metulj Super moderator Principal · 1,726 posts #5

not deleted comments and gallery and rate points....:D

ofcourse it doesnt... add mysql_query for that... at least that is simple..

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

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