Go to the documentation of this file.00001 <?php
00002 chdir(dirname(__FILE__));
00003 chdir('..');
00004
00005
00006 include_once "./cron/classes/class.ilCronAuthentication.php";
00007
00008 $cron_auth =& new ilCronAuthentication();
00009
00010 if($_SERVER['argc'] != 4)
00011 {
00012 die("Usage: cron_auth.php username password client\n");
00013 }
00014 $cron_auth->setUsername($_SERVER['argv'][1]);
00015 $cron_auth->setPassword($_SERVER['argv'][2]);
00016 $cron_auth->setClient($_SERVER['argv'][3]);
00017
00018 if(!$cron_auth->authenticate())
00019 {
00020 die($cron_auth->getMessage()."\n");
00021 }
00022
00023 include_once './include/inc.header.php';
00024
00025
00026 include_once './cron/classes/class.ilCronCheck.php';
00027
00028 $cron_check =& new ilCronCheck();
00029 $cron_check->start();
00030
00031 $cron_auth->logout();
00032 ?>