Add sounds back to the IVR Menu. Decide they are more useful to display.

This commit is contained in:
Mark Crane
2012-09-19 03:09:12 +00:00
parent 5d002eee0e
commit e944179246
+16 -16
View File
@@ -445,22 +445,22 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "</optgroup>\n"; echo "</optgroup>\n";
} }
//sounds //sounds
//$dir_path = $_SESSION['switch']['sounds']['dir']; $dir_path = $_SESSION['switch']['sounds']['dir'];
//recur_sounds_dir($_SESSION['switch']['sounds']['dir']); recur_sounds_dir($_SESSION['switch']['sounds']['dir']);
//echo "<optgroup label='sounds'>\n"; echo "<optgroup label='sounds'>\n";
//foreach ($dir_array as $key => $value) { foreach ($dir_array as $key => $value) {
// if (strlen($value) > 0) { if (strlen($value) > 0) {
// $tmp_dir = "\$\${sounds_dir}/\${default_language}/\${default_dialect}/\${default_voice}"; $tmp_dir = "\$\${sounds_dir}/\${default_language}/\${default_dialect}/\${default_voice}";
// if ($ivr_menu_greet_long == $tmp_dir.'/'.$key) { if ($ivr_menu_greet_long == $tmp_dir.'/'.$key) {
// $tmp_selected = true; $tmp_selected = true;
// echo " <option value='$tmp_dir/$key' selected>$key</option>\n"; echo " <option value='$tmp_dir/$key' selected>$key</option>\n";
// } }
// else { else {
// echo " <option value='$tmp_dir/$key'>$key</option>\n"; echo " <option value='$tmp_dir/$key'>$key</option>\n";
// } }
// } }
//} }
//echo "</optgroup>\n"; echo "</optgroup>\n";
//select //select
if (if_group("superadmin")) { if (if_group("superadmin")) {
if (!$tmp_selected) { if (!$tmp_selected) {