dev-php74-utf8 #31
1
main.php
1
main.php
@ -84,7 +84,6 @@ if ($u->room['file'] == "room_hostel" || $u->room['file'] == "post") {
|
|||||||
#--------для общаги, и позже для почты
|
#--------для общаги, и позже для почты
|
||||||
if ($u->info['online'] < time() - 60 || $u->info['afk'] != '') {
|
if ($u->info['online'] < time() - 60 || $u->info['afk'] != '') {
|
||||||
$filter->setOnline($u->info['8'], $u->info['id']);
|
$filter->setOnline($u->info['8'], $u->info['id']);
|
||||||
$u->onlineBonus();
|
|
||||||
mysql_query(
|
mysql_query(
|
||||||
"UPDATE `users` SET `online`='" . time() . "',`timeMain`='" . time(
|
"UPDATE `users` SET `online`='" . time() . "',`timeMain`='" . time(
|
||||||
) . "',`afk`='' WHERE `id`='" . $u->info['id'] . "' LIMIT 1"
|
) . "',`afk`='' WHERE `id`='" . $u->info['id'] . "' LIMIT 1"
|
||||||
|
@ -27,7 +27,6 @@ if ($u->info['bithday'] == '01.01.1800') {
|
|||||||
if ($u->info['online'] < time() - 60) {
|
if ($u->info['online'] < time() - 60) {
|
||||||
mysql_query('UPDATE users SET online = unix_timestamp() WHERE id = ' . $u->info['id']);
|
mysql_query('UPDATE users SET online = unix_timestamp() WHERE id = ' . $u->info['id']);
|
||||||
$filter->setOnline($u->info['online'], $u->info['id']);
|
$filter->setOnline($u->info['online'], $u->info['id']);
|
||||||
$u->onlineBonus();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function isModerOrAdmin($uinfo)
|
function isModerOrAdmin($uinfo)
|
||||||
|
Loading…
Reference in New Issue
Block a user