mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Fix. Path to records in music on hold.
This commit is contained in:
@@ -90,22 +90,23 @@ include "root.php";
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//recordings
|
//recordings
|
||||||
if($dh = opendir($_SESSION['switch']['recordings']['dir']."/".$_SESSION['domain_name']."/")) {
|
$recordings_dir = $_SESSION['switch']['recordings']['dir']."/".$_SESSION['domain_name']."/";
|
||||||
|
if($dh = opendir($recordings_dir)) {
|
||||||
$tmp_selected = false;
|
$tmp_selected = false;
|
||||||
$files = Array();
|
$files = Array();
|
||||||
//$select .= "<optgroup label='recordings'>\n";
|
//$select .= "<optgroup label='recordings'>\n";
|
||||||
while($file = readdir($dh)) {
|
while($file = readdir($dh)) {
|
||||||
if($file != "." && $file != ".." && $file[0] != '.') {
|
if($file != "." && $file != ".." && $file[0] != '.') {
|
||||||
if(is_dir($_SESSION['switch']['recordings']['dir'] . "/" . $file)) {
|
if(is_dir($recordings_dir . $file)) {
|
||||||
//this is a directory
|
//this is a directory
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($this->select_value == $_SESSION['switch']['recordings']['dir']."/".$file && strlen($this->select_value) > 0) {
|
if ($this->select_value == $recordings_dir . $file && strlen($this->select_value) > 0) {
|
||||||
$tmp_selected = true;
|
$tmp_selected = true;
|
||||||
$select .= " <option value='".$_SESSION['switch']['recordings']['dir']."/".$file."' selected='selected'>".$file."</option>\n";
|
$select .= " <option value='".$recordings_dir.$file."' selected='selected'>".$file."</option>\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$select .= " <option value='".$_SESSION['switch']['recordings']['dir']."/".$file."'>".$file."</option>\n";
|
$select .= " <option value='".$recordings_dir.$file."'>".$file."</option>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user