form_sanitizer($_REQUEST['fields']); /*if ($item_id) { if (\defender::safe()) { $status['response'] = 201; parse_str(urldecode($_SESSION['form_cache'][$form_id][$form_type][$item_id]), $data); // you need an unobstrusive method. do not update the table, but recall only. Show that there are some version, and whether they want to output. //dbquery_insert($table, $data, 'update', ['keep_session'=>TRUE]); unset($_SESSION['form_cache'][$form_id][$form_type][$item_id]); } }*/ } else if ($_REQUEST['callback'] == 'read_cache') { $status['response'] = 600; if (!empty($_SESSION['form_cache'][$form_id][$form_type])) { parse_str(html_entity_decode($_SESSION['form_cache'][$form_id][$form_type][$item_id]), $status['data']); unset($status['data']['fusion_token']); $status['response'] = 200; } } else if ($_REQUEST['callback'] == 'cancel') { unset($_SESSION['form_cache'][$form_id][$form_type][$item_id]); } } else { $status['response'] = 501; } } header('Content-Type: application/json'); echo json_encode($status);