| | |
| | | <?php |
| | | |
| | | /* |
| | | Copyright (c) 2006, Till Brehm, projektfarm Gmbh |
| | | Copyright (c) 2007, Till Brehm, projektfarm Gmbh |
| | | All rights reserved. |
| | | |
| | | Redistribution and use in source and binary forms, with or without modification, |
| | |
| | | @touch($conf["temppath"].$conf["fs_div"].".ispconfig_lock"); |
| | | $app->log("Set Lock: ".$conf["temppath"].$conf["fs_div"].".ispconfig_lock"); |
| | | |
| | | // Load required base-classes |
| | | $this->uses('ini_parser,modules,plugins'); |
| | | |
| | | // Get server configuration |
| | | $this->uses('ini_parser'); |
| | | $conf["serverconfig"] = $app->ini_parser->parse_ini_string(stripslashes($server_db_record["config"])); |
| | | |
| | | // Run the configuration modules |
| | | if($server_db_record["mail_server"] == 1) { |
| | | $app->uses('mod_mail_'.$conf["serverconfig"]["mail"]["module"]); |
| | | } |
| | | /* |
| | | Load the modules that are im the mods-enabled folder |
| | | */ |
| | | |
| | | if($server_db_record["web_server"] == 1) { |
| | | $app->uses('mod_web_'.$conf["serverconfig"]["web"]["module"]); |
| | | } |
| | | $this->modules->loadModules(); |
| | | |
| | | if($server_db_record["dns_server"] == 1) { |
| | | $app->uses('mod_dns_'.$conf["serverconfig"]["dns"]["module"]); |
| | | } |
| | | |
| | | if($server_db_record["file_server"] == 1) { |
| | | $app->uses('mod_file_'.$conf["serverconfig"]["file"]["module"]); |
| | | } |
| | | /* |
| | | Load the plugins that are in the plugins-enabled folder |
| | | */ |
| | | |
| | | if($server_db_record["db_server"] == 1) { |
| | | $app->uses('mod_db_'.$conf["serverconfig"]["db"]["module"]); |
| | | } |
| | | $this->plugins->loadPlugins(); |
| | | |
| | | if($server_db_record["vserver_server"] == 1) { |
| | | $app->uses('mod_vserver_'.$conf["serverconfig"]["vserver"]["module"]); |
| | | } |
| | | /* |
| | | Go trough the sys_datalog table and call the processing functions |
| | | in the modules that are hooked on to the table actions |
| | | */ |
| | | $this->modules->processDatalog(); |
| | | |
| | | // Remove lock |
| | | @unlink($conf["temppath"].$conf["fs_div"].".ispconfig_lock"); |