mirror of
https://github.com/pi-hole/web.git
synced 2026-05-01 22:24:08 +01:00
remove problematic function
Signed-off-by: Jacob Salmela <github@decoy.email>
This commit is contained in:
@@ -10,11 +10,6 @@ require "scripts/pi-hole/php/savesettings.php";
|
||||
// Reread ini file as things might have been changed
|
||||
$setupVars = parse_ini_file("/etc/pihole/setupVars.conf");
|
||||
|
||||
function command_exist($cmd)
|
||||
{
|
||||
return !empty(shell_exec(sprintf("which %s", escapeshellarg($cmd))));
|
||||
}
|
||||
|
||||
?>
|
||||
<style type="text/css">
|
||||
.tooltip-inner {
|
||||
@@ -227,8 +222,8 @@ if (isset($setupVars["API_PRIVACY_MODE"])) {
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
if (in_array($_GET['tab'], array("sysadmin", "blocklists", "dns", "piholedhcp", "api", "teleporter"))) {
|
||||
<?php
|
||||
if (in_array($_GET['tab'], array("sysadmin", "blocklists", "dns", "piholedhcp", "api", "teleporter"))) {
|
||||
$tab = $_GET['tab'];
|
||||
} else {
|
||||
$tab = "sysadmin";
|
||||
|
||||
Reference in New Issue
Block a user