diff --git a/header.php b/header.php index e93fdde2..29daeb07 100644 --- a/header.php +++ b/header.php @@ -4,26 +4,11 @@ check_cors(); - // Web based change of temperature unit - if (isset($_GET['tempunit'])) - { - if($_GET['tempunit'] == "fahrenheit") - { - exec('sudo pihole -a -f'); - } - else - { - exec('sudo pihole -a -c'); - } - } - $cmd = "echo $((`cat /sys/class/thermal/thermal_zone0/temp | cut -c1-2`))"; $output = shell_exec($cmd); $celsius = str_replace(array("\r\n","\r","\n"),"", $output); $fahrenheit = round(str_replace(["\r\n","\r","\n"],"", $output*9./5)+32); - // Reparse setupVars.conf here, as we might have switched temperature units above - $setupVars = parse_ini_file("/etc/pihole/setupVars.conf"); if(isset($setupVars['TEMPERATUREUNIT'])) { $temperatureunit = $setupVars['TEMPERATUREUNIT']; diff --git a/help.php b/help.php index 5a0976da..6ce13392 100644 --- a/help.php +++ b/help.php @@ -19,20 +19,7 @@

Shows different status messages: