mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 08:34:09 +02:00
Extra cron script checks.
This commit is contained in:
8
cron.php
8
cron.php
@@ -34,7 +34,15 @@ $_E107['no_menus'] = true;
|
|||||||
$_E107['allow_guest'] = true; // allow crons to run while in members-only mode.
|
$_E107['allow_guest'] = true; // allow crons to run while in members-only mode.
|
||||||
$_E107['no_maintenance'] = true;
|
$_E107['no_maintenance'] = true;
|
||||||
|
|
||||||
|
if (php_sapi_name() !== "cli" && $_E107['debug'] === false)
|
||||||
|
{
|
||||||
|
header('HTTP/1.0 403 Forbidden');
|
||||||
|
echo "<h1>Access Denied</h1>";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
require_once(realpath(__DIR__ . "/class2.php"));
|
require_once(realpath(__DIR__ . "/class2.php"));
|
||||||
|
|
||||||
require_once(e_HANDLER . "cron_class.php");
|
require_once(e_HANDLER . "cron_class.php");
|
||||||
|
|
||||||
$cron = new cronScheduler();
|
$cron = new cronScheduler();
|
||||||
|
Reference in New Issue
Block a user