mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 22:16:00 -04:00
Minor refactoring.
This commit is contained in:
parent
ede9f4d3f8
commit
efb447ae78
3 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@ Options
|
||||||
"indexFiles": ["index.html", "index.htm", "index.php"],
|
"indexFiles": ["index.html", "index.htm", "index.php"],
|
||||||
"ignore": ["^\\.", "^_{{pkg.name}}"],
|
"ignore": ["^\\.", "^_{{pkg.name}}"],
|
||||||
"smartBrowsing": true,
|
"smartBrowsing": true,
|
||||||
"extInNewWindow": true
|
"extInNewWindow": false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ Options
|
||||||
2: mode, servername and -version
|
2: mode, servername and -version
|
||||||
*/
|
*/
|
||||||
"mode": {
|
"mode": {
|
||||||
"enabled": true,
|
"enabled": false,
|
||||||
"display": 2
|
"display": 2
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -207,6 +207,8 @@ class Api {
|
||||||
|
|
||||||
json_exit();
|
json_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
json_fail(100, "unsupported request");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,8 +53,6 @@ if (array_key_exists("action", $_REQUEST)) {
|
||||||
$api = new Api($app);
|
$api = new Api($app);
|
||||||
$api->apply();
|
$api->apply();
|
||||||
|
|
||||||
json_fail(100, "unsupported request");
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
header("Content-type: text/html;charset=utf-8");
|
header("Content-type: text/html;charset=utf-8");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue