X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/ea90b321a4b3768028d841b307c362af97a5e6e1..d5ffb4bb26cc3910c5e4da8de0f6ed8e64a273fa:/tools/checkup.php diff --git a/tools/checkup.php b/tools/checkup.php index 562aed3..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 get_config("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", get_config("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