require_once() is inperformant, replace with require()
[core.git] / inc / config.php
index d46207331f9b536d02bdaa54a389cb10994f1438..7cfb67b173112daf99b2237d1d6c9491e298809b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007 - 2009 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -25,9 +25,9 @@
  */
 
 // Load the class from inc/config direktory
-require_once(dirname(__FILE__) . '/classes/interfaces/class_FrameworkInterface.php');
-require_once(dirname(__FILE__) . '/classes/interfaces/registry/class_Registerable.php');
-require_once(dirname(__FILE__) . '/config/class_FrameworkConfiguration.php');
+require(dirname(__FILE__) . '/classes/interfaces/class_FrameworkInterface.php');
+require(dirname(__FILE__) . '/classes/interfaces/registry/class_Registerable.php');
+require(dirname(__FILE__) . '/config/class_FrameworkConfiguration.php');
 
 // Get a new configuration instance
 $cfg = FrameworkConfiguration::getInstance();
@@ -80,8 +80,11 @@ $cfg->setConfigEntry('lang_base_path', "inc/language/");
 // CFG: COMPRESSOR-BASE-PATH
 $cfg->setConfigEntry('compressor_base_path', "inc/classes/main/compressor/");
 
+// CFG: APPLICATION-BASE-PATH
+$cfg->setConfigEntry('application_base_path', "application/");
+
 // CFG: APPLICATION-PATH
-$cfg->setConfigEntry('application_path', $cfg->readConfig('base_path') . "application/");
+$cfg->setConfigEntry('application_path', $cfg->readConfig('base_path') . $cfg->readConfig('application_base_path'));
 
 // CFG: COMPILE-OUTPUT-PATH
 $cfg->setConfigEntry('compile_output_path', "templates/_compiled/");
@@ -105,7 +108,7 @@ $cfg->setConfigEntry('email_template_type', "emails");
 $cfg->setConfigEntry('code_template_type', "code");
 
 // CFG: WEB-ENGINE
-$cfg->setConfigEntry('web_engine', "WebOutput");
+$cfg->setConfigEntry('output_class', "WebOutput");
 
 // CFG: SELECTOR-TEMPLATE-PREFIX
 $cfg->setConfigEntry('tpl_selector_prefix', "selector");