Help Plzzzz With Delete Member Tool

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help Plzzzz With Delete Member Tool

    Code:
    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=&#39;".$uid."&#39;"));
      $trgtperm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE name=&#39;".$user."&#39;"));
    
      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&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p>";
      }else{
    
      echo "
    ";
      $res = mysql_query("DELETE FROM ibwf_buddies WHERE tid=&#39;".$who."&#39; OR uid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_gbook WHERE gbowner=&#39;".$who."&#39; OR gbsigner=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_ignore WHERE name=&#39;".$who."&#39; OR target=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_mangr WHERE uid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_modr WHERE name=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_penalties WHERE uid=&#39;".$who."&#39; OR exid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_posts WHERE uid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_private WHERE byuid=&#39;".$who."&#39; OR touid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_popups WHERE byuid=&#39;".$who."&#39; OR touid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_shouts WHERE shouter=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_topics WHERE authorid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_brate WHERE uid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_games WHERE uid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_presults WHERE uid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_vault WHERE uid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_blogs WHERE bowner=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_chat WHERE chatter=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_chat WHERE who=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_chonline WHERE uid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_online WHERE userid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_ses WHERE uid=&#39;".$who."&#39;");
      $res = mysql_query("DELETE FROM ibwf_xinfo WHERE uid=&#39;".$who."&#39;");
      deleteMClubs($who);
      $res = mysql_query("DELETE FROM ibwf_users WHERE id=&#39;".$who."&#39;");
      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&amp;sid=$sid\">User info</a>
    ";
      echo "
    [b]9 [/b]<a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a>
    ";
      echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&amp;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

    #2
    this code is ok if you predefined the function
    Code:
     deleteMClubs($who);

    Comment


      #3
      the original of the script works fine too . so dunno wot u done
      Wapchat4u


      Topsites4u

      Comment


        #4
        not deleted comments and gallery and rate points....:D
        if like my post click:

        http://coding-talk.com/images/totall...ost_thanks.gif

        Comment


          #5
          not deleted comments and gallery and rate points....:D[/b]
          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ノ刀ノイリ!

          Comment

          Working...
          X