mirror of
https://github.com/pi-hole/web.git
synced 2026-02-23 11:16:05 +00:00
- Made favicon work across pages - No longer needs root access to tee command, still needs root access for gravity.sh and whitelist.sh - Added call to gravity.sh when you remove an item - Moved header and footer into separate files - Moved files from list into the main folder - Got rid of extra dependencies from the old list setup - Added home button to sidebar - Renamed original whitelist to "Old Whitelist" - Added buttons to sidebar for Whitelist and Blacklist
10 lines
278 B
PHP
10 lines
278 B
PHP
<?php
|
|
if(!isset($_GET['domain'], $_GET['list']))
|
|
return;
|
|
|
|
if($_GET['list'] == "white")
|
|
exec("/usr/local/bin/whitelist.sh ${_GET['domain']}");
|
|
else {
|
|
exec("echo '${_GET['domain']}' >> /etc/pihole/blacklist.txt");
|
|
exec("sudo /usr/local/bin/gravity.sh");
|
|
} |