Pman/Login.php
authoredward <edward@roojs.com>
Mon, 15 Jan 2018 08:07:23 +0000 (16:07 +0800)
committeredward <edward@roojs.com>
Mon, 15 Jan 2018 08:07:23 +0000 (16:07 +0800)
Pman/Login.php

index 6c89b7f..be76497 100644 (file)
@@ -505,6 +505,17 @@ class Pman_Login extends Pman
             $core_ip_access->sendXMPP();
             
             $this->jerr('NEW-IP-ADDRESS', array('ip' => $ip));
+            
+            return;
+        }
+        
+        if(empty($core_ip_access->status)){
+            $this->jerr('PENDING-IP-ADDRESS', array('ip' => $ip));
+        }
+        
+        if($core_ip_access->status == -1){
+            $this->jerr('BLOCKED-IP-ADDRESS', array('ip' => $ip));
+            return;
         }
         
         print_R(strtotime($core_ip_access->expire_dt));exit;
@@ -514,13 +525,9 @@ class Pman_Login extends Pman
         $core_ip_access->sendXMPP();
         exit;
         
-        if(empty($core_ip_access->status)){
-            $this->jerr('PENDING-IP-ADDRESS', array('ip' => $ip));
-        }
         
-        if($core_ip_access->status == -1){
-            $this->jerr('BLOCKED-IP-ADDRESS', array('ip' => $ip));
-        }
+        
+