if ($_POST["persistformvar"] != "true") { //used for debugging if ($_POST["debug"] == "true") { unset($_POST["debug"]); echo "<pre>\n"; print_r($_POST); echo "</pre>\n"; exit; } //save the ivr menu $ivr = new ivr_menu(); $ivr->domain_uuid = $_SESSION["domain_uuid"]; if (strlen($ivr_menu_uuid) > 0) { $ivr->ivr_menu_uuid = $ivr_menu_uuid; } $response = $ivr->save($_POST); if (strlen($response['uuid']) > 0) { $ivr_menu_uuid = $response['uuid']; } //clear the cache $cache = new cache(); $cache->delete("dialplan:" . $_SESSION["context"]); $cache->delete("configuration:ivr.conf:" . $ivr_menu_uuid); //redirect the user $_SESSION["message"] = $text['message-update']; header("Location: ivr_menu_edit.php?id=" . $ivr_menu_uuid); return; } //if ($_POST["persistformvar"] != "true") } //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)