Файл: adultscript-2.0.3-pro/files/cron/scripts/video_thumb_player.php
Строк: 16
<?php
defined('_VALID') or die('Restricted Access!');
function cron_video_thumb_player()
{
update_script('video_thumb_player', true, false);
$time = time();
$run = true;
$cmd = VF::cfg_item('php_cli_path').' '.BASE_DIR.'/modules/video/scripts/extract_player.php';
if (VProcess::is_running($cmd)) {
VLog::write('EXTRACT: Player thumb extraction script is already running!');
update_script('video_thumb_player', false, true);
return;
}
VLog::write('EXTRACT: executing '.$cmd);
exec(escapeshellcmd($cmd). ' >/dev/null &');
update_script('video_thumb_player', false, true);
}
?>