require_once is also a statement and not a function

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-11-18 13:06:43 +01:00
parent 87ccff6a7b
commit 48de5d7c22
2 changed files with 9 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ if (isset($argv[1]) && strtolower($argv[1]) == '--help') {
} }
/** /**
* check for --force to include cron_tasks * check for --force to include cron_tasks
* even if it's not its turn * even if it's not its turn
*/ */
for ($x = 1; $x < count($argv); $x++) { for ($x = 1; $x < count($argv); $x++) {
@@ -56,7 +56,7 @@ for ($x = 1; $x < count($argv); $x++) {
} }
foreach ($jobs_to_run as $cron) { foreach ($jobs_to_run as $cron) {
require_once($cron); require_once $cron;
} }
fwrite($debugHandler, 'Cronfiles have been included' . "\n"); fwrite($debugHandler, 'Cronfiles have been included' . "\n");

View File

@@ -20,13 +20,13 @@
/* /*
* necessary includes * necessary includes
*/ */
require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.dns.10.bind.php')); 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.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.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.20.lighttpd.php');
require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.25.lighttpd_fcgid.php')); require_once makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.25.lighttpd_fcgid.php');
require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.30.nginx.php')); require_once makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.30.nginx.php');
require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.35.nginx_phpfpm.php')); require_once makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.35.nginx_phpfpm.php');
/** /**
* LOOK INTO TASKS TABLE TO SEE IF THERE ARE ANY UNDONE JOBS * LOOK INTO TASKS TABLE TO SEE IF THERE ARE ANY UNDONE JOBS