From 1896ea95fb7e51ca7aa8f98741940dc1e36ad786 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Wed, 16 Mar 2005 04:45:30 +0000 Subject: One more -> . --- usr/local/www/system_advanced.php | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) (limited to 'usr/local/www/system_advanced.php') diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php index 2c858fe..b56eeb0 100755 --- a/usr/local/www/system_advanced.php +++ b/usr/local/www/system_advanced.php @@ -46,12 +46,14 @@ $pconfig['disablefirmwarecheck'] = isset($config['system']['disablefirmwarecheck $pconfig['altfirmwareurl'] = $config['system']['altfirmwareurl']['enabled']; $pconfig['firmware_base_url'] = $config['system']['alt_firmware_url']['firmware_base_url']; $pconfig['firmwarename'] = $config['system']['alt_firmware_url']['firmware_filename']; +$pconfig['altpkgconfigurl'] = $config['system']['alt_pkgconfig_url']['enabled']; +$pconfig['pkgconfig_base_url'] = $config['system']['alt_pkgconfig_url']['pkgconfig_base_url']; +$pconfig['pkgconfig_filename'] = $config['system']['alt_pkgconfig_url']['pkgconfig_filename']; $pconfig['expanddiags'] = isset($config['system']['webgui']['expanddiags']); if ($g['platform'] == "generic-pc") $pconfig['harddiskstandby'] = $config['system']['harddiskstandby']; $pconfig['noantilockout'] = isset($config['system']['webgui']['noantilockout']); $pconfig['tcpidletimeout'] = $config['filter']['tcpidletimeout']; - $pconfig['schedulertype'] = $config['system']['schedulertype']; $pconfig['maximumstates'] = $config['system']['maximumstates']; $pconfig['disablerendevouz'] = $config['system']['disablerendevouz']; @@ -118,6 +120,18 @@ if ($_POST) { } else { unset($config['system']['alt_firmware_url']); } + + if ($_POST['altpkgconfigurl']) { + $config['system']['alt_pkgconfig_url'] = array(); + $config['system']['alt_pkgconfig_url']['enabled'] = ""; + $config['system']['alt_pkgconfig_url']['pkgconfig_base_url'] = $_POST['pkgconfig_base_url']; + $config['system']['alt_pkgconfig_url']['pkgconfig_filename'] = $_POST['pkgconfig_filename']; + } elseif (isset($config['system']['alt_pkgconfig_url']['pkgconfig_base_url']) || isset($config['system']['alt_pkgconfig_url']['pkgconfig_filename'])) { + unset($config['system']['alt_pkgconfig_url']['enabled']); + } else { + unset($config['system']['alt_pkgconfig_url']); + } + $config['system']['webgui']['expanddiags'] = $_POST['expanddiags'] ? true : false; $config['system']['optimization'] = $_POST['optimization']; $config['system']['disablerendevouz'] = $_POST['disablerendevouz']; @@ -187,6 +201,15 @@ function enable_altfirmwareurl(enable_over) { document.iform.firmwarename.disabled = 1; } } +function enable_altpkgconfigurl(enable_over) { + if (document.iform.altpkgconfig.checked || enable_over) { + document.iform.pkgconfig_base_url.disabled = 0; + document.iform.pkgconfig_filename.disabled = 0; + } else { + document.iform.pkgconfig_base_url.disabled = 1; + document.iform.pkgconfig_filename.disabled = 1; + } +} // --> @@ -322,6 +345,17 @@ function enable_altfirmwareurl(enable_over) { This is where pfSense will check for newer firmware versions when System: Firmware page is viewed. + + Alternate pkg_config.xml URL + + > Retrieve the package list from a different URL
+ + + +
Base URL:
Filename:
+ + This is where pfSense will fetch its package list from. + Hard disk standby time -- cgit v1.1