'; $title = ''; $descript = ''; $keyword = ''; echo'
'; ///Реклама верх require(ROOT.'/reklames/top.php'); /* ----------------------------------------------------------------- Фиксация местоположений посетителей ----------------------------------------------------------------- */ $sql = ''; if ($user_id) { ###############Онлайн############# $db->exec("REPLACE INTO `online` (`user_id`, `time`) VALUES ('" . $user_id . "', NOW());"); $db->exec('DELETE FROM `online` WHERE `time` < (NOW() - INTERVAL 300 SECOND)'); ################################# if ($datauser['lastdate'] < ($_SERVER['REQUEST_TIME'] - 300)) { $sql .= " `sestime` = '" . $_SERVER['REQUEST_TIME'] . "', "; } $totalonsite = $datauser['total_on_site']; if ($datauser['lastdate'] > ($_SERVER['REQUEST_TIME'] - 300)) { $totalonsite = $totalonsite + $_SERVER['REQUEST_TIME'] - $datauser['lastdate']; } $db->query("UPDATE `users` SET $sql `total_on_site` = '$totalonsite', `lastdate` = '" . $_SERVER['REQUEST_TIME'] . "' WHERE `id` = '$user_id' "); } /* ----------------------------------------------------------------- Выводим сообщение о Бане ----------------------------------------------------------------- */ if (!empty($ban)) { echo '

'.$lng['vy_zabaneny'].'

'.$lng['vash_ak_zablochen'].' '.users::view_login($ban[1]).'
'.$lng['no_prichine'].': '.func::checkout($ban[2]).', '.func::date_fixed($ban[0]).'
'; require('incfiles/foot.php'); exit; } ?>