mobilezonez script updated
Started on the old forum in January 2010 · view the original in the archive · old links redirect here
TL;DR · summary of 36 replies
- ayoomo9 asked about a bug in the online user functionality where users remain logged in even after being idle for 20 years.
- ozziemale31 provided a solution to edit the logout link and change session timeout code in core.php, but noted that some users can still log back in using another's session.
- VECTOR had trouble with the logout not working as expected, despite making changes to the logout link and session timeout code.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
i deleted the demo site so its up to the ppl who use it to update it now in the share folders i used htaccess to block php executables
External image (may be gone) External image (may be gone)
*****
**Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer.. Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free ***
i have a demo up http://mobilezonez.nu.mu
Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code
NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH
if u guys want any help with it let me know ill help fix any bugs in yr coding as well im over having chat sites atm
External image (may be gone) External image (may be gone)
*****
**Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer.. Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free ***
lol this script doesnt work in the online list....the sessions dont end so ppl are always logged on =/
http://wapmayhem.co.ccmy wap portal http://weedreed.co.ccvirtual weed smoking site;)
edit the time online function in core.php and change the log out link lol logout link should be index.php action = logout
External image (may be gone) External image (may be gone)
*****
**Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer.. Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free ***
i just said to edit the logout link like this <a href="index.php?action=logout&sid=$sid">Log out</a>
and to change the session online code for time out edit in core.php this function
function addonline($uid,$place,$plclink)
{
/////delete inactive users
$tm = time() ;
$timeout = $tm - 2493767; //time out = 5 minutes here is where u edit the time a session stays online
$deloff = mysql_query("DELETE FROM ibwf_online WHERE actvtime <'".$timeout."'");
$cloak = mysql_fetch_array(mysql_query("SELECT hidden FROM ibwf_users WHERE id = '".$uid."'"));
if($cloak[0]==1){
mysql_query("UPDATE ibwf_online SET hidden = 1 WHERE userid = $uid");
}else if($cloak[0]==0){
mysql_query("UPDATE ibwf_online SET hidden = 0 WHERE userid = $uid");
}
///now try to add user to online list and add total time online
$lastactive = mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id='".$uid."'"));
$tolsla = time() - $lastactive[0];
$totaltimeonline = mysql_fetch_array(mysql_query("SELECT tottimeonl FROM ibwf_users WHERE id='".$uid."'"));
$totaltimeonline = $totaltimeonline[0] + $tolsla;
$ttime = time();
$res = mysql_query("UPDATE ibwf_users SET lastact='".$ttime."' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET tottimeonl='".$totaltimeonline."' WHERE id='".$uid."'");
$res = mysql_query("INSERT INTO ibwf_online SET userid='".$uid."', actvtime='".$ttime."', 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='".$ttime."', 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", time());
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")."'");
}
}
}
External image (may be gone) External image (may be gone)
*****
**Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer.. Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free ***
no the login page has the session stealing prevented try copying another users session nd pasting it into yr broswer bet i says yr not logged in
External image (may be gone) External image (may be gone)
*****
**Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer.. Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free ***
Pls anybody help with the zip, my winrar its not working, plsss
http://myfacepals.com MYFACEPALS SOCIAL NETWORKExternal image (may be gone)
Pls, the forum is not working,how to add forum and cant read inbox, pls help me..
http://myfacepals.com MYFACEPALS SOCIAL NETWORKExternal image (may be gone)
u want rar format?
http://wapmayhem.co.ccmy wap portal http://weedreed.co.ccvirtual weed smoking site;)