summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_notifications.php
diff options
context:
space:
mode:
authorYehuda Katz <yehuda@ymkatz.net>2012-02-28 17:33:32 -0500
committerYehuda Katz <yehuda@ymkatz.net>2012-02-28 17:33:32 -0500
commit970ca1b7831950086e79aa63e54ae6eaf51dbdca (patch)
tree0b6e96d87107a21279e6dc8628b2c854cac26718 /usr/local/www/system_advanced_notifications.php
parentfeef287ead62815b1a67bac15ebaa2d36226d4e2 (diff)
downloadpfsense-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.php22
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="">
&nbsp;
OpenPOWER on IntegriCloud