X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/c5e73d04f253726e3c9f1f805506649c63a92d92..d5ffb4bb26cc3910c5e4da8de0f6ed8e64a273fa:/tools/checkup.php diff --git a/tools/checkup.php b/tools/checkup.php index e294ca1..634c954 100644 --- a/tools/checkup.php +++ b/tools/checkup.php @@ -1,164 +1,83 @@

Network Health Checkup

+ + +
+
+
+
+ +
+
+
+
+ toTable($checkup->problems['usermodes']); ?> +
+
+
+
+
+
+ +
+
+
+
+ toTable($checkup->problems['chanmodes']); ?> +
+
+
+
+
+
+ +
+
+
+
+ toTable($checkup->problems['modules']); ?> +
+
+
+
+
+
+ +
+
+
+
+ toTable($checkup->problems['servers']); ?> +
+
+
+ - function updateStats() { - var xhttp = new XMLHttpRequest(); - var BASE_URL = ""; - xhttp.onreadystatechange = function() { - if (this.readyState == 4 && this.status == 200) { - var data = JSON.parse(this.responseText); - document.getElementById("cpu-usage").innerHTML = "Current Usage: " + data.cpu + ""; - document.getElementById("memory-usage").innerHTML = "Memory Usage: " + data.memory + ""; - } - }; - xhttp.open("GET", BASE_URL + "api/data.php", true); - xhttp.send(); - } - updateStats(); - setInterval(updateStats, 1000); // Update stats every second - +require_once "../inc/footer.php"; \ No newline at end of file