2013-10-07 12:17:06 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-03-23 11:37:22 +05:00
|
|
|
|
|
|
|
|
|
|
|
/*//Adding Admin Menu
|
2013-10-07 12:17:06 +00:00
|
|
|
add_admin_menu("ClipBucket Helper","Cron Jobs",'cron_jobs.php','clipbucket_helper/admin');
|
|
|
|
|
|
|
|
|
|
|
|
//Functions
|
|
|
|
function cron_call_writer($file)
|
|
|
|
{
|
|
|
|
$tmp_file = TEMP_DIR.'/'.$file;
|
|
|
|
$file = fopen($tmp_file,"w");
|
|
|
|
fwrite($file,now());
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//Registering Functions
|
|
|
|
cb_register_function('cron_call_writer','video_convert_cron','video_convert_cron.txt');
|
|
|
|
cb_register_function('cron_call_writer','verify_converted_videos_cron','verify_converted_videos_cron.txt');
|
|
|
|
cb_register_function('cron_call_writer','update_cb_stats_cron','update_cb_stats_cron.txt');
|
|
|
|
|
|
|
|
$array = array('video_convert_cron.txt','verify_converted_videos_cron.txt','update_cb_stats_cron.txt');
|
|
|
|
//Reading and registering Contentings
|
|
|
|
foreach($array as $arr)
|
|
|
|
if(file_exists(TEMP_DIR.'/'.$arr))
|
2017-03-23 11:37:22 +05:00
|
|
|
assign(getName($arr),file_get_contents(TEMP_DIR.'/'.$arr));*/
|
2013-10-07 12:17:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
?>
|