Пример #1
0
function ApplyConfig()
{
    $unix = new unix();
    $squid = new squidbee();
    writelogs("->BuildBlockedSites", __FUNCTION__, __FILE__, __LINE__);
    $squid->BuildBlockedSites();
    acl_clients_ftp();
    acl_whitelisted_browsers();
    acl_allowed_browsers();
    $SQUID_CONFIG_PATH = $unix->SQUID_CONFIG_PATH();
    if (!is_file($SQUID_CONFIG_PATH)) {
        writelogs("Unable to stat squid configuration file \"{$SQUID_CONFIG_PATH}\"", __FUNCTION__, __FILE__, __LINE__);
        return;
    }
    echo "Starting......: Squid building main configuration done\n";
    $squid = new squidbee();
    $conf = $squid->BuildSquidConf();
    @file_put_contents("/etc/artica-postfix/settings/Daemons/GlobalSquidConf", $conf);
    @file_put_contents($SQUID_CONFIG_PATH, $conf);
    if ($squid->EnableKerbAuth) {
        shell_exec($unix->LOCATE_PHP5_BIN() . " " . dirname(__FILE__) . "/exec.kerbauth.php --build");
    }
    squidclamav();
    wrapzap();
    certificate_generate();
    SQUID_TEMPLATES();
    CheckFilesAndSecurity();
}
Пример #2
0
    exit;
}
if (isset($_GET["squid-task-caches"])) {
    SQUID_TASK_CACHE();
    exit;
}
if (isset($_GET["squid-wrapzap"])) {
    SQUID_WRAPZAP();
    exit;
}
if (isset($_GET["adzapper-compile"])) {
    SQUID_WRAPZAP_COMPILE();
    exit;
}
if (isset($_GET["squid-templates"])) {
    SQUID_TEMPLATES();
    exit;
}
if (isset($_GET["squid-rebuild"])) {
    squid_rebuild();
    exit;
}
if (isset($_GET["squid-reconstruct-caches"])) {
    SQUID_CACHES_RECONSTRUCT();
    exit;
}
if (isset($_GET["Sarg-Scan"])) {
    SQUID_SARG_SCAN();
    exit;
}
if (isset($_GET["squid-GetOrginalSquidConf"])) {
Пример #3
0
if(isset($_GET["ssh-keygen-fingerprint"])){SSHD_KEY_FINGERPRINT();exit;}
if(isset($_GET["ssh-keygen-download"])){SSHD_KEY_DOWNLOAD_PUB();exit;}
if(isset($_GET["sshd-authorized-keys"])){SSHD_KEY_UPLOAD_PUB();exit;}

//SQUID

if(isset($_GET["squid-status"])){SQUID_STATUS();exit;}
if(isset($_GET["squid-reload"])){SQUID_RELOAD();exit;}
if(isset($_GET["squid-ini-status"])){SQUID_INI_STATUS();exit;}
if(isset($_GET["squid-restart-now"])){SQUID_RESTART_NOW();exit;}
if(isset($_GET["force-restart-squid"])){SQUID_RESTART_ALL();exit;}
if(isset($_GET["squid-build-caches"])){SQUID_CACHES();exit;}
if(isset($_GET["squid-task-caches"])){SQUID_TASK_CACHE();exit;}
if(isset($_GET["squid-wrapzap"])){SQUID_WRAPZAP();exit;}
if(isset($_GET["adzapper-compile"])){SQUID_WRAPZAP_COMPILE();exit;}
if(isset($_GET["squid-templates"])){SQUID_TEMPLATES();exit;}
if(isset($_GET["squid-rebuild"])){squid_rebuild();exit;}
if(isset($_GET["squid-reconstruct-caches"])){SQUID_CACHES_RECONSTRUCT();exit;}




if(isset($_GET["Sarg-Scan"])){SQUID_SARG_SCAN();exit;}
if(isset($_GET["squid-GetOrginalSquidConf"])){squid_originalconf();exit;}
if(isset($_GET["MalwarePatrol"])){MalwarePatrol();exit;}
if(isset($_GET["MalwarePatrol-list"])){MalwarePatrol_list();exit;}


if(isset($_GET["force-upgrade-squid"])){SQUID_FORCE_UPGRADE();exit;}
if(isset($_GET["squid-cache-infos"])){SQUID_CACHE_INFOS();exit;}