isAdmin()) { UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); } /* Check if the form data comes from a trusted request */ if(!checkFormKey('removeworkflowaction', 'GET')) { UI::exitError(getMLText("workflow_editor"), getMLText("invalid_request_token")); } if (!isset($_GET["workflowactionid"]) || !is_numeric($_GET["workflowactionid"]) || intval($_GET["workflowactionid"])<1) { UI::exitError(getMLText("workflow_editor"), getMLText("invalid_version")); } $workflowaction = $dms->getWorkflowAction($_GET["workflowactionid"]); if (!is_object($workflowaction)) { UI::exitError(getMLText("workflow_editor"), getMLText("invalid_workflow_action")); } if($workflowaction->remove()) { $session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_rm_workflow_action'))); } else { $session->setSplashMsg(array('type'=>'error', 'msg'=>getMLText('error_rm_workflow_action'))); } add_log_line("?workflowactionid=".$_GET["workflowactionid"]); header("Location:../out/out.WorkflowActionsMgr.php"); ?>