mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-20 23:42:14 +00:00
Add sounds back to the IVR Menu. Decide they are more useful to display.
This commit is contained in:
@@ -445,22 +445,22 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo "</optgroup>\n";
|
||||
}
|
||||
//sounds
|
||||
//$dir_path = $_SESSION['switch']['sounds']['dir'];
|
||||
//recur_sounds_dir($_SESSION['switch']['sounds']['dir']);
|
||||
//echo "<optgroup label='sounds'>\n";
|
||||
//foreach ($dir_array as $key => $value) {
|
||||
// if (strlen($value) > 0) {
|
||||
// $tmp_dir = "\$\${sounds_dir}/\${default_language}/\${default_dialect}/\${default_voice}";
|
||||
// if ($ivr_menu_greet_long == $tmp_dir.'/'.$key) {
|
||||
// $tmp_selected = true;
|
||||
// echo " <option value='$tmp_dir/$key' selected>$key</option>\n";
|
||||
// }
|
||||
// else {
|
||||
// echo " <option value='$tmp_dir/$key'>$key</option>\n";
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//echo "</optgroup>\n";
|
||||
$dir_path = $_SESSION['switch']['sounds']['dir'];
|
||||
recur_sounds_dir($_SESSION['switch']['sounds']['dir']);
|
||||
echo "<optgroup label='sounds'>\n";
|
||||
foreach ($dir_array as $key => $value) {
|
||||
if (strlen($value) > 0) {
|
||||
$tmp_dir = "\$\${sounds_dir}/\${default_language}/\${default_dialect}/\${default_voice}";
|
||||
if ($ivr_menu_greet_long == $tmp_dir.'/'.$key) {
|
||||
$tmp_selected = true;
|
||||
echo " <option value='$tmp_dir/$key' selected>$key</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='$tmp_dir/$key'>$key</option>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
echo "</optgroup>\n";
|
||||
//select
|
||||
if (if_group("superadmin")) {
|
||||
if (!$tmp_selected) {
|
||||
|
||||
Reference in New Issue
Block a user