0) { // Password set compare with double hash if(hash('sha256',hash('sha256',$_POST["pw"])) == $pwhash || $_GET["auth"] == $pwhash) { // Password (POST) correct or hash (GET) correct $auth = true; $pwstring = "auth=".$pwhash; } else { // Password or hash wrong $auth = false; $pwstring = ""; } } else { // No password set $auth = true; $pwstring = ""; } if (isset($_GET['enable']) && $auth) { exec('sudo pihole enable'); $refer = $_SERVER['HTTP_REFERER']; header("location:$refer"); } elseif (isset($_GET['disable']) && $auth) { exec('sudo pihole disable'); $refer = $_SERVER['HTTP_REFERER']; header("location:$refer"); } $cmd = "echo $((`cat /sys/class/thermal/thermal_zone0/temp | cut -c1-2`))"; $output = shell_exec($cmd); <<<<<<< HEAD $output = str_replace(array("\r\n","\r","\n"),"", $output); ======= $celsius = str_replace(array("\r\n","\r","\n"),"", $output); $fahrenheit = round(str_replace(["\r\n","\r","\n"],"", $output*9./5)+32); $temperatureunit = parse_ini_file("/etc/pihole/setupVars.conf")['TEMPERATUREUNIT']; >>>>>>> devel ?> Pi-hole Admin Console

Javascript Is Disabled

Javascript seems to be disabled. This will break some site features.

To enable Javascript click here

Password: