Файл: adultscript-2.0.3-pro/files/cron/scripts/video_embed.php
Строк: 9
<?php
defined('_VALID') or die('Restricted Access!');
function cron_video_embed()
{
update_script('video_embed', TRUE, FALSE);
$php_cli_path = VF::cfg_item('php_cli_path');
$unique = time().'_'.mt_rand();
$gcfg = VF::cfg('module.grab');
foreach ($gcfg['urls'] as $name => $url) {
if ($url != '') {
$cmd = $php_cli_path.' '.ADMIN_DIR.'/modules/grab/scripts/grab.php '.$url.' '.$gcfg['user_id'].' '.$gcfg['category'].' 1 '.$unique;
exec(escapeshellcmd($cmd));
}
}
update_script('video_embed', FALSE, TRUE);
}