Pman.php
authorAlan Knowles <alan@roojs.com>
Fri, 27 Jul 2018 05:24:56 +0000 (13:24 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 27 Jul 2018 05:24:56 +0000 (13:24 +0800)
Pman.php

index db93e03..977b82e 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -108,6 +108,13 @@ class Pman extends HTML_FlexyFramework_Page
             $this->isDev = true;
         }
         
+        if ($_SERVER['SERVER_ADDR'] == '127.0.0.1') &&
+            ($_SERVER['REMOTE_ADDR'] == '127.0.0.1')  &&
+            !empty($_REQUEST['isDev'])
+        ) {
+            $this->isDev = true;
+        }
+        
         // if a file Pman_{module}_Pman exists.. and it has an init function... - call that..
         
         //var_dump($this->appModules);