ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilCronCheck.php
Go to the documentation of this file.
1 <?php
2 /*
3  +-----------------------------------------------------------------------------+
4  | ILIAS open source |
5  +-----------------------------------------------------------------------------+
6  | Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
7  | |
8  | This program is free software; you can redistribute it and/or |
9  | modify it under the terms of the GNU General Public License |
10  | as published by the Free Software Foundation; either version 2 |
11  | of the License, or (at your option) any later version. |
12  | |
13  | This program is distributed in the hope that it will be useful, |
14  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16  | GNU General Public License for more details. |
17  | |
18  | You should have received a copy of the GNU General Public License |
19  | along with this program; if not, write to the Free Software |
20  | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21  +-----------------------------------------------------------------------------+
22 */
23 
24 
35 {
36  function ilCronCheck()
37  {
38  global $ilLog;
39 
40  $this->log =& $ilLog;
41  }
42 
43  function start()
44  {
45  global $ilias;
46 
47  include_once('Services/LDAP/classes/class.ilLDAPCronSynchronization.php');
48  $ldap_sync = new ilLDAPCronSynchronization();
49  $ldap_sync->start();
50 
51  // Check user accounts if enabled in settings
52  if($ilias->getSetting('cron_user_check'))
53  {
54  include_once './cron/classes/class.ilCronCheckUserAccounts.php';
55 
56  $check_ua =& new ilCronCheckUserAccounts();
57  $check_ua->check();
58  }
59 
60  // Start lucene indexer
61  if($ilias->getSetting("cron_lucene_index"))
62  {
63  include_once './Services/Search/classes/Lucene/class.ilLuceneIndexer.php';
64 
65  $lucene_ind =& new ilLuceneIndexer();
66  $lucene_ind->index();
67  }
68 
69  // Start Link check
70  if($ilias->getSetting('cron_link_check'))
71  {
72  include_once './cron/classes/class.ilCronLinkCheck.php';
73 
74  $check_lnk =& new ilCronLinkCheck();
75  $check_lnk->check();
76 
77  }
78 
79  // Start web resource check
80  if($ilias->getSetting('cron_web_resource_check'))
81  {
82  include_once './cron/classes/class.ilCronWebResourceCheck.php';
83 
84  $check_lnk =& new ilCronWebResourceCheck();
85  $check_lnk->check();
86  }
87 
88  // Start sending forum notifications
89  if($ilias->getSetting('forum_notification') == 2)
90  {
91  include_once './cron/classes/class.ilCronForumNotification.php';
92 
93  $frm_not =& new ilCronForumNotification();
94  $frm_not->sendNotifications();
95 
96  }
97 
98  // Start sending mail notifications
99  if($ilias->getSetting('mail_notification') == 1)
100  {
101  include_once './cron/classes/class.ilCronMailNotification.php';
102 
103  $mail_not =& new ilCronMailNotification();
104  $mail_not->sendNotifications();
105  }
106 
107  // Start System Check
108  if($ilias->getSetting('systemcheck_cron') == 1)
109  {
110  include_once './cron/classes/class.ilCronValidator.php';
111 
112  $validator =& new ilCronValidator();
113  $validator->check();
114  }
115 
116  // Start Disk Quota
117  require_once 'Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php';
119  {
120  include_once './cron/classes/class.ilCronDiskQuotaCheck.php';
121 
122  $disk_quota =& new ilCronDiskQuotaCheck();
123  $disk_quota->updateDiskUsageStatistics();
124  }
126  {
127  include_once './cron/classes/class.ilCronDiskQuotaCheck.php';
128 
129  $disk_quota =& new ilCronDiskQuotaCheck();
130  $disk_quota->sendReminderMails();
131  }
132  }
133 }
134 
135 
136 
137 
138 ?>