]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - tools/checkup.php
Move some PHP files from ./ to ./inc: common, connection, header, footer
[irc/unrealircd/unrealircd-webpanel.git] / tools / checkup.php
index 6f774275c3a496585d35b80b51ac01cd8acb703c..73ede5a03ec76816576d349e407c627c0fbafb07 100644 (file)
@@ -1,7 +1,7 @@
 <?php
-require_once "../common.php";
-require_once "../connection.php";
-require_once "../header.php";
+require_once "../inc/common.php";
+require_once "../inc/connection.php";
+require_once "../inc/header.php";
 require_once "../Classes/class-checkup.php";
 
 $checkup = new CheckUp();
@@ -148,7 +148,7 @@ new Chart("myChart", {
 <script>
     function updateStats() {
         var xhttp = new XMLHttpRequest();
-        var BASE_URL = "<?php echo BASE_URL; ?>";
+        var BASE_URL = "<?php echo get_config("base_url"); ?>";
         xhttp.onreadystatechange = function() {
             if (this.readyState == 4 && this.status == 200) {
                 var data = JSON.parse(this.responseText);
@@ -160,5 +160,5 @@ new Chart("myChart", {
         xhttp.send();
     }
     updateStats();
-    setInterval(updateStats, 350); // Update stats every second
+    setInterval(updateStats, 1000); // Update stats every second
 </script>