mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 04:24:45 -04:00
Refactor PHP request handling and return codes.
This commit is contained in:
parent
e275ecac07
commit
6ad53ec2aa
5 changed files with 50 additions and 53 deletions
|
@ -101,7 +101,7 @@ class Bootstrap {
|
|||
|
||||
// EXTERNAL COMMANDS
|
||||
$cmds = Util::load_commented_json(CMDS_PATH);
|
||||
if (sizeof($cmds) === 0 || Util::has_request_param("updatecmds")) {
|
||||
if (sizeof($cmds) === 0 || Util::get_boolean_request_param("updatecmds", false)) {
|
||||
$cmds["command"] = Util::exec_0("command -v command");
|
||||
$cmds["which"] = Util::exec_0("which which");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue