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;
+ $this->jerr('Invalid URL');
}
$core_ip_access = DB_DataObject::factory('core_ip_access');
+ if(!$core_ip_access->get($id) || $core_ip_access->authorized_key != $key){
+ $this->jerr('This URL is broken');
+ }
$ff = HTML_FlexyFramework::get();
) {
$this->jerr('Invalid URL');
}
+
+ return;
+
}
}