delete function

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

3 replies · 441 views · started 17 years ago · 1 min read

Guest #1

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

nclemale36 Lead · 537 posts #2

yeh heres wot i did.

  $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

Guest #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

nclemale36 Lead · 537 posts #4

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

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

in ownerproc.php

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