diff options
author | Yehuda Katz <yehuda@ymkatz.net> | 2012-02-28 17:33:32 -0500 |
---|---|---|
committer | Yehuda Katz <yehuda@ymkatz.net> | 2012-02-28 17:33:32 -0500 |
commit | 970ca1b7831950086e79aa63e54ae6eaf51dbdca (patch) | |
tree | 0b6e96d87107a21279e6dc8628b2c854cac26718 /usr/local/www/system_advanced_notifications.php | |
parent | feef287ead62815b1a67bac15ebaa2d36226d4e2 (diff) | |
download | pfsense-970ca1b7831950086e79aa63e54ae6eaf51dbdca.zip pfsense-970ca1b7831950086e79aa63e54ae6eaf51dbdca.tar.gz |
Moved beep option to notifications page
Diffstat (limited to 'usr/local/www/system_advanced_notifications.php')
-rw-r--r-- | usr/local/www/system_advanced_notifications.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_notifications.php b/usr/local/www/system_advanced_notifications.php index d314f11..d170a90 100644 --- a/usr/local/www/system_advanced_notifications.php +++ b/usr/local/www/system_advanced_notifications.php @@ -73,6 +73,9 @@ if($config['notifications']['smtp']['password']) if($config['notifications']['smtp']['fromaddress']) $pconfig['smtpfromaddress'] = $config['notifications']['smtp']['fromaddress']; +// System Sounds +$pconfig['disablebeep'] = isset($config['notifications']['disablebeep']); + if ($_POST) { unset($input_errors); @@ -108,6 +111,12 @@ if ($_POST) { $config['notifications']['smtp']['password'] = $_POST['smtppassword']; $config['notifications']['smtp']['fromaddress'] = $_POST['smtpfromaddress']; + // System Sounds + if($_POST['disablebeep'] == "yes") + $config['notifications']['disablebeep'] = true; + else + unset($config['notifications']['disablebeep']); + write_config(); // Send test message via growl @@ -245,6 +254,19 @@ include("head.inc"); <?=gettext("Enter the e-mail address password for SMTP authentication."); ?> </td> </tr> + <!-- System Sounds --> + <tr> + <td colspan="2" valign="top" class="listtopic"><?=gettext("System Sounds"); ?></td> + </tr> + <tr> + <td width="22%" valign="top" class="vncell"><?=gettext("Startup/Shutdown Sound"); ?></td> + <td width="78%" class="vtable"> + <input name="disablebeep" type="checkbox" id="disablebeep" value="yes" <?php if ($pconfig['disablebeep']) echo "checked"; ?> /> + <strong><?=gettext("Disable the startup/shutdown beep"); ?></strong> + <br/> + <span class="vexpl"><?=gettext("When this is checked, startup and shutdown sounds will no longer play."); ?></span> + </td> + </tr> <tr> <td valign="top" class=""> |