<?php include_once "htmllib/lib/include.php"; initProgram('admin'); PrepareHordeDb(); PrepareRoundCubeDb();
function installHorde() { global $sgbl; $path_webmail = "{$sgbl->__path_kloxo_httpd_root}/webmail"; $path_horde = "{$sgbl->__path_kloxo_httpd_root}/webmail/horde"; PrepareHordeDb(); log_cleanup("Initialize Horde files"); log_cleanup("- Initialize process"); if (lxfile_exists($path_webmail)) { lxfile_generic_chown_rec($path_webmail, 'lxlabs:lxlabs'); lxfile_generic_chown_rec("{$path_horde}/logs", 'apache:apache'); lxfile_generic_chown_rec("{$path_horde}/temp", 'apache:apache'); lxfile_rm('/var/cache/kloxo/horde.log'); } }