php: submit filled form

This commit is contained in:
Alexandr Fedorov
2021-02-19 15:00:17 +03:00
parent 2635306e2e
commit 1cf5b1eea5
3 changed files with 30 additions and 12 deletions

View File

@ -72,6 +72,7 @@
$editorsMode = empty($_GET["action"]) ? "edit" : $_GET["action"];
$canEdit = in_array(strtolower('.' . pathinfo($filename, PATHINFO_EXTENSION)), $GLOBALS['DOC_SERV_EDITED']);
$submitForm = $canEdit && ($editorsMode == "edit" || $editorsMode == "fillForms");
$mode = $canEdit && $editorsMode != "view" ? "edit" : "view";
$config = [
@ -117,7 +118,8 @@
"customization" => [
"about" => true,
"feedback" => true,
"forcesave" => false,
"forcesave" => true,
"submitForm" => $submitForm,
"goback" => [
"url" => serverPath(),
]