diff --git a/includes/adblock.php b/includes/adblock.php index b4da1a58..a2af5789 100644 --- a/includes/adblock.php +++ b/includes/adblock.php @@ -1,35 +1,56 @@ addMessage('Adblock configuration updated successfully', 'success'); + } else { + $status->addMessage('Adblock configuration failed to be updated.', 'danger'); + } + } + } exec('pidof dnsmasq | wc -l', $dnsmasq); $dnsmasq_state = ($dnsmasq[0] > 0); $serviceStatus = $dnsmasq_state ? "up" : "down"; - + echo renderTemplate( "adblock", compact( "status", - "serviceStatus" + "serviceStatus", + "arrConf" ) ); } -/** - * BZ: todo - * - */ -function SaveAdBlockConfig() -{ -} +