summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-21 15:43:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-21 15:43:49 +0000
commit5c50ae405e0617c36cbe888b8de204e4948403f4 (patch)
treebe5fab1381dabe7152ce05a75d593a991dfea7be /usr/local/www
parent91e58a1a5dc30a1065f636183bf96739a0a7bffc (diff)
downloadpfsense-5c50ae405e0617c36cbe888b8de204e4948403f4.zip
pfsense-5c50ae405e0617c36cbe888b8de204e4948403f4.tar.gz
* Add back disable firmware check.
* Redirect to system_firmware.php if the firmware check is disabled
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/system_advanced.php12
-rwxr-xr-xusr/local/www/system_firmware_check.php3
2 files changed, 14 insertions, 1 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index a8b7bdc..d9a5b40 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -50,6 +50,7 @@ $pconfig['schedulertype'] = $config['system']['schedulertype'];
$pconfig['maximumstates'] = $config['system']['maximumstates'];
$pconfig['disablerendevouz'] = $config['system']['disablerendevouz'];
$pconfig['enableserial'] = $config['system']['enableserial'];
+$pconfig['disablefirmwarecheck'] = isset($config['system']['disablefirmwarecheck']);
if ($_POST) {
@@ -119,7 +120,10 @@ if ($_POST) {
else
unset($config['system']['webgui']['expanddiags']);
$config['system']['optimization'] = $_POST['optimization'];
- $config['system']['disablerendevouz'] = $_POST['disablerendevouz'];
+
+ if($_POST['disablefirmwarecheck'] == "yes")
+ $config['system']['disablefirmwarecheck'] = true;
+ else
if ($_POST['enableserial'] == "yes")
$config['system']['enableserial'] = true;
@@ -325,6 +329,12 @@ function update_description(itemnum) {
Changes to this option will take effect after a reboot.</span></td>
</tr>
<tr>
+ <td valign="top" class="vncell">Firmware version check </td>
+ <td class="vtable">
+ <input name="disablefirmwarecheck" type="checkbox" id="disablefirmwarecheck" value="yes" <?php if ($pconfig['disablefirmwarecheck']) echo "checked"; ?>>
+ <strong>Disable firmware version check</strong><span class="vexpl"><br>This will cause pfSense not to check for newer firmware versions when the <a href="system_firmware.php">System: Firmware</a> page is viewed.</span></td>
+ </tr>
+ <tr>
<td width="22%" valign="top" class="vncell">Hard disk standby time </td>
<td width="78%" class="vtable">
<select name="harddiskstandby" class="formfld">
diff --git a/usr/local/www/system_firmware_check.php b/usr/local/www/system_firmware_check.php
index 5648cf0..ffaf6e8 100755
--- a/usr/local/www/system_firmware_check.php
+++ b/usr/local/www/system_firmware_check.php
@@ -31,6 +31,9 @@
require_once("guiconfig.inc");
require_once("xmlrpc.inc");
+if($config['system']['disablefirmwarecheck'])
+ Header("Location: system_firmware.php");
+
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
OpenPOWER on IntegriCloud