Update the tab spacing on dialplan/dialplan_detail_delete.php.

This commit is contained in:
Mark Crane 2014-02-06 07:39:38 +00:00
parent 5f38d69264
commit 6db8a2c8f1
1 changed files with 24 additions and 23 deletions

View File

@ -17,7 +17,7 @@
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-2013 Portions created by the Initial Developer are Copyright (C) 2008-2014
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
@ -44,18 +44,19 @@ else {
$text[$key] = $value[$_SESSION['domain']['language']['code']]; $text[$key] = $value[$_SESSION['domain']['language']['code']];
} }
if (count($_GET) > 0) { //set the variables
if (count($_GET) > 0) {
$dialplan_detail_uuid = check_str($_GET["id"]); $dialplan_detail_uuid = check_str($_GET["id"]);
$app_uuid = check_str($_REQUEST["app_uuid"]); $app_uuid = check_str($_REQUEST["app_uuid"]);
$dialplan_uuid = check_str($_REQUEST["dialplan_uuid"]); $dialplan_uuid = check_str($_REQUEST["dialplan_uuid"]);
} }
if (strlen($dialplan_detail_uuid) > 0) {
//delete the dialplan detail
if (strlen($dialplan_detail_uuid) > 0) {
//delete child data //delete child data
$sql = "delete from v_dialplan_details "; $sql = "delete from v_dialplan_details ";
$sql .= "where domain_uuid = '$domain_uuid' "; //$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
$sql .= "and dialplan_detail_uuid = '$dialplan_detail_uuid' "; $sql .= "where dialplan_detail_uuid = '$dialplan_detail_uuid' ";
$db->query($sql); $db->query($sql);
unset($sql); unset($sql);
@ -68,7 +69,7 @@ if (strlen($dialplan_detail_uuid) > 0) {
$switch_cmd = "memcache delete dialplan:".$_SESSION["context"]; $switch_cmd = "memcache delete dialplan:".$_SESSION["context"];
$switch_result = event_socket_request($fp, 'api '.$switch_cmd); $switch_result = event_socket_request($fp, 'api '.$switch_cmd);
} }
} }
//redirect the user //redirect the user
require_once "resources/header.php"; require_once "resources/header.php";