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

    
if (function_exists('set_time_limit'))@set_time_limit(60); 
    
query("DELETE FROM `guests` WHERE `date_last` < '".(time() - $set['user_online'])."'");
    
    
# Удаление профилей из базы данных ,которые небыли активированы ,обычно это в случаи активации по email
    
query("DELETE FROM `user` WHERE `activation` != null AND `time_reg` < '".(time()-60*60*24)."'"); 


    if(@
$curl curl_init()) 
    {
        include_once 
H.'sys/inc/api_config.php';
        
curl_setopt($curlCURLOPT_URLTODAY_STAT_FIERA."?vers={$set['fiera_vers']}&stat={$set['fiera_status']}&url={$_SERVER['HTTP_HOST']}");
        
curl_setopt($curlCURLOPT_RETURNTRANSFER,true);
        
curl_close($curl);
   }
   

             
$od opendir(H.'sys/cache/images/');
          while (
$rd=readdir($od))
          {
               if (!
preg_match('#^.#',$rd) and filectime(H.'sys/cache/images/'.$rd
               < 
time()-60*60*24)
               @
delete_dir(H.'sys/cache/images/'.$rd);
            
          }
          
closedir($od);
Онлайн: 0
Реклама