Ghost mode
Started on the old forum in January 2011 · view the original in the archive · old links redirect here
what u say ??? i can't understand that....
i think u r talking about invisible login.... m i right ??
so whats spl in this bro.... 🙂
add one boolean column in your online table name isGhost and set it if you login it in ghost mode and in online list, edit query to select those online users for which isGhost is not set.
Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in
everyone is telling you to try and code it yourself .... you wont learn if you dont even attempt to code it for yourself then once you are stuck show everyone how far you have got and everyone will help you to correct where you have gone wrong or cant do
Somethingelse i' ve tried this but not working :(core.php
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")."'");
}
login php
$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>
";
}
genproc
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>";
}
(only for staff member) but is this for lava?? for me don t work 🙁
....silence please....