require '_lib/classes/_uptime.php'; require '_lib/includes/_header.php'; require '_lib/classes/_network.php'; require '_lib/classes/_who.php'; require '_lib/classes/_versionCheck.php'; ?> <div class="versionCheckContainer"> <?php //$versionCheck = new versionCheck; $checkVersion = $versionCheck->checkVersion(); ?> </div> <div id="firstBlockContainer"> <div class="firstBlockWrapper"> <?php $uptime = new systemUptime(); $getSystemUptime = $uptime->getSystemUptime(); ?> <div class="clear"></div> <br/><br/> <?php $load = new cpuLoad(); $getLoad = $load->getCpuLoad(); ?> <div class="clear"></div> <br/><br/>
<?php header("Access-Control-Allow-Origin: *"); header("Content-type: application/json"); header("Cache-Control: no-cache, must-revalidate"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); require '../classes/_ram.php'; require '../classes/_pitemp.php'; require '../classes/_hdd.php'; require '../classes/_cpu.php'; require '../classes/_uptime.php'; require '../classes/_network.php'; require '../classes/_who.php'; echo '{'; echo '"uptime" : '; $uptime = new systemUptime(); $getSystemUptime = $uptime->getSystemUptime(true); echo ', "CPU" : '; $load = new cpuLoad(); $getLoad = $load->getCpuLoad(true); echo ', "memory" : {'; $ram = new ramPercentage(); $percentage = $ram->freeMemory(true); echo ','; $percentage = $ram->freeSwap(true); echo '}, "storage" : '; $hdd = new hddPercentage(); $storagepercentage = $hdd->freeStorage(true); echo ','; $network = new network(); $networkUseage = $network->networkUsage(true);