(GPLv2)
or write to the Free Software Foundation, Inc., 51 Franklin Street,
Fifth Floor, Boston, MA02110-1301, USA.
********************************************************************************/
if (stristr(htmlentities($_SERVER['PHP_SELF']), "inc_online.php")) {
die("
Error: This file cannot be opened directly! |
");
}
global $dblink,$visitorInfo,$userid,$userInfo,$tzNOW;
$guest = (isUser($userid)) ? 0 : 1 ;
$mark = (isAuth($userid,2)) ? 1 : 0 ;
$dblink->query("REPLACE INTO memht_online (ip,user,guest,mark,data) VALUES ('".ip2num($visitorInfo['ip'])."','".$userInfo['user']."','$guest','$mark',$tzNOW)");
$dblink->query("DELETE FROM memht_online WHERE (data + INTERVAL 5 MINUTE) < $tzNOW");
?>