Ticket #2565: recording_popup.php

File recording_popup.php, 1.1 kB (added by sasargen, 8 months ago)

Patched to urlencode crypted path and pass to audio.php. Changed height of playback control to work better with Windows Media Player.

Line 
1 <?php
2
3 /**
4  * @file
5  * popup window for playing recording
6  */
7
8 chdir("..");
9 include_once("./includes/bootstrap.php");
10
11 ?>
12
13 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
14 <html xmlns="http://www.w3.org/1999/xhtml">
15   <head>
16     <TITLE>ARI</TITLE>
17     <link rel="stylesheet" href="../theme/main.css" type="text/css">
18     <link rel="stylesheet" href="popup.css" type="text/css">
19     <meta http-equiv="content-type" content="text/html; charset=UTF-8">
20   </head>
21   <body>
22
23 <?php
24
25   $path = urlencode($_GET['recording']);
26
27   if (isset($path)) {
28     if (isset($_GET['date'])) {
29       echo("<small>" . $_GET['date'] . "</small><br>");
30     }
31     if (isset($_GET['time'])) {
32       echo("<small>" . $_GET['time'] . "</small><br>");
33     }
34
35     echo("<br>");
36     echo("<embed src='audio.php?recording=" . $path . "' width=300, height=25 autoplay=true loop=false></embed><br>");
37     echo("<a class='popup_download' href=/recordings/misc/audio.php?recording="  . $path . ">" . _("download") . "</a><br>");
38   }
39
40 ?>
41
42   </body>
43 </html>
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads