Ejemplo n.º 1
0
function main_icap_class_add_ajax()
{
    $class_name = $_GET["SquidIcapAddNewClass"];
    $hostname = $_GET["hostname"];
    $icap_service = $_GET["icap_service"];
    if (trim($icap_service) == null) {
        return null;
    }
    $squid = new squid($_GET["hostname"]);
    $squid->Add_icap_class($class_name, $icap_service);
    $squid->SaveToLdap();
}