ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
cron.php
Go to the documentation of this file.
1<?php
2chdir(dirname(__FILE__));
3chdir('..');
4
5include_once "Services/Context/classes/class.ilContext.php";
7
8include_once 'Services/Authentication/classes/class.ilAuthFactory.php';
10
11$_COOKIE["ilClientId"] = $_SERVER['argv'][3];
12$_POST['username'] = $_SERVER['argv'][1];
13$_POST['password'] = $_SERVER['argv'][2];
14
15if($_SERVER['argc'] < 4)
16{
17 die("Usage: cron.php username password client\n");
18}
19
20include_once './include/inc.header.php';
21
22// Start checks here
23include_once './cron/classes/class.ilCronCheck.php';
25$cron_check->start();
26
27include_once './Services/Cron/classes/class.ilCronManager.php';
29
31$ilAuth->logout();
32session_destroy();
static setContext($a_context)
set context
const CONTEXT_CRON
static init($a_type)
Init context by type.
static runActiveJobs()
Run all active jobs.
const SESSION_CLOSE_USER
static setClosingContext($a_context)
set closing context (for statistics)
$_POST['username']
Definition: cron.php:12
$_COOKIE["ilClientId"]
Definition: cron.php:11
$cron_check
Definition: cron.php:24
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']