CMS  Version 3.9
run_tasks.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("scheduled_task");
3 
4 if (!checkRole("admin") && $_SERVER["REMOTE_ADDR"] != $_SERVER["SERVER_ADDR"] && $_SERVER["REMOTE_ADDR"] != "127.0.0.1")
5 {
6  throw new FakoliException("Scheduled tasks cannot be run from {$_SERVER["REMOTE_ADDR"]}");
7 }
8 
10 $mgr->runTasks();
FakoliException is the base exception class for all Fakoli errors.
Definition: core.inc:53
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
Manages scheduled task registration and execution.
if(!checkRole("admin") && $_SERVER["REMOTE_ADDR"] !=$_SERVER["SERVER_ADDR"] && $_SERVER["REMOTE_ADDR"] !="127.0.0.1") $mgr
Definition: run_tasks.inc:9