VerifyAccess.php
[Pman.Core] / VerifyAccess.php
index ed28a11..b22d919 100644 (file)
@@ -46,4 +46,30 @@ 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');
+        
+        if(
+                empty($_REQUEST['id']) || 
+                empty($_REQUEST['authorized_key']) ||
+                !$core_ip_access->get($_REQUEST['id']) ||
+                $core_ip_access->authorized_key != $_REQUEST['authorized_key']
+        ){                
+            $this->jerr('Invalid URL');
+        }
+        
+        $this->jdata($coba_application_signup->toArray());
+        
+    }
+    
 }