public function FormPost() { $out = array(); $out["map"] = array(); foreach (getpost() as $name => $value) { if (matches($name, "map")) { $map = json_decode(FormHelper::Decode($value)); foreach ($map as $mapped) { $parts = explode('|', $mapped); if (contains($parts[0], '__')) { $d = explode('__', $parts[0]); if (!isset($out["map"][$d[0]])) { $out["map"][$d[0]] = array(); } $out["map"][$d[0]][$d[1]] = AJAX::fp($parts[1]); } else { $mapped[$parts[0]] = AJAX::fp($parts[1]); } } } else { if (contains($name, '__')) { $d = explode("__", $name); if (!isset($out[$d[0]])) { $out[$d[0]] = array(); } $out[$d[0]][$d[1]] = base64_decode(urldecode($value)); } else { $out[$name] = FormHelper::Decode($value); } } } $out['signal'] = json_decode($out['signal'], true); return $out; }