mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-04 00:58:38 -04:00
Some fixes.
This commit is contained in:
parent
daa1d255e2
commit
d4c6b33ed5
4 changed files with 4 additions and 3 deletions
|
@ -38,5 +38,5 @@ html.no-js.browser( lang="en" )
|
||||||
| ! ⚡
|
| ! ⚡
|
||||||
span.right
|
span.right
|
||||||
a( href="{{pkg.url}}", title="{{pkg.name}} {{pkg.version}} · {{pkg.description}}" )
|
a( href="{{pkg.url}}", title="{{pkg.name}} {{pkg.version}} · {{pkg.description}}" )
|
||||||
| powered by h5ai {{pkg.version}}
|
| powered by {{pkg.name}} {{pkg.version}}
|
||||||
span.center
|
span.center
|
||||||
|
|
|
@ -26,7 +26,7 @@ class App {
|
||||||
|
|
||||||
$consts = get_defined_constants(true);
|
$consts = get_defined_constants(true);
|
||||||
$setup = $consts["user"];
|
$setup = $consts["user"];
|
||||||
$setup["PHP_VERSION"] = PHP_VERSION;
|
// $setup["PHP_VERSION"] = PHP_VERSION;
|
||||||
unset($setup["APP_PATH"]);
|
unset($setup["APP_PATH"]);
|
||||||
unset($setup["ROOT_PATH"]);
|
unset($setup["ROOT_PATH"]);
|
||||||
unset($setup["CURRENT_PATH"]);
|
unset($setup["CURRENT_PATH"]);
|
||||||
|
|
|
@ -35,7 +35,7 @@ html.no-js.browser( lang="en" )
|
||||||
| ! ⚡
|
| ! ⚡
|
||||||
span.right
|
span.right
|
||||||
a( href="{{pkg.url}}", title="{{pkg.name}} {{pkg.version}} · {{pkg.description}}" )
|
a( href="{{pkg.url}}", title="{{pkg.name}} {{pkg.version}} · {{pkg.description}}" )
|
||||||
| powered by h5ai {{pkg.version}}
|
| powered by {{pkg.name}} {{pkg.version}}
|
||||||
span.center
|
span.center
|
||||||
|
|
||||||
div#sidebar
|
div#sidebar
|
||||||
|
|
|
@ -22,6 +22,7 @@ normalized_require_once("class-thumb");
|
||||||
setup();
|
setup();
|
||||||
$app = new App();
|
$app = new App();
|
||||||
|
|
||||||
|
header("X-Powered-By: " . NAME . "/" . VERSION);
|
||||||
if (has_request_param("action")) {
|
if (has_request_param("action")) {
|
||||||
|
|
||||||
header("Content-type: application/json;charset=utf-8");
|
header("Content-type: application/json;charset=utf-8");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue