mirror of
https://github.com/pi-hole/web.git
synced 2026-02-26 20:53:18 +00:00
254 lines
15 KiB
PHP
254 lines
15 KiB
PHP
<!-- Left side column. contains the logo and sidebar -->
|
|
<aside class="main-sidebar">
|
|
<!-- sidebar: style can be found in sidebar.less -->
|
|
<section class="sidebar">
|
|
<!-- Sidebar user panel -->
|
|
<div class="user-panel">
|
|
<div class="pull-left image">
|
|
<img class="logo-img" src="img/logo.svg" alt="Pi-hole logo">
|
|
</div>
|
|
<div class="pull-left info">
|
|
<p>Status</p>
|
|
<span id="status"></span>
|
|
<span id="temperature"></span><br/>
|
|
<span id="cpu"></span><br/>
|
|
<span id="memory"></span>
|
|
</div>
|
|
</div>
|
|
<!-- sidebar menu: : style can be found in sidebar.less -->
|
|
<ul class="sidebar-menu" data-widget="tree">
|
|
<li class="header text-uppercase">Main</li>
|
|
<!-- Home Page -->
|
|
<li class="menu-main<?php if ($scriptname === 'index.php') { ?> active<?php } ?>">
|
|
<a href="index.php">
|
|
<i class="fa fa-fw menu-icon fa-home"></i> <span class="text-green">Dashboard</span>
|
|
</a>
|
|
</li>
|
|
<!-- Query Log -->
|
|
<li class="menu-analysis<?php if ($scriptname === 'queries.php') { ?> active<?php } ?>">
|
|
<a href="queries.php">
|
|
<i class="fa fa-fw menu-icon fa-file-alt"></i> <span class="text-green">Query Log</span>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="header text-uppercase">Group Management</li>
|
|
<!-- Group Management -->
|
|
<li class="menu-group<?php if ($scriptname === 'groups.php') { ?> active<?php } ?>">
|
|
<a href="groups.php">
|
|
<i class="fa fa-fw menu-icon fa-user-friends"></i> <span class="text-red">Groups
|
|
<span class="pull-right-container">
|
|
<span class="label label-primary pull-right" id="num_groups" title="Number of defined groups"></span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<li class="menu-group<?php if ($scriptname === 'groups-clients.php') { ?> active<?php } ?>">
|
|
<a href="groups-clients.php">
|
|
<i class="fa fa-fw menu-icon fa-laptop"></i> <span class="text-red">Clients
|
|
<span class="pull-right-container">
|
|
<span class="label label-primary pull-right" id="num_clients" title="Number of defined clients"></span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<li class="menu-group<?php if ($scriptname === 'groups-domains.php') { ?> active<?php } ?>">
|
|
<a href="groups-domains.php">
|
|
<i class="fa fa-fw menu-icon fa-list"></i> <span class="text-red">Domains
|
|
<span class="pull-right-container">
|
|
<span class="label bg-red pull-right" id="num_denied" title="Number of deny rules (domains and regex)"></span>
|
|
<span class="label bg-green pull-right" id="num_allowed" title="Number of allow rules (domains and regex)"></span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<li class="menu-group<?php if ($scriptname === 'groups-adlists.php') { ?> active<?php } ?>">
|
|
<a href="groups-adlists.php">
|
|
<i class="fa fa-fw menu-icon fa-shield-alt"></i> <span class="text-red">Adlists
|
|
<span class="pull-right-container">
|
|
<span class="label bg-blue pull-right" id="num_lists" title="Number of defined adlists"></span>
|
|
<span class="label bg-yellow pull-right" id="num_gravity" title="Total number of domains blocked by your Pi-hole"></span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="header text-uppercase">DNS Control</li>
|
|
<!-- Local DNS Records -->
|
|
<!-- Enable/Disable Blocking -->
|
|
<li id="pihole-disable" class="menu-dns treeview">
|
|
<a href="#">
|
|
<i class="fa fa-fw menu-icon fa-stop"></i> <span class="text-red">Disable Blocking <span id="flip-status-disable"></span></span>
|
|
<span class="pull-right-container">
|
|
<i class="fa fa-angle-left pull-right"></i>
|
|
</span>
|
|
</a>
|
|
<ul class="treeview-menu">
|
|
<li>
|
|
<a href="#" id="pihole-disable-indefinitely">
|
|
<i class="fa fa-fw menu-icon fa-infinity"></i> Indefinitely
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" id="pihole-disable-10s">
|
|
<i class="fa fa-fw menu-icon fa-clock"></i> For 10 seconds
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" id="pihole-disable-30s">
|
|
<i class="fa fa-fw menu-icon fa-clock"></i> For 30 seconds
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" id="pihole-disable-5m">
|
|
<i class="fa fa-fw menu-icon fas fa-clock"></i> For 5 minutes
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" id="pihole-disable-cst" data-toggle="modal" data-target="#customDisableModal">
|
|
<i class="fa fa-fw menu-icon fa-user-clock"></i> Custom time
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<!-- <a href="#" id="flip-status"><i class="fa fa-stop"></i> <span>Disable</span></a> -->
|
|
</li>
|
|
<li id="pihole-enable" class="menu-dns treeview"<?php if (!in_array($pistatus, array('0', '-1', '-2'))) { ?> hidden<?php } ?>>
|
|
<a href="#">
|
|
<i class="fa fa-fw menu-icon fa-play"></i>
|
|
<span id="enableLabel" class="text-red">Enable Blocking
|
|
<span id="flip-status-enable"></span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<li class="header text-uppercase">System</li>
|
|
<!-- Settings -->
|
|
<li class="menu-system treeview <?php if (startsWith($scriptname, 'settings-')) { ?> active<?php } ?>">
|
|
<a href="#">
|
|
<i class="fa fa-fw menu-icon fa-cogs"></i> <span>Settings</span>
|
|
<span class="pull-right-container">
|
|
<i class="fa fa-angle-left pull-right"></i>
|
|
</span>
|
|
</a>
|
|
<ul class="treeview-menu">
|
|
<li class="<?php if ($scriptname === 'settings-system.php') { ?> active<?php } ?>">
|
|
<a href="settings-system.php">
|
|
<i class="fa-fw menu-icon fa-solid fa-circle-info"></i> <span class="text-green">System</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php if ($scriptname === 'settings-dns.php') { ?> active<?php } ?>">
|
|
<a href="settings-dns.php">
|
|
<i class="fa-fw menu-icon fa-solid fa-book-atlas"></i> <span class="text-orange">DNS</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php if ($scriptname === 'settings-dhcp.php') { ?> active<?php } ?>">
|
|
<a href="settings-dhcp.php">
|
|
<i class="fa-fw menu-icon fa-solid fa-sitemap"></i> <span class="text-orange">DHCP</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php if ($scriptname === 'settings-api.php') { ?> active<?php } ?>">
|
|
<a href="settings-api.php">
|
|
<i class="fa-fw menu-icon fa-solid fa-window-restore"></i> <span class="text-orange">Web interface / API</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php if ($scriptname === 'settings-privacy.php') { ?> active<?php } ?>">
|
|
<a href="settings-privacy.php">
|
|
<i class="fa-fw menu-icon fa-solid fa-binoculars"></i> <span class="text-red">Privacy</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php if ($scriptname === 'settings-advanced.php') { ?> active<?php } ?> settings-level-2">
|
|
<a href="settings-advanced.php">
|
|
<i class="fa-fw menu-icon fa-solid fa-pen-to-square"></i> <span class="text-orange">Advanced</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php if ($scriptname === 'settings-teleporter.php') { ?> active<?php } ?>">
|
|
<a href="settings-teleporter.php">
|
|
<i class="fa-fw menu-icon fa-solid fa-file-export"></i> <span class="text-red">Teleporter</span>
|
|
</a>
|
|
</li>
|
|
<li class="<?php if ($scriptname === 'settings-dns-records.php') { ?> active<?php } ?>">
|
|
<a href="settings-dns-records.php">
|
|
<i class="fa-fw menu-icon fa-solid fa-address-book"></i> <span class="text-orange">Local DNS Records</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<!-- Tools -->
|
|
<li class="menu-system treeview<?php if (in_array($scriptname, array('messages.php', 'gravity.php', 'queryads.php', 'taillog.php', 'taillog-FTL.php', 'debug.php', 'network.php'))) { ?> active<?php } ?>">
|
|
<a href="#">
|
|
<i class="fa fa-fw menu-icon fa-tools"></i> <span>Tools</span>
|
|
<span class="warning-count hidden"></span>
|
|
<span class="pull-right-container">
|
|
<i class="fa fa-angle-left pull-right"></i>
|
|
</span>
|
|
</a>
|
|
<ul class="treeview-menu">
|
|
<!-- Pi-hole diagnosis -->
|
|
<li class="<?php if ($scriptname === 'messages.php') { ?> active<?php } ?>">
|
|
<a href="messages.php">
|
|
<i class="fa fa-fw menu-icon fa-file-medical-alt"></i> <span class="text-green">Pi-hole diagnosis</span>
|
|
<span class="pull-right-container warning-count hidden"></span>
|
|
</a>
|
|
</li>
|
|
<!-- Tail log files -->
|
|
<li class="treeview <?php if ($scriptname === 'taillog.php') { ?> active<?php } ?>">
|
|
<a href="#">
|
|
<i class="fa-fw menu-icon fa-solid fa-list-ul"></i> <span class="text-green">Tail log files</span>
|
|
<span class="pull-right-container">
|
|
<i class="fa fa-angle-left pull-right"></i>
|
|
</span>
|
|
</a>
|
|
<ul class="treeview-menu">
|
|
<!-- Tail pihole.log -->
|
|
<li class="<?php if ($scriptname === 'taillog.php' && $_GET["file"] == "dnsmasq") { ?> active<?php } ?>">
|
|
<a href="taillog.php?file=dnsmasq">
|
|
<i class="fa-fw menu-icon fa-solid fa-list-ul"></i> <code>pihole.log</code>
|
|
</a>
|
|
</li>
|
|
<!-- Tail FTL.log -->
|
|
<li class="<?php if ($scriptname === 'taillog.php' && $_GET["file"] == "ftl") { ?> active<?php } ?>">
|
|
<a href="taillog.php?file=ftl">
|
|
<i class="fa-fw menu-icon fa-solid fa-list-ul"></i> <code>FTL.log</code>
|
|
</a>
|
|
</li>
|
|
<!-- Tail civetweb.log -->
|
|
<li class="<?php if ($scriptname === 'taillog.php' && $_GET["file"] == "http") { ?> active<?php } ?>">
|
|
<a href="taillog.php?file=http">
|
|
<i class="fa-fw menu-icon fa-solid fa-list-ul"></i> <code>civetweb.log</code>
|
|
</a>
|
|
</li>
|
|
<!-- Tail ph7.log -->
|
|
<li class="<?php if ($scriptname === 'taillog.php' && $_GET["file"] == "ph7") { ?> active<?php } ?>">
|
|
<a href="taillog.php?file=ph7">
|
|
<i class="fa-fw menu-icon fa-solid fa-list-ul"></i> <code>ph7.log</code>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<!-- Run gravity.sh -->
|
|
<li class="<?php if ($scriptname === 'gravity.php') { ?> active<?php } ?>">
|
|
<a href="gravity.php">
|
|
<i class="fa fa-fw menu-icon fa-arrow-circle-down"></i> <span class="text-red">Update Gravity</span>
|
|
</a>
|
|
</li>
|
|
<!-- Query Lists -->
|
|
<li class="<?php if ($scriptname === 'queryads.php') { ?> active<?php } ?>">
|
|
<a href="queryads.php">
|
|
<i class="fa fa-fw menu-icon fa-search"></i> <span class="text-red">Search Adlists</span>
|
|
</a>
|
|
</li>
|
|
<!-- Network -->
|
|
<li class="<?php if ($scriptname === 'network.php') { ?> active<?php } ?>">
|
|
<a href="network.php">
|
|
<i class="fa fa-fw menu-icon fa-network-wired"></i> <span class="text-red">Network</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<!-- Donate button -->
|
|
<li class="header text-uppercase">Donate</li>
|
|
<li class="menu-donate">
|
|
<a href="https://pi-hole.net/donate/" target="_blank">
|
|
<i class="fas fa-fw menu-icon fa-donate"></i> <span>Donate</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- /.sidebar -->
|
|
</aside>
|