/** * Main class entry point * * @access public * @param object ipsRegistry reference * @return void [Outputs to screen] */ public function doExecute(ipsRegistry $registry) { @set_time_limit(1200); //----------------------------------------- // Require and run //----------------------------------------- require_once IPS_ROOT_PATH . 'sources/classes/class_taskmanager.php'; $functions = new class_taskmanager($registry); //----------------------------------------- // Check shutdown functions //----------------------------------------- if (IPS_USE_SHUTDOWN) { define('IS_SHUTDOWN', 1); register_shutdown_function(array($functions, 'runTask')); } else { $functions->runTask(); } if ($functions->type != 'cron' && !$_SERVER['SHELL']) { //----------------------------------------- // Print out the 'blank' gif //----------------------------------------- @header("Content-Type: image/gif"); print base64_decode("R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="); } }