Exemple #1
0
}
//apache-groupware
if (isset($_GET["reload-apache-groupware"])) {
    ReloadApacheGroupWare();
    exit;
}
if (isset($_GET["build-vhosts"])) {
    BuildVhosts();
    exit;
}
if (isset($_GET["vhost-delete"])) {
    DeleteVHosts();
    exit;
}
if (isset($_GET["install-joomla"])) {
    JOOMLA_INSTALL();
    exit;
}
if (isset($_GET["replicate-performances-config"])) {
    ReplicatePerformancesConfig();
    exit;
}
if (isset($_GET["reload-dansguardian"])) {
    reload_dansguardian();
    exit;
}
if (isset($_GET["reload-ufdbguard"])) {
    reload_ufdbguard();
    exit;
}
if (isset($_GET["ufdbguard-recompile-missing-dbs"])) {
 $dn = $hash[$i]["dn"];
 if (preg_match("#ou=www,ou=(.+?),dc=organizations#", $dn, $re)) {
     $hash[$i]["OU"][0] = trim($re[1]);
     $ouexec = trim($re[1]);
 }
 if ($GLOBALS["ONLY"] != null) {
     if ($wwwservertype != $GLOBALS["ONLY"]) {
         continue;
     }
 }
 echo "Starting......: Apache groupware checking {$apacheservername} host ({$wwwservertype})\n";
 if ($wwwservertype == "LMB") {
     LMB_INSTALL($apacheservername, $root, $hash[$i]);
 }
 if ($wwwservertype == "JOOMLA") {
     JOOMLA_INSTALL($apacheservername, $root, $hash[$i]);
 }
 if ($wwwservertype == "ROUNDCUBE") {
     ROUNDCUBE_INSTALL($apacheservername, $root, $hash[$i]);
 }
 if ($wwwservertype == "SUGAR") {
     SUGAR_INSTALL($apacheservername, $root, $hash[$i]);
 }
 if ($wwwservertype == "ARTICA_USR") {
     ARTICA_INSTALL($apacheservername, $root, $hash[$i]);
 }
 if ($wwwservertype == "OBM2") {
     OBM2_INSTALL($apacheservername, $root, $hash[$i]);
 }
 if ($wwwservertype == "OPENGOO") {
     OPENGOO_INSTALL($apacheservername, $root, $hash[$i]);
function install_groupwares($apacheservername, $wwwservertype, $root, $hash)
{
    $dn = $hash["dn"];
    if (preg_match("#ou=www,ou=(.+?),dc=organizations#", $dn, $re)) {
        $hash["OU"][0] = trim($re[1]);
        $ouexec = trim($re[1]);
    }
    echo "Starting......: " . date("H:i:s") . " Apache groupware checking {$apacheservername} host ({$wwwservertype})\n";
    switch ($wwwservertype) {
        case "LMB":
            LMB_INSTALL($apacheservername, $root, $hash);
            break;
        case "JOOMLA":
            JOOMLA_INSTALL($apacheservername, $root, $hash);
            break;
        case "ROUNDCUBE":
            ROUNDCUBE_INSTALL($apacheservername, $root, $hash);
            break;
        case "SUGAR":
            SUGAR_INSTALL($apacheservername, $root, $hash);
            break;
        case "ARTICA_USR":
            ARTICA_INSTALL($apacheservername, $root, $hash);
            break;
        case "OBM2":
            OBM2_INSTALL($apacheservername, $root, $hash);
            break;
        case "OPENGOO":
            OPENGOO_INSTALL($apacheservername, $root, $hash);
            break;
        case "GROUPOFFICE":
            GROUPOFFICE_INSTALL($apacheservername, $root, $hash);
            break;
        case "ZARAFA":
            ZARAFA_INSTALL($apacheservername, $root, $hash);
            break;
        case "ZARAFA_MOBILE":
            ZARAFA_MOBILE_INSTALL($apacheservername, $root, $hash);
            break;
        case "DRUPAL":
            DRUPAL_INSTALL($apacheservername, $root, $hash);
            break;
        case "WEBDAV":
            WEBDAV_USERS($apacheservername, $root, $hash);
            break;
        case "PIWIGO":
            PIWIGO_INSTALL($apacheservername, $root, $hash);
            break;
        case "SQUID_STATS":
            SQUID_STATS_INSTALL($apacheservername, $root, $hash);
            break;
    }
}
Exemple #4
0
if(isset($_GET["du-dir-size"])){du_dir_size();exit;}



if(isset($_GET["view-file-logs"])){ViewArticaLogs();exit;}
if(isset($_GET["ExecuteImportationFrom"])){ExecuteImportationFrom();exit;}
if(isset($_GET["squid-reconfigure"])){RestartSquid();exit;}
if(isset($_GET["mempy"])){mempy();exit;}
if(isset($_GET["EnableEmergingThreats"])){EnableEmergingThreats();exit;}
if(isset($_GET["EnableEmergingThreatsBuild"])){EnableEmergingThreatsBuild();exit;}

//apache-groupware
if(isset($_GET["reload-apache-groupware"])){ReloadApacheGroupWare();exit;}
if(isset($_GET["build-vhosts"])){BuildVhosts();exit;}
if(isset($_GET["vhost-delete"])){DeleteVHosts();exit;}
if(isset($_GET["install-joomla"])){JOOMLA_INSTALL();exit;}

if(isset($_GET["replicate-performances-config"])){ReplicatePerformancesConfig();exit;}
if(isset($_GET["reload-dansguardian"])){reload_dansguardian();exit;}
if(isset($_GET["reload-ufdbguard"])){reload_ufdbguard();exit;}
if(isset($_GET["ufdbguard-recompile-missing-dbs"])){ufdbguard_compile_missing_dbs();exit;}
if(isset($_GET["ufdbguard-recompile-dbs"])){ufdbguard_compile_all_dbs();exit;}
if(isset($_GET["ufdbguard-compile-schedule"])){ufdbguard_compile_schedule();exit;}




if(isset($_GET["ufdbguard-compilator-events"])){ufdbguard_compilator_events();exit;}