Вход Регистрация
Файл: adultscript-2.0.3-pro/files/cron/scripts/video_thumb.php
Строк: 16
<?php
defined
('_VALID') or die('Restricted Access!');
function 
cron_video_thumb()
{
    
update_script('video_thumb', TRUE, FALSE);

    
$time        = time();
    
$run        = true;
    
    
$cmd        = VF::cfg_item('php_cli_path').' '.BASE_DIR.'/modules/video/scripts/extract.php';
    if (
VProcess::is_running($cmd)) {
        
VLog::write('EXTRACT: Thumb extraction script is already running!');
        
update_script('video_thumb', false, true);
        
        return;
    }
    
    
VLog::write('EXTRACT: executing '.$cmd);
    
exec(escapeshellcmd($cmd). ' >/dev/null &');
        
    
update_script('video_thumb', FALSE, TRUE);
}
?>
Онлайн: 2
Реклама