Refactor bootstrap.

This commit is contained in:
Lars Jung 2015-05-06 13:11:37 +02:00
parent 85be66886a
commit 1975715dbd
4 changed files with 4 additions and 3 deletions

View file

@ -65,7 +65,7 @@
#hint {
margin: 12px auto;
width: 380px;
width: 400px;
font-weight: lighter;
}

View file

@ -15,7 +15,7 @@ modulejs.define('main/info', ['$', 'config'], function ($, config) {
'<span id="logout">logout</span>' +
'<div id="hint">' +
'The preset password is the empty string, so just hit login. ' +
'You might change it in the index file to keep this information private.' +
'You might change it in server/php/config.php to keep this information private.' +
'</div>' +
'</div>';
var setup = config.setup;

View file

@ -4,6 +4,8 @@ class Bootstrap {
public static function run() {
normalized_require_once("config");
$bs = new Bootstrap();
$bs->setup_php();
$bs->setup_app();

View file

@ -23,5 +23,4 @@ function __autoload($class_name) {
normalized_require_once("inc/class-" . strtolower($class_name));
}
normalized_require_once("config");
Bootstrap::run();