mobilezonez script updated

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

36 replies · 4,119 views · started 16 years ago · 1 min read

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.

15 participants
thanatos Senior · 261 posts #21

i've seen a hole.. check ur error logs..

cottonking2000 Newbie · 7 posts #24

Got it - I too have too many urls and forget about them

ayoomo9 Junior · 12 posts #27

The script Online is bug.

the online user is bug... if a user is idle for 20years its will still keep the User online... why? and what is the solution?

kere Newbie · 8 posts #28

i can't find folder /guest on archive,, which folder? please give me

VECTOR Junior · 27 posts #31

dint get the above said function and still the logout not working donno why 🙁

ozziemale31 Lead · 861 posts #32

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)

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 ***

VECTOR Junior · 27 posts #33

done and its working but even some1 is outta onlist afta the specified time he can use the same session to surf

can it b rectified ??

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