This commit is contained in:
Uwe Steinmann 2016-10-05 16:23:22 +02:00
parent 097bba4591
commit c670ca4639
39 changed files with 61 additions and 61 deletions

View File

@ -27,7 +27,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('adddocument')) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -27,7 +27,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('addsubfolder')) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -30,7 +30,7 @@ if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('addtransitiontoworkflow')) {
UI::exitError(getMLText("workflow_title"),getMLText("invalid_request_token"));
}

View File

@ -27,7 +27,7 @@ include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassAccessOperation.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('approvedocument')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -34,7 +34,7 @@ else $action=NULL;
// add new attribute definition ---------------------------------------------
if ($action == "addattrdef") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('addattrdef')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -81,7 +81,7 @@ if ($action == "addattrdef") {
// delete attribute definition -----------------------------------------------
else if ($action == "removeattrdef") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removeattrdef')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -108,7 +108,7 @@ else if ($action == "removeattrdef") {
// edit attribute definition -----------------------------------------------
else if ($action == "editattrdef") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editattrdef')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}

View File

@ -34,7 +34,7 @@ else $action=NULL;
//Neue Kategorie anlegen -----------------------------------------------------------------------------
if ($action == "addcategory") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('addcategory')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -56,7 +56,7 @@ if ($action == "addcategory") {
//Kategorie löschen ----------------------------------------------------------------------------------
else if ($action == "removecategory") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removecategory')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -79,7 +79,7 @@ else if ($action == "removecategory") {
//Kategorie bearbeiten: Neuer Name --------------------------------------------------------------------
else if ($action == "editcategory") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editcategory')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}

View File

@ -23,7 +23,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('clearcache')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}

View File

@ -34,7 +34,7 @@ else $action=NULL;
// Create new keyword category ------------------------------------------
if ($action == "addcategory") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('addcategory')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -56,7 +56,7 @@ if ($action == "addcategory") {
// Delete keyword categorie ---------------------------------------------
else if ($action == "removecategory") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removecategory')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -83,7 +83,7 @@ else if ($action == "removecategory") {
// Modify keyword categorie: new name -----------------------------------
else if ($action == "editcategory") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editcategory')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -111,7 +111,7 @@ else if ($action == "editcategory") {
// Modify keyword categorie: new list of keywords -----------------------
else if ($action == "newkeywords") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('newkeywords')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -134,7 +134,7 @@ else if ($action == "newkeywords") {
// Modify keyword categorie: modify list of keywords -------------------
else if ($action == "editkeywords")
{
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editkeywords')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -168,7 +168,7 @@ else if ($action == "editkeywords")
// Modify keyword categorie: delete list of keywords --------------------
else if ($action == "removekeywords") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removekeywords')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}

View File

@ -43,7 +43,7 @@ if ($document->getAccessMode($user) < M_ALL) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
/* FIXME: Currently GET request are allowed. */
if(!checkFormKey('documentaccess', 'GET')) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_request_token"));

View File

@ -27,7 +27,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editattributes')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -27,7 +27,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editcomment')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -32,7 +32,7 @@ if ($user->isGuest()) {
UI::exitError(getMLText("edit_event"),getMLText("access_denied"));
}
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editevent')) {
UI::exitError(getMLText("edit_event"),getMLText("invalid_request_token"));
}

View File

@ -43,7 +43,7 @@ if ($folder->getAccessMode($user) < M_ALL) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied"));
}
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
/* FIXME: Currently GET request are allowed. */
if(!checkFormKey('folderaccess', 'GET')) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("invalid_request_token"));

View File

@ -36,7 +36,7 @@ else $action = null;
// Create new group --------------------------------------------------------
if ($action == "addgroup") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('addgroup')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -63,7 +63,7 @@ if ($action == "addgroup") {
// Delete group -------------------------------------------------------------
else if ($action == "removegroup") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removegroup')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -91,7 +91,7 @@ else if ($action == "removegroup") {
// Modifiy group ------------------------------------------------------------
else if ($action == "editgroup") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editgroup')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -123,7 +123,7 @@ else if ($action == "editgroup") {
// Add user to group --------------------------------------------------------
else if ($action == "addmember") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('addmember')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -161,7 +161,7 @@ else if ($action == "addmember") {
// Remove user from group --------------------------------------------------
else if ($action == "rmmember") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('rmmember')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -196,7 +196,7 @@ else if ($action == "rmmember") {
// toggle manager flag
else if ($action == "tmanager") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('tmanager')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}

View File

@ -28,7 +28,7 @@ if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removearchive')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}

View File

@ -25,7 +25,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removedocument')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -24,7 +24,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removedocumentfile')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -24,7 +24,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removedocumentlink')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -28,7 +28,7 @@ if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removedump')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}

View File

@ -28,7 +28,7 @@ include("../inc/inc.ClassUI.php");
include("../inc/inc.Calendar.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removeevent')) {
UI::exitError(getMLText("edit_event"),getMLText("invalid_request_token"));
}

View File

@ -25,7 +25,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removefolder')) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -28,7 +28,7 @@ if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removefolderfiles')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}

View File

@ -24,7 +24,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removelog')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}

View File

@ -29,7 +29,7 @@ if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removetransitionfromworkflow')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -25,7 +25,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removeversion')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -29,7 +29,7 @@ if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removeworkflow')) {
UI::exitError(getMLText("workflow_editor"), getMLText("invalid_request_token"));
}

View File

@ -29,7 +29,7 @@ if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removeworkflowaction')) {
UI::exitError(getMLText("workflow_editor"), getMLText("invalid_request_token"));
}

View File

@ -29,7 +29,7 @@ if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removeworkflowfromdocument')) {
UI::exitError(getMLText("workflow_editor"), getMLText("invalid_request_token"));
}

View File

@ -29,7 +29,7 @@ if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removeworkflowstate')) {
UI::exitError(getMLText("workflow_editor"), getMLText("invalid_request_token"));
}

View File

@ -25,7 +25,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('returnfromsubworkflow')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -27,7 +27,7 @@ include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassAccessOperation.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('reviewdocument')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -29,7 +29,7 @@ if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('rewindworkflow')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -25,7 +25,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('runsubworkflow')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -26,7 +26,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('setworkflow')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -25,7 +25,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('triggerworkflow')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}

View File

@ -38,7 +38,7 @@ else $action=NULL;
// add new user ---------------------------------------------------------
if ($action == "adduser") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('adduser')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -133,7 +133,7 @@ if ($action == "adduser") {
// delete user ------------------------------------------------------------
else if ($action == "removeuser") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removeuser')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -176,7 +176,7 @@ else if ($action == "removeuser") {
// modify user ------------------------------------------------------------
else if ($action == "edituser") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('edituser')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}

View File

@ -38,7 +38,7 @@ else $action=NULL;
// add new workflow ---------------------------------------------------------
if ($action == "addworkflowaction") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('addworkflowaction')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -61,7 +61,7 @@ if ($action == "addworkflowaction") {
// delete user ------------------------------------------------------------
else if ($action == "removeworkflowaction") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removeworkflowaction')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -91,7 +91,7 @@ else if ($action == "removeworkflowaction") {
// modify workflow ---------------------------------------------------------
else if ($action == "editworkflowaction") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editworkflowaction')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}

View File

@ -38,7 +38,7 @@ else $action=NULL;
// add new workflow ---------------------------------------------------------
if ($action == "addworkflow") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('addworkflow')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -71,7 +71,7 @@ if ($action == "addworkflow") {
// delete workflow --------------------------------------------------------
else if ($action == "removeworkflow") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removeworkflow')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -101,7 +101,7 @@ else if ($action == "removeworkflow") {
// modify workflow ---------------------------------------------------------
else if ($action == "editworkflow") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editworkflow')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}

View File

@ -38,7 +38,7 @@ else $action=NULL;
// add new workflow ---------------------------------------------------------
if ($action == "addworkflowstate") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('addworkflowstate')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -62,7 +62,7 @@ if ($action == "addworkflowstate") {
// delete user ------------------------------------------------------------
else if ($action == "removeworkflowstate") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removeworkflowstate')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
@ -92,7 +92,7 @@ else if ($action == "removeworkflowstate") {
// modify workflow ---------------------------------------------------------
else if ($action == "editworkflowstate") {
/* Check if the form data comes for a trusted request */
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editworkflowstate')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}