1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00
raspap-webgui/includes/adblock.php

36 lines
551 B
PHP
Raw Normal View History

2020-03-26 20:45:39 +01:00
<?php
require_once 'includes/status_messages.php';
require_once 'app/lib/system.php';
require_once 'config.php';
/**
*
*
*/
function DisplayAdBlockConfig()
{
$status = new StatusMessages();
$system = new System();
exec('pidof dnsmasq | wc -l', $dnsmasq);
$dnsmasq_state = ($dnsmasq[0] > 0);
$serviceStatus = $dnsmasq_state ? "up" : "down";
echo renderTemplate(
"adblock", compact(
"status",
"serviceStatus"
)
);
}
/**
* BZ: todo
*
*/
function SaveAdBlockConfig()
{
}