(no commit message)
[freeside.git] / fs_selfservice / fri / misc / recording_popup.php
diff --git a/fs_selfservice/fri/misc/recording_popup.php b/fs_selfservice/fri/misc/recording_popup.php
new file mode 100644 (file)
index 0000000..1546adc
--- /dev/null
@@ -0,0 +1,46 @@
+<?php
+
+/**
+ * @file
+ * popup window for playing recording
+ */
+
+chdir("..");
+include_once("./includes/bootstrap.php");
+
+?>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <TITLE>ARI</TITLE>
+    <link rel="stylesheet" href="popup.css" type="text/css">
+    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+  </head>
+  <body>
+
+<?php
+
+  global $ARI_CRYPT_PASSWORD;
+
+  $crypt = new Crypt();
+
+  $path = $crypt->encrypt($_GET['recording'],$ARI_CRYPT_PASSWORD);
+
+  if (isset($path)) {
+    if (isset($_GET['date'])) {
+      echo($_GET['date'] . "<br>");
+    }
+    if (isset($_GET['time'])) {
+      echo($_GET['time'] . "<br>");
+    }
+    echo("<br>");
+    echo("<embed src='audio.php?recording=" . $path . "' width=300, height=20 autoplay=true loop=false></embed><br>");
+    echo("<a class='popup_download' href=/recordings/misc/audio.php?recording="  . $path . ">" . _("download") . "</a><br>");
+  }
+
+?>
+
+  </body>
+</html>
+