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
+11 -5
View File
@@ -27,9 +27,9 @@ include "root.php";
require_once "includes/require.php";
require_once "includes/checkauth.php";
require_once "includes/paging.php";
if (permission_exists('dialplan_add')
|| permission_exists('inbound_route_add')
|| permission_exists('outbound_route_add')
if (permission_exists('dialplan_add')
|| permission_exists('inbound_route_add')
|| permission_exists('outbound_route_add')
|| permission_exists('time_conditions_add')) {
//access granted
}
@@ -38,12 +38,18 @@ else {
exit;
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//set the http get/post variable(s) to a php variable
if (isset($_REQUEST["id"])) {
$dialplan_uuid = check_str($_REQUEST["id"]);
}
//get the dialplan data
//get the dialplan data
$dialplan_uuid = $_GET["id"];
$sql = "select * from v_dialplans ";
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
@@ -163,7 +169,7 @@ else {
break;
}
echo "<div align='center'>\n";
echo "Copy Complete\n";
echo $text['message-copy']."\n";
echo "</div>\n";
require_once "includes/footer.php";
return;