Response message updates.

This commit is contained in:
Nate Jones
2014-02-23 08:38:10 +00:00
parent 44dce0b110
commit f4f85dbb0e
5 changed files with 13 additions and 37 deletions
+2 -6
View File
@@ -123,12 +123,8 @@ else {
$_SESSION["reload_xml"] = true; $_SESSION["reload_xml"] = true;
//redirect the user //redirect the user
require_once "resources/header.php"; $_SESSION["message"] = $text['message-copy'];
echo "<meta http-equiv=\"refresh\" content=\"2;url=".PROJECT_PATH."/app/sip_profiles/sip_profiles.php\">\n"; header("Location: ".PROJECT_PATH."/app/sip_profiles/sip_profiles.php");
echo "<div align='center'>\n";
echo $text['message-copy']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return; return;
?> ?>
+2 -6
View File
@@ -78,12 +78,8 @@ if (strlen($id)>0) {
} }
//redirect the browser //redirect the browser
require_once "resources/header.php"; $_SESSION["message"] = $text['message-delete'];
echo "<meta http-equiv=\"refresh\" content=\"2;url=sip_profiles.php\">\n"; header("Location: sip_profiles.php");
echo "<div align='center'>\n";
echo $text['message-delete']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return; return;
?> ?>
+3 -7
View File
@@ -22,7 +22,7 @@
Contributor(s): Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Luis Daniel Lucio Quiroz <daniel.lucio@astraqom.com> Luis Daniel Lucio Quiroz <daniel.lucio@astraqom.com>
*/ */
require_once "root.php"; require_once "root.php";
require_once "resources/require.php"; require_once "resources/require.php";
@@ -131,12 +131,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
} }
//redirect the browser //redirect the browser
require_once "resources/header.php"; $_SESSION["message"] = $text['message-update'];
echo "<meta http-equiv=\"refresh\" content=\"2;url=sip_profiles.php\">\n"; header("Location: sip_profiles.php");
echo "<div align='center'>\n";
echo $text['message-update']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return; return;
} //if ($_POST["persistformvar"] != "true") } //if ($_POST["persistformvar"] != "true")
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) } //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
@@ -61,12 +61,8 @@ if (strlen($id)>0) {
} }
//redirect the browser //redirect the browser
require_once "resources/header.php"; $_SESSION["message"] = $text['message-delete'];
echo "<meta http-equiv=\"refresh\" content=\"2;url=sip_profile_edit.php?id=$sip_profile_uuid\">\n"; header("Location: sip_profile_edit.php?id=".$sip_profile_uuid);
echo "<div align='center'>\n";
echo $text['message-delete']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return; return;
?> ?>
+4 -12
View File
@@ -118,12 +118,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$_SESSION["reload_xml"] = true; $_SESSION["reload_xml"] = true;
//redirect the browser //redirect the browser
require_once "resources/header.php"; $_SESSION["message"] = $text['message-add'];
echo "<meta http-equiv=\"refresh\" content=\"2;url=sip_profile_edit.php?id=$sip_profile_uuid\">\n"; header("Location: sip_profile_edit.php?id=".$sip_profile_uuid);
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")
@@ -146,12 +142,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$_SESSION["reload_xml"] = true; $_SESSION["reload_xml"] = true;
//redirect the browser //redirect the browser
require_once "resources/header.php"; $_SESSION["message"] = $text['message-update'];
echo "<meta http-equiv=\"refresh\" content=\"2;url=sip_profile_edit.php?id=$sip_profile_uuid\">\n"; header("Location: sip_profile_edit.php?id=".$sip_profile_uuid);
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")