From 8281fc2f80d1c1a229d7dc3eb5493658858cbf17 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 20 Feb 2014 23:57:42 +0000 Subject: [PATCH] Update the redirect for dialplan_delete.php --- app/dialplan/dialplan_delete.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/dialplan/dialplan_delete.php b/app/dialplan/dialplan_delete.php index e44e365a6f..b8ad596ba1 100644 --- a/app/dialplan/dialplan_delete.php +++ b/app/dialplan/dialplan_delete.php @@ -96,27 +96,28 @@ if (strlen($dialplan_uuid) > 0) { } //redirect the user + +//save the message to a session variable + $_SESSION['message'] = $text['message-delete']; + require_once "resources/header.php"; switch ($app_uuid) { case "c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4": //inbound routes - echo "\n"; + header("Location: ".PROJECT_PATH."/app/dialplan/dialplans.php?app_uuid=".$app_uuid); break; case "8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3": //outbound routes - echo "\n"; + header("Location: ".PROJECT_PATH."/app/dialplan/dialplans.php?app_uuid=".$app_uuid); break; case "4b821450-926b-175a-af93-a03c441818b1": //time conditions - echo "\n"; + header("Location: ".PROJECT_PATH."/app/dialplan/dialplans.php?app_uuid=".$app_uuid); + echo "\n"; break; default: - echo "\n"; + header("Location: ".PROJECT_PATH."/app/dialplan/dialplans.php); break; } - echo "
\n"; - echo $text['message-delete']."\n"; - echo "
\n"; - require_once "resources/footer.php"; - return; + ?> \ No newline at end of file