projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dc72f71
)
VerifyAccess.php
author
edward
<edward@roojs.com>
Thu, 15 Feb 2018 03:19:47 +0000
(11:19 +0800)
committer
edward
<edward@roojs.com>
Thu, 15 Feb 2018 03:19:47 +0000
(11:19 +0800)
VerifyAccess.php
patch
|
blob
|
history
diff --git
a/VerifyAccess.php
b/VerifyAccess.php
index
1a9fbb1
..
ff79ad5
100644
(file)
--- a/
VerifyAccess.php
+++ b/
VerifyAccess.php
@@
-4,6
+4,8
@@
require_once 'Pman.php';
class Pman_Core_VerifyAccess extends Pman
{
class Pman_Core_VerifyAccess extends Pman
{
+ var $masterTemplate = 'master-verify-ip-access.html';
+
/*
* This is a public page
*/
/*
* This is a public page
*/
@@
-14,12
+16,34
@@
class Pman_Core_VerifyAccess extends Pman
function get($id)
{
function get($id)
{
+
+
+ return;
+
+ }
+
+ function validate($id)
+ {
+ $ret = array(
+ 'is_valid' => true,
+ 'errorMsg' => ''
+ );
+
@list($id, $key) = explode('/', $id);
@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');
$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) ||
if(
empty($id) ||
@@
-33,8
+57,6
@@
class Pman_Core_VerifyAccess extends Pman
) {
$this->jerr('Invalid URL');
}
) {
$this->jerr('Invalid URL');
}
-
-
}
}
}
}