Update domain_edit.php
This commit is contained in:
parent
3ff08a1e7e
commit
e783815868
|
|
@ -17,16 +17,20 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2008-2015
|
Portions created by the Initial Developer are Copyright (C) 2008-2017
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
|
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//includes
|
||||||
require_once "root.php";
|
require_once "root.php";
|
||||||
require_once "resources/require.php";
|
require_once "resources/require.php";
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/check_auth.php";
|
||||||
|
|
||||||
|
//check permissions
|
||||||
if (permission_exists('domain_add') || permission_exists('domain_edit')) {
|
if (permission_exists('domain_add') || permission_exists('domain_edit')) {
|
||||||
//access granted
|
//access granted
|
||||||
}
|
}
|
||||||
|
|
@ -140,7 +144,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
if ($original_domain_name != $domain_name) {
|
if ($original_domain_name != $domain_name) {
|
||||||
|
|
||||||
// update dialplans
|
// update dialplans
|
||||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/dialplan/app_config.php")){
|
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/dialplans/app_config.php")){
|
||||||
$sql = "update v_dialplans set ";
|
$sql = "update v_dialplans set ";
|
||||||
$sql .= "dialplan_context = '".$domain_name."' ";
|
$sql .= "dialplan_context = '".$domain_name."' ";
|
||||||
$sql .= "where dialplan_context = '".$original_domain_name."' ";
|
$sql .= "where dialplan_context = '".$original_domain_name."' ";
|
||||||
|
|
@ -521,7 +525,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
unset($dialplan_public_xml);
|
unset($dialplan_public_xml);
|
||||||
|
|
||||||
// update dialplan details
|
// update dialplan details
|
||||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/dialplan/app_config.php")){
|
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/dialplans/app_config.php")){
|
||||||
$sql = "select dialplan_detail_uuid, dialplan_detail_data from v_dialplan_details ";
|
$sql = "select dialplan_detail_uuid, dialplan_detail_data from v_dialplan_details ";
|
||||||
$sql .= "where domain_uuid = '".$domain_uuid."' ";
|
$sql .= "where domain_uuid = '".$domain_uuid."' ";
|
||||||
$sql .= "and dialplan_detail_data like '%".$original_domain_name."%' ";
|
$sql .= "and dialplan_detail_data like '%".$original_domain_name."%' ";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue