include("config.php"); if ($page=="login"){ ob_start(); } try {require('facebook/facebook.php');} catch (Exception $e) { } $who=mysql_Fetch_Array(mysql_query(" select * from who where session='".$_COOKIE['session']."' ")); if ($who){ $fetch2=mysql_fetch_Array(mysql_query(" select * from users where id='".$who[id]."' ")); $loggedin=1; mysql_query(" update who set last_active=UNIX_TIMESTAMP() where session='".$_COOKIE['session']."' "); mysql_query(" update users set last_active=UNIX_TIMESTAMP() where id='".$who[id]."' "); }else{ $loggedin=0; } mysql_query("delete from who where last_active < UNIX_TIMESTAMP()-108000 "); ?>
|
|
|