isLogin()){ header('Location: ' . BASEURL . 'login'); } $template = new Template('server'); $template->prepare('title', 'Server'); $template->prepare('baseDir', BASEDIR); $template->prepare('baseUrl', BASEURL); $template->prepare('debugMod', DEBUGMOD); $template->prepare('langMng', $langMng); $template->prepare('UPTIME', shell_exec('uptime -p')); $template->prepare('serverTime', date('m. d. Y H:i:s - e')); $template->prepare('ip', $_SERVER['SERVER_ADDR']); $template->prepare('name', $_SERVER['SERVER_NAME']); $template->prepare('CPU', $this->getProcessorUsage()); $template->prepare('ramFree', $this->getSystemMemInfo()["MemFree"]); $template->prepare('ramTotal', $this->getSystemMemInfo()["MemTotal"]); $template->prepare('diskFree', disk_free_space("/")); $template->prepare('diskTotal', disk_total_space("/")); $template->render(); } }