mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Echo output of exec command
This commit is contained in:
+3
-3
@@ -17,10 +17,10 @@ if(!hash_equals($_SESSION['token'], $_POST['token']))
|
||||
die("Wrong token");
|
||||
|
||||
switch($_POST['list']) {
|
||||
case "white":
|
||||
exec("sudo pihole -w -q ${_POST['domain']}");
|
||||
case "white":
|
||||
echo exec("sudo pihole -w -q ${_POST['domain']}");
|
||||
break;
|
||||
case "black":
|
||||
exec("sudo pihole -b -q ${_POST['domain']}");
|
||||
echo exec("sudo pihole -b -q ${_POST['domain']}");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user