1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +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

@@ -6,12 +6,6 @@
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*
*
* $Source: /cvs_backup/e107_0.8/e107_admin/admin.php,v $
* $Revision$
* $Date$
* $Author$
*/
require_once('../class2.php');
@@ -187,6 +181,9 @@ class admin_start
e107::getDebug()->logTime('Check Password Encryption');
$this->checkPasswordEncryption();
//Check if developer mode is enabled
$this->checkDeveloperMode();
if($this->refresh == true)
{
@@ -539,6 +536,14 @@ TMPO;
}
private function checkDeveloperMode()
{
if(deftrue('e_DEVELOPER') && (strpos(e_SELF,'localhost') === false) && (strpos(e_SELF,'127.0.0.1') === false))
{
e107::getMessage()->addWarning(LAN_DEVELOPERMODE_CHECK);
}
}
private function checkDependencies()
{