]> git.mxchange.org Git - hub.git/blobdiff - application/hub/init.php
Moved some code to BaseListener and called it + updated 'core'.
[hub.git] / application / hub / init.php
index d5920d42ab95ed2fe7b91eac213eb85ab978d7ef..1c750dc767578fcc8de7ab8ad209ff0151a469a1 100644 (file)
@@ -7,7 +7,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0
- * @copyright  Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2012 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());
+
+// By default scrypt is assumed absent and later tested being there
+$cfg->setConfigEntry('extension_scrypt_loaded', FALSE);
 
 // [EOF]
 ?>