/** * Entry point for the script * * @return void * * @since 2.5 */ public function doExecute() { // Find all updates $this->out('AdsManager cron start...'); TCron::execute(); $this->out('AdsManager cron finish'); }
public function cron() { $conf = TConf::getConfig(); if ($conf->crontype == "webcron" && JRequest::getVar('task', '') == "cron") { TCron::execute(); echo "Done\n"; exit; } if ($conf->crontype == "onrequest" && JRequest::getVar('task', '') != "cron") { TCron::execute(); return; } echo "not allowed"; exit; }