Multilinguified Dialplan Manager, tweaked Inbound and Outbound Routes

This commit is contained in:
Nate Jones
2013-05-29 04:34:28 +00:00
parent 92e1d985e0
commit 5599b5a076
13 changed files with 592 additions and 495 deletions
+8 -2
View File
@@ -26,7 +26,7 @@
include "root.php";
require_once "includes/require.php";
require_once "includes/checkauth.php";
if (permission_exists('dialplan_delete')
if (permission_exists('dialplan_delete')
|| permission_exists('inbound_route_delete')
|| permission_exists('outbound_route_delete')
|| permission_exists('time_conditions_delete')) {
@@ -37,6 +37,12 @@ else {
exit;
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
if (count($_GET)>0) {
$dialplan_uuid = check_str($_GET["id"]);
}
@@ -107,7 +113,7 @@ if (strlen($dialplan_uuid)>0) {
break;
}
echo "<div align='center'>\n";
echo "Delete Complete\n";
echo $text['message-delete']."\n";
echo "</div>\n";
require_once "includes/footer.php";
return;