Pman.php
authorAlan Knowles <alan@roojs.com>
Thu, 25 Oct 2018 03:10:17 +0000 (11:10 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 25 Oct 2018 03:10:17 +0000 (11:10 +0800)
Pman.php

index 77683de..fd0f032 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -103,7 +103,9 @@ class Pman extends HTML_FlexyFramework_Page
         $this->version = $boot->version; 
         $this->uiConfig = empty($boot->Pman['uiConfig']) ? false : $boot->Pman['uiConfig']; 
         
-        if (!empty($boot->Pman['local_autoauth']) && 
+        if (!empty($boot->Pman['local_autoauth']) &&
+            !empty($_SERVER['SERVER_ADDR']) &&
+            !empty($_SERVER['REMOTE_ADDR']) &&            
             ($_SERVER['SERVER_ADDR'] == '127.0.0.1') &&
             ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') 
         ) {