]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - tools/checkup.php
Move to new style config, with config in config/ directory.
[irc/unrealircd/unrealircd-webpanel.git] / tools / checkup.php
index 1026cfcf9a8afe6b5c84eabadb8ba2adaa0fe00e..562aed386d4bb9e74d8738bee9412651b71560b4 100644 (file)
@@ -148,7 +148,7 @@ new Chart("myChart", {
 <script>
     function updateStats() {
         var xhttp = new XMLHttpRequest();
-        var BASE_URL = "<?php echo BASE_URL; ?>";
+        var get_config("base_url") = "<?php echo get_config("base_url"); ?>";
         xhttp.onreadystatechange = function() {
             if (this.readyState == 4 && this.status == 200) {
                 var data = JSON.parse(this.responseText);
@@ -156,7 +156,7 @@ new Chart("myChart", {
                 document.getElementById("memory-usage").innerHTML = "Memory Usage: <code>" + data.memory + "</code>";
             }
         };
-        xhttp.open("GET", BASE_URL + "api/data.php", true);
+        xhttp.open("GET", get_config("base_url") + "api/data.php", true);
         xhttp.send();
     }
     updateStats();