Remove unused $auth

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2022-08-13 14:20:50 +02:00
parent 70dce5f500
commit 4e76c43969
2 changed files with 0 additions and 15 deletions
-10
View File
@@ -90,14 +90,6 @@ require_once 'scripts/pi-hole/php/gravity.php';
</div>
</div>
</div>
<?php
// If the user is logged in, then we show the more detailed index page.
// Even if we would include them here anyhow, there would be nothing to
// show since the API will respect the privacy of the user if he defines
// a password
if ($auth) {
?>
<div class="row">
<div class="col-md-12">
<div class="box" id="clients">
@@ -285,8 +277,6 @@ if ($auth) {
<!-- /.col -->
</div>
<!-- /.row -->
<?php
} ?>
<script src="scripts/pi-hole/js/index.js?v=<?php echo $cacheVer; ?>"></script>
-5
View File
@@ -63,11 +63,6 @@
</div>
</div>
<!-- sidebar menu: : style can be found in sidebar.less -->
<?php
if (!$auth && (!isset($indexpage) || isset($_GET['login']))) {
$scriptname = 'login';
}
?>
<ul class="sidebar-menu" data-widget="tree">
<li class="header text-uppercase">Main</li>
<!-- Home Page -->