1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-26 19:03:53 +02:00

Issue #5096 Cron tweaks

This commit is contained in:
camer0n
2023-11-08 09:28:23 -08:00
parent e831266d01
commit 14612c5211
2 changed files with 7 additions and 5 deletions

View File

@ -34,10 +34,12 @@ $_E107['no_menus'] = true;
$_E107['allow_guest'] = true; // allow crons to run while in members-only mode.
$_E107['no_maintenance'] = true;
if ((PHP_SAPI === "apache" || PHP_SAPI === "litespeed") && $_E107['debug'] === false)
if ((PHP_SAPI === "apache" || PHP_SAPI === "litespeed"))
{
error_log("e107: cron.php was blocked from executing with PHP_SAPI: ".php_sapi_name(), E_USER_NOTICE);
header('HTTP/1.0 403 Forbidden');
if($_E107['debug'])
{
error_log("e107: cron.php was blocked from executing with PHP_SAPI: ".php_sapi_name());
}
echo "<h1>Access Denied</h1>";
exit;
}