Commit 015c9822 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) more cleanups

parent c4281283
...@@ -94,14 +94,23 @@ function get_uptime() { ...@@ -94,14 +94,23 @@ function get_uptime() {
else if ($updays > 0) else if ($updays > 0)
$uptimestr .= "1 Day "; $uptimestr .= "1 Day ";
if ($uphours > 1) if ($uphours > 1) {
$hours = "s"; $hours = "s";
} else {
$hours = "";
}
if ($upmins > 1) if ($upmins > 1) {
$minutes = "s"; $minutes = "s";
} else {
$minutes = "" ;
}
if ($upmins > 1) if ($upmins > 1) {
$seconds = "s"; $seconds = "s";
} else {
$seconds = "";
}
$uptimestr .= sprintf("%02d Hour$hours %02d Minute$minutes %02d Second$seconds", $uphours, $upmins, $upsecs); $uptimestr .= sprintf("%02d Hour$hours %02d Minute$minutes %02d Second$seconds", $uphours, $upmins, $upsecs);
return $uptimestr; return $uptimestr;
......
...@@ -36,7 +36,6 @@ ob_start(null, "1000"); ...@@ -36,7 +36,6 @@ ob_start(null, "1000");
## Load Essential Includes ## Load Essential Includes
require_once('functions.inc');
require_once('guiconfig.inc'); require_once('guiconfig.inc');
require_once('notices.inc'); require_once('notices.inc');
...@@ -92,9 +91,6 @@ if ($_POST && $_POST['sequence']) { ...@@ -92,9 +91,6 @@ if ($_POST && $_POST['sequence']) {
exit; exit;
} }
## Load Functions Files
require_once('includes/functions.inc.php');
## Check to see if we have a swap space, ## Check to see if we have a swap space,
## if true, display, if false, hide it ... ## if true, display, if false, hide it ...
if (file_exists('/usr/sbin/swapinfo')) { if (file_exists('/usr/sbin/swapinfo')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment