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:
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user