ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); } include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once "ressources/class.sockets.inc"; include_once dirname(__FILE__) . '/ressources/class.os.system.inc'; include_once dirname(__FILE__) . '/framework/class.unix.inc'; include_once dirname(__FILE__) . '/framework/frame.class.inc'; $GLOBALS["LOGON-PAGE"] = true; if ($GLOBALS["DEBUG"]) { echo "Starting...{$argv[1]}\n"; } $GLOBALS["langs"] = array("fr", "en", "po", "es", "it", "br", "pol"); if ($argv[1] == "--remove") { remove_ipcs(); die; } if ($argv[1] == "--dump") { output_ipcs(); die; } if ($argv[1] == "--dump-pages") { dump_pages(); die; } if ($argv[1] == "--parse-langs") { CompactLang(); die; } if ($argv[1] == "--compile-lang") {
function service_up() { remove_ipcs(); $unix = new unix(); $nohup = $unix->find_program("nohup"); $rm = $unix->find_program("rm"); shell_exec("{$nohup} {$rm} -f /usr/share/artica-postfix/ressources/logs/web/*.cache >/dev/null 2>&1 &"); shell_exec("{$nohup} {$rm} -f /usr/share/artica-postfix/ressources/logs/web/cache/* >/dev/null 2>&1 &"); @chmod("/var/log/php.log", 0777); }