1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 06:03:27 +02:00

Check for developer mode

Adds warning for ADMIN when developer mode is enabled, but when user is not on localhost (indicating developing).
This commit is contained in:
Moc
2020-05-03 17:43:50 +02:00
parent 2cddbaa5a2
commit 7ffad1f4d2
3 changed files with 21 additions and 6 deletions

View File

@@ -780,6 +780,14 @@ if ($e107_popup != 1) {
{
echo "<div class='installer alert alert-danger alert-block text-center'><b>*** ".CORE_LAN4." ***</b><br />".CORE_LAN5."</div>";
}
if(ADMIN && deftrue('e_DEVELOPER') && (strpos(e_SELF,'localhost') === false) && (strpos(e_SELF,'127.0.0.1') === false))
{
echo "<div class='installer alert alert-danger alert-block text-center'>".LAN_DEVELOPERMODE_CHECK."</div>";
}
//XXX TODO LAN in English.php
echo "<noscript><div class='alert alert-block alert-error alert-danger'><strong>This web site requires that javascript be enabled. <a rel='external' href='http://activatejavascript.org'>Click here for instructions.</a>.</strong></div></noscript>";