示例#1
0
<?php

include_once "htmllib/lib/include.php";
initProgram('admin');
PrepareRoundCubeDb();
示例#2
0
文件: lib.php 项目: zseand/kloxo
function installRoundCube()
{
    global $sgbl;
    $path_webmail = "{$sgbl->__path_kloxo_httpd_root}/webmail";
    $path_roundcube = "{$sgbl->__path_kloxo_httpd_root}/webmail/roundcube";
    PrepareRoundCubeDb();
    log_cleanup("Initialize Roundcube files");
    log_cleanup("- Initialize process");
    if (lxfile_exists($path_webmail)) {
        lxfile_generic_chown_rec($path_webmail, 'lxlabs:lxlabs');
        lxfile_generic_chown_rec("{$path_roundcube}/logs", 'apache:apache');
        lxfile_generic_chown_rec("{$path_roundcube}/temp", 'apache:apache');
        lxfile_rm('/var/cache/kloxo/roundcube.log');
    }
}