Пример #1
0
function reconf_squid()
{
    $tpl = new templates();
    $hostid = $_POST["reconf-squid"];
    $q = new blackboxes($hostid);
    if (!$q->reconfigure_squid()) {
        $tpl->javascript_parse_text("{failed}: {$q->ipaddress}");
        return;
    }
    echo $tpl->javascript_parse_text("{success}: {$q->ipaddress}");
}
function SaveBooster()
{
    $blackboxes = new blackboxes($_POST["uuid"]);
    $blackboxes->SET_SQUID_POST_INFO($_POST);
    $blackboxes->reconfigure_squid();
}