Log Deleted User

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

    Log Deleted User

    Hi, has anyone got the coding so it show's who deleted a user in the modlog please, its for lavalair coded site

    #2
    lol if some1 delete u, it doesnt matter anymore 2 u lol
    sigpiceeeeerrr....

    Comment


      #3
      in ownercp add this to the code where delete user option is
      this wont get reproted to modcp but is more on the sly way of reporting to the site owner whos id is at number1

      Code:
      $who = $_GET["who"];
      $whonick = getnick_uid($sid);
        $byuid = getuid_sid($sid);
        $unick=getnick_sid($sid);
      $whonick = getnick_uid($who);
      $user = getnick_sid($sid);
          mysql_query("INSERT INTO ibwf_private SET text='[b]".$user."I deleted user $who)[/b][br/]".$pmtext."', byuid='".$byuid."', touid='1', timesent='".$tm."'");
      If This Was Usefull Let Me Know...









      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

      Comment


        #4
        ok this works finally lol after playing around with the code i found something that will work
        this will not only record the log into modlog but alert owner at id 1 with an inbox
        in owner tools replace this with below

        Code:
        else if($action=="delu")
        {
          $who = $_GET["who"];
          $user = getnick_uid($who);
          echo "<card id=\"main\" title=\"Owner Tools\">";
          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;"));
        $who = $_GET["who"];
        $byuid = getuid_sid($sid);
        $unick=getnick_sid($sid);
        $whonick = getnick_uid($who);
        $user = getnick_sid($sid);
        $unick = getnick_uid($who);
        $who = $_POST["who"];
        $brws = explode(" ",$HTTP_USER_AGENT);
        $ubr = $brws[0];
        $uip = getip();
        $time = time() + (17 * 60 * 60);
          $newtime = date("H:i",$time);
          $date = strtotime(&#39;+17 hours&#39;);
        $newdate = date(&#39;D jS M y&#39;,$date);
        $user = getnick_sid($sid);
        
        
        $nick = getnick_sid($sid);
          mysql_query("INSERT INTO ibwf_private SET text=&#39;".$nick." deleted [b].$whonick.[/b]".$pmtext."&#39;, byuid=&#39;".
        mysql_query("INSERT INTO ibwf_mlog SET action=&#39;Ownercp Hack&#39;, details=&#39;
        [u][b]".$user."[/b][/u]
        [b]Attempted to get in  Owner tools:[/b] $pwd
         [b]Browser:[/b] $ubr
         [b]IP:[/b] $uip
        &#39;, actdt=&#39;".time()."&#39;");
        
        $byuid."&#39;, touid=&#39;1&#39;, timesent=&#39;".$tm."&#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=\"home.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 "
        
        <a href=\"ownercp.php?action=chuinfo&amp;sid=$sid\">User info</a>
        ";
          echo "
        <a href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a>
        ";
          echo "<a href=\"home.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
          }
          echo "</p></card>";
        }









        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

        Comment


          #5
          Thank you for that, i added it but got the follow error.....
          Parse error: syntax error, unexpected &#39;;&#39; in /home/*******/public_html/web/ownrproc.php on line 499

          Comment


            #6
            didnt you notic the </card> tag at the end lol thats why you got the error its a wml page not xhtml









            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

            Comment


              #7
              <div class='quotetop'>QUOTE (ozziemale31 @ Feb 1 2009, 09:58 PM) <{POST_SNAPBACK}></div>
              didnt you notic the </card> tag at the end lol thats why you got the error its a wml page not xhtml[/b]
              PMSL some ppl dont know how to copy and past

              PHP Code:
              foreach ($_SERVER as $server => $value)
              {
              echo 
              "$server is $value<br />";

              Comment

              Working...
              X