mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Remove adlists tab from settings page
Signed-off-by: yubiuser <ckoenig@posteo.de>
This commit is contained in:
@@ -121,7 +121,8 @@ $(".confirm-disablelogging-noflush").confirm({
|
||||
});
|
||||
|
||||
$(".api-token").confirm({
|
||||
text: "Make sure that nobody else can scan this code around you. They will have full access to the API without having to know the password. Note that the generation of the QR code will take some time.",
|
||||
text:
|
||||
"Make sure that nobody else can scan this code around you. They will have full access to the API without having to know the password. Note that the generation of the QR code will take some time.",
|
||||
title: "Confirmation required",
|
||||
confirm: function () {
|
||||
window.open("scripts/pi-hole/php/api_token.php");
|
||||
|
||||
+1
-19
@@ -219,7 +219,7 @@ if (isset($setupVars["API_PRIVACY_MODE"])) {
|
||||
?>
|
||||
|
||||
<?php
|
||||
if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "adlists", "dns", "piholedhcp", "api", "privacy", "teleporter"))) {
|
||||
if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "dns", "piholedhcp", "api", "privacy", "teleporter"))) {
|
||||
$tab = $_GET['tab'];
|
||||
} else {
|
||||
$tab = "sysadmin";
|
||||
@@ -232,9 +232,6 @@ if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "adlists", "
|
||||
<li role="presentation"<?php if($tab === "sysadmin"){ ?> class="active"<?php } ?>>
|
||||
<a href="#sysadmin" aria-controls="sysadmin" aria-expanded="<?php echo $tab === "sysadmin" ? "true" : "false"; ?>" role="tab" data-toggle="tab">System</a>
|
||||
</li>
|
||||
<li role="presentation"<?php if($tab === "adlists"){ ?> class="active"<?php } ?>>
|
||||
<a href="#adlists" aria-controls="adlists" aria-expanded="<?php echo $tab === "adlists" ? "true" : "false"; ?>" role="tab" data-toggle="tab">Adlists</a>
|
||||
</li>
|
||||
<li role="presentation"<?php if($tab === "dns"){ ?> class="active"<?php } ?>>
|
||||
<a href="#dns" aria-controls="dns" aria-expanded="<?php echo $tab === "dns" ? "true" : "false"; ?>" role="tab" data-toggle="tab">DNS</a>
|
||||
</li>
|
||||
@@ -439,21 +436,6 @@ if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "adlists", "
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ######################################################### Adlists ######################################################### -->
|
||||
<div id="adlists" class="tab-pane fade<?php if($tab === "adlists"){ ?> in active<?php } ?>">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Adlists used to generate Pi-hole's Gravity</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<p>Please use the <a href="groups-adlists.php">group management pages</a> to edit the adlists used by Pi-hole.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ######################################################### DHCP ######################################################### -->
|
||||
<div id="piholedhcp" class="tab-pane fade<?php if($tab === "piholedhcp"){ ?> in active<?php } ?>">
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user