diff --git a/pandora_console/godmode/setup/setup_general.php b/pandora_console/godmode/setup/setup_general.php index 9c9e5baad2..e897506b3b 100644 --- a/pandora_console/godmode/setup/setup_general.php +++ b/pandora_console/godmode/setup/setup_general.php @@ -27,32 +27,6 @@ */ // File begin. - - -/** - * Return sounds path. - * - * @return string Path. - */ -function get_sounds() -{ - global $config; - - $return = []; - - $files = scandir($config['homedir'].'/include/sounds'); - - foreach ($files as $file) { - if (strstr($file, 'wav') !== false) { - $return['include/sounds/'.$file] = $file; - } - } - - return $return; -} - - -// Begin. global $config; @@ -345,73 +319,6 @@ $table->data[$i++][1] .= '  '.html_print_select( true ); -$sounds = get_sounds(); -$table->data[$i][0] = __('Sound for Alert fired'); -$table->data[$i][1] = html_print_select( - $sounds, - 'sound_alert', - $config['sound_alert'], - 'replaySound(\'alert\');', - '', - '', - true -); -$table->data[$i][1] .= ' '.html_print_image( - 'images/control_play_col.png', - true, - [ - 'id' => 'button_sound_alert', - 'style' => 'vertical-align: middle;', - 'width' => '16', - 'title' => __('Play sound'), - ] -).''; -$table->data[$i++][1] .= '
'; - -$table->data[$i][0] = __('Sound for Monitor critical'); -$table->data[$i][1] = html_print_select( - $sounds, - 'sound_critical', - $config['sound_critical'], - 'replaySound(\'critical\');', - '', - '', - true -); -$table->data[$i][1] .= ' '.html_print_image( - 'images/control_play_col.png', - true, - [ - 'id' => 'button_sound_critical', - 'style' => 'vertical-align: middle;', - 'width' => '16', - 'title' => __('Play sound'), - ] -).''; -$table->data[$i++][1] .= '
'; - -$table->data[$i][0] = __('Sound for Monitor warning'); -$table->data[$i][1] = html_print_select( - $sounds, - 'sound_warning', - $config['sound_warning'], - 'replaySound(\'warning\');', - '', - '', - true -); -$table->data[$i][1] .= ' '.html_print_image( - 'images/control_play_col.png', - true, - [ - 'id' => 'button_sound_warning', - 'style' => 'vertical-align: middle;', - 'width' => '16', - 'title' => __('Play sound'), - ] -).''; -$table->data[$i++][1] .= '
'; - $table->data[$i][0] = __('Public URL'); $table->data[$i++][1] = html_print_input_text( 'public_url', @@ -767,24 +674,6 @@ echo ''.__('Mail configuration').''; ?>