Oo Goodie Ghost Mode

Started on the old forum in September 2008 · view the original in the archive · old links redirect here

2 replies · 746 views · started 18 years ago · 1 min read

jsyguy23 Developer · 134 posts #1

CODEadds to index.php settings or in tools where you want it to go

$noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE ghost='0' AND id='".$uid."'")); if($noi[0]==1){ echo "<a href="owner.php?action=on&sid=$sid">Ghost Mode Is Off</a> "; }else{ echo "<a href="owner.php?action=off&sid=$sid">Ghost Mode Is On</a> "; }

///////////////////////////////////GHOST MODE FOR OWNERS ONLTY///////////////////// else if($action=="on"){ echo "<head>"; echo "<title>visible</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<body>"; echo " "; $res=mysql_query("Update ibwf_users SET ghost='1' WHERE id='".$uid."'"); if($res){ echo "<img src="../phpThumb/phpThumb.php?src=../images/ok.gif" alt="O"/>Ghost Mode On";}else{ echo "<img src="../phpThumb/phpThumb.php?src=../images/notok.gif" alt="X"/>Error Turning Ghost Mode On";} echo "

"; echo "<a href="../users.php?action=viewuser&who=$uid&sid=$sid">My Profile</a> "; echo "<a href="main.php?action=main&sid=$sid"><img src="../phpThumb/phpThumb.php?src=../images/home.gif" alt=""/>Main Menu</a>"; echo " "; echo "</body>"; exit();}

//////////////////////////////////////////////////////////////////////////////// else if($action=="off"){ echo "<head>"; echo "<title>visible</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<body>"; echo " "; $res=mysql_query("Update ibwf_users SET ghost='0' WHERE id='".$uid."'"); if($res){ echo "<img src="../phpThumb/phpThumb.php?src=../images/ok.gif" alt="O"/>Ghost Mode Off";}else{ echo "<img src="../phpThumb/phpThumb.php?src=../images/notok.gif" alt="X"/>Error Turning Ghost Mode Off";} echo "

"; echo "<a href="../users.php?action=viewuser&who=$uid&sid=$sid">My Profile</a> "; echo "<a href="main.php?action=main&sid=$sid"><img src="../phpThumb/phpThumb.php?src=../images/home.gif" alt=""/>Main Menu</a>"; echo " "; echo "</body>"; exit();}

add to index.php action=online $sql=" SELECT a.name, a.sex, a.perm, b.place, b.userid, a.ghost FROM ibwf_users a INNER JOIN ibwf_online b ON a.id = b.userid WHERE ghost='0' GROUP BY 1,2 LIMIT $limit_start, $items_per_page";

add to ibwf_users table

ghost char(1) NOT NULL default '0',

add to core.php

//////////////////////Function add user to online list 😛 function addonline($uid,$place,$plclink){ $ttime=time(); $ghost=mysql_fetch_array(mysql_query("SELECT ghost FROM ibwf_users WHERE id='".$uid."'")); if($ghost[0]=="0"){ $tm = time(); $timeout = $tm - 420; $deloff = mysql_query("DELETE FROM ibwf_online WHERE actvtime <'".$timeout."'"); $res = mysql_query("UPDATE ibwf_users SET lastact='" . $ttime . "' WHERE id='" . $uid . "'"); $res = mysql_query("INSERT INTO ibwf_online SET userid='" . $uid . "', actvtime='" . $ttime . "', place='" . $place . "', placedet='" . $plclink . "'"); if(!$res){ $res=mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$place."', placedet='".$plclink."' WHERE userid='".$uid."'");}} $maxmem=mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE id='2'")); $result=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online")); if($result[0]>=$maxmem[0]){ $tnow=date("D d M Y - H:i"); mysql_query("UPDATE ibwf_settings set name='".$tnow."', value='".$result[0]."' WHERE id='2'");} $maxtoday = mysql_fetch_array(mysql_query("SELECT ppl FROM ibwf_mpot WHERE ddt='".date("d m y")."'")); if($maxtoday[0]==0||$maxtoday==""){ mysql_query("INSERT INTO ibwf_mpot SET ddt='".date("d m y")."', ppl='1', dtm='".date("H:i:s")."'"); $maxtoday[0]=1;} if($result[0]>=$maxtoday[0]){ mysql_query("UPDATE ibwf_mpot SET ppl='".$result[0]."', dtm='".date("H:i:s")."' WHERE ddt='".date("d m y")."'");} }

Guest #2

im trying to add this to my owners tools i add to change the owner.php to ownercp.php but after that all i get is theres nothing to show in ere. any ideas

jsyguy23 Developer · 134 posts #3

post the code you put in ownercp and ownerproc here ill have a look whats wrong

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