select 'Login' in Navbar when showing loginpage

using the same term as it is already used to show up the loginpage (in line 565)
This commit is contained in:
TheME
2017-05-21 20:38:03 +02:00
committed by GitHub
parent 90a190651b
commit d3fe10152f

View File

@@ -389,6 +389,10 @@ if($auth) {
$scriptname = "blacklist";
}
}
if(!$auth && (!isset($indexpage) || isset($_GET['login'])))
{
$scriptname = "login";
}
?>
<ul class="sidebar-menu">
<li class="header">MAIN NAVIGATION</li>
@@ -520,7 +524,7 @@ if($auth) {
<?php
// Show Login button if $auth is *not* set and authorization is required
if(strlen($pwhash) > 0 && !$auth) { ?>
<li>
<li<?php if($scriptname === "login"){ ?> class="active"<?php } ?>>
<a href="index.php?login">
<i class="fa fa-user"></i> <span>Login</span>
</a>