diff --git a/app/recordings/app_config.php b/app/recordings/app_config.php
index 7b178b02f9..dca87bf51e 100644
--- a/app/recordings/app_config.php
+++ b/app/recordings/app_config.php
@@ -32,7 +32,7 @@
$apps[$x]['menu'][0]['uuid'] = 'e4290fd2-3ccc-a758-1714-660d38453104';
$apps[$x]['menu'][0]['parent_uuid'] = 'fd29e39c-c936-f5fc-8e2b-611681b266b5';
$apps[$x]['menu'][0]['category'] = 'internal';
- $apps[$x]['menu'][0]['path'] = '/app/recordings/v_recordings.php';
+ $apps[$x]['menu'][0]['path'] = '/app/recordings/recordings.php';
$apps[$x]['menu'][0]['groups'][] = 'admin';
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
diff --git a/app/recordings/recordings.php b/app/recordings/recordings.php
index 54c8d653b9..a3d2638932 100644
--- a/app/recordings/recordings.php
+++ b/app/recordings/recordings.php
@@ -86,8 +86,7 @@ require_once "includes/paging.php";
//build a list of recordings
$config_recording_list = '|';
$i = 0;
- $sql = "";
- $sql .= "select * from v_recordings ";
+ $sql = "select * from v_recordings ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
@@ -185,8 +184,7 @@ require_once "includes/paging.php";
echo " \n";
echo "";
- $sql = "";
- $sql .= "select * from v_recordings ";
+ $sql = "select * from v_recordings ";
$sql .= "where domain_uuid = '$domain_uuid' ";
if (strlen($order_by)> 0) { $sql .= "order by $order_by $order "; }
$prep_statement = $db->prepare(check_sql($sql));
@@ -202,8 +200,7 @@ require_once "includes/paging.php";
list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page);
$offset = $rows_per_page * $page;
- $sql = "";
- $sql .= "select * from v_recordings ";
+ $sql = "select * from v_recordings ";
$sql .= "where domain_uuid = '$domain_uuid' ";
if (strlen($order_by)> 0) { $sql .= "order by $order_by $order "; }
$sql .= " limit $rows_per_page offset $offset ";
@@ -225,7 +222,7 @@ require_once "includes/paging.php";
echo th_order_by('recording_description', 'Description', $order_by, $order);
echo "
\n";
if (permission_exists('recordings_add')) {
- echo " $v_link_label_add\n";
+ echo " $v_link_label_add\n";
}
echo " | \n";
echo "\n";
@@ -237,12 +234,12 @@ require_once "includes/paging.php";
echo "\n";
echo " | ";
- echo " \n";
+ echo " \n";
echo $row['recording_filename'];
echo " ";
echo " | \n";
echo " ";
- echo " \n";
+ echo " \n";
echo $row['recording_name'];
echo " ";
echo " | \n";
@@ -252,10 +249,10 @@ require_once "includes/paging.php";
echo " ".$row['recording_description']." | \n";
echo " \n";
if (permission_exists('recordings_edit')) {
- echo " $v_link_label_edit\n";
+ echo " $v_link_label_edit\n";
}
if (permission_exists('recordings_delete')) {
- echo " $v_link_label_delete\n";
+ echo " $v_link_label_delete\n";
}
echo " | \n";
echo "
\n";
@@ -272,7 +269,7 @@ require_once "includes/paging.php";
echo " $paging_controls | \n";
echo " \n";
if (permission_exists('recordings_add')) {
- echo " $v_link_label_add\n";
+ echo " $v_link_label_add\n";
}
echo " | \n";
echo " \n";
diff --git a/app/recordings/recordings_delete.php b/app/recordings/recordings_delete.php
index d0ec21f93b..d4edee038b 100644
--- a/app/recordings/recordings_delete.php
+++ b/app/recordings/recordings_delete.php
@@ -66,7 +66,7 @@ if (strlen($id)>0) {
//redirect the user
require_once "includes/header.php";
- echo "\n";
+ echo "\n";
echo "\n";
echo "Delete Complete\n";
echo "
\n";
diff --git a/app/recordings/recordings_edit.php b/app/recordings/recordings_edit.php
index 9ce07f37c6..6fb91feb74 100644
--- a/app/recordings/recordings_edit.php
+++ b/app/recordings/recordings_edit.php
@@ -107,7 +107,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
unset($sql);
require_once "includes/header.php";
- echo "\n";
+ echo "\n";
echo "\n";
echo "Add Complete\n";
echo "
\n";
@@ -117,8 +117,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
if ($action == "update" && permission_exists('recordings_edit')) {
//get the original filename
- $sql = "";
- $sql .= "select * from v_recordings ";
+ $sql = "select * from v_recordings ";
$sql .= "where recording_uuid = '$recording_uuid' ";
$sql .= "and domain_uuid = '$domain_uuid' ";
//echo "sql: ".$sql."
\n";
@@ -151,7 +150,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
unset($sql);
require_once "includes/header.php";
- echo "\n";
+ echo "\n";
echo "\n";
echo "Update Complete\n";
echo "
\n";
@@ -164,8 +163,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//pre-populate the form
if (count($_GET)>0 && $_POST["persistformvar"] != "true") {
$recording_uuid = $_GET["id"];
- $sql = "";
- $sql .= "select * from v_recordings ";
+ $sql = "select * from v_recordings ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "and recording_uuid = '$recording_uuid' ";
$prep_statement = $db->prepare(check_sql($sql));
@@ -204,7 +202,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
if ($action == "update") {
echo "Edit Recording | \n";
}
- echo " | \n";
+ echo " | \n";
echo "\n";
echo "\n";
diff --git a/app/recordings/recordings_play.php b/app/recordings/recordings_play.php
index ccbcccb8c3..10c449eb9e 100644
--- a/app/recordings/recordings_play.php
+++ b/app/recordings/recordings_play.php
@@ -56,15 +56,15 @@ $type = $_GET['type']; //moh //rec
$file_ext = substr($filename, -3);
if ($file_ext == "wav") {
//HTML5 method
- echo "