Response message updates... from Pizza Hut!!!

This commit is contained in:
Nate Jones
2014-02-21 05:06:46 +00:00
parent ec4adf8145
commit 8bf986b259
2 changed files with 10 additions and 24 deletions

View File

@@ -56,13 +56,9 @@ else {
save_var_xml(); save_var_xml();
} }
//redirect the user
require_once "resources/header.php"; $_SESSION["message"] = $text['message-delete'];
echo "<meta http-equiv=\"refresh\" content=\"2;url=vars.php\">\n"; header("Location: vars.php");
echo "<div align='center'>\n"; return;
echo $text['message-delete']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return;
?> ?>

View File

@@ -122,14 +122,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//synchronize the configuration //synchronize the configuration
save_var_xml(); save_var_xml();
//redirect the user $_SESSION["message"] = $text['message-add'];
require_once "resources/header.php"; header("Location: vars.php");
echo "<meta http-equiv=\"refresh\" content=\"2;url=vars.php\">\n"; return;
echo "<div align='center'>\n";
echo $text['message-add']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return;
} //if ($action == "add") } //if ($action == "add")
if ($action == "update" && permission_exists('var_edit')) { if ($action == "update" && permission_exists('var_edit')) {
@@ -151,14 +146,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//synchronize the configuration //synchronize the configuration
save_var_xml(); save_var_xml();
//redirect the user $_SESSION["message"] = $text['message-update'];
require_once "resources/header.php"; header("Location: vars.php");
echo "<meta http-equiv=\"refresh\" content=\"2;url=vars.php\">\n"; return;
echo "<div align='center'>\n";
echo $text['message-update']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return;
} //if ($action == "update") } //if ($action == "update")
} //if ($_POST["persistformvar"] != "true") } //if ($_POST["persistformvar"] != "true")
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) } //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)