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

index be76497..0546b5c 100644 (file)
@@ -518,19 +518,12 @@ class Pman_Login extends Pman
             return;
         }
         
-        print_R(strtotime($core_ip_access->expire_dt));exit;
-        
-        print_R($core_ip_access);exit;
-        
-        $core_ip_access->sendXMPP();
-        exit;
-        
-        
-        
-        
-        
-        
+        if(strtotime($core_ip_access->expire_dt) > 0 && strtotime($core_ip_access->expire_dt) < strtotime('NOW')){
+            $this->jerr('PENDING-IP-ADDRESS', array('ip' => $ip));
+            return;
+        }
         
+        return;
     }
     
     function ip_lookup()