Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00034 class ilCronCheck
00035 {
00036 function ilCronCheck()
00037 {
00038 global $ilLog;
00039
00040 $this->log =& $ilLog;
00041 }
00042
00043 function start()
00044 {
00045 global $ilias;
00046
00047 include_once('Services/LDAP/classes/class.ilLDAPCronSynchronization.php');
00048 $ldap_sync = new ilLDAPCronSynchronization();
00049 $ldap_sync->start();
00050
00051
00052 if($ilias->getSetting('cron_user_check'))
00053 {
00054 include_once './cron/classes/class.ilCronCheckUserAccounts.php';
00055
00056 $check_ua =& new ilCronCheckUserAccounts();
00057 $check_ua->check();
00058 }
00059
00060
00061 if($ilias->getSetting("cron_lucene_index"))
00062 {
00063 include_once './Services/Search/classes/Lucene/class.ilLuceneIndexer.php';
00064
00065 $lucene_ind =& new ilLuceneIndexer();
00066 $lucene_ind->index();
00067 }
00068
00069
00070 if($ilias->getSetting('cron_link_check'))
00071 {
00072 include_once './cron/classes/class.ilCronLinkCheck.php';
00073
00074 $check_lnk =& new ilCronLinkCheck();
00075 $check_lnk->check();
00076
00077 }
00078
00079
00080 if($ilias->getSetting('cron_web_resource_check'))
00081 {
00082 include_once './cron/classes/class.ilCronWebResourceCheck.php';
00083
00084 $check_lnk =& new ilCronWebResourceCheck();
00085 $check_lnk->check();
00086 }
00087
00088
00089 if($ilias->getSetting('forum_notification') == 2)
00090 {
00091 include_once './cron/classes/class.ilCronForumNotification.php';
00092
00093 $frm_not =& new ilCronForumNotification();
00094 $frm_not->sendNotifications();
00095
00096 }
00097
00098
00099 if($ilias->getSetting('mail_notification') == 1)
00100 {
00101 include_once './cron/classes/class.ilCronMailNotification.php';
00102
00103 $mail_not =& new ilCronMailNotification();
00104 $mail_not->sendNotifications();
00105 }
00106
00107 }
00108 }
00109
00110
00111
00112
00113 ?>