/** * Load the initializer and set the include_path * * @return void */ protected function _run() { $this->_loadInitializer(); EasySCP_Initializer::run('_setIncludePath'); }
/** * Executes all of the available initialization routines for CLI interface * * @return void */ protected function _processCLI() { // Check php version and availability of the Php Standard Library $this->_checkPhp(); // Include path $this->_setIncludePath(); // Establish the connection to the database $this->_initializeDatabase(); // Se encoding (Both PHP and database) $this->_setEncoding(); // Load all the configuration parameters from the database and merge // it to our basis configuration object $this->_processConfiguration(); self::$_initialized = true; }
// E_USER_WARNING: switching to an other account, etc // E_USER_ERROR: "admin MUST know" messages $config->LOG_LEVEL = E_USER_NOTICE; // Creation of webmaster, postmaster and abuse forwarders when // domain/alias/ subdomain is created $config->CREATE_DEFAULT_EMAIL_ADDRESSES = true; // Use hard mail suspension when suspending a domain: // true: email accounts are hard suspended (completely unreachable) // false: email accounts are soft suspended (passwords are modified so // user can't access the accounts) $config->HARD_MAIL_SUSPENSION = true; // Prevent external login (i.e. check for valid local referer) // separated in admin, reseller and client // This option allows to use external login scripts // true: prevent external login, check for referer, more secure // false: allow external login, do not check for referer, less // security (risky) $config->PREVENT_EXTERNAL_LOGIN_ADMIN = true; $config->PREVENT_EXTERNAL_LOGIN_RESELLER = true; $config->PREVENT_EXTERNAL_LOGIN_CLIENT = true; // Automatic search for new version $config->CHECK_FOR_UPDATES = true; # Converting some possible IDN to ACE (see #2476) $config->DEFAULT_ADMIN_ADDRESS = encode_idna($config->DEFAULT_ADMIN_ADDRESS); $config->SERVER_HOSTNAME = encode_idna($config->SERVER_HOSTNAME); $config->BASE_SERVER_VHOST = encode_idna($config->BASE_SERVER_VHOST); $config->DATABASE_HOST = encode_idna($config->DATABASE_HOST); // Initialize the application EasySCP_Initializer::run($config); // Remove useless variable unset($config);