Ejemplo n.º 1
0
function parseconfig()
{
    $GLOBALS["ProxyUseArticaDB"] = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/ProxyUseArticaDB"));
    $GLOBALS["EnableSquidRemoteMySQL"] = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/EnableSquidRemoteMySQL"));
    $GLOBALS["squidRemostatisticsServer"] = trim(@file_get_contents("/etc/artica-postfix/settings/Daemons/squidRemostatisticsServer"));
    $GLOBALS["squidRemostatisticsPort"] = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/squidRemostatisticsPort"));
    $GLOBALS["squidRemostatisticsUser"] = trim(@file_get_contents("/etc/artica-postfix/settings/Daemons/squidRemostatisticsUser"));
    $GLOBALS["squidRemostatisticsPassword"] = trim(@file_get_contents("/etc/artica-postfix/settings/Daemons/squidRemostatisticsPassword"));
    if (!is_file("/etc/artica-postfix/settings/Daemons/DisableLogFileDaemonMySQL")) {
        $GLOBALS["DisableLogFileDaemonMySQL"] = 1;
    } else {
        $GLOBALS["DisableLogFileDaemonMySQL"] = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/DisableLogFileDaemonMySQL"));
    }
    ConfigUfdcat();
}
Ejemplo n.º 2
0
function parseconfig()
{
    $GLOBALS["ProxyUseArticaDB"] = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/ProxyUseArticaDB"));
    $GLOBALS["EnableSquidRemoteMySQL"] = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/EnableSquidRemoteMySQL"));
    $GLOBALS["squidRemostatisticsServer"] = trim(@file_get_contents("/etc/artica-postfix/settings/Daemons/squidRemostatisticsServer"));
    $GLOBALS["squidRemostatisticsPort"] = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/squidRemostatisticsPort"));
    $GLOBALS["squidRemostatisticsUser"] = trim(@file_get_contents("/etc/artica-postfix/settings/Daemons/squidRemostatisticsUser"));
    $GLOBALS["squidRemostatisticsPassword"] = trim(@file_get_contents("/etc/artica-postfix/settings/Daemons/squidRemostatisticsPassword"));
    $GLOBALS["EnableArticaMetaClient"] = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/EnableArticaMetaClient"));
    $GLOBALS["LogFileDaemonMaxEvents"] = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/LogFileDaemonMaxEvents"));
    $GLOBALS["UserAgentsStatistics"] = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/UserAgentsStatistics"));
    if (!isset($GLOBALS["LogFileDaemonMaxMin"])) {
        $GLOBALS["LogFileDaemonMaxMin"] = 1;
    }
    if ($GLOBALS["LogFileDaemonMaxEvents"] == 0) {
        $GLOBALS["LogFileDaemonMaxEvents"] = 500;
    }
    if ($GLOBALS["LogFileDaemonMaxMin"] == 0) {
        $GLOBALS["LogFileDaemonMaxMin"] = 1;
    }
    if (!is_file("/etc/artica-postfix/settings/Daemons/DisableLogFileDaemonMySQL")) {
        $GLOBALS["DisableLogFileDaemonMySQL"] = 1;
    } else {
        $GLOBALS["DisableLogFileDaemonMySQL"] = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/DisableLogFileDaemonMySQL"));
    }
    if (is_file("/etc/squid3/EnableArticaMetaClient_ON")) {
        $GLOBALS["EnableArticaMetaClient"] = 1;
    }
    ConfigUfdcat();
}