Add show all code donated by Chris Black

This commit is contained in:
Mark Crane
2015-03-06 17:15:09 +00:00
parent 0f40019abd
commit 669fb08d4e
9 changed files with 142 additions and 52 deletions
+5 -2
View File
@@ -46,8 +46,11 @@ else {
//get the cdr string from the database
$sql = "select * from v_xml_cdr ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "and uuid = '$uuid' ";
if ($_GET['showall'] && permission_exists('xml_cdr_all')) {
if ($sql_where) { $sql .= "where uuid = '$uuid' "; }
} else {
$sql .= "where uuid = '$uuid' and domain_uuid = '$domain_uuid' ";
}
$row = $db->query($sql)->fetch();
$start_stamp = trim($row["start_stamp"]);
$xml_string = trim($row["xml"]);