summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware_settings.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-05-24 05:50:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-05-24 05:50:40 +0000
commit563f5b510631a8c6454e1dfa323d6477f4e7ecbc (patch)
tree280b2238185a3737fd581ee07b9bdeb8f7db6f94 /usr/local/www/system_firmware_settings.php
parentef794b01aee9e1a2439359555184da5ec4b7b5f8 (diff)
downloadpfsense-563f5b510631a8c6454e1dfa323d6477f4e7ecbc.zip
pfsense-563f5b510631a8c6454e1dfa323d6477f4e7ecbc.tar.gz
Add manifests option (Default Auto Update URLS)
Diffstat (limited to 'usr/local/www/system_firmware_settings.php')
-rwxr-xr-xusr/local/www/system_firmware_settings.php24
1 files changed, 22 insertions, 2 deletions
diff --git a/usr/local/www/system_firmware_settings.php b/usr/local/www/system_firmware_settings.php
index 9f7d32f..916a3c2 100755
--- a/usr/local/www/system_firmware_settings.php
+++ b/usr/local/www/system_firmware_settings.php
@@ -49,8 +49,13 @@ $curcfg = $config['system']['firmware'];
$pgtitle = array("System","Firmware","Settings");
include("head.inc");
-?>
+exec("fetch -q -o /tmp/manifest \"{$g['update_manifest']}\"");
+if(file_exists("/tmp/manifest")) {
+ $preset_urls_split = split("\n", file_get_contents("/tmp/manifest"));
+}
+?>
+<script src="/javascript/scriptaculous/prototype.js" type="text/javascript"></script>
<script language="JavaScript">
<!--
@@ -88,7 +93,22 @@ function enable_altfirmwareurl(enable_over) {
<tr>
<td colspan="2" valign="top" class="listtopic">Firmware Branch</td>
</tr>
-
+<?php if(is_array($preset_urls_split)): ?>
+ <tr>
+ <td valign="top" class="vncell">Default Auto Update URLs</td>
+ <td class="vtable">
+ <select name='preseturls' id='preseturls' onChange="firmwareurl.value = preseturls.value; document.iform.firmwareurl.disabled = 0; alturlenable.checked=true;">
+ <option></option>
+ <?php
+ foreach($preset_urls_split as $pus) {
+ $pus_text = split("\t", $pus);
+ echo "<option value='{$pus_text[1]}'>{$pus_text[0]}</option>";
+ }
+ ?>
+ </select>
+ </td>
+ </tr>
+<?php endif; ?>
<tr>
<td valign="top" class="vncell">Firmware Auto Update URL</td>
<td class="vtable">
OpenPOWER on IntegriCloud