mirror of
https://github.com/pi-hole/web.git
synced 2026-04-28 04:33:58 +01:00
Changed line endings
- Also changed return to die
This commit is contained in:
22
php/sub.php
22
php/sub.php
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
if(!isset($_GET['domain'], $_GET['list']))
|
||||
return;
|
||||
|
||||
switch($_GET['list']) {
|
||||
case "white":
|
||||
exec("/usr/local/bin/whitelist.sh -q -d ${_GET['domain']}");
|
||||
break;
|
||||
case "black":
|
||||
exec("/usr/local/bin/blacklist.sh -q -d ${_GET['domain']}");
|
||||
break;
|
||||
<?php
|
||||
if(!isset($_GET['domain'], $_GET['list']))
|
||||
die();
|
||||
|
||||
switch($_GET['list']) {
|
||||
case "white":
|
||||
exec("/usr/local/bin/whitelist.sh -q -d ${_GET['domain']}");
|
||||
break;
|
||||
case "black":
|
||||
exec("/usr/local/bin/blacklist.sh -q -d ${_GET['domain']}");
|
||||
break;
|
||||
}
|
||||
Reference in New Issue
Block a user