Streamlined response message for: Default Settings, SIP Status

This commit is contained in:
Nate Jones
2014-02-21 00:17:28 +00:00
parent 7ec1d651cd
commit a6892102cb
3 changed files with 9 additions and 21 deletions
+2 -1
View File
@@ -85,7 +85,8 @@ else {
echo $response; echo $response;
} }
else { else {
header("Location: sip_status.php?savemsg=".urlencode($response)); $_SESSION["message"] = $response;
header("Location: sip_status.php");
} }
?> ?>
@@ -53,13 +53,8 @@ if (strlen($id)>0) {
unset($sql); unset($sql);
} }
//redirect the user $_SESSION["message"] = $text['message-delete'];
require_once "resources/header.php"; header("Location: default_settings.php");
echo "<meta http-equiv=\"refresh\" content=\"2;url=default_settings.php\">\n"; return;
echo "<div align='center'>\n";
echo $text['message-delete']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return;
?> ?>
+4 -12
View File
@@ -112,12 +112,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$db->exec(check_sql($sql)); $db->exec(check_sql($sql));
unset($sql); unset($sql);
require_once "resources/header.php"; $_SESSION["message"] = $text['message-add'];
echo "<meta http-equiv=\"refresh\" content=\"2;url=default_settings.php\">\n"; header("Location: default_settings.php");
echo "<div align='center'>\n";
echo $text['message-add']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return; return;
} //if ($action == "add") } //if ($action == "add")
@@ -133,12 +129,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$db->exec(check_sql($sql)); $db->exec(check_sql($sql));
unset($sql); unset($sql);
require_once "resources/header.php"; $_SESSION["message"] = $text['message-update'];
echo "<meta http-equiv=\"refresh\" content=\"2;url=default_settings.php\">\n"; header("Location: default_settings.php");
echo "<div align='center'>\n";
echo $text['message-update']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return; return;
} //if ($action == "update") } //if ($action == "update")
} //if ($_POST["persistformvar"] != "true") } //if ($_POST["persistformvar"] != "true")