VerifyAccess.php
authoredward <edward@roojs.com>
Thu, 15 Feb 2018 05:04:02 +0000 (13:04 +0800)
committeredward <edward@roojs.com>
Thu, 15 Feb 2018 05:04:02 +0000 (13:04 +0800)
VerifyAccess.php

index 5544432..6d4a2e2 100644 (file)
@@ -47,15 +47,6 @@ class Pman_Core_VerifyAccess extends Pman
     }
     
     function post()
-    {
-        if(!empty($_REQUEST['_to_data'])){
-            $this->toData();
-        }
-        
-        
-    }
-    
-    function toData()
     {
         $core_ip_access = DB_DataObject::factory('core_ip_access');
         
@@ -68,8 +59,14 @@ class Pman_Core_VerifyAccess extends Pman
             $this->jerr('Invalid URL');
         }
         
-        $this->jdata($core_ip_access->toArray());
+        if(!empty($_REQUEST['_to_data'])){
+            $this->jdata($core_ip_access->toArray());
+        }
+        
+        
+        
         
     }
     
+    
 }