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

(legacy) more cleanups

parent c4281283
......@@ -94,14 +94,23 @@ function get_uptime() {
else if ($updays > 0)
$uptimestr .= "1 Day ";
if ($uphours > 1)
if ($uphours > 1) {
$hours = "s";
} else {
$hours = "";
}
if ($upmins > 1)
if ($upmins > 1) {
$minutes = "s";
} else {
$minutes = "" ;
}
if ($upmins > 1)
if ($upmins > 1) {
$seconds = "s";
} else {
$seconds = "";
}
$uptimestr .= sprintf("%02d Hour$hours %02d Minute$minutes %02d Second$seconds", $uphours, $upmins, $upsecs);
return $uptimestr;
......
......@@ -36,7 +36,6 @@ ob_start(null, "1000");
## Load Essential Includes
require_once('functions.inc');
require_once('guiconfig.inc');
require_once('notices.inc');
......@@ -92,9 +91,6 @@ if ($_POST && $_POST['sequence']) {
exit;
}
## Load Functions Files
require_once('includes/functions.inc.php');
## Check to see if we have a swap space,
## if true, display, if false, hide it ...
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