delete function

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

    delete function

    is there a way we can find out who deleteing people on the sites in owner tools etc or cn be added in sql so we can catch the person he delete without warnings hope im in right room to post this comment if not plez correct me lol

    Reports

    »Inbox Messages(0)
    »Popup Messages(0)
    »Posts(0)
    »Topics(0)

    Logs

    shouts(0)
    penalties(0)

    i mean logs or u can hide it on the sql database etc

    #2
    yeh heres wot i did.

    Code:
      $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=\"../phpThumb/phpThumb.php?src=../images/ok.gif\" alt=\"O\"/>User  deleted successfully";
     mysql_query("INSERT INTO ibwf_mlog SET action='Deleted', details='<b>".getnick_uid(getuid_sid($sid))."</b> deleted $user!', actdt='".time()."'");
      }else{
    add the last part in the delete function in ownerproc . am sure u can work out wer it goes .

    i have added loads of logs for allsorts
    Wapchat4u


    Topsites4u

    Comment


      #3
      please explain thanx help be nice i just want do i add rest in ownercp or modcp or modproc.php as that where logs are etc

      Comment


        #4
        add this line after the line that says user has been deleted successfully.

        Code:
        mysql_query("INSERT INTO ibwf_mlog SET action='Deleted', details='<b>".getnick_uid(getuid_sid($sid))."</b> deleted $user!', actdt='".time()."'");
        in ownerproc.php
        Wapchat4u


        Topsites4u

        Comment

        Working...
        X