Formatting
This commit is contained in:
parent
d90b080913
commit
a4e64efa7f
|
|
@ -70,8 +70,6 @@ require_once "resources/header.php";
|
||||||
|
|
||||||
$dialplan_enabled = check_str($_POST["dialplan_enabled"]);
|
$dialplan_enabled = check_str($_POST["dialplan_enabled"]);
|
||||||
$dialplan_description = check_str($_POST["dialplan_description"]);
|
$dialplan_description = check_str($_POST["dialplan_description"]);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
@ -252,15 +250,12 @@ require_once "resources/header.php";
|
||||||
//set group and order number
|
//set group and order number
|
||||||
|
|
||||||
$dialplan_detail_group_user = check_str($_POST["group_$group_id"]);
|
$dialplan_detail_group_user = check_str($_POST["group_$group_id"]);
|
||||||
|
|
||||||
if($dialplan_detail_group_user!='') {
|
if($dialplan_detail_group_user!='') {
|
||||||
$dialplan_detail_group = $dialplan_detail_group_user;
|
$dialplan_detail_group = $dialplan_detail_group_user;
|
||||||
} else {
|
} else {
|
||||||
$dialplan_detail_group = $group_id;
|
$dialplan_detail_group = $group_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$dialplan_detail_order = 0;
|
$dialplan_detail_order = 0;
|
||||||
|
|
||||||
foreach ($conditions as $cond_num => $cond_var) {
|
foreach ($conditions as $cond_num => $cond_var) {
|
||||||
|
|
@ -303,7 +298,6 @@ require_once "resources/header.php";
|
||||||
}
|
}
|
||||||
|
|
||||||
//add condition to query string
|
//add condition to query string
|
||||||
|
|
||||||
$dialplan_detail_order += 10;
|
$dialplan_detail_order += 10;
|
||||||
$sql .= ", ( ";
|
$sql .= ", ( ";
|
||||||
$sql .= "'".$domain_uuid."', ";
|
$sql .= "'".$domain_uuid."', ";
|
||||||
|
|
@ -374,11 +368,6 @@ require_once "resources/header.php";
|
||||||
$dialplan_action_app = $dialplan_action;
|
$dialplan_action_app = $dialplan_action;
|
||||||
$dialplan_action_data = '';
|
$dialplan_action_data = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//add group action to query
|
//add group action to query
|
||||||
$dialplan_detail_order += 10;
|
$dialplan_detail_order += 10;
|
||||||
|
|
@ -441,11 +430,11 @@ require_once "resources/header.php";
|
||||||
}
|
}
|
||||||
|
|
||||||
//execute query
|
//execute query
|
||||||
if ($conditions_exist) {
|
if ($conditions_exist) {
|
||||||
$db->exec(check_sql($sql));
|
$db->exec(check_sql($sql));
|
||||||
unset($sql);
|
unset($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
//commit the atomic transaction
|
//commit the atomic transaction
|
||||||
$count = $db->exec("COMMIT;"); //returns affected rows
|
$count = $db->exec("COMMIT;"); //returns affected rows
|
||||||
|
|
||||||
|
|
@ -523,7 +512,6 @@ require_once "resources/header.php";
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
$result_count = count($result);
|
$result_count = count($result);
|
||||||
|
|
||||||
unset ($prep_statement, $sql);
|
unset ($prep_statement, $sql);
|
||||||
|
|
||||||
//load current conditions into array (combined by group), and retrieve action and anti-action
|
//load current conditions into array (combined by group), and retrieve action and anti-action
|
||||||
|
|
@ -852,7 +840,7 @@ function add_custom_condition($destination, $group_id, $dialplan_action = '') {
|
||||||
global $text, $v_link_label_add;
|
global $text, $v_link_label_add;
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$text['label-settings'];
|
echo " ".$text['label-settings'];
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
echo " <table border='0' cellpadding='2' cellspacing='0' style='margin: -2px;'>\n";
|
echo " <table border='0' cellpadding='2' cellspacing='0' style='margin: -2px;'>\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue