From ffd1f1aa79eabe06c730dd86f01a920ed423a423 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 3 Dec 2005 21:59:07 +0000 Subject: Parse the configuration file so we can deterimine if captive portal is enabled --- usr/local/www/diag_backup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index fcd5313..d75ee9a 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -155,8 +155,8 @@ if ($_POST) { /* remove cache, we will force a config reload */ if(file_exists("/tmp/config.cache")) unlink("/tmp/config.cache"); + $config = parse_config(true); if($m0n0wall_upgrade == true) { - $config = parse_config(true); if($config['system']['gateway'] <> "") { $config['interfaces']['wan']['gateway'] = $config['system']['gateway']; } -- cgit v1.1