This commit was generated by cvs2svn to compensate for changes in r11022,
[freeside.git] / fs_selfservice / fri / misc / recording_popup.php
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="popup.css" type="text/css">
18     <meta http-equiv="content-type" content="text/html; charset=UTF-8">
19   </head>
20   <body>
21
22 <?php
23
24   global $ARI_CRYPT_PASSWORD;
25
26   $crypt = new Crypt();
27
28   $path = $crypt->encrypt($_GET['recording'],$ARI_CRYPT_PASSWORD);
29
30   if (isset($path)) {
31     if (isset($_GET['date'])) {
32       echo($_GET['date'] . "<br>");
33     }
34     if (isset($_GET['time'])) {
35       echo($_GET['time'] . "<br>");
36     }
37     echo("<br>");
38     echo("<embed src='audio.php?recording=" . $path . "' width=300, height=20 autoplay=true loop=false></embed><br>");
39     echo("<a class='popup_download' href=/recordings/misc/audio.php?recording="  . $path . ">" . _("download") . "</a><br>");
40   }
41
42 ?>
43
44   </body>
45 </html>
46