$core_person = DB_DataObject::factory('core_person');
if(!$core_person->get('email', $ff->Pman['XMPP']['to'])) {
- $this->jerr('Invalid Admin Setting');
+ $this->jerr('[System Error] Please setup the XMPP correctly');
}
return;
}
+ 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($core_ip_access->toArray());
+
+ }
+
}