From 8b7b34b434d8e702e41684f40612ccf58a18db0e Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 15 Feb 2018 11:19:47 +0800 Subject: [PATCH] VerifyAccess.php --- VerifyAccess.php | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/VerifyAccess.php b/VerifyAccess.php index 1a9fbb1e..ff79ad5b 100644 --- a/VerifyAccess.php +++ b/VerifyAccess.php @@ -4,6 +4,8 @@ require_once 'Pman.php'; class Pman_Core_VerifyAccess extends Pman { + var $masterTemplate = 'master-verify-ip-access.html'; + /* * This is a public page */ @@ -14,12 +16,34 @@ class Pman_Core_VerifyAccess extends Pman function get($id) { + + + return; + + } + + function validate($id) + { + $ret = array( + 'is_valid' => true, + 'errorMsg' => '' + ); + @list($id, $key) = explode('/', $id); + if(empty($id) || empty($key)){ + return false; + } + + $core_ip_access = DB_DataObject::factory('core_ip_access'); + + $ff = HTML_FlexyFramework::get(); $core_person = DB_DataObject::factory('core_person'); - $core_ip_access = DB_DataObject::factory('core_ip_access'); + + + $ff->Pman['XMPP']['to'] = 'edward@roojs.com'; // testing... if( empty($id) || @@ -33,8 +57,6 @@ class Pman_Core_VerifyAccess extends Pman ) { $this->jerr('Invalid URL'); } - - } } -- 2.39.2