summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-30 00:41:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-30 00:41:54 +0000
commitc7b8b46a32c8882dbb4aa4c174512f4e17cc34d9 (patch)
tree99f97ebe705314fd4819e952ffc6e37c5c33ffa9 /usr
parent26831efbcfc770b7f13c605c9a82145f95b5b4e9 (diff)
downloadpfsense-c7b8b46a32c8882dbb4aa4c174512f4e17cc34d9.zip
pfsense-c7b8b46a32c8882dbb4aa4c174512f4e17cc34d9.tar.gz
* We do not need guiconfig.inc. This fixes the sudden burst of javascript
that is populated on the dashboard on first load. * Close PHP tag
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/includes/functions.inc.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php
index 4caf925..8f549d6 100644
--- a/usr/local/www/includes/functions.inc.php
+++ b/usr/local/www/includes/functions.inc.php
@@ -5,8 +5,6 @@ if(Connection_Aborted()) {
}
require_once("config.inc");
-require_once('guiconfig.inc');
-
function get_stats() {
@@ -33,6 +31,11 @@ function get_uptime() {
$boottime = $matches[1];
$uptime = time() - $boottime;
+ if(intval($boottime) == 0)
+ return;
+ if(intval($uptime) == 0)
+ return;
+
$updays = (int)($uptime / 86400);
$uptime %= 86400;
$uphours = (int)($uptime / 3600);
@@ -223,3 +226,4 @@ function get_interfacestatus(){
return $data;
}
+?> \ No newline at end of file
OpenPOWER on IntegriCloud