1 <?php
$arr = []; Hook
::run(HOOKTYPE_PRE_HEADER
, $arr); ?>
5 <div
class="media-body">
7 <meta name
="viewport" content
="width=device-width, initial-scale=1">
8 <meta name
="HandheldFriendly" content
="true">
11 <!-- Latest compiled
and minified CSS
-->
12 <link rel
="stylesheet" href
="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
14 <!-- jQuery library
-->
15 <script src
="https://cdn.jsdelivr.net/npm/jquery@3.6.1/dist/jquery.slim.min.js"></script
>
18 <script src
="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script
>
20 <!-- Latest compiled JavaScript
-->
21 <script src
="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script
>
23 <!-- Font Awesome icons
-->
24 <link rel
="stylesheet" href
="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
26 <script src
="<?php echo BASE_URL; ?>js/unrealircd-admin.js"></script
>
27 <title
>UnrealIRCd Panel
</title
>
28 <link rel
="icon" type
="image/x-icon" href
="<?php echo BASE_URL; ?>img/favicon.ico">
29 <link href
="<?php echo BASE_URL; ?>css/unrealircd-admin.css" rel
="stylesheet">
31 <body role
="document">
32 <div
class="container-fluid">
35 <nav
class="navbar navbar-expand-sm navbar-dark bg-dark fixed-top z-index padding-top">
36 <button
class="navbar-toggler" type
="button" data
-toggle
="collapse" data
-target
="#collapsibleNavbar">
37 <span
class="navbar-toggler-icon"></span
>
39 <div
class="collapse navbar-collapse" id
="collapsibleNavbar">
40 <ul
class="navbar-nav mr-auto">
41 <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
>
46 foreach ($pages as $name => $page)
48 $script = $_SERVER['SCRIPT_FILENAME'];
49 $tok = split($script, "/");
52 if (is_string($page) && strlen($page) == 0) {
55 else if (str_ends_with($script, BASE_URL
. "index.php") && BASE_URL
!= "/" && !strlen($tok[0]))
57 $active_page = $tok[0];
59 else if (!str_ends_with($page, ".php"))
61 $script2 = rtrim($script, "/index.php");
62 if (str_ends_with($script2, $page))
65 else if (str_ends_with($script, $page))
68 } elseif (!$active_page)
71 foreach($pages as $name=>$page)
73 $class = "class=\"nav-item\"";
74 if (is_string($active_page) && $page == $active_page)
75 $class = str_replace("\"nav-item\"", "\"nav-item active\"", $class);
78 echo "<li $class><a class=\"nav-link\" href=\"".BASE_URL
.$page."\">$name</a></li>\n";
80 elseif (is_array($page))
82 foreach ($page as $k => $v)
88 <li
class="nav-item dropdown">
89 <a
class="nav-link dropdown-toggle" href
="#" id
="navbarDropdown" role
="button" data
-toggle
="dropdown" aria
-haspopup
="true" aria
-expanded
="false">
92 <div
class="dropdown-menu" aria
-labelledby
="navbarDropdown">
93 <?php
foreach($page as $k => $p)
96 <a
class="dropdown-item" href
="<?php echo BASE_URL.$p;?>"><?php
echo $k; ?></a
>
112 <div
class="container-fluid" role
="main">