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; } }
$root = $hash[$i]["apachedocumentroot"][0]; $wwwservertype = trim($hash[$i]["wwwservertype"][0]); $apacheservername = trim($hash[$i]["apacheservername"][0]); $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]);