summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-28 18:29:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-28 18:29:40 +0000
commitf3e2c205a1d8a9605b952a6bfed10ec8f6e868ea (patch)
tree0b6912a906d8e13e5d59e77ea692de10cb4cc977 /usr/local/www/index.php
parentc70c4e8a30a985ac9596d84fd4d54d386d4840e4 (diff)
downloadpfsense-f3e2c205a1d8a9605b952a6bfed10ec8f6e868ea.zip
pfsense-f3e2c205a1d8a9605b952a6bfed10ec8f6e868ea.tar.gz
Define guiconfig.inc early on.
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-xusr/local/www/index.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index b98b86a..832074a 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -32,6 +32,8 @@
POSSIBILITY OF SUCH DAMAGE.
*/
+require("guiconfig.inc");
+
if(file_exists("/usr/local/www/trigger_initial_wizard")) {
conf_mount_rw();
unlink("/usr/local/www/trigger_initial_wizard");
@@ -45,8 +47,6 @@ if(file_exists("/usr/local/www/trigger_initial_wizard")) {
exit;
}
-require("guiconfig.inc");
-
/* find out whether there's hardware encryption (hifn) */
unset($hwcrypto);
$fd = @fopen("{$g['varlog_path']}/dmesg.boot", "r");
@@ -106,7 +106,6 @@ $cpuUsage = round(100 * (1 - $diff['idle'] / $totalDiff), 0);
return $cpuUsage;
}
-
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
OpenPOWER on IntegriCloud