Update xml_cdr_inc.php
This commit is contained in:
parent
39bd024238
commit
ad94dfe7f3
|
|
@ -75,6 +75,11 @@
|
||||||
$bridge_uuid = check_str($_REQUEST["network_addr"]);
|
$bridge_uuid = check_str($_REQUEST["network_addr"]);
|
||||||
$order_by = check_str($_REQUEST["order_by"]);
|
$order_by = check_str($_REQUEST["order_by"]);
|
||||||
$order = check_str($_REQUEST["order"]);
|
$order = check_str($_REQUEST["order"]);
|
||||||
|
foreach ($_SESSION['cdr']['field'] as $field) {
|
||||||
|
if (isset($_REQUEST[$field])) {
|
||||||
|
$$field = check_str($_REQUEST[$field]);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (strlen(check_str($_REQUEST["mos_comparison"])) > 0) {
|
if (strlen(check_str($_REQUEST["mos_comparison"])) > 0) {
|
||||||
switch(check_str($_REQUEST["mos_comparison"])) {
|
switch(check_str($_REQUEST["mos_comparison"])) {
|
||||||
case 'less': $mos_comparison = "<"; break;
|
case 'less': $mos_comparison = "<"; break;
|
||||||
|
|
@ -115,6 +120,14 @@
|
||||||
$sql_where_ands[] = "destination_number like '".$mod_destination_number."'";
|
$sql_where_ands[] = "destination_number like '".$mod_destination_number."'";
|
||||||
}
|
}
|
||||||
if (strlen($context) > 0) { $sql_where_ands[] = "context like '%".$context."%'"; }
|
if (strlen($context) > 0) { $sql_where_ands[] = "context like '%".$context."%'"; }
|
||||||
|
|
||||||
|
foreach ($_SESSION['cdr']['field'] as $field) {
|
||||||
|
if (isset($$field)) {
|
||||||
|
$$field = check_str($_REQUEST[$field]);
|
||||||
|
$sql_where_ands[] = "$field like '%".$$field."%'";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (strlen($start_stamp_begin) > 0 && strlen($start_stamp_end) > 0) { $sql_where_ands[] = "start_stamp BETWEEN '".$start_stamp_begin.":00.000' AND '".$start_stamp_end.":59.999'"; }
|
if (strlen($start_stamp_begin) > 0 && strlen($start_stamp_end) > 0) { $sql_where_ands[] = "start_stamp BETWEEN '".$start_stamp_begin.":00.000' AND '".$start_stamp_end.":59.999'"; }
|
||||||
else {
|
else {
|
||||||
if (strlen($start_stamp_begin) > 0) { $sql_where_ands[] = "start_stamp >= '".$start_stamp_begin.":00.000'"; }
|
if (strlen($start_stamp_begin) > 0) { $sql_where_ands[] = "start_stamp >= '".$start_stamp_begin.":00.000'"; }
|
||||||
|
|
@ -256,6 +269,11 @@
|
||||||
$param .= "&bridge_uuid=".$bridge_uuid;
|
$param .= "&bridge_uuid=".$bridge_uuid;
|
||||||
$param .= "&mos_comparison=".$mos_comparison;
|
$param .= "&mos_comparison=".$mos_comparison;
|
||||||
$param .= "&mos_score=".$mos_score;
|
$param .= "&mos_score=".$mos_score;
|
||||||
|
foreach ($_SESSION['cdr']['field'] as $field) {
|
||||||
|
if (isset($$field)) {
|
||||||
|
$param .= "&mos_score=".$$field;
|
||||||
|
}
|
||||||
|
}
|
||||||
if ($_GET['showall'] == 'true' && permission_exists('xml_cdr_all')) {
|
if ($_GET['showall'] == 'true' && permission_exists('xml_cdr_all')) {
|
||||||
$param .= "&showall=true";
|
$param .= "&showall=true";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue