add redirect to referal so we dont lose other GETS

This commit is contained in:
tuplink
2016-10-20 11:55:33 -04:00
parent 3de759f71c
commit cc3678ab8c
+4
View File
@@ -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);