mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
add redirect to referal so we dont lose other GETS
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
<?php
|
||||
if (isset($_GET['enable'])) {
|
||||
exec('sudo pihole enable');
|
||||
$refer = $_SERVER['HTTP_REFERER'];
|
||||
header("location:$refer");
|
||||
} elseif (isset($_GET['disable'])) {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user