delete user info

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

    delete user info

    Code:
     echo "<a href=\"ownerproc.php?action=delshout&amp;sid=$sid&amp;who=$who\">Delete Shout Of This User</a><br/>";
    ownerproc
    Code:
    else if($action=="delshout")
    {
      $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\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
      echo "<br/>U Cannot Delete $user<br/>";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p>";
      }else{
    
      echo "<br/>";
    $res = mysql_query("DELETE FROM ibwf_shouts WHERE shouter='".$who."'");
      if($res)
      {
      echo "<img src=\"../images/ok.gif\" alt=\"O\"/>Shouts  deleted successfully";
      }else{
      echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting Shouts";
      }
       echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      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>";
    }

    #2
    Delete user buddies

    Code:
     echo "<a href=\"ownerproc.php?action=delbuddies&amp;sid=$sid&amp;who=$who\">Delete Buddies Of This User</a><br/>";
    ownerproc
    Code:
    else if($action=="delbuddies")
    {
      $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\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
      echo "<br/>U Cannot Delete $user<br/>";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p>";
      }else{
    
      echo "<br/>";
    $res = mysql_query("DELETE FROM ibwf_buddies WHERE tid='".$who."' OR uid='".$who."'");
      if($res)
      {
      echo "<img src=\"../images/ok.gif\" alt=\"O\"/>Buddies  deleted successfully";
      }else{
      echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting Buddies";
      }
       echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      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>";
    }

    Comment


      #3
      Delete user Gb

      Code:
       echo "<a href=\"ownerproc.php?action=delgb&amp;sid=$sid&amp;who=$who\">Delete GB Of This User</a><br/>";
      ownerproc
      Code:
      else if($action=="delgb")
      {
        $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\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
        echo "<br/>U Cannot Delete $user<br/>";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
        echo "</p>";
        }else{
      
        echo "<br/>";
        $res = mysql_query("DELETE FROM ibwf_gbook WHERE gbowner='".$who."' OR gbsigner='".$who."'");
        if($res)
        {
        echo "<img src=\"../images/ok.gif\" alt=\"O\"/>Gb  deleted successfully";
        }else{
        echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting Gb";
        }
         echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
        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>";
      }
      Last edited by riderz; 23.09.09, 14:57.

      Comment


        #4
        Delete user ignore list

        Code:
         echo "<a href=\"ownerproc.php?action=delignore&amp;sid=$sid&amp;who=$who\">Delete Ignore Of This User</a><br/>";
        ownerproc
        Code:
        else if($action=="delignore")
        {
          $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\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
          echo "<br/>U Cannot Delete $user<br/>";
          echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
          echo "</p>";
          }else{
        
          echo "<br/>";
          $res = mysql_query("DELETE FROM ibwf_ignore WHERE name='".$who."' OR target='".$who."'");
          if($res)
          {
          echo "<img src=\"../images/ok.gif\" alt=\"O\"/>Ignore  deleted successfully";
          }else{
          echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting Ignore";
          }
           echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
          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>";
        }
        Last edited by riderz; 23.09.09, 14:58.

        Comment


          #5
          Delete user mangr

          Code:
           echo "<a href=\"ownerproc.php?action=delmangr&amp;sid=$sid&amp;who=$who\">Delete Mangr Of This User</a><br/>";
          ownerproc
          Code:
          else if($action=="delmangr")
          {
            $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\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
            echo "<br/>U Cannot Delete $user<br/>";
            echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
            echo "</p>";
            }else{
          
            echo "<br/>";
            $res = mysql_query("DELETE FROM ibwf_mangr WHERE uid='".$who."'");
            if($res)
            {
            echo "<img src=\"../images/ok.gif\" alt=\"O\"/>mangr  deleted successfully";
            }else{
            echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting mangr ";
            }
             echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
            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>";
          }
          Last edited by riderz; 23.09.09, 14:58.

          Comment


            #6
            Delete user modrl

            Code:
             echo "<a href=\"ownerproc.php?action=delmodr&amp;sid=$sid&amp;who=$who\">Delete Modrl Of This User</a><br/>";
            ownerproc
            Code:
            else if($action=="delmodr")
            {
              $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\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
              echo "<br/>U Cannot Delete $user<br/>";
              echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
              echo "</p>";
              }else{
            
              echo "<br/>";
              $res = mysql_query("DELETE FROM ibwf_modr WHERE name='".$who."'");
              if($res)
              {
              echo "<img src=\"../images/ok.gif\" alt=\"O\"/>Mod Rl  deleted successfully";
              }else{
              echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting Mod Rl ";
              }
               echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
              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>";
            }
            Last edited by riderz; 23.09.09, 14:58.

            Comment


              #7
              Delete user penalties

              Code:
               echo "<a href=\"ownerproc.php?action=delpenalties&amp;sid=$sid&amp;who=$who\">Delete Penalties Of This User</a><br/>";
              ownerproc
              Code:
              else if($action=="delpenalties")
              {
                $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\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
                echo "<br/>U Cannot Delete $user<br/>";
                echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                echo "</p>";
                }else{
              
                echo "<br/>";
                $res = mysql_query("DELETE FROM ibwf_penalties WHERE uid='".$who."' OR exid='".$who."'");
                if($res)
                {
                echo "<img src=\"../images/ok.gif\" alt=\"O\"/>penalties deleted successfully";
                }else{
                echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting penalties";
                }
                 echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
                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>";
              }
              Last edited by riderz; 23.09.09, 14:58.

              Comment


                #8
                PHP Code:
                 echo "<a href=\"ownerproc.php?action=delbuddies&amp;sid=$sid&amp;who=$who\">Delete Buddies Of This User</a><br/>"
                Change this,you are using Delete Buddies Of This User in every mod
                Last edited by xws.developer; 23.09.09, 14:48.

                Comment


                  #9
                  Delete user posts

                  Code:
                   echo "<a href=\"ownerproc.php?action=delposts&amp;sid=$sid&amp;who=$who\">Delete Posts Of This User</a><br/>";
                  ownerproc
                  Code:
                  else if($action=="delposts")
                  {
                    $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\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
                    echo "<br/>U Cannot Delete $user<br/>";
                    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                    echo "</p>";
                    }else{
                  
                    echo "<br/>";
                   $res = mysql_query("DELETE FROM ibwf_posts WHERE uid='".$who."'");
                    if($res)
                    {
                    echo "<img src=\"../images/ok.gif\" alt=\"O\"/>Posts deleted successfully";
                    }else{
                    echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting Posts";
                    }
                     echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
                    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>";
                  }
                  Last edited by riderz; 23.09.09, 14:59.

                  Comment


                    #10
                    delete user popups

                    Code:
                     echo "<a href=\"ownerproc.php?action=delpopups&amp;sid=$sid&amp;who=$who\">Delete Popups Of This User</a><br/>";
                    ownerproc
                    Code:
                    else if($action=="delpopups")
                    {
                      $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\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
                      echo "<br/>U Cannot Delete $user<br/>";
                      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                      echo "</p>";
                      }else{
                    
                      echo "<br/>";
                    $res = mysql_query("DELETE FROM ibwf_popups WHERE byuid='".$who."' OR touid='".$who."'");
                      if($res)
                      {
                      echo "<img src=\"../images/ok.gif\" alt=\"O\"/>popups deleted successfully";
                      }else{
                      echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting popups";
                      }
                       echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
                      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>";
                    }
                    Last edited by riderz; 23.09.09, 14:59.

                    Comment


                      #11
                      delete user topics

                      Code:
                       echo "<a href=\"ownerproc.php?action=deltopics&amp;sid=$sid&amp;who=$who\">Delete Topics Of This User</a><br/>";
                      ownerproc
                      Code:
                      else if($action=="deltopics")
                      {
                        $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\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
                        echo "<br/>U Cannot Delete $user<br/>";
                        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                        echo "</p>";
                        }else{
                      
                        echo "<br/>";
                        $res = mysql_query("DELETE FROM ibwf_topics WHERE authorid='".$who."'");
                        if($res)
                        {
                        echo "<img src=\"../images/ok.gif\" alt=\"O\"/>topics deleted successfully";
                        }else{
                        echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting topics";
                        }
                         echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
                        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>";
                      }
                      Last edited by riderz; 23.09.09, 15:02.

                      Comment


                        #12
                        Delete user games

                        Code:
                         echo "<a href=\"ownerproc.php?action=delgames&amp;sid=$sid&amp;who=$who\">Delete Games Of This User</a><br/>";
                        ownerproc
                        Code:
                        else if($action=="delgames")
                        {
                          $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\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
                          echo "<br/>U Cannot Delete $user<br/>";
                          echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                          echo "</p>";
                          }else{
                        
                          echo "<br/>";
                            $res = mysql_query("DELETE FROM ibwf_games WHERE uid='".$who."'");
                          if($res)
                          {
                          echo "<img src=\"../images/ok.gif\" alt=\"O\"/>games deleted successfully";
                          }else{
                          echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting games";
                          }
                           echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
                          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>";
                        }
                        Last edited by riderz; 23.09.09, 15:02.

                        Comment


                          #13
                          delete user presults

                          Code:
                           echo "<a href=\"ownerproc.php?action=delpresults&amp;sid=$sid&amp;who=$who\">Delete presults Of This User</a><br/>";
                          ownerproc
                          Code:
                          else if($action=="delpresults")
                          {
                            $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\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
                            echo "<br/>U Cannot Delete $user<br/>";
                            echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                            echo "</p>";
                            }else{
                          
                            echo "<br/>";
                             $res = mysql_query("DELETE FROM ibwf_presults WHERE uid='".$who."'");
                            if($res)
                            {
                            echo "<img src=\"../images/ok.gif\" alt=\"O\"/>presults deleted successfully";
                            }else{
                            echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting presults";
                            }
                             echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
                            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>";
                          }

                          Comment


                            #14
                            Whats the use of it? why would any site owner want to delete the buddies of a user??

                            Comment


                              #15
                              delete users vault

                              Code:
                               echo "<a href=\"ownerproc.php?action=delvault&amp;sid=$sid&amp;who=$who\">Delete vault Of This User</a><br/>";
                              ownerproc
                              Code:
                              else if($action=="delvault")
                              {
                                $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\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
                                echo "<br/>U Cannot Delete $user<br/>";
                                echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                                echo "</p>";
                                }else{
                              
                                echo "<br/>";
                                 $res = mysql_query("DELETE FROM ibwf_vault WHERE uid='".$who."'");
                                if($res)
                                {
                                echo "<img src=\"../images/ok.gif\" alt=\"O\"/>vault deleted successfully";
                                }else{
                                echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting vault";
                                }
                                 echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
                                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>";
                              }

                              Comment

                              Working...
                              X