]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - index.php
Fix del_usermeta() not working for both sql_db and file_db
[irc/unrealircd/unrealircd-webpanel.git] / index.php
index dbd4e03611d627c86d04b8c8768d37ff25f29786..209abd02a8a8947d73d73b087cdfd4b2228ac3f9 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,7 +1,14 @@
 <?php
-require_once "common.php";
-require_once "header.php";
-require_once "connection.php";
+require_once "inc/common.php";
+if (!isset($config['unrealircd']))
+{
+       $redirect = get_config("base_url")."settings/rpc-servers.php";
+       header('Location: ' . $redirect);
+       die;
+}
+
+require_once "inc/header.php";
+require_once "inc/connection.php";
 
 $stats = $rpc->stats()->get();
 ?>
@@ -9,7 +16,7 @@ $stats = $rpc->stats()->get();
 <h2>Network Overview</h2><div data-toggle="tooltip" data-placement="top" title="The stats on this page are updated in real-time"
                                                        class="card text-center row font-weight-bold"
                                                        style="margin-left:5%;height:26px;width:60px;background-color:red;color:white">
-<small style="margin-left:-40px;padding-top:3px;margin-right:-50px">⚪</small>LIVE</div>
+<small style="margin-left:-40px;padding-top:3px;margin-right:-45px">⚪</small>LIVE</div>
 </div>
 <?php
 $array_of_stats = (array)$stats;
@@ -317,4 +324,4 @@ $num_of_panel_admins = count($userlist);
 
 Hook::run(HOOKTYPE_OVERVIEW_CARD, $stats);
 
-require_once "footer.php";
+require_once "inc/footer.php";