3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
13 require_once '../civicrm.config.php';
14 require_once 'CRM/Core/Config.php';
15 require_once 'CRM/Utils/Request.php';
16 CRM_Core_Config
::singleton();
18 CRM_Utils_System
::authenticateScript(TRUE);
20 $job = CRM_Utils_Request
::retrieve('job', 'String', CRM_Core_DAO
::$_nullArray, FALSE, NULL, 'REQUEST');
22 require_once 'CRM/Core/JobManager.php';
23 $facility = new CRM_Core_JobManager();
29 $ignored = array("name", "pass", "key", "job");
31 foreach ($_REQUEST as $name => $value) {
32 if (!in_array($name, $ignored)) {
33 $params[$name] = CRM_Utils_Request
::retrieve($name, 'String', CRM_Core_DAO
::$_nullArray, FALSE, NULL, 'REQUEST');
36 $facility->setSingleRunParams('job', $job, $params, 'From cron.php');
37 $facility->executeJobByAction('job', $job);