Esempio n. 1
0
function main_icap_rebuildKaspersky()
{
    $hostname = $_GET["hostname"];
    $squid = new squid($hostname);
    unset($squid->icap_service_array["is_kav_resp"]);
    unset($squid->icap_service_array["is_kav_req"]);
    unset($squid->icap_class_array["ic_kav_resp"]);
    unset($squid->icap_class_array["ic_kav_req"]);
    $squid->icap_class_array["ic_kav_resp"] = "is_kav_resp";
    $squid->icap_service_array["is_kav_resp"] = array("name" => "is_kav_resp", "vpoint" => "respmod_precache", "bypass" => 0, "url" => "127.0.0.1:1344/av/respmod");
    $squid->icap_add_restrictions_rule("ic_kav_resp", 'allow', 'all', 'no');
    $squid->SaveToLdap();
}