Вход Регистрация
Файл: cron/time_butik.php
Строк: 16
<?


$ost 
time() + 3600 2;
$za mysql_query("select*from `rukzak` where `day`>0 and `day`<'$ost' and `odeto`!='787'") or (die
    (
mysql_error()));
mysql_query("update `rukzak` set `odeto`='787' where `odeto`='0' and `day`>0 and `day`<'" .
    
time() . "' ");
while (
$rowbut mysql_fetch_array($za)) {
    if (
$rowbut['day'] > time()) {
        
$tim $rowbut['day'] - time();
        
$text 'Срок действия ' $rowbut['nazvanie'] . ' заканчивается через' .
            
date(' G:i:s '$tim);
        
mysql_query("INSERT INTO `post` ( `name` , `text` , `date` , `otkogo`,`pro` ,`polyc`,`prochitano`) 
VALUES (
'" 
$rowbut['name'] . "', '$text', '" time() . "', 'СИСТЕМА','1','0','1'
)"
) or die(mysql_error());
        
mysql_query("UPDATE  `table1` SET `pismo`='1'WHERE `name`='" .
            
mysql_real_escape_string($rowbut['name']) . "';") or die(mysql_error());


        ;
    }
    if (
$rowbut['day'] <= time()) {
        if (
$rowbut['odeto'] == 1) {
            
mysql_query("update `table1` set `snat`=1 where `name`='" $rowbut['name'] . "'");

            ;
        }


        ;
    }


    ;
}
$gtim=time()+84600;
mysql_query("update `game_setup` set `time_butik`='$gtim'");
?>
Онлайн: 1
Реклама