Conference recordings: remove hard-coded path (#5348)
This commit is contained in:
parent
b0b788427e
commit
5b35a041d3
|
|
@ -208,16 +208,9 @@
|
||||||
echo " <td>".$end_date." </td>\n";
|
echo " <td>".$end_date." </td>\n";
|
||||||
echo " <td>".$time_difference." </td>\n";
|
echo " <td>".$time_difference." </td>\n";
|
||||||
echo " <td>".escape($row['profile'])." </td>\n";
|
echo " <td>".escape($row['profile'])." </td>\n";
|
||||||
$tmp_dir = $_SESSION['switch']['recordings']['dir'].'/'.$_SESSION['domain_name'].'/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day;
|
$recording_name = $row['recording'];
|
||||||
$tmp_name = '';
|
|
||||||
if (file_exists($tmp_dir.'/'.$row['conference_session_uuid'].'.mp3')) {
|
|
||||||
$tmp_name = $row['conference_session_uuid'].".mp3";
|
|
||||||
}
|
|
||||||
elseif (file_exists($tmp_dir.'/'.$row['conference_session_uuid'].'.wav')) {
|
|
||||||
$tmp_name = $row['conference_session_uuid'].".wav";
|
|
||||||
}
|
|
||||||
echo " <td class='button no-link'>\n";
|
echo " <td class='button no-link'>\n";
|
||||||
if (strlen($tmp_name) > 0 && file_exists($tmp_dir.'/'.$tmp_name)) {
|
if (strlen($recording_name) > 0 && file_exists($recording_name)) {
|
||||||
echo "<table border='0' cellpadding='0' cellspacing='0'>\n";
|
echo "<table border='0' cellpadding='0' cellspacing='0'>\n";
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td>\n";
|
echo "<td>\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue