From 930c42336ba6b1debf3b5a07e4c4934a6f22338c Mon Sep 17 00:00:00 2001 From: edward Date: Mon, 15 Jan 2018 16:07:23 +0800 Subject: [PATCH] Pman/Login.php --- Pman/Login.php | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Pman/Login.php b/Pman/Login.php index 6c89b7f..be76497 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -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)); - } + + -- 2.39.2