function build()
{
    @mkdir("/var/log/artica-postfix/squid-reverse", 0777, true);
    @chmod("/var/log/artica-postfix/squid-reverse", 0777);
    $sock = new sockets();
    $unix = new unix();
    $nginx = $unix->find_program("nginx");
    if (is_file($nginx)) {
        $EnableNginx = $sock->GET_INFO("EnableNginx");
        if (!is_numeric($EnableNginx)) {
            $EnableNginx = 1;
        }
        if ($EnableNginx == 1) {
            echo "Starting......: " . date("H:i:s") . " Building reverse websites with nginx...\n";
            @file_put_contents("/etc/squid3/reverse.conf", "\n");
            return;
        }
    }
    $squid = new squid_reverse();
    echo "Starting......: " . date("H:i:s") . " Building reverse websites...\n";
    $q = new mysql_squid_builder();
    $squidR = new squidbee();
    $conf[] = $squid->acl_by_cache_peer();
    echo @implode("\n", $conf);
    echo "Starting......: " . date("H:i:s") . " Building /etc/squid3/reverse.conf done...\n";
    @file_put_contents("/etc/squid3/reverse.conf", @implode("\n", $conf) . "\n");
    if (!$GLOBALS["NORELOAD"]) {
        squid_admin_mysql(1, "Reconfiguring proxy service", null, __FILE__, __LINE__);
        shell_exec("/etc/init.d/squid reload --force --script=exec.squid-reverse.php/" . __LINE__);
    }
}