예제 #1
0
    exit;
}
if (isset($_GET["greensql-logs"])) {
    greensql_logs();
    exit;
}
if (isset($_GET["restart-postfix-all"])) {
    restart_postfix_all();
    exit;
}
if (isset($_GET["restart-apache-groupware"])) {
    restart_apache_groupware();
    exit;
}
if (isset($_GET["restart-artica-status"])) {
    restart_artica_status();
    exit;
}
if (isset($_GET["restart-instant-messaging"])) {
    restart_instant_messaging();
    exit;
}
if (isset($_GET["UpdateUtility-dbsize"])) {
    UpdateUtilityDBSize();
    exit;
}
if (isset($_GET["stop-nscd"])) {
    stop_nscd();
    exit;
}
if (isset($_GET["restart-lighttpd"])) {
예제 #2
0
function create_articaweb($websitename)
{
    if ($websitename == null) {
        return;
    }
    $sock = new sockets();
    $sock->SET_INFO("EnableFreeWeb", 1);
    restart_artica_status();
    restart_apache_src();
    include_once dirname(__FILE__) . "/ressources/class.freeweb.inc";
    $free = new freeweb($websitename);
    $free->servername = $websitename;
    $free->groupware = "ARTICA_ADM";
    $free->CreateSite();
    rebuild_vhost($websitename);
}