From 66f481ccaad9613cd6c7cbbc10fb270a8b46b446 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Wed, 16 Mar 2005 04:58:04 +0000 Subject: Add option to edit default pkg_config.xml URL. --- usr/local/www/system_advanced.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php index b56eeb0..c46e354 100755 --- a/usr/local/www/system_advanced.php +++ b/usr/local/www/system_advanced.php @@ -83,6 +83,10 @@ if ($_POST) { if ($_POST['altfirmwareurl']) if ($_POST['firmwareurl'] == "" || $_POST['firmwarename'] == "") $input_errors[] = "You must specify a base URL and a filename for the alternate firmware."; + + if ($_POST['altpkgconfigurl']) + if ($_POST['pkgconfig_base_url'] == "" || $_POST['pkgconfig_filename'] == "") + $input_errors[] = "You must specifiy and base URL and a filename before using an alternate pkg_config.xml."; } if (!$input_errors) { @@ -154,7 +158,7 @@ if ($_POST) { } else if (($g['platform'] == "generic-pc") && ($config['system']['harddiskstandby'] != $oldharddiskstandby)) { if (!$config['system']['harddiskstandby']) { // Reboot needed to deactivate standby due to a stupid ATA-protocol - touch($d_sysrebootreqd_path); + Touch($d_sysrebootreqd_path); unset($config['system']['harddiskstandby']); } else { // No need to set the standby-time if a reboot is needed anyway @@ -202,7 +206,7 @@ function enable_altfirmwareurl(enable_over) { } } function enable_altpkgconfigurl(enable_over) { - if (document.iform.altpkgconfig.checked || enable_over) { + if (document.iform.altpkgconfigurl.checked || enable_over) { document.iform.pkgconfig_base_url.disabled = 0; document.iform.pkgconfig_filename.disabled = 0; } else { @@ -348,10 +352,10 @@ function enable_altpkgconfigurl(enable_over) { Alternate pkg_config.xml URL - > Retrieve the package list from a different URL
+ > Retrieve the package list from a different URL
- +
Base URL:
Filename:
Filename:
This is where pfSense will fetch its package list from. @@ -492,6 +496,7 @@ function enable_altpkgconfigurl(enable_over) { -- cgit v1.1