public function run($args) { echo "Begin of the command\n"; echo "Starting Cashe Files Removing\n"; CronController::CommandIndex('25sa9k8vtfo4jchg30fc8sjl01','cachefilesremoving'); echo "Finishing Cache Files Removing\n"; echo "End of the command\n"; }
public function run($args) { echo "Begin of the command\n"; echo "Starting expirationdatenotification\n"; CronController::CommandIndex('25sa9k8vtfo4jchg30fc8sjl01','expirationdatenotification'); echo "Finishing expirationdatenotification\n"; echo "End of the command\n"; }
public function run($args) { echo "Begin of the command\n\n"; echo "Starting sheduled testnotification\n"; CronController::CommandIndex('25sa9k8vtfo4jchg30fc8sjl01','testnotification'); echo "Test Notification Finished \n"; echo "Starting sheduled approval mailling\n"; CronController::CommandIndex('25sa9k8vtfo4jchg30fc8sjl01','dailymailing'); echo "Approval Mailing Finished \n"; echo "\nEnd of the command\n"; }
switch ($_POST['sec']) { case "generate": $controller->executeReportGenerationScript($_POST); break; } } else { switch ($_GET['sec']) { case "generate": $controller->routeCronJob($_GET['website_id'], $_GET['repTools']); break; case "croncommand": $controller->showCronCommand(); break; default: $controller->showReportGenerationManager(); break; } } } else { # the section for generate reports using system cron job include_once "includes/sp-load.php"; include_once SP_CTRLPATH . "/cron.ctrl.php"; include_once SP_CTRLPATH . "/report.ctrl.php"; include_once SP_CTRLPATH . "/searchengine.ctrl.php"; include_once SP_CTRLPATH . "/keyword.ctrl.php"; $controller = new CronController(); $controller->timeStamp = mktime(0, 0, 0, date('m'), date('d'), date('Y')); $includeList = array(); // the only included seo tools id $controller->executeCron($includeList); }
require __DIR__ . '/bootstrap.php'; // Let's not break everything if new config isn't set if (!defined('FAVICON_DEFAULT')) { define('FAVICON_DEFAULT', 'default.ico'); } if (!defined('FAVICON_CACHE_DURATION')) { define('FAVICON_CACHE_DURATION', 3600 * 24 * 30); } if (isset($argv[1])) { if ($argv[1] == '--daemon') { // daemon mode while (true) { $controller = new CronController(); $controller->verbose = false; $success = $controller->fetchAll(); unset($controller); if (!$success) { sleep(30); } } } } else { // standard mode $controller = new CronController(); $controller->check(); $controller->run(); } } else { // TODO webcron die; }