} } //valid values } // isset post } // end if (action) } // end if (action set) // cache approve if (isset($_GET['action'])) { if ($_GET['action'] == "cache-approve") { $this_hf = new hf_id_user(); $this_hf->get_from_hashrange($u->id_user, $_GET['q']); if ($this_hf->id != 'undefined') { $this_hf->update_raw(array("str_cache_approved" => $this_hf->str_cache_latest)); } } // end if (action) } // end if (action) // add/update cxml header & footers if (isset($_GET['action'])) { if ($_GET['action'] == "update-custom-text") { if (isset($_POST['str_txt']) && isset($_POST['id_expr']) && isset($_POST['idx_key'])) { if (strlen($_POST['id_expr']) > 0 && strlen($_POST['idx_key']) > 0 && strlen($_POST['str_txt']) >= 0) { $props = array(); $props["id_expr"] = $_POST['id_expr']; $props["idx_key"] = $_POST['idx_key']; $props["str_txt"] = $_POST['str_txt']; $match_custom = new match_custom();