From 019068cf20105906d0589b16ba40c79bbefb0a3e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 17 Oct 2018 22:36:03 -0600 Subject: [PATCH] Update xml_cdr_details.php --- app/xml_cdr/xml_cdr_details.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/xml_cdr/xml_cdr_details.php b/app/xml_cdr/xml_cdr_details.php index 38378c49ee..73b6456259 100644 --- a/app/xml_cdr/xml_cdr_details.php +++ b/app/xml_cdr/xml_cdr_details.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2016 + Portions created by the Initial Developer are Copyright (C) 2008-2018 the Initial Developer. All Rights Reserved. Contributor(s): @@ -29,7 +29,7 @@ require_once "resources/require.php"; require_once "resources/check_auth.php"; -//ehceck permissions +//check permissions if (permission_exists('xml_cdr_view')) { //access granted } @@ -43,16 +43,16 @@ $text = $language->get(); //get the http values and set them to a variable - if (strlen($_REQUEST["uuid"]) > 0) { - $uuid = trim($_REQUEST["uuid"]); + if (strlen($_REQUEST["id"]) > 0) { + $uuid = trim($_REQUEST["id"]); } //get the cdr string from the database $sql = "select * from v_xml_cdr "; if (permission_exists('xml_cdr_all')) { - $sql .= "where uuid = '$uuid' "; + $sql .= "where xml_cdr_uuid = '$uuid' "; } else { - $sql .= "where uuid = '$uuid' and domain_uuid = '$domain_uuid' "; + $sql .= "where xml_cdr_uuid = '$uuid' and domain_uuid = '$domain_uuid' "; } $row = $db->query($sql)->fetch(); $start_stamp = trim($row["start_stamp"]); @@ -122,7 +122,7 @@ //detail summary //get the variables - $uuid = check_str(urldecode($array["variables"]["uuid"])); + $xml_cdr_uuid = check_str(urldecode($array["variables"]["uuid"])); $direction = check_str(urldecode($array["channel_data"]["direction"])); $language = check_str(urldecode($array["variables"]["language"])); $start_epoch = check_str(urldecode($array["variables"]["start_epoch"])); @@ -192,7 +192,7 @@ echo "\n"; echo "\n"; - echo " ".$direction."\n"; + echo " ".$direction."\n"; //echo " ".$language."\n"; //echo " ".$context."\n"; echo " "; @@ -278,7 +278,7 @@ echo " ".$key."\n"; if ($key == "bridge_uuid" || $key == "signal_bond") { echo " \n"; - echo " ".$value." \n"; + echo " ".$value." \n"; $tmp_dir = $_SESSION['switch']['recordings']['dir'].'/'.$_SESSION['domain_name'].'/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day; $tmp_name = ''; if (file_exists($tmp_dir.'/'.$value.'.wav')) { @@ -469,7 +469,7 @@ echo " ".wordwrap($value,75,"
\n", TRUE)." \n"; } else { - echo " ".$value." \n"; + echo " ".$value." \n"; } echo " \n"; }