-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathcronjob.php
38 lines (36 loc) · 1.37 KB
/
cronjob.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/* Project: EQdkp-Plus
* Package: EQdkp-plus
* Link: http://eqdkp-plus.eu
*
* Copyright (C) 2006-2016 EQdkp-Plus Developer Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
define('EQDKP_INC', true);
$eqdkp_root_path = './';
$lite = true;
include_once($eqdkp_root_path . 'common.php');
@set_time_limit(0);
@ignore_user_abort(true);
//single task
if(registry::register('input')->get('task') != ""){
$force_run = (registry::register('input')->get('force') == 'true' && register('user')->check_auth('a_config_man', false)) ? true : false;
registry::register('cronjobs')->execute_cron(registry::register('input')->get('task'), $force_run);
echo "Cronjob executed.";
}else{
//all cronjobs with flag external
registry::register('cronjobs')->handle_crons(true);
}
?>