]> git.mxchange.org Git - hub.git/blobdiff - application/hub/init.php
Also here ???? ;-(
[hub.git] / application / hub / init.php
index a3b04697f3728ec246f78e403130ac0446dd70ec..548d5172ed4c5ba112e3357e7699d5736079ddc4 100644 (file)
@@ -7,7 +7,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0
- * @copyright  Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2014 Hub Developer Team
+ * @copyright  Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2015 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  *
  * This program is free software: you can redistribute it and/or modify
 $cfg = FrameworkConfiguration::getSelfInstance();
 
 // Initialize output system
-require($cfg->getConfigEntry('base_path') . 'inc/output.php');
+ApplicationHelper::createDebugInstance('ApplicationHelper');
 
 // This application needs a database connection then we have to simply include
 // the inc/database.php script
 require($cfg->getConfigEntry('base_path') . 'inc/database.php');
 
-// Get's our IP address
-ConsoleTools::acquireSelfIPAddress();
+// Get own internal address and set it in config
+$cfg->setConfigEntry('internal_address', HubTools::determineOwnInternalAddress());
 
 // [EOF]
 ?>