mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
Refactor bootstrap.
This commit is contained in:
parent
85be66886a
commit
1975715dbd
4 changed files with 4 additions and 3 deletions
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
#hint {
|
#hint {
|
||||||
margin: 12px auto;
|
margin: 12px auto;
|
||||||
width: 380px;
|
width: 400px;
|
||||||
font-weight: lighter;
|
font-weight: lighter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ modulejs.define('main/info', ['$', 'config'], function ($, config) {
|
||||||
'<span id="logout">logout</span>' +
|
'<span id="logout">logout</span>' +
|
||||||
'<div id="hint">' +
|
'<div id="hint">' +
|
||||||
'The preset password is the empty string, so just hit login. ' +
|
'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>' +
|
||||||
'</div>';
|
'</div>';
|
||||||
var setup = config.setup;
|
var setup = config.setup;
|
||||||
|
|
|
@ -4,6 +4,8 @@ class Bootstrap {
|
||||||
|
|
||||||
public static function run() {
|
public static function run() {
|
||||||
|
|
||||||
|
normalized_require_once("config");
|
||||||
|
|
||||||
$bs = new Bootstrap();
|
$bs = new Bootstrap();
|
||||||
$bs->setup_php();
|
$bs->setup_php();
|
||||||
$bs->setup_app();
|
$bs->setup_app();
|
||||||
|
|
|
@ -23,5 +23,4 @@ function __autoload($class_name) {
|
||||||
normalized_require_once("inc/class-" . strtolower($class_name));
|
normalized_require_once("inc/class-" . strtolower($class_name));
|
||||||
}
|
}
|
||||||
|
|
||||||
normalized_require_once("config");
|
|
||||||
Bootstrap::run();
|
Bootstrap::run();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue