mirror of
https://github.com/pi-hole/web.git
synced 2026-04-23 02:09:58 +01:00
Move require "footer.php" to loginpage.php
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -671,18 +671,17 @@ if($auth) {
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<?php
|
||||
// If password is not equal to the password set
|
||||
// in the setupVars.conf file, then we skip any
|
||||
// content and just complete the page. If no
|
||||
// password is set at all, we keep the current
|
||||
// behavior: everything is always authorized
|
||||
// and will be displayed
|
||||
//
|
||||
// If auth is required and not set, i.e. no successfully logged in,
|
||||
// we show the reduced version of the summary (index) page
|
||||
if(!$auth && (!isset($indexpage) || isset($_GET['login']))){
|
||||
require "scripts/pi-hole/php/loginpage.php";
|
||||
require "footer.php";
|
||||
exit();
|
||||
}
|
||||
// If password is not equal to the password set
|
||||
// in the setupVars.conf file, then we skip any
|
||||
// content and just complete the page. If no
|
||||
// password is set at all, we keep the current
|
||||
// behavior: everything is always authorized
|
||||
// and will be displayed
|
||||
//
|
||||
// If auth is required and not set, i.e. no successfully logged in,
|
||||
// we show the reduced version of the summary (index) page
|
||||
if (!$auth && (!isset($indexpage) || isset($_GET['login']))) {
|
||||
require "scripts/pi-hole/php/loginpage.php";
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user