hello friends, I would like the ghost mode owners only wash it in my lavalair
Ghost mode
Collapse
X
-
I can give you an example by putting the codes please? and in which file?Last edited by Leviathan73; 13.01.11, 09:03.
Comment
-
Somethingelse i' ve tried this but not working core.phpPHP Code:function addonline($uid,$place,$plclink)
{
////for hidden user from online list n not active
$visible=mysql_fetch_array(mysql_query("SELECT visible FROM ibwf_users WHERE id='".$uid."'"));
if($visible[0]==0)
{
/////delete inactive users
$tm = time();
$timeout = $tm - 420; //time out = 5 minutes
$deloff = mysql_query("DELETE FROM ibwf_online WHERE actvtime <'".$timeout."'");
///now try to add user to online list
$res = mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='".$uid."'");
$res = mysql_query("INSERT INTO ibwf_online SET userid='".$uid."', actvtime='".$tm."', place='".$place."', placedet='".$plclink."'");
if(!$res)
{
//most probably userid already in the online list
//so just update the place and time
$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")."'");
}
PHP Code:$noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE visible='0' AND id='".$who."'"));
if($noi[0]==1)
{
echo "<a href=\"genproc.php?action=visible&sid=$sid\">L ogin As Invisible</a>
";
}else{
echo "<a href=\"genproc.php?action=unvisible&sid=$sid\" >Login As Visible</a>
";
}
PHP Code:else if($action=="visible")
{
echo "<card id=\"main\" title=\"Invisible Users\">";
echo "<p align=\"center\">";
$res = mysql_query("Update ibwf_users SET visible='1' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Visible successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Visiblilty"";
}
echo "
";
echo "<a href=\"profile.php?action=viewuser&who=$uid&am p;sid=$sid\">My Profile</a>
";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>";
echo "</p>";
echo "</card>";
}
else if($action=="unvisible")
{
echo "<card id=\"main\" title=\"Invisible Users\">";
echo "<p align=\"center\">";
$res = mysql_query("Update ibwf_users SET visible='0' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Unvisible successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Visiblilty";
}
echo "
";
echo "<a href=\"profile.php?action=viewuser&who=$uid&am p;sid=$sid\">My Profile</a>
";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>";
echo "</p>";
echo "</card>";
}
Comment
Comment