ILIAS  Release_3_10_x_branch Revision 61812
 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 
6 include_once "./cron/classes/class.ilCronAuthentication.php";
7 
9 
10 if($_SERVER['argc'] != 4)
11 {
12  die("Usage: cron.php username password client\n");
13 }
14 $cron_auth->setUsername($_SERVER['argv'][1]);
15 $cron_auth->setPassword($_SERVER['argv'][2]);
16 $cron_auth->setClient($_SERVER['argv'][3]);
17 
18 if(!$cron_auth->authenticate())
19 {
20  die($cron_auth->getMessage()."\n");
21 }
22 
23 include_once './include/inc.header.php';
24 
25 // Start checks here
26 include_once './cron/classes/class.ilCronCheck.php';
27 
29 $cron_check->start();
30 
31 $cron_auth->logout();
32 ?>