CMS  Version 3.9
run_task.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("scheduled_task");
3 
4 if (!checkRole("admin"))
5 {
6  throw new FakoliException("Permission Denied");
7 }
8 
9 $task_id = checkNumeric($_GET["task_id"]);
10 if (!$task_id)
11 {
12  throw new FakoliException("No task specified");
13 }
14 
16 $task->run();
17 
18 redirect("/admin/scheduled_task_logs?task_id={$task_id}");
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
if(!checkRole("admin")) $task_id
Definition: run_task.inc:9
if(! $task_id) $task
Definition: run_task.inc:15