1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 07:36:32 +02:00

Extra cron script checks.

This commit is contained in:
camer0n
2023-09-18 12:43:44 -07:00
parent 7394a6c539
commit e904dd99d5

View File

@@ -34,7 +34,15 @@ $_E107['no_menus'] = true;
$_E107['allow_guest'] = true; // allow crons to run while in members-only mode.
$_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(e_HANDLER . "cron_class.php");
$cron = new cronScheduler();