--- /dev/null
+Deny from all
--- /dev/null
+<?php
+/**
+ * A framework-bootstrap class which helps the frameworks to bootstrap ... ;-)
+ *
+ * @author Roland Haeder <webmaster@ship-simu.org>
+ * @version 0.0.0
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2016 Core Developer Team
+ * @license GNU GPL 3.0 or any newer version
+ * @link http://www.ship-simu.org
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+class BootstrapFramework {
+ /**
+ * Private constructor, no instance is needed from this class as only
+ * static methods exist.
+ */
+ private function __construct () {
+ // Prevent making instances from this "utilities" class
+ }
+}
+
+// [EOF]
+?>
$cfg->setDefaultTimezone('Europe/Berlin');
// CFG: MAGIC-QUOTES-RUNTIME
+// @DEPRECATED As PHP is deprecating this
$cfg->setMagicQuotesRuntime(FALSE);
// CFG: CLASS-PREFIX
$cfg->setConfigEntry('rnd_str_length', 128);
// CFG: HASH-EXTRA-MASK
-$cfg->setConfigEntry('hash_extra_mask', "%1s:%2s:%3s"); // 1=salt, 2=extra salt, 3=plain password/string
+$cfg->setConfigEntry('hash_extra_mask', '%1s:%2s:%3s'); // 1=salt, 2=extra salt, 3=plain password/string
// CFG: HASH-NORMAL-MASK
-$cfg->setConfigEntry('hash_normal_mask', "%1s:%2s"); // 1=salt, 2=plain password/string
+$cfg->setConfigEntry('hash_normal_mask', '%1s:%2s'); // 1=salt, 2=plain password/string
// CFG: IS-SINGLE-SERVER
$cfg->setConfigEntry('is_single_server', 'Y');
// CFG: EXTENSION-UUID-LOADED (By default uuid is assumed absent and later tested being there)
$cfg->setConfigEntry('extension_uuid_loaded', FALSE);
+// Remove config from this name-space. Don't worry, no configuration is cleared.
+unset($cfg);
+
// [EOF]
?>
<?php
/**
- * Additional configurations
+ * Additional configuration entries. Do not duplicate it here, instead copy
+ * this to your application's base path (with -dist), add it with "git add" and
+ * ignore config-local.php (add to .gitignore in root path).
*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2016 Core Developer Team
* @license GNU GPL 3.0 or any newer version
*
* This program is free software: you can redistribute it and/or modify
}
/**
- * The application's main entry point. This class isolates some local
+ * The framework's main entry point. This class isolates some local
* variables which shall not become visible to outside because of security
- * concerns. We are doing this here to "emulate" the well-known entry
- * point in Java.
+ * concerns. This is done here to "emulate" the well-known entry point in
+ * Java.
*
* @return void
*/
public static final function main () {
- // Load config file
+ // Load config file, this provides $cfg
require(self::detectCorePath() . '/inc/config.php');
+ // Get a new configuration instance
+ $cfg = FrameworkConfiguration::getSelfInstance();
+
+ // Load bootstrap class
+ require($cfg->getConfigEntry('base_path') . 'inc/bootstrap/class_BootstrapFramework.php');
+
+ // ----- Below is deprecated -----
+
// Load all include files
require($cfg->getConfigEntry('base_path') . 'inc/includes.php');
// Include the application selector
require($cfg->getConfigEntry('base_path') . 'inc/selector.php');
- } // END - main()
-} // END - class
+ }
+}
// Developer mode active? Comment out if no dev!
define('DEVELOPER', TRUE);
//xdebug_start_trace();
-// Do not remove the following line:
+// Call above main() method
ApplicationEntryPoint::main();
// [EOF]