ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
cron.php
Go to the documentation of this file.
1 <?php
2 chdir(dirname(__FILE__));
3 chdir('..');
4 
5 include_once "Services/Context/classes/class.ilContext.php";
7 
8 include_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 
15 if($_SERVER['argc'] < 4)
16 {
17  die("Usage: cron.php username password client\n");
18 }
19 
20 include_once './include/inc.header.php';
21 
22 // Start checks here
23 include_once './cron/classes/class.ilCronCheck.php';
25 $cron_check->start();
26 ?>