remove the v_ from the php files in recordings.php
This commit is contained in:
parent
3710cd0d29
commit
61f6c0ba99
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -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 " </table>\n";
|
||||
echo "</form>";
|
||||
|
||||
$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 "<td align='right' width='42'>\n";
|
||||
if (permission_exists('recordings_add')) {
|
||||
echo " <a href='v_recordings_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
echo " <a href='recordings_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
|
@ -237,12 +234,12 @@ require_once "includes/paging.php";
|
|||
|
||||
echo "<tr >\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
echo " <a href=\"v_recordings.php?a=download&type=rec&t=bin&filename=".base64_encode($row['recording_filename'])."\">\n";
|
||||
echo " <a href=\"recordings.php?a=download&type=rec&t=bin&filename=".base64_encode($row['recording_filename'])."\">\n";
|
||||
echo $row['recording_filename'];
|
||||
echo " </a>";
|
||||
echo " </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('v_recordings_play.php?a=download&type=moh&filename=".base64_encode($row['recording_filename'])."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('recordings_play.php?a=download&type=moh&filename=".base64_encode($row['recording_filename'])."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo $row['recording_name'];
|
||||
echo " </a>";
|
||||
echo "</td>\n";
|
||||
|
|
@ -252,10 +249,10 @@ require_once "includes/paging.php";
|
|||
echo " <td valign='top' class='".$row_style[$c]."' width='30%'>".$row['recording_description']."</td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('recordings_edit')) {
|
||||
echo " <a href='v_recordings_edit.php?id=".$row['recording_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
echo " <a href='recordings_edit.php?id=".$row['recording_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('recordings_delete')) {
|
||||
echo " <a href='v_recordings_delete.php?id=".$row['recording_uuid']."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
echo " <a href='recordings_delete.php?id=".$row['recording_uuid']."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
|
|
@ -272,7 +269,7 @@ require_once "includes/paging.php";
|
|||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('recordings_add')) {
|
||||
echo " <a href='v_recordings_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
echo " <a href='recordings_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ if (strlen($id)>0) {
|
|||
|
||||
//redirect the user
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_recordings.php\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=recordings.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Delete Complete\n";
|
||||
echo "</div>\n";
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
unset($sql);
|
||||
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_recordings.php\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=recordings.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Add Complete\n";
|
||||
echo "</div>\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."<br />\n";
|
||||
|
|
@ -151,7 +150,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
unset($sql);
|
||||
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_recordings.php\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=recordings.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Update Complete\n";
|
||||
echo "</div>\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 "<td align='left' width='30%' nowrap><b>Edit Recording</b></td>\n";
|
||||
}
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_recordings.php'\" value='Back'></td>\n";
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='recordings.php'\" value='Back'></td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
|
|
|
|||
|
|
@ -56,15 +56,15 @@ $type = $_GET['type']; //moh //rec
|
|||
$file_ext = substr($filename, -3);
|
||||
if ($file_ext == "wav") {
|
||||
//HTML5 method
|
||||
echo "<audio src=\"http://localhost:8000/mod/recordings/v_recordings.php?a=download&type=".$type."&filename=".base64_encode($filename)."\" autoplay=\"autoplay\">";
|
||||
echo "<audio src=\"http://localhost:8000/mod/recordings/recordings.php?a=download&type=".$type."&filename=".base64_encode($filename)."\" autoplay=\"autoplay\">";
|
||||
echo "</audio>";
|
||||
|
||||
echo "<embed src=\"v_recordings.php?a=download&type=".$type."&filename=".base64_encode($filename)."\" autostart=\"true\" width=\"300\" height=\"90\" name=\"sound_".$filename."\" enablejavascript=\"true\">\n";
|
||||
echo "<embed src=\"recordings.php?a=download&type=".$type."&filename=".base64_encode($filename)."\" autostart=\"true\" width=\"300\" height=\"90\" name=\"sound_".$filename."\" enablejavascript=\"true\">\n";
|
||||
|
||||
}
|
||||
if ($file_ext == "mp3") {
|
||||
echo "<object type=\"application/x-shockwave-flash\" width=\"400\" height=\"17\" data=\"slim.swf?autoplay=true&song_title=".urlencode($filename)."&song_url=v_recordings.php?a=download&type=".$type."&filename=".base64_encode($filename)."\">\n";
|
||||
echo "<param name=\"movie\" value=\"slim.swf?autoplay=true&song_url=v_recordings.php?a=download&type=".$type."&filename=".base64_encode($filename)."\" />\n";
|
||||
echo "<object type=\"application/x-shockwave-flash\" width=\"400\" height=\"17\" data=\"slim.swf?autoplay=true&song_title=".urlencode($filename)."&song_url=recordings.php?a=download&type=".$type."&filename=".base64_encode($filename)."\">\n";
|
||||
echo "<param name=\"movie\" value=\"slim.swf?autoplay=true&song_url=recordings.php?a=download&type=".$type."&filename=".base64_encode($filename)."\" />\n";
|
||||
echo "<param name=\"quality\" value=\"high\"/>\n";
|
||||
echo "<param name=\"bgcolor\" value=\"#E6E6E6\"/>\n";
|
||||
echo "</object>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue