- Liittynyt
- 17.4.2002
- Viestejä
- 501
yritin kirjautua ulos niin pukka tällaista..
{ $DB_site->query("UPDATE user SET lastactivity='".(time()-$cookietimeout)."',lastvisit='".time()."' WHERE userid='$bbuserinfo[userid]'"); } //$DB_site->query("UPDATE session SET userid=0 WHERE sessionhash='".addslashes($session[sessionhash])."'"); $DB_site->query("DELETE FROM session WHERE sessionhash='".addslashes($session[dbsessionhash])."'"); if ($bbuserinfo[userid] > 0) { // make sure any other of this user's sessions are deleted (incase they ended up with more than one) $DB_site->query("DELETE FROM session WHERE userid='$bbuserinfo[userid]'"); } $session['sessionhash']=md5(uniqid(microtime())); $session['dbsessionhash']=
{ $DB_site->query("UPDATE user SET lastactivity='".(time()-$cookietimeout)."',lastvisit='".time()."' WHERE userid='$bbuserinfo[userid]'"); } //$DB_site->query("UPDATE session SET userid=0 WHERE sessionhash='".addslashes($session[sessionhash])."'"); $DB_site->query("DELETE FROM session WHERE sessionhash='".addslashes($session[dbsessionhash])."'"); if ($bbuserinfo[userid] > 0) { // make sure any other of this user's sessions are deleted (incase they ended up with more than one) $DB_site->query("DELETE FROM session WHERE userid='$bbuserinfo[userid]'"); } $session['sessionhash']=md5(uniqid(microtime())); $session['dbsessionhash']=