forked from m-dark/sip-phone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cdr_play.php
38 lines (35 loc) · 1.16 KB
/
cdr_play.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
f (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); }
/**
* @file
* popup window for playing recording
*/
include_once("crypt.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>CDR Viewer</TITLE>
<style type="text/css">
.popup_download {
color: #105D90;
margin: 5px;
font-size: 12px;
text-align: left;
}
</style>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<?php
$crypt = new Crypt();
$REC_CRYPT_PASSWORD = (isset($amp_conf['AMPPLAYKEY']) && trim($amp_conf['AMPPLAYKEY']) != "")?trim($amp_conf['AMPPLAYKEY']):'TheWindCriesMary';
$path = $crypt->decrypt($_REQUEST['recordingpath'],$REC_CRYPT_PASSWORD);
$file = urlencode($crypt->encrypt($path,$REC_CRYPT_PASSWORD));
if (isset($file)) {
#---------------------
echo("<audio controls>\n<source src=\"config.php?skip_astman=1&quietmode=1&handler=file&module=cdr&file=cdr_audio.php&cdr_file=$file\" type=\"audio/mpeg\">\n</audio>");
#---------------------
}
?>
</body>
</html>