- don't drop TABLE_PANEL_DISKSPACE and TABLE_PANEL_DISKSPACE_ADMINS (used in traffic-cron);
- using correct variable for sql-query in getNextCronjobs(); - let includeCronjobs() return the list of crons to run because of all the global variables; - include required classes/functions to cronfiles;
This commit is contained in:
@@ -17,7 +17,13 @@
|
||||
|
||||
include_once(dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
includeCronjobs($debugHandler);
|
||||
$jobs_to_run = includeCronjobs($debugHandler, $pathtophpfiles);
|
||||
|
||||
foreach($jobs_to_run as $cron)
|
||||
{
|
||||
require_once($cron);
|
||||
}
|
||||
|
||||
fwrite($debugHandler, 'Cronfiles have been included' . "\n");
|
||||
|
||||
/*
|
||||
|
||||
@@ -17,6 +17,15 @@
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* necessary includes
|
||||
*/
|
||||
require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.dns.10.bind.php'));
|
||||
require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.10.apache.php'));
|
||||
require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.15.apache_fcgid.php'));
|
||||
require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.20.lighttpd.php'));
|
||||
require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.25.lighttpd_fcgid.php'));
|
||||
|
||||
/**
|
||||
* LOOK INTO TASKS TABLE TO SEE IF THERE ARE ANY UNDONE JOBS
|
||||
*/
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
openRootDB($debugHandler, $lockfile);
|
||||
require_once(makeCorrectFile(dirname(__FILE__) . '/cron_traffic.inc.functions.php'));
|
||||
|
||||
/**
|
||||
* TRAFFIC AND DISKUSAGE MESSURE
|
||||
|
||||
Reference in New Issue
Block a user