|
|
|
|
|
|
|
|
$db = new \DB\Jig($token_db,\DB\Jig::FORMAT_JSON); |
|
|
$db = new \DB\Jig($token_db,\DB\Jig::FORMAT_JSON); |
|
|
$formcall = new \DB\Jig\Mapper($db,'form_calls'); |
|
|
$formcall = new \DB\Jig\Mapper($db,'form_calls'); |
|
|
|
|
|
|
|
|
$formcall->load(['@token = ?', $token]); |
|
|
|
|
|
$f3->config($formcall->form); |
|
|
|
|
|
$this->path = $formcall->path; |
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
|
if($formcall->load(['@token = ?', $token])) { |
|
|
|
|
|
$f3->config($formcall->form); |
|
|
|
|
|
$this->path = $formcall->path; |
|
|
|
|
|
return true; |
|
|
|
|
|
} else { |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function get_post_data() { |
|
|
function get_post_data() { |
|
|
$f3 = \Base::instance(); |
|
|
$f3 = \Base::instance(); |
|
|
|
|
|
|
|
|
$token = $f3->get('POST.xss-token'); |
|
|
$token = $f3->get('POST.xss-token'); |
|
|
if (ctype_alnum( $token )) { |
|
|
if (ctype_alnum( $token )) { |
|
|
if ($this->load_form_config($token)) { |
|
|
if ($this->load_form_config($token)) { |