1 <?php
$arr = []; Hook
::run(HOOKTYPE_PRE_HEADER
, $arr); ?>
4 <!-- Latest compiled
and minified CSS
-->
5 <link rel
="stylesheet" href
="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
7 <!-- jQuery library
-->
8 <script src
="https://cdn.jsdelivr.net/npm/jquery@3.6.1/dist/jquery.slim.min.js"></script
>
11 <script src
="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script
>
13 <!-- Latest compiled JavaScript
-->
14 <script src
="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script
>
16 <!-- Font Awesome icons
-->
17 <link rel
="stylesheet" href
="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
19 <script src
="<?php echo BASE_URL; ?>js/unrealircd-admin.js"></script
>
20 <title
>UnrealIRCd Panel
</title
>
21 <link rel
="icon" type
="image/x-icon" href
="<?php echo BASE_URL; ?>img/favicon.ico">
22 <link href
="<?php echo BASE_URL; ?>css/unrealircd-admin.css" rel
="stylesheet">
24 <body role
="document">
25 <div
class="container-fluid">
28 <nav
class="navbar navbar-expand-sm navbar-dark bg-dark fixed-top">
29 <ul
class="nav navbar-nav">
30 <a
class="navbar-brand" href
="<?php echo BASE_URL; ?>"><img src
="<?php echo BASE_URL; ?>img/favicon.ico" height
="25" width
="25"> UnrealIRCd Admin Panel
</a
>
35 foreach ($pages as $name => $page)
37 $script = $_SERVER['SCRIPT_FILENAME'];
38 $tok = split($script, "/");
39 if (strlen($page) == 0) {
42 else if (str_ends_with($script, BASE_URL
. "index.php") && BASE_URL
!= "/" && !strlen($tok[0]))
44 $active_page = $tok[0];
46 else if (!str_ends_with($page, ".php"))
48 $script2 = rtrim($script, "/index.php");
49 if (str_ends_with($script2, $page))
52 else if (str_ends_with($script, $page))
55 } elseif (!$active_page)
58 foreach($pages as $name=>$page)
60 $class = "class=\"nav-item\"";
61 if (is_string($active_page) && $page == $active_page)
62 $class = str_replace("\"nav-item\"", "\"nav-item active\"", $class);
64 echo " <li $class><a class=\"nav-link\" href=\"".BASE_URL
.$page."\">$name</a></li> \n";
72 <div
class="container-fluid" role
="main">