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

View File

@ -123,12 +123,8 @@ else {
$_SESSION["reload_xml"] = true;
//redirect the user
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=".PROJECT_PATH."/app/sip_profiles/sip_profiles.php\">\n";
echo "<div align='center'>\n";
echo $text['message-copy']."\n";
echo "</div>\n";
require_once "resources/footer.php";
$_SESSION["message"] = $text['message-copy'];
header("Location: ".PROJECT_PATH."/app/sip_profiles/sip_profiles.php");
return;
?>

View File

@ -78,12 +78,8 @@ if (strlen($id)>0) {
}
//redirect the browser
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=sip_profiles.php\">\n";
echo "<div align='center'>\n";
echo $text['message-delete']."\n";
echo "</div>\n";
require_once "resources/footer.php";
$_SESSION["message"] = $text['message-delete'];
header("Location: sip_profiles.php");
return;
?>

View File

@ -22,7 +22,7 @@
Contributor(s):
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 "resources/require.php";
@ -131,12 +131,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
}
//redirect the browser
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=sip_profiles.php\">\n";
echo "<div align='center'>\n";
echo $text['message-update']."\n";
echo "</div>\n";
require_once "resources/footer.php";
$_SESSION["message"] = $text['message-update'];
header("Location: sip_profiles.php");
return;
} //if ($_POST["persistformvar"] != "true")
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)

View File

@ -61,12 +61,8 @@ if (strlen($id)>0) {
}
//redirect the browser
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=sip_profile_edit.php?id=$sip_profile_uuid\">\n";
echo "<div align='center'>\n";
echo $text['message-delete']."\n";
echo "</div>\n";
require_once "resources/footer.php";
$_SESSION["message"] = $text['message-delete'];
header("Location: sip_profile_edit.php?id=".$sip_profile_uuid);
return;
?>

View File

@ -118,12 +118,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$_SESSION["reload_xml"] = true;
//redirect the browser
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=sip_profile_edit.php?id=$sip_profile_uuid\">\n";
echo "<div align='center'>\n";
echo $text['message-add']."\n";
echo "</div>\n";
require_once "resources/footer.php";
$_SESSION["message"] = $text['message-add'];
header("Location: sip_profile_edit.php?id=".$sip_profile_uuid);
return;
} //if ($action == "add")
@ -146,12 +142,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$_SESSION["reload_xml"] = true;
//redirect the browser
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=sip_profile_edit.php?id=$sip_profile_uuid\">\n";
echo "<div align='center'>\n";
echo $text['message-update']."\n";
echo "</div>\n";
require_once "resources/footer.php";
$_SESSION["message"] = $text['message-update'];
header("Location: sip_profile_edit.php?id=".$sip_profile_uuid);
return;
} //if ($action == "update")
} //if ($_POST["persistformvar"] != "true")