Файл: accmarket.net/cron/1.php
Строк: 11
<?php
define('_ON_CMS', 1);
require_once '../includes/start.php';
require_once '../includes/function.php';
require_once '../includes/header.php';
$marattime=date ('H');
$PAGINGS = mysql_query("SELECT * FROM `users` WHERE `game`!=0 AND `marat`='".$marattime."' ORDER BY `id` DESC");
if($PAGINGS > 0)
{
while($row = mysql_fetch_array($PAGINGS))
{
mysql_query("UPDATE `users` SET `tmarat`=$realtime+25200 WHERE `id`='".$row['id']."';");
}
}
mysql_query("UPDATE `users` SET `rasa`=0 WHERE `game`=0;");
mysql_query("DELETE FROM `brifing` WHERE `time`<='".($realtime-259200)."';");
mysql_query("DELETE FROM `doklad` WHERE `time`<='".($realtime-259200)."';");
mysql_query("DELETE FROM `sector_loc` WHERE `time`<='".($realtime-14400)."' AND `loc`=6;"); /// Удаление ЗилНаге
mysql_query("DELETE FROM `sector_loc` WHERE `time`<='".($realtime-14400)."' AND `loc`=8;"); /// Удаление станции контрабандистов
?>