Commit 6c9d48c1a1d101ff0680711597aa57463475c3eb
1 parent
132d5ecf
Don't rely on register_globals or similar mechanisms to access request
parameters. Either use KTUtil::extractGPC to bring specific parameters to global scope or access them via the $_REQUEST array. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3005 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
137 changed files
with
397 additions
and
134 deletions
Too many changes.
To preserve performance only 100 of 137 files are displayed.
presentation/login.php
| ... | ... | @@ -32,7 +32,7 @@ require_once("Html.inc"); |
| 32 | 32 | |
| 33 | 33 | global $default; |
| 34 | 34 | |
| 35 | -if ($loginAction == "loginForm") { | |
| 35 | +if ($_REQUEST['loginAction'] == "loginForm") { | |
| 36 | 36 | // TODO: build login form using PatternMainPage |
| 37 | 37 | print "<html> |
| 38 | 38 | <head> |
| ... | ... | @@ -86,16 +86,16 @@ if ($loginAction == "loginForm") { |
| 86 | 86 | </body> |
| 87 | 87 | </html>"; |
| 88 | 88 | |
| 89 | -} elseif ($loginAction == "login") { | |
| 89 | +} elseif ($_REQUEST['loginAction'] == "login") { | |
| 90 | 90 | // set default url for login failure |
| 91 | 91 | // with redirect appended if set |
| 92 | 92 | $url = $url . "login.php?loginAction=loginForm" . (isset($redirect) ? "&redirect=" . urlencode($redirect) : ""); |
| 93 | 93 | |
| 94 | 94 | // if requirements are met and we have a username and password to authenticate |
| 95 | - if( isset($fUserName) && isset($fPassword) ) { | |
| 95 | + if (isset($_REQUEST['fUserName']) && isset($_REQUEST['fPassword']) ) { | |
| 96 | 96 | // verifies the login and password of the user |
| 97 | 97 | $dbAuth = new $default->authenticationClass; |
| 98 | - $userDetails = $dbAuth->login($fUserName, $fPassword); | |
| 98 | + $userDetails = $dbAuth->login($_REQUEST['fUserName'], $_REQUEST['fPassword']); | |
| 99 | 99 | |
| 100 | 100 | switch ($userDetails["status"]) { |
| 101 | 101 | // bad credentials | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/doccheckoutmanagement/editDocCheckoutBL.php
| ... | ... | @@ -26,6 +26,8 @@ |
| 26 | 26 | */ |
| 27 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 28 | 28 | |
| 29 | +KTUtil::extractGPC('fDocumentID', 'fUpdate'); | |
| 30 | + | |
| 29 | 31 | if (checkSession()) { |
| 30 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/doccheckoutmanagement/editDocCheckoutUI.inc
| ... | ... | @@ -34,10 +34,10 @@ function getErrorPage($sMessage) { |
| 34 | 34 | return statusPage(_("Edit Document Checkout"), _("Error checking in document"), $sMessage, "listDocs"); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | -function getEditCheckoutPage($fDocumentID){ | |
| 37 | +function getEditCheckoutPage($iDocumentID){ | |
| 38 | 38 | global $default; |
| 39 | 39 | |
| 40 | - $oDocument = Document::get($fDocumentID); | |
| 40 | + $oDocument = Document::get($iDocumentID); | |
| 41 | 41 | $oUser = User::get($oDocument->getCheckedOutUserID()); |
| 42 | 42 | $sToRender .= renderHeading(_("Edit Document Checkout")); |
| 43 | 43 | $sToRender .= "<table>\n"; |
| ... | ... | @@ -45,7 +45,7 @@ function getEditCheckoutPage($fDocumentID){ |
| 45 | 45 | $sToRender .= "<tr><td width=\"20%\">" . _("Path") . "</td><td><b>" . $oDocument->getDisplayPath() . "</b></td></tr>"; |
| 46 | 46 | $sToRender .= "<tr><td>" . _("Checked Out By") . "</td><td><b>" . ($oUser ? $oUser->getName() : _("Unknown")) . "</b></td></tr>"; |
| 47 | 47 | $sToRender .= "<input type=\"hidden\" name=\"fUpdate\" value=\"1\">\n"; |
| 48 | - $sToRender .= "<input type=\"hidden\" name=\"fDocumentID\" value=\"$fDocumentID\">\n"; | |
| 48 | + $sToRender .= "<input type=\"hidden\" name=\"fDocumentID\" value=\"$iDocumentID\">\n"; | |
| 49 | 49 | $sToRender .= "<tr>\n"; |
| 50 | 50 | $sToRender .= "<td colspan=\"2\" align=right>\n"; |
| 51 | 51 | $sToRender .= getUpdateButton(); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/addDocFieldSuccess.php
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/editDocFieldBL.php
| ... | ... | @@ -34,6 +34,8 @@ |
| 34 | 34 | */ |
| 35 | 35 | require_once("../../../../../config/dmsDefaults.php"); |
| 36 | 36 | |
| 37 | +KTUtil::extractGPC('fDocFieldDataType', 'fDocFieldHasLookup', 'fDocFieldID', 'fDocFieldIsGeneric', 'fDocFieldName', 'fForStore'); | |
| 38 | + | |
| 37 | 39 | if (checkSession()) { |
| 38 | 40 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 39 | 41 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| ... | ... | @@ -99,4 +101,4 @@ if (checkSession()) { |
| 99 | 101 | $main->setHasRequiredFields(true); |
| 100 | 102 | $main->render(); |
| 101 | 103 | } |
| 102 | -?> | |
| 103 | 104 | \ No newline at end of file |
| 105 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/editDocFieldLookupsBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fDeleteConfirmed', 'fDocFieldID', 'fGroupID', 'fGroupSet', 'fOtherGroupID', 'fUserID', 'faGroupID'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/editDocFieldLookupsUI.inc
| ... | ... | @@ -77,15 +77,15 @@ function getPage($iUserID) { |
| 77 | 77 | |
| 78 | 78 | |
| 79 | 79 | // get page for removal |
| 80 | -function getGroupPage($fDocFieldID) { | |
| 80 | +function getGroupPage($iDocFieldID) { | |
| 81 | 81 | global $default; |
| 82 | 82 | |
| 83 | - $oDocField = DocumentField::get($fDocFieldID); | |
| 83 | + $oDocField = DocumentField::get($iDocFieldID); | |
| 84 | 84 | |
| 85 | 85 | $LookupDisplay .= "<b>" . _("Current Lookups") . "</b><br>\n"; |
| 86 | 86 | $sQuery = " Select * " . |
| 87 | 87 | " From " . $default->metadata_table . |
| 88 | - " WHERE document_field_id=" . $fDocFieldID; | |
| 88 | + " WHERE document_field_id=" . $iDocFieldID; | |
| 89 | 89 | |
| 90 | 90 | $aColumns = array("name"); |
| 91 | 91 | $aColumnNames = array(_("Lookup name")); |
| ... | ... | @@ -122,20 +122,20 @@ function getGroupPage($fDocFieldID) { |
| 122 | 122 | $sToRender .= "<table border=0 cellspacing=1>\n"; |
| 123 | 123 | $sToRender .= "<tr><td><b>Options</b></td></tr>"; |
| 124 | 124 | $sToRender .= "<tr><td width=200 bgcolor=$sBgColor>"; |
| 125 | - $sToRender .= "<br><a href=\"$default->rootUrl/control.php?action=addMetaDataForField&fDocFieldID=$fDocFieldID\"> " . _("Add Document Field Lookups") . "</a><br><br>"; | |
| 125 | + $sToRender .= "<br><a href=\"$default->rootUrl/control.php?action=addMetaDataForField&fDocFieldID=$iDocFieldID\"> " . _("Add Document Field Lookups") . "</a><br><br>"; | |
| 126 | 126 | $sToRender .= "</td><td>"; |
| 127 | 127 | $sToRender .= "</td></tr>"; |
| 128 | 128 | |
| 129 | - $iDocFieldLookupCount = DocumentField::getLookupCount($fDocFieldID); | |
| 129 | + $iDocFieldLookupCount = DocumentField::getLookupCount($iDocFieldID); | |
| 130 | 130 | if ($iDocFieldLookupCount > 0) { |
| 131 | 131 | |
| 132 | 132 | $sToRender .= "<tr><td width=200 bgcolor=$sBgColor>"; |
| 133 | - $sToRender .= "<br><a href=\"$default->rootUrl/control.php?action=editMetadataForField&fDocFieldID=$fDocFieldID\"> " . _("Edit Document Field Lookups") . "</a><br><br>"; | |
| 133 | + $sToRender .= "<br><a href=\"$default->rootUrl/control.php?action=editMetadataForField&fDocFieldID=$iDocFieldID\"> " . _("Edit Document Field Lookups") . "</a><br><br>"; | |
| 134 | 134 | $sToRender .= "</td><td>"; |
| 135 | 135 | $sToRender .= "</td></tr>"; |
| 136 | 136 | |
| 137 | 137 | $sToRender .= "<tr><td width=200 bgcolor=$sBgColor>"; |
| 138 | - $sToRender .= "<br><a href=\"$default->rootUrl/control.php?action=removeMetaDataFromField&fDocFieldID=$fDocFieldID\"> " . _("Remove Document Field Lookups") . "</a><br><br>"; | |
| 138 | + $sToRender .= "<br><a href=\"$default->rootUrl/control.php?action=removeMetaDataFromField&fDocFieldID=$iDocFieldID\"> " . _("Remove Document Field Lookups") . "</a><br><br>"; | |
| 139 | 139 | $sToRender .= "</td><td>"; |
| 140 | 140 | $sToRender .= "</td></tr>"; |
| 141 | 141 | } |
| ... | ... | @@ -148,7 +148,7 @@ function getGroupPage($fDocFieldID) { |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | // get page for removal |
| 151 | -function getDeleteConfirmedPage($iUserID,$fGroupID) { | |
| 151 | +function getDeleteConfirmedPage($iUserID,$iGroupID) { | |
| 152 | 152 | global $default; |
| 153 | 153 | $oUser = null; |
| 154 | 154 | $oGroup = null; |
| ... | ... | @@ -160,8 +160,8 @@ function getDeleteConfirmedPage($iUserID,$fGroupID) { |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | // change headings if User selected |
| 163 | - if (isset($fGroupID)) { | |
| 164 | - $oGroup = Group::get($fGroupID); | |
| 163 | + if (isset($iGroupID)) { | |
| 164 | + $oGroup = Group::get($iGroupID); | |
| 165 | 165 | $Groupdisplay = "<td>" . _("Group Name") . ": " . $oGroup->getName() . "</td>\n"; |
| 166 | 166 | } |
| 167 | 167 | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/listDocFieldsBL.php
| ... | ... | @@ -26,6 +26,9 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fGroupID'); | |
| 31 | + | |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 30 | 33 | require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 31 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| ... | ... | @@ -43,4 +46,4 @@ if (checkSession()) { |
| 43 | 46 | $main->setFormAction($_SERVER['PHP_SELF']); |
| 44 | 47 | $main->render(); |
| 45 | 48 | } |
| 46 | -?> | |
| 47 | 49 | \ No newline at end of file |
| 50 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/addMetaDataBL.php
| ... | ... | @@ -26,6 +26,8 @@ |
| 26 | 26 | */ |
| 27 | 27 | require_once("../../../../../../config/dmsDefaults.php"); |
| 28 | 28 | |
| 29 | +KTUtil::extractGPC('fDocFieldID', 'fForStore', 'fMetaDataName'); | |
| 30 | + | |
| 29 | 31 | if (checkSession()) { |
| 30 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/editMetaDataBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fDocFieldID', 'fForStore', 'fMetaDataID', 'fMetaDataName', 'fOldMetaDataName', 'fSelected'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/removeMetaDataBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fDocFieldID', 'fForDelete', 'fMetaDataID', 'fMetaDataName', 'fSelected'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| ... | ... | @@ -71,4 +73,4 @@ if (checkSession()) { |
| 71 | 73 | $main->setCentralPayload($oPatternCustom); |
| 72 | 74 | $main->render(); |
| 73 | 75 | } |
| 74 | -?> | |
| 75 | 76 | \ No newline at end of file |
| 77 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/removeDocFieldBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fDocFieldID', 'fForDelete'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/removeDocFieldUI.inc
| ... | ... | @@ -26,11 +26,11 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | // gets the delete stuff |
| 29 | -function getDeletePage($fDocFieldID) { | |
| 29 | +function getDeletePage($iDocFieldID) { | |
| 30 | 30 | global $default; |
| 31 | 31 | $oDocField = null; |
| 32 | - if (isset($fDocFieldID)) { | |
| 33 | - $oDocField = DocumentField::get($fDocFieldID); | |
| 32 | + if (isset($iDocFieldID)) { | |
| 33 | + $oDocField = DocumentField::get($iDocFieldID); | |
| 34 | 34 | $sHeading = "<b>" . _("Are you sure you wish to Remove this Document Field?") . ":</b>\n"; |
| 35 | 35 | } else { |
| 36 | 36 | $sHeading = _("Please select a Document Field:"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/addDocTypeFieldsLinkBL.php
presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/addDocTypeSuccess.php
presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/editDocTypeBL.php
| ... | ... | @@ -27,6 +27,10 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fAdd', 'fDocFieldTypeID', 'fDocTypeID', 'fDocTypeName'); | |
| 31 | +KTUtil::extractGPC('fDocTypeSelected', 'fEdit', 'fFieldID', 'fIsMandatory'); | |
| 32 | +KTUtil::extractGPC('fMandatory', 'fRemove', 'fUpdate', 'fUpdateMandatory'); | |
| 33 | + | |
| 30 | 34 | if (checkSession()) { |
| 31 | 35 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/editDocTypeFieldsBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fConfirm', 'fDocFieldID', 'fDocTypeID', 'fIsMandatory', 'fRemove', 'fUpdateMandatory'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/listDocTypesBL.php
| ... | ... | @@ -26,6 +26,9 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fGroupID'); | |
| 31 | + | |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 30 | 33 | require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 31 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| ... | ... | @@ -43,4 +46,4 @@ if (checkSession()) { |
| 43 | 46 | $main->setFormAction($_SERVER['PHP_SELF']); |
| 44 | 47 | $main->render(); |
| 45 | 48 | } |
| 46 | -?> | |
| 47 | 49 | \ No newline at end of file |
| 50 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/removeDocTypeBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fDocTypeID', 'fDocTypeName', 'fForDelete'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/documentmanagement/expungeDeletedDocumentsBL.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fConfirm', 'fDocumentIDs'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 5 | 8 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentTransaction.inc"); |
| 6 | 9 | require_once("$default->fileSystemRoot/lib/documentmanagement/PhysicalDocumentManager.inc"); |
| ... | ... | @@ -98,4 +101,4 @@ if (checkSession()) { |
| 98 | 101 | $main->setFormAction($_SERVER["PHP_SELF"]); |
| 99 | 102 | $main->render(); |
| 100 | 103 | } |
| 101 | -?> | |
| 102 | 104 | \ No newline at end of file |
| 105 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/documentmanagement/listDeletedDocumentsBL.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fDocumentID', 'fDocumentIDs'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 5 | 8 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternMainPage.inc"); |
| 6 | 9 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| ... | ... | @@ -54,4 +57,4 @@ if (checkSession()) { |
| 54 | 57 | $main->setFormAction($_SERVER["PHP_SELF"]); |
| 55 | 58 | $main->render(); |
| 56 | 59 | } |
| 57 | -?> | |
| 58 | 60 | \ No newline at end of file |
| 61 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/documentmanagement/manageArchivedDocumentsBL.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fConfirm', 'fDocumentIDs', 'fSearchString'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 5 | 8 | require_once("$default->fileSystemRoot/lib/archiving/ArchiveRestorationRequest.inc"); |
| 6 | 9 | require_once("$default->fileSystemRoot/lib/email/Email.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/documentmanagement/restoreDeletedDocumentBL.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fConfirmed', 'fDocumentID', 'fFolderID', 'fForMove'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 5 | 8 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentTransaction.inc"); |
| 6 | 9 | require_once("$default->fileSystemRoot/lib/documentmanagement/PhysicalDocumentManager.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/addGroupBL.php
| ... | ... | @@ -26,6 +26,9 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fGroupName', 'fUnitID'); | |
| 31 | + | |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 30 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 31 | 34 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/assignGroupToUnitBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fGroupAssign', 'fGroupID', 'fGroupSet', 'fUnitID'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fForStore', 'fFromCreate', 'fGroupID', 'fGroupName', 'fGroupSysAdmin', 'fGroupUnitAdmin'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupUnitBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fDeleteConfirmed', 'fGroupID', 'fOtherGroupID', 'fUnitSet', 'fUserID', 'fUserSet'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupUnitUI.inc
| ... | ... | @@ -55,12 +55,12 @@ function getPage($iUserID) { |
| 55 | 55 | return $sToRender; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | -function getGroupUnitsList($fGroupID){ | |
| 58 | +function getGroupUnitsList($iGroupID){ | |
| 59 | 59 | |
| 60 | 60 | $sQuery = "SELECT groups_lookup.id as groupID, units_lookup.name as name, units_lookup.id as UnitID " . |
| 61 | 61 | "FROM (groups_lookup inner join groups_units_link on groups_lookup.id = groups_units_link.group_id) " . |
| 62 | 62 | "inner join units_lookup on units_lookup.id = groups_units_link.unit_id " . |
| 63 | - "Where groups_lookup.id = $fGroupID " . | |
| 63 | + "Where groups_lookup.id = $iGroupID " . | |
| 64 | 64 | "ORDER BY groups_lookup.name "; |
| 65 | 65 | |
| 66 | 66 | |
| ... | ... | @@ -132,7 +132,7 @@ function getUnitPage($iGroupID) { |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | // get page for removal |
| 135 | -function getDeleteConfirmedPage($iUserID,$fGroupID) { | |
| 135 | +function getDeleteConfirmedPage($iUserID,$iGroupID) { | |
| 136 | 136 | global $default; |
| 137 | 137 | $oUser = null; |
| 138 | 138 | $oGroup = null; |
| ... | ... | @@ -144,8 +144,8 @@ function getDeleteConfirmedPage($iUserID,$fGroupID) { |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | // change headings if User selected |
| 147 | - if (isset($fGroupID)) { | |
| 148 | - $oGroup = Group::get($fGroupID); | |
| 147 | + if (isset($iGroupID)) { | |
| 148 | + $oGroup = Group::get($iGroupID); | |
| 149 | 149 | $Groupdisplay = "<td>" . _("Group Name") . ": " . $oGroup->getName() . "</td>\n"; |
| 150 | 150 | } |
| 151 | 151 | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupUsersBL.php
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/listGroupsBL.php
| ... | ... | @@ -26,6 +26,9 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fUnitID'); | |
| 31 | + | |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 30 | 33 | require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 31 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fForDelete', 'fGroupID'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupFromUnitBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fDeleteConfirmed', 'fGroupID', 'fGroupSet', 'fUnitID'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupFromUnitUI.inc
| ... | ... | @@ -25,12 +25,12 @@ |
| 25 | 25 | * @package administration.groupmanagement |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | -function getNoUnitPage($fGroupID){ | |
| 28 | +function getNoUnitPage($iGroupID){ | |
| 29 | 29 | global $default; |
| 30 | 30 | $sToRender .= "<table><tr><td>\n"; |
| 31 | 31 | $sToRender .= "<br>" . _("Group does not belong to an existing Unit.") . "\n"; |
| 32 | 32 | $sToRender .= "</td><td></td></tr><tr><td></td><td>\n"; |
| 33 | - $sToRender .= "<a href=\"$default->rootUrl/control.php?action=editGroupUnit&fGroupID=$fGroupID\"><img src =\"" . KTHtml::getBackButton() . "\" border = \"0\" /></a>\n"; | |
| 33 | + $sToRender .= "<a href=\"$default->rootUrl/control.php?action=editGroupUnit&fGroupID=$iGroupID\"><img src =\"" . KTHtml::getBackButton() . "\" border = \"0\" /></a>\n"; | |
| 34 | 34 | $sToRender .= "</td></tr></table>\n"; |
| 35 | 35 | return $sToRender; |
| 36 | 36 | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/addLinkSuccess.php
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/editLinkBL.php
| ... | ... | @@ -26,6 +26,8 @@ |
| 26 | 26 | */ |
| 27 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 28 | 28 | |
| 29 | +KTUtil::extractGPC('fForStore', 'fLinkID', 'fLinkName', 'fRank', 'fUrl'); | |
| 30 | + | |
| 29 | 31 | if (checkSession()) { |
| 30 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/listLinksBL.php
| ... | ... | @@ -26,6 +26,9 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fGroupID'); | |
| 31 | + | |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 30 | 33 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); |
| 31 | 34 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| ... | ... | @@ -47,4 +50,4 @@ if (checkSession()) { |
| 47 | 50 | $main->setFormAction($_SERVER['PHP_SELF']); |
| 48 | 51 | $main->render(); |
| 49 | 52 | } |
| 50 | -?> | |
| 51 | 53 | \ No newline at end of file |
| 54 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/removeLinkBL.php
| ... | ... | @@ -26,6 +26,8 @@ |
| 26 | 26 | */ |
| 27 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 28 | 28 | |
| 29 | +KTUtil::extractGPC('fForDelete', 'fLinkID', 'fLinkName'); | |
| 30 | + | |
| 29 | 31 | if (checkSession()) { |
| 30 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/news/addNewsBL.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fActive', 'fBody', 'fRank', 'fStore', 'fSynopsis'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/dashboard/DashboardNews.inc"); |
| 5 | 8 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternMainPage.inc"); |
| 6 | 9 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/news/editNewsBL.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fActive', 'fBody', 'fNewsID', 'fRank', 'fSynopsis', 'fUpdate'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/dashboard/DashboardNews.inc"); |
| 5 | 8 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternMainPage.inc"); |
| 6 | 9 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/news/listNewsBL.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fNewsID'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/dashboard/DashboardNews.inc"); |
| 5 | 8 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternMainPage.inc"); |
| 6 | 9 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| ... | ... | @@ -51,4 +54,4 @@ if (checkSession()) { |
| 51 | 54 | $main->setCentralPayload($oContent); |
| 52 | 55 | $main->render(); |
| 53 | 56 | } |
| 54 | -?> | |
| 55 | 57 | \ No newline at end of file |
| 58 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/news/previewNewsBL.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fNewsID'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/dashboard/DashboardNews.inc"); |
| 5 | 8 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternMainPage.inc"); |
| 6 | 9 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| ... | ... | @@ -52,4 +55,4 @@ if (checkSession()) { |
| 52 | 55 | $main->setCentralPayload($oContent); |
| 53 | 56 | $main->render(); |
| 54 | 57 | } |
| 55 | -?> | |
| 56 | 58 | \ No newline at end of file |
| 59 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/news/removeNewsBL.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fDeleteConfirmed', 'fNewsID'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/dashboard/DashboardNews.inc"); |
| 5 | 8 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternMainPage.inc"); |
| 6 | 9 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/addOrgSuccess.php
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/editOrgBL.php
| ... | ... | @@ -26,6 +26,8 @@ |
| 26 | 26 | */ |
| 27 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 28 | 28 | |
| 29 | +KTUtil::extractGPC('fForStore', 'fOrgID', 'fOrgName'); | |
| 30 | + | |
| 29 | 31 | if (checkSession()) { |
| 30 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/listOrgBL.php
| ... | ... | @@ -26,6 +26,9 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fGroupID'); | |
| 31 | + | |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 30 | 33 | require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 31 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| ... | ... | @@ -43,4 +46,4 @@ if (checkSession()) { |
| 43 | 46 | $main->setFormAction($_SERVER['PHP_SELF']); |
| 44 | 47 | $main->render(); |
| 45 | 48 | } |
| 46 | -?> | |
| 47 | 49 | \ No newline at end of file |
| 50 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/removeOrgBL.php
| ... | ... | @@ -26,6 +26,8 @@ |
| 26 | 26 | */ |
| 27 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 28 | 28 | |
| 29 | +KTUtil::extractGPC('fForDelete', 'fOrgID', 'fOrgName'); | |
| 30 | + | |
| 29 | 31 | if (checkSession()) { |
| 30 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/editRoleBL.php
| ... | ... | @@ -26,6 +26,8 @@ |
| 26 | 26 | */ |
| 27 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 28 | 28 | |
| 29 | +KTUtil::extractGPC('fActive', 'fForStore', 'fFromCreate', 'fReadable', 'fRoleID', 'fRoleName', 'fWriteable'); | |
| 30 | + | |
| 29 | 31 | if (checkSession()) { |
| 30 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/listRolesBL.php
| ... | ... | @@ -26,6 +26,9 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fGroupID'); | |
| 31 | + | |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 30 | 33 | require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 31 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/removeRoleBL.php
| ... | ... | @@ -26,6 +26,8 @@ |
| 26 | 26 | */ |
| 27 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 28 | 28 | |
| 29 | +KTUtil::extractGPC('fForDelete', 'fRoleID', 'fRoleName'); | |
| 30 | + | |
| 29 | 31 | if (checkSession()) { |
| 30 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/systemsettings/systemSettingsBL.php
| ... | ... | @@ -26,6 +26,8 @@ |
| 26 | 26 | */ |
| 27 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 28 | 28 | |
| 29 | +KTUtil::extractGPC('fForStore'); | |
| 30 | + | |
| 29 | 31 | if (checkSession()) { |
| 30 | 32 | require_once("$default->fileSystemRoot/lib/System.inc"); |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| ... | ... | @@ -48,4 +50,4 @@ if (checkSession()) { |
| 48 | 50 | $main->setCentralPayload($oPatternCustom); |
| 49 | 51 | $main->render(); |
| 50 | 52 | } |
| 51 | -?> | |
| 52 | 53 | \ No newline at end of file |
| 54 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/addUnitBL.php
| ... | ... | @@ -25,6 +25,9 @@ |
| 25 | 25 | * @package administration.unitmanagement |
| 26 | 26 | */ |
| 27 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 28 | + | |
| 29 | +KTUtil::extractGPC('fForStore', 'fOrgID', 'fUnitName'); | |
| 30 | + | |
| 28 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 30 | 33 | require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/addUnitToOrgBL.php
| ... | ... | @@ -26,6 +26,8 @@ |
| 26 | 26 | */ |
| 27 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 28 | 28 | |
| 29 | +KTUtil::extractGPC('fAdd', 'fForStore', 'fOrgID', 'fUnitID', 'fUnitName'); | |
| 30 | + | |
| 29 | 31 | if (checkSession()) { |
| 30 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/editUnitBL.php
| ... | ... | @@ -26,6 +26,8 @@ |
| 26 | 26 | */ |
| 27 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 28 | 28 | |
| 29 | +KTUtil::extractGPC('fForStore', 'fUnitID', 'fUnitName'); | |
| 30 | + | |
| 29 | 31 | if (checkSession()) { |
| 30 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/editUnitOrgBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fDeleteConfirmed', 'fGroupID', 'fGroupSet', 'fOtherGroupID', 'fUnitID', 'fUserID', 'fUserSet'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/editUnitOrgUI.inc
| ... | ... | @@ -25,10 +25,10 @@ |
| 25 | 25 | * @package administration.unitmanagement |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | -function getOrgPage($fUnitID = null){ | |
| 28 | +function getOrgPage($iUnitID = null){ | |
| 29 | 29 | global $default; |
| 30 | 30 | |
| 31 | - $aUnitOrgLink = UnitOrganisationLink::getList("WHERE unit_id = $fUnitID"); | |
| 31 | + $aUnitOrgLink = UnitOrganisationLink::getList("WHERE unit_id = $iUnitID"); | |
| 32 | 32 | |
| 33 | 33 | if (count($aUnitOrgLink) > 0 ){ |
| 34 | 34 | $oLink = $aUnitOrgLink[0]; |
| ... | ... | @@ -73,7 +73,7 @@ function getOrgPage($fUnitID = null){ |
| 73 | 73 | |
| 74 | 74 | $sToRender .= "</td>\n"; |
| 75 | 75 | $sToRender .= "<td>\n"; |
| 76 | - $sToRender .= getUnitOrgEdit($bNoOrg, $fUnitID); | |
| 76 | + $sToRender .= getUnitOrgEdit($bNoOrg, $iUnitID); | |
| 77 | 77 | $sToRender .= "</td>\n"; |
| 78 | 78 | $sToRender .= "</table>\n"; |
| 79 | 79 | |
| ... | ... | @@ -82,7 +82,7 @@ function getOrgPage($fUnitID = null){ |
| 82 | 82 | |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | -function getUnitOrgEdit($bNoOrg, $fUnitID = null){ | |
| 85 | +function getUnitOrgEdit($bNoOrg, $iUnitID = null){ | |
| 86 | 86 | global $default; |
| 87 | 87 | |
| 88 | 88 | $sBgColor = "#F5F6EE"; |
| ... | ... | @@ -91,12 +91,12 @@ function getUnitOrgEdit($bNoOrg, $fUnitID = null){ |
| 91 | 91 | $sToRender .= " <tr><td><b>" . _("Options") . "</b></td></tr>"; |
| 92 | 92 | if ($bNoOrg) { |
| 93 | 93 | $sToRender .= " <tr><td bgcolor=$sBgColor>"; |
| 94 | - $sToRender .= " <br> <a href=\"$default->rootUrl/control.php?action=addUnitToOrg&fUnitID=" . $fUnitID . "\">" . _("Add Unit to an Organisation") . "</a><br><br>"; | |
| 94 | + $sToRender .= " <br> <a href=\"$default->rootUrl/control.php?action=addUnitToOrg&fUnitID=" . $iUnitID . "\">" . _("Add Unit to an Organisation") . "</a><br><br>"; | |
| 95 | 95 | $sToRender .= " </td><td>"; |
| 96 | 96 | $sToRender .= " </td></tr>"; |
| 97 | 97 | } else { |
| 98 | 98 | $sToRender .= " <tr><td bgcolor=$sBgColor>"; |
| 99 | - $sToRender .= " <br> <a href=\"$default->rootUrl/control.php?action=removeUnitFromOrg&fUnitID=" . $fUnitID . "\">" . _("Remove Unit from an Organisation") . "</a><br><br>"; | |
| 99 | + $sToRender .= " <br> <a href=\"$default->rootUrl/control.php?action=removeUnitFromOrg&fUnitID=" . $iUnitID . "\">" . _("Remove Unit from an Organisation") . "</a><br><br>"; | |
| 100 | 100 | $sToRender .= " </td><td>"; |
| 101 | 101 | $sToRender .= " </td></tr>"; |
| 102 | 102 | } | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/listUnitsBL.php
| ... | ... | @@ -25,6 +25,9 @@ |
| 25 | 25 | * @package administration.unitmanagement |
| 26 | 26 | */ |
| 27 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 28 | + | |
| 29 | +KTUtil::extractGPC('fOrganisationID'); | |
| 30 | + | |
| 28 | 31 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 30 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| ... | ... | @@ -42,4 +45,4 @@ if (checkSession()) { |
| 42 | 45 | $main->setFormAction($_SERVER['PHP_SELF']); |
| 43 | 46 | $main->render(); |
| 44 | 47 | } |
| 45 | -?> | |
| 46 | 48 | \ No newline at end of file |
| 49 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/listUnitsUI.inc
| ... | ... | @@ -24,17 +24,17 @@ |
| 24 | 24 | * @author Omar Rahbeeni, Jam Warehouse (Pty) Ltd, South Africa |
| 25 | 25 | * @package administration.unitmanagement |
| 26 | 26 | */ |
| 27 | -function getOrganisationDisplay($fOrganisationID) { | |
| 27 | +function getOrganisationDisplay($iOrganisationID) { | |
| 28 | 28 | global $default; |
| 29 | - $oPatternListBox = & new PatternListBox($default->organisations_table, "name", "id", "fOrganisationID"); | |
| 29 | + $oPatternListBox = & new PatternListBox($default->organisations_table, "name", "id", "iOrganisationID"); | |
| 30 | 30 | $oPatternListBox->setPostBackOnChange(true); |
| 31 | - if ($fOrganisationID != 0) { | |
| 32 | - $oPatternListBox->setSelectedValue($fOrganisationID); | |
| 31 | + if ($iOrganisationID != 0) { | |
| 32 | + $oPatternListBox->setSelectedValue($iOrganisationID); | |
| 33 | 33 | } |
| 34 | 34 | return "<table><tr><td><b>" . _("Filter By Organisation") . " </b></td><td>" . $oPatternListBox->render() . "</td></tr></table>"; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | -function getUnits($fOrganisationID) { | |
| 37 | +function getUnits($iOrganisationID) { | |
| 38 | 38 | global $default; |
| 39 | 39 | |
| 40 | 40 | $sQuery = "SELECT units_lookup.id as unitID, units_lookup.name as name, " . |
| ... | ... | @@ -43,7 +43,7 @@ function getUnits($fOrganisationID) { |
| 43 | 43 | "FROM (units_lookup " . |
| 44 | 44 | "LEFT JOIN units_organisations_link ON units_lookup.id = units_organisations_link.unit_id) " . |
| 45 | 45 | "LEFT JOIN organisations_lookup ON units_organisations_link.organisation_id = organisations_lookup.id " . |
| 46 | - ($fOrganisationID ? "WHERE units_organisations_link.organisation_id = $fOrganisationID " : "") . | |
| 46 | + ($iOrganisationID ? "WHERE units_organisations_link.organisation_id = $iOrganisationID " : "") . | |
| 47 | 47 | "ORDER BY units_lookup.name"; |
| 48 | 48 | |
| 49 | 49 | $aColumns = array("name", "OrgName", "Edit", "Delete");//, "Edit Organisations"); |
| ... | ... | @@ -61,13 +61,13 @@ function getUnits($fOrganisationID) { |
| 61 | 61 | return $oSearchResults->render() ; |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | -function getPage($fOrganisationID) { | |
| 64 | +function getPage($iOrganisationID) { | |
| 65 | 65 | global $default; |
| 66 | 66 | $sToRender .= renderHeading(_("Unit Management")); |
| 67 | 67 | |
| 68 | 68 | $sToRender .= getAddLink("addUnit", _("Add A Unit")); |
| 69 | - //$sToRender .= getOrganisationDisplay($fOrganisationID); | |
| 70 | - $sToRender .= getUnits($fOrganisationID); | |
| 69 | + //$sToRender .= getOrganisationDisplay($iOrganisationID); | |
| 70 | + $sToRender .= getUnits($iOrganisationID); | |
| 71 | 71 | return $sToRender; |
| 72 | 72 | } |
| 73 | 73 | ?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/removeUnitBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fForDeleteConfirmed', 'fUnitID'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/removeUnitFromOrgBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fForStore', 'fOrgID', 'fRemove', 'fUnitID', 'fUnitName'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserBL.php
| ... | ... | @@ -26,6 +26,11 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fAddToDb', 'fEmail', 'fEmailNotification', 'fFromDb'); | |
| 31 | +KTUtil::extractGPC('fGroupID', 'fLdap', 'fMobile', 'fName', 'fPassword'); | |
| 32 | +KTUtil::extractGPC('fSearch', 'fSelectedUser', 'fUsername'); | |
| 33 | + | |
| 29 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 30 | 35 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 31 | 36 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| ... | ... | @@ -147,4 +152,4 @@ if (checkSession()) { |
| 147 | 152 | $main->setHasRequiredFields(true); |
| 148 | 153 | $main->render(); |
| 149 | 154 | } |
| 150 | -?> | |
| 151 | 155 | \ No newline at end of file |
| 156 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/editUserBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fSuccess', 'fUserID'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/editUserGroupsBL.php
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/listUsersBL.php
| ... | ... | @@ -26,6 +26,9 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fGroupID', 'fName'); | |
| 31 | + | |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 30 | 33 | require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 31 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/listUsersUI.inc
| ... | ... | @@ -51,7 +51,7 @@ function getNameDisplay($sName) { |
| 51 | 51 | return "<table><tr><td><b>" . _("Filter By Name") . " </b></td><td><input type=\"text\" size=\"20\" name=\"fName\" value=\"$sName\" /> <input type=\"button\" value=\"Go\" onCLick=\"document.MainForm.submit()\"></td></tr></table>"; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | -function getUsers($fGroupID, $sName) { | |
| 54 | +function getUsers($iGroupID, $sName) { | |
| 55 | 55 | global $default; |
| 56 | 56 | // changed from inner to outer joins to include users that aren't in any groups (Stefano Ciancio [s.ciancio@pisa.iol.it]) |
| 57 | 57 | $sQuery = "SELECT DISTINCT U.id as userID, U.name as name, U.username, " . |
| ... | ... | @@ -60,8 +60,8 @@ function getUsers($fGroupID, $sName) { |
| 60 | 60 | "LEFT OUTER JOIN $default->users_groups_table UGL ON U.id = UGL.user_id " . |
| 61 | 61 | "LEFT OUTER JOIN $default->groups_table GL ON UGL.group_id = GL.id "; |
| 62 | 62 | // filter by group |
| 63 | - if ($fGroupID) { | |
| 64 | - $sWhereClause = "WHERE UGL.group_id = $fGroupID "; | |
| 63 | + if ($iGroupID) { | |
| 64 | + $sWhereClause = "WHERE UGL.group_id = $iGroupID "; | |
| 65 | 65 | } |
| 66 | 66 | // filter by name |
| 67 | 67 | if ($sName) { |
| ... | ... | @@ -93,7 +93,7 @@ function getUsers($fGroupID, $sName) { |
| 93 | 93 | return $oSearchResults->render() ; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | -function getPage($fGroupID, $sName) { | |
| 96 | +function getPage($iGroupID, $sName) { | |
| 97 | 97 | global $default; |
| 98 | 98 | $sToRender .= renderHeading(_("User Management")); |
| 99 | 99 | |
| ... | ... | @@ -101,9 +101,9 @@ function getPage($fGroupID, $sName) { |
| 101 | 101 | if (Permission::userIsSystemAdministrator()) { |
| 102 | 102 | $sToRender .= getAddLink("addUser", _("Add A User")); |
| 103 | 103 | } |
| 104 | - $sToRender .= getGroupDisplay($fGroupID); | |
| 104 | + $sToRender .= getGroupDisplay($iGroupID); | |
| 105 | 105 | $sToRender .= getNameDisplay($sName); |
| 106 | - $sToRender .= getUsers($fGroupID, $sName); | |
| 106 | + $sToRender .= getUsers($iGroupID, $sName); | |
| 107 | 107 | return $sToRender; |
| 108 | 108 | } |
| 109 | 109 | ?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/passwordManagementBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fForUpdate', 'fNewPassword', 'fNewPasswordConfirm', 'fUserID'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/users/User.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/removeUserBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fForDeleteConfirmed', 'fUserID', 'fUserName'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/addWebsiteSuccess.php
| ... | ... | @@ -36,7 +36,7 @@ if(checkSession()) { |
| 36 | 36 | $Center .= renderHeading(_("Add Website")); |
| 37 | 37 | $Center .= "<TABLE BORDER=\"0\" CELLSPACING=\"2\" CELLPADDING=\"2\">\n"; |
| 38 | 38 | $Center .= "<tr>\n"; |
| 39 | - if($fWebSiteID != -1) { | |
| 39 | + if($_REQUEST['fWebSiteID'] != -1) { | |
| 40 | 40 | $Center .= "<td><b>" . _("New Website Added SuccessFully") . "!<b></td>\n"; |
| 41 | 41 | } else { |
| 42 | 42 | $Center .= "<td><b>" . _("Addition Unsuccessful") . "</b>...</td>\n"; | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/editWebsiteBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fForStore', 'fWebMasterID', 'fWebSiteID', 'fWebSiteName', 'fWebSiteURL'); | |
| 31 | + | |
| 30 | 32 | if (checkSession()) { |
| 31 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/listWebsitesBL.php
| ... | ... | @@ -37,10 +37,10 @@ require_once("listWebsitesUI.inc"); |
| 37 | 37 | |
| 38 | 38 | if (checkSession()) { |
| 39 | 39 | $oPatternCustom = & new PatternCustom(); |
| 40 | - $oPatternCustom->setHtml(getPage($fGroupID)); | |
| 40 | + $oPatternCustom->setHtml(getPage($_REQUEST['fGroupID'])); | |
| 41 | 41 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 42 | 42 | $main->setCentralPayload($oPatternCustom); |
| 43 | 43 | $main->setFormAction($_SERVER['PHP_SELF']); |
| 44 | 44 | $main->render(); |
| 45 | 45 | } |
| 46 | -?> | |
| 47 | 46 | \ No newline at end of file |
| 47 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/removeWebsiteBL.php
| ... | ... | @@ -43,12 +43,12 @@ if (checkSession()) { |
| 43 | 43 | $oPatternCustom = & new PatternCustom(); |
| 44 | 44 | |
| 45 | 45 | // get main page |
| 46 | - if (isset($fWebSiteID)) { | |
| 47 | - $oWebSite = Website::get($fWebSiteID); | |
| 46 | + if (isset($_REQUEST['fWebSiteID'])) { | |
| 47 | + $oWebSite = Website::get($_REQUEST['fWebSiteID']); | |
| 48 | 48 | // if delete entry |
| 49 | - if (isset($fForDelete)) { | |
| 49 | + if (array_key_exists('fForDelete', $_REQUEST)) { | |
| 50 | 50 | |
| 51 | - $oWebSite->setWebSiteName($fWebSiteName); | |
| 51 | + $oWebSite->setWebSiteName($_REQUEST['fWebSiteName']); | |
| 52 | 52 | |
| 53 | 53 | if ($oWebSite->delete()) { |
| 54 | 54 | $oPatternCustom->setHtml(getDeleteSuccessPage()); |
| ... | ... | @@ -62,7 +62,7 @@ if (checkSession()) { |
| 62 | 62 | $oPatternCustom->setHtml(statusPage(_("Remove Website"), _("This website can not be removed since it is still in use."), "", "listWebsites")); |
| 63 | 63 | } else { |
| 64 | 64 | // ask for confirmation |
| 65 | - $oPatternCustom->setHtml(getDeletePage($fWebSiteID)); | |
| 65 | + $oPatternCustom->setHtml(getDeletePage($_REQUEST['fWebSiteID'])); | |
| 66 | 66 | $main->setFormAction($_SERVER["PHP_SELF"] . "?fForDelete=1"); |
| 67 | 67 | } |
| 68 | 68 | } | ... | ... |
presentation/lookAndFeel/knowledgeTree/create.php
| ... | ... | @@ -97,8 +97,8 @@ if ($oObject->create()) { |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | //redirect the user |
| 100 | -if (isset($fRedirectURL)) { | |
| 101 | - redirect(strip_tags(urldecode($fRedirectURL)) . $oObject->iId . "&fSuccess=" . $bSuccess); | |
| 100 | +if (array_key_exists('fRedirectURL', $_REQUEST)) { | |
| 101 | + redirect(strip_tags(urldecode($_REQUEST['fRedirectURL'])) . $oObject->iId . "&fSuccess=" . $bSuccess); | |
| 102 | 102 | } else { |
| 103 | 103 | redirect("$default->rootUrl/control.php"); |
| 104 | 104 | } | ... | ... |
presentation/lookAndFeel/knowledgeTree/dashboard/news/displayNewsImage.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fNewsID'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/dashboard/DashboardNews.inc"); |
| 5 | 8 | |
| 6 | 9 | /** |
| ... | ... | @@ -33,4 +36,4 @@ if (isset($fNewsID)) { |
| 33 | 36 | $oNews = DashboardNews::get($fNewsID); |
| 34 | 37 | $oNews->displayImage(); |
| 35 | 38 | } |
| 36 | -?> | |
| 37 | 39 | \ No newline at end of file |
| 40 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/dashboard/news/displayNewsItem.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fNewsID'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/dashboard/DashboardNews.inc"); |
| 5 | 8 | require_once("$default->uiDirectory/dashboardUI.inc"); |
| 6 | 9 | |
| ... | ... | @@ -41,4 +44,4 @@ if (checkSession()) { |
| 41 | 44 | } |
| 42 | 45 | } |
| 43 | 46 | } |
| 44 | -?> | |
| 45 | 47 | \ No newline at end of file |
| 48 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/discussions/addCommentBL.php
| ... | ... | @@ -26,6 +26,9 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fAddCommentSubmit', 'fComment', 'fCommentID', 'fDocumentID', 'fInReplyTo', 'fNewComment', 'fNewThread', 'fReplyComment', 'fSubject', 'fThreadID'); | |
| 31 | + | |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 30 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternMainPage.inc"); |
| 31 | 34 | require_once("addCommentUI.inc"); //### | ... | ... |
presentation/lookAndFeel/knowledgeTree/discussions/addCommentUI.inc
| ... | ... | @@ -41,28 +41,28 @@ function getSubmitSuccessPage($iDocumentID){ |
| 41 | 41 | /** |
| 42 | 42 | * Display the ADD COMMENT page |
| 43 | 43 | * |
| 44 | - * @param $fDocumentID -> a valid Document ID | |
| 44 | + * @param $iDocumentID -> a valid Document ID | |
| 45 | 45 | * @param $sSubject -> a Subject text |
| 46 | 46 | * @param $sBody -> a Body text |
| 47 | 47 | */ |
| 48 | -function getAddComment($fDocumentID, $sSubject, $sBody, $iCommentID, $fNewComment = null, $fThreadID) { | |
| 48 | +function getAddComment($iDocumentID, $sSubject, $sBody, $iCommentID, $iNewComment = null, $iThreadID) { | |
| 49 | 49 | global $default; |
| 50 | 50 | |
| 51 | 51 | $sHeading = _("Add a Comment"); |
| 52 | 52 | $sToRender .= renderHeading($sHeading); |
| 53 | - $sToRender .= displayDocumentPath($fDocumentID); | |
| 53 | + $sToRender .= displayDocumentPath($iDocumentID); | |
| 54 | 54 | $sToRender .= "<table width=\"100%\" border=\"0\" cellpadding=0 ><tr><td></td>\n"; |
| 55 | 55 | $sToRender .= "<td align=right width=500>"; |
| 56 | 56 | $sToRender .= " "; |
| 57 | 57 | $sToRender .= " "; |
| 58 | 58 | $sToRender .= "<input onmouseover=\"this.style.cursor='hand'\" type=\"image\" src=\"" . KTHtml::getSubmitButton() . "\" border=0></td>"; |
| 59 | - if ($fNewComment>0) { // If user is creating a new comment | |
| 60 | - $sToRender .= "<td width=\"10\" valign=top><a href=\"" . generateControllerLink("viewDiscussion", "fForDiscussion=1&fDocumentID=$fDocumentID") . "\"><img src=\"" . KTHtml::getCancelButton() . "\" border=0 ></a></td></tr>\n"; | |
| 61 | - $sToRender .= "<input type=\"hidden\" name=\"fNewComment\" value=\"1\"/>"; | |
| 59 | + if ($iNewComment>0) { // If user is creating a new comment | |
| 60 | + $sToRender .= "<td width=\"10\" valign=top><a href=\"" . generateControllerLink("viewDiscussion", "fForDiscussion=1&fDocumentID=$iDocumentID") . "\"><img src=\"" . KTHtml::getCancelButton() . "\" border=0 ></a></td></tr>\n"; | |
| 61 | + $sToRender .= "<input type=\"hidden\" name=\"iNewComment\" value=\"1\"/>"; | |
| 62 | 62 | } else { // If the user is replying to a comment |
| 63 | 63 | $sToRender .= "<input type=\"hidden\" name=\"fInReplyTo\" value=\"$iCommentID\"/>"; |
| 64 | - $sToRender .= "<input type=\"hidden\" name=\"fThreadID\" value=\"". $fThreadID . "\"/>"; | |
| 65 | - $sToRender .= "<td width=\"10\" valign=top><a href=\"" . generateControllerLink("viewComment", "fViewComment=1&iDocumentID=$fDocumentID&iCommentID=$iCommentID") . "\"><img src=\"" . KTHtml::getCancelButton() . "\" border=0 ></a></td></tr>\n"; | |
| 64 | + $sToRender .= "<input type=\"hidden\" name=\"fThreadID\" value=\"". $iThreadID . "\"/>"; | |
| 65 | + $sToRender .= "<td width=\"10\" valign=top><a href=\"" . generateControllerLink("viewComment", "fViewComment=1&iDocumentID=$iDocumentID&iCommentID=$iCommentID") . "\"><img src=\"" . KTHtml::getCancelButton() . "\" border=0 ></a></td></tr>\n"; | |
| 66 | 66 | } |
| 67 | 67 | $sToRender .= "<br><tr><td valign=\"top\" width=10><b>Subject</b></td><td colspan=2>\n"; |
| 68 | 68 | $sToRender .= "<input type=\"text\" style=\"width:385\" name=\"fSubject\" value=\"$sSubject\"></td></tr>\n"; | ... | ... |
presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionBL.php
| ... | ... | @@ -26,6 +26,9 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fDocumentID', 'fForDiscussion'); | |
| 31 | + | |
| 29 | 32 | require_once("viewDiscussionUI.inc"); |
| 30 | 33 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); |
| 31 | 34 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc
| ... | ... | @@ -48,14 +48,14 @@ function getViewFailPage($sMessage) { |
| 48 | 48 | /** |
| 49 | 49 | * Page to create a new thread |
| 50 | 50 | * |
| 51 | - * @param $fDocumentID -> a valid document ID | |
| 51 | + * @param $iDocumentID -> a valid document ID | |
| 52 | 52 | */ |
| 53 | -function getNewThreadOption($fDocumentID) { | |
| 53 | +function getNewThreadOption($iDocumentID) { | |
| 54 | 54 | global $default; |
| 55 | 55 | $sToRender .= _("Would you like to create a new Discussion thread for this document?"); |
| 56 | 56 | $sToRender .= " "; |
| 57 | - $sToRender .= "<a href=\"" . generateControllerLink("addComment", "fDocumentID=" . $fDocumentID . "&fNewThread=1") . "\"><img src=\"" . KTHtml::getNewButton() . "\" border=\"0\"></a>"; | |
| 58 | - $sToRender .= "<a href=\"" . generateControllerLink("viewDocument", "fDocumentID=" . $fDocumentID) . "\"><img src=\"" . KTHtml::getCancelButton() . "\" border=\"0\"></a>"; | |
| 57 | + $sToRender .= "<a href=\"" . generateControllerLink("addComment", "fDocumentID=" . $iDocumentID . "&fNewThread=1") . "\"><img src=\"" . KTHtml::getNewButton() . "\" border=\"0\"></a>"; | |
| 58 | + $sToRender .= "<a href=\"" . generateControllerLink("viewDocument", "fDocumentID=" . $iDocumentID) . "\"><img src=\"" . KTHtml::getCancelButton() . "\" border=\"0\"></a>"; | |
| 59 | 59 | return $sToRender; |
| 60 | 60 | } |
| 61 | 61 | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php
| ... | ... | @@ -31,6 +31,8 @@ |
| 31 | 31 | |
| 32 | 32 | require_once("../../../../config/dmsDefaults.php"); |
| 33 | 33 | |
| 34 | +KTUtil::extractGPC('fFolderID', 'fStore', 'fDocumentTypeID', 'fName', 'fDependantDocumentID'); | |
| 35 | + | |
| 34 | 36 | if (checkSession()) { |
| 35 | 37 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 36 | 38 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternMetaData.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentLinkBL.php
| ... | ... | @@ -31,6 +31,8 @@ |
| 31 | 31 | |
| 32 | 32 | require_once("../../../../config/dmsDefaults.php"); |
| 33 | 33 | |
| 34 | +KTUtil::extractGPC('fDocumentID', 'fForStore', 'fTargetDocumentID'); | |
| 35 | + | |
| 34 | 36 | if (checkSession()) { |
| 35 | 37 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 36 | 38 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentLink.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/addArchiveSettingsBL.php
| ... | ... | @@ -26,6 +26,9 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fArchivingTypeID', 'fDocumentID', 'fDocumentTransactionID', 'fExpirationDate', 'fStore', 'fTimeUnitID', 'fUnits'); | |
| 31 | + | |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 30 | 33 | |
| 31 | 34 | require_once("$default->fileSystemRoot/lib/archiving/DocumentArchiveSettingsFactory.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveDocumentBL.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fConfirmed', 'fDocumentID'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/archiving/DocumentArchiveSettingsFactory.inc"); |
| 5 | 8 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 6 | 9 | require_once("$default->fileSystemRoot/lib/subscriptions/SubscriptionEngine.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveSettingsUI.inc
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/modifyArchiveSettingsBL.php
| ... | ... | @@ -26,6 +26,9 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fDelete', 'fDocumentID', 'fDocumentTransactionID', 'fExpirationDate', 'fStore', 'fTimeUnitID', 'fUnits'); | |
| 31 | + | |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 30 | 33 | |
| 31 | 34 | require_once("$default->fileSystemRoot/lib/archiving/DocumentArchiveSettingsFactory.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/requestDocumentRestoreBL.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fDocumentID'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 5 | 8 | require_once("$default->fileSystemRoot/lib/archiving/ArchiveRestorationRequest.inc"); |
| 6 | 9 | require_once("$default->fileSystemRoot/lib/email/Email.inc"); |
| ... | ... | @@ -91,4 +94,4 @@ if (checkSession()) { |
| 91 | 94 | $main->setHasRequiredFields(true); |
| 92 | 95 | $main->render(); |
| 93 | 96 | } |
| 94 | -?> | |
| 95 | 97 | \ No newline at end of file |
| 98 | +?> | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseBL.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once("../../../../config/dmsDefaults.php"); |
| 4 | + | |
| 5 | +KTUtil::extractGPC('fActions', 'fBrowseType', 'fDocumentIDs', 'fFolderID', 'fSortBy', 'fSortDirection'); | |
| 6 | + | |
| 4 | 7 | require_once("$default->fileSystemRoot/lib/browse/BrowserFactory.inc"); |
| 5 | 8 | require_once("$default->fileSystemRoot/lib/browse/Browser.inc"); |
| 6 | 9 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentType.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +/// XXX: extractGPC in UI?(!) | |
| 4 | +KTUtil::extractGPC('fBrowseType', 'fCategoryName', 'fDocumentTypeID', 'fFolderID'); | |
| 5 | + | |
| 3 | 6 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 4 | 7 | require_once("$default->uiDirectory/foldermanagement/folderUI.inc"); |
| 5 | 8 | require_once("$default->uiDirectory/documentmanagement/documentUI.inc"); |
| 6 | 9 | require_once("$default->uiDirectory/foldermanagement/addFolderUI.inc"); |
| 10 | + | |
| 7 | 11 | /** |
| 8 | 12 | * $Id$ |
| 9 | 13 | * | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentBL.php
| ... | ... | @@ -30,6 +30,8 @@ |
| 30 | 30 | |
| 31 | 31 | require_once("../../../../config/dmsDefaults.php"); |
| 32 | 32 | |
| 33 | +KTUtil::extractGPC('fDocumentID', 'fForStore', 'fFolderID', 'fCheckInComment', 'fCheckInType'); | |
| 34 | + | |
| 33 | 35 | if (checkSession()) { |
| 34 | 36 | require_once("$default->fileSystemRoot/lib/email/Email.inc"); |
| 35 | 37 | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentBL.php
presentation/lookAndFeel/knowledgeTree/documentmanagement/collaborationBL.php
| ... | ... | @@ -35,6 +35,8 @@ |
| 35 | 35 | |
| 36 | 36 | require_once("../../../../config/dmsDefaults.php"); |
| 37 | 37 | |
| 38 | +KTUtil::extractGPC('fDocumentID', 'fFolderCollaborationID', 'fIsActive', 'fIsDone', 'fForStore', 'fUserID'); | |
| 39 | + | |
| 38 | 40 | if (checkSession()) { |
| 39 | 41 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 40 | 42 | require_once("$default->fileSystemRoot/lib/foldermanagement/FolderCollaboration.inc"); |
| ... | ... | @@ -52,7 +54,6 @@ if (checkSession()) { |
| 52 | 54 | require_once("documentUI.inc"); |
| 53 | 55 | require_once("collaborationUI.inc"); |
| 54 | 56 | |
| 55 | - | |
| 56 | 57 | //if the required form variabled are set |
| 57 | 58 | if (isset($fFolderCollaborationID) && isset($fDocumentID)) { |
| 58 | 59 | //if the user has write permission for the document | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/collaborationRollbackBL.php
| ... | ... | @@ -27,6 +27,8 @@ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../config/dmsDefaults.php"); |
| 29 | 29 | |
| 30 | +KTUtil::extractGPC('fDocumentID', 'fComment', 'fForStore'); | |
| 31 | + | |
| 30 | 32 | require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 31 | 33 | |
| 32 | 34 | require_once("$default->fileSystemRoot/lib/email/Email.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/collaborationUI.inc
| ... | ... | @@ -59,13 +59,13 @@ function getRole($iRoleID) { |
| 59 | 59 | return $oPatternListBox->render();*/ |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | -function getDocumentRoutingPage($iGroupID, $iUserID, $iRoleID, $iSequenceNumber, $fDocumentID) { | |
| 62 | +function getDocumentRoutingPage($iGroupID, $iUserID, $iRoleID, $iSequenceNumber, $iDocumentID) { | |
| 63 | 63 | global $default; |
| 64 | 64 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 65 | 65 | $sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td"); |
| 66 | 66 | $sTHBGColour = $default->siteMap->getSectionColour($sSectionName, "th"); |
| 67 | 67 | return renderHeading(_("Edit Document Approval Routing")) . |
| 68 | - displayDocumentPath($fDocumentID) . | |
| 68 | + displayDocumentPath($iDocumentID) . | |
| 69 | 69 | "<table cellspacing=2, cellpadding=2, border=0>\n" . |
| 70 | 70 | "<caption><b>" . _("Document Routing") . "</b></caption>\n" . |
| 71 | 71 | "<tr>\n" . |
| ... | ... | @@ -85,7 +85,7 @@ function getDocumentRoutingPage($iGroupID, $iUserID, $iRoleID, $iSequenceNumber, |
| 85 | 85 | "<td colspan=\"2\"> </td>\n" . |
| 86 | 86 | "</tr>\n" . |
| 87 | 87 | "<tr>\n" . |
| 88 | - "<td><b><input type=\"image\" src=\"" . KTHtml::getUpdateButton() . "\" border=\"0\"/></b></td><td>" . generateControllerLink("viewDocument", "fDocumentID=$fDocumentID&fShowSection=documentRouting", "<img src=\"" . KTHtml::getCancelButton() . "\" border=\"0\"/>") . "</td>\n" . | |
| 88 | + "<td><b><input type=\"image\" src=\"" . KTHtml::getUpdateButton() . "\" border=\"0\"/></b></td><td>" . generateControllerLink("viewDocument", "fDocumentID=$iDocumentID&fShowSection=documentRouting", "<img src=\"" . KTHtml::getCancelButton() . "\" border=\"0\"/>") . "</td>\n" . | |
| 89 | 89 | "</tr>\n" . |
| 90 | 90 | "</table>\n"; |
| 91 | 91 | } | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/createDependantDocumentBL.php
| ... | ... | @@ -28,6 +28,8 @@ |
| 28 | 28 | |
| 29 | 29 | require_once("../../../../config/dmsDefaults.php"); |
| 30 | 30 | |
| 31 | +KTUtil::extractGPC('fDocumentID', 'fDocumentTitle', 'fForStore', 'fTargetDocumentID', 'fTemplateDocument', 'fUnitID', 'fUserID'); | |
| 32 | + | |
| 31 | 33 | if (checkSession()) { |
| 32 | 34 | require_once("createDependantDocumentUI.inc"); |
| 33 | 35 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| ... | ... | @@ -39,7 +41,7 @@ if (checkSession()) { |
| 39 | 41 | require_once("$default->fileSystemRoot/lib/documentmanagement/DependantDocumentInstance.inc"); |
| 40 | 42 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 41 | 43 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); |
| 42 | - | |
| 44 | + | |
| 43 | 45 | if (isset($fForStore)) { |
| 44 | 46 | $oDependantDocument = & new DependantDocumentInstance($fDocumentTitle, $fUserID, $fTargetDocumentID, $fDocumentID); |
| 45 | 47 | if ($oDependantDocument->create()) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php
| ... | ... | @@ -27,6 +27,9 @@ |
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | 29 | require_once("../../../../config/dmsDefaults.php"); |
| 30 | + | |
| 31 | +KTUtil::extractGPC('fDeleteConfirmed', 'fDocumentIDs'); | |
| 32 | + | |
| 30 | 33 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 31 | 34 | require_once("$default->fileSystemRoot/lib/foldermanagement/FolderUserRole.inc"); |
| 32 | 35 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| ... | ... | @@ -44,7 +47,6 @@ require_once("deleteDocumentUI.inc"); |
| 44 | 47 | |
| 45 | 48 | $aNondeletedDocs = array(); |
| 46 | 49 | |
| 47 | - | |
| 48 | 50 | if (checkSession()) { |
| 49 | 51 | |
| 50 | 52 | if (isset($fDocumentIDs)) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentUI.inc
| ... | ... | @@ -24,18 +24,18 @@ |
| 24 | 24 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 25 | 25 | * @package documentmanagement |
| 26 | 26 | */ |
| 27 | -function getPage($fDocumentIDs) { | |
| 27 | +function getPage($aDocumentIDs) { | |
| 28 | 28 | global $default; |
| 29 | 29 | $sToRender = renderHeading(_("Delete Document")); |
| 30 | 30 | $sToRender .= "<table border=\"0\">\n"; |
| 31 | 31 | $sToRender .= "<tr>\n"; |
| 32 | 32 | $sToRender .= "<td>" . _("You have chosen to delete the following document(s):") . " <br><br></td>\n"; |
| 33 | 33 | |
| 34 | - for ($i = 0; $i < count($fDocumentIDs); $i++) { | |
| 35 | - $oDocument = Document::get($fDocumentIDs[$i]); | |
| 34 | + for ($i = 0; $i < count($aDocumentIDs); $i++) { | |
| 35 | + $oDocument = Document::get($aDocumentIDs[$i]); | |
| 36 | 36 | $sToRender .= "<tr>\n"; |
| 37 | 37 | $sToRender .= "<td> '" . $oDocument->getDisplayPath() . "'</td>\n"; |
| 38 | - $sQueryString .= "fDocumentIDs[]=$fDocumentIDs[$i]&"; | |
| 38 | + $sQueryString .= "fDocumentIDs[]=$aDocumentIDs[$i]&"; | |
| 39 | 39 | } |
| 40 | 40 | $sToRender .= "<tr><tr><tr><tr>\n"; |
| 41 | 41 | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/downloadBL.php
| ... | ... | @@ -30,6 +30,8 @@ |
| 30 | 30 | |
| 31 | 31 | require_once("../../../../config/dmsDefaults.php"); |
| 32 | 32 | |
| 33 | +KTUtil::extractGPC('fDocumentID', 'fForInlineView', 'fVersion'); | |
| 34 | + | |
| 33 | 35 | require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 34 | 36 | require_once("$default->fileSystemRoot/lib/documentmanagement/PhysicalDocumentManager.inc"); |
| 35 | 37 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentTransaction.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php
| ... | ... | @@ -26,6 +26,9 @@ |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | require_once("../../../../config/dmsDefaults.php"); |
| 29 | + | |
| 30 | +KTUtil::extractGPC('fComment', 'fDocumentID', 'fSendEmail'); | |
| 31 | + | |
| 29 | 32 | require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 30 | 33 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 31 | 34 | require_once("$default->fileSystemRoot/lib/email/Email.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/escalateDependantDocumentBL.php
| ... | ... | @@ -28,6 +28,8 @@ |
| 28 | 28 | |
| 29 | 29 | require_once("../../../../config/dmsDefaults.php"); |
| 30 | 30 | |
| 31 | +KTUtil::extractGPC('fInstanceID', 'fReminderMessage', 'fSendMessage', 'fUserID'); | |
| 32 | + | |
| 31 | 33 | if (checkSession()) { |
| 32 | 34 | require_once("escalateDependantDocumentUI.inc"); |
| 33 | 35 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyBL.php
| ... | ... | @@ -34,6 +34,8 @@ |
| 34 | 34 | |
| 35 | 35 | require_once("../../../../config/dmsDefaults.php"); |
| 36 | 36 | |
| 37 | +KTUtil::extractGPC('fDocumentID', 'fDocumentName', 'fDocumentTypeID', 'fFirstEdit', 'fForUpdate'); | |
| 38 | + | |
| 37 | 39 | if (checkSession()) { |
| 38 | 40 | |
| 39 | 41 | require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| ... | ... | @@ -49,7 +51,7 @@ if (checkSession()) { |
| 49 | 51 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentUI.inc"); |
| 50 | 52 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); |
| 51 | 53 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 52 | - | |
| 54 | + | |
| 53 | 55 | $oDocument = & Document::get($fDocumentID); |
| 54 | 56 | if (Permission::userHasDocumentWritePermission($oDocument)) { |
| 55 | 57 | //if the user has write permission | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyGenericMetaDataBL.php
| ... | ... | @@ -31,6 +31,8 @@ |
| 31 | 31 | |
| 32 | 32 | require_once("../../../../config/dmsDefaults.php"); |
| 33 | 33 | |
| 34 | +KTUtil::extractGPC('fDocumentID', 'fFirstEdit'); | |
| 35 | + | |
| 34 | 36 | if (checkSession()) { |
| 35 | 37 | |
| 36 | 38 | require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| ... | ... | @@ -41,8 +43,7 @@ if (checkSession()) { |
| 41 | 43 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 42 | 44 | require_once("documentUI.inc"); |
| 43 | 45 | require_once("modifyGenericMetaDataUI.inc"); |
| 44 | - | |
| 45 | - | |
| 46 | + | |
| 46 | 47 | $oDocument = Document::get($fDocumentID); |
| 47 | 48 | if (Permission::userHasDocumentWritePermission($oDocument)) { |
| 48 | 49 | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyGenericMetaDataUI.inc
| ... | ... | @@ -49,7 +49,7 @@ function getEditableGenericMetaData($iDocumentID, $iDocumentTypeID) { |
| 49 | 49 | |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | -function getPage($iDocumentID, $iDocumentTypeID, $fFirstEdit) { | |
| 52 | +function getPage($iDocumentID, $iDocumentTypeID, $bFirstEdit) { | |
| 53 | 53 | global $default; |
| 54 | 54 | |
| 55 | 55 | $sToRender .= renderHeading(_("Edit Generic Meta Data")); |
| ... | ... | @@ -68,7 +68,7 @@ function getPage($iDocumentID, $iDocumentTypeID, $fFirstEdit) { |
| 68 | 68 | $sToRender .= "<td>\n"; |
| 69 | 69 | $sToRender .= "<input type=\"image\" src=\"" . KTHtml::getUpdateButton() . "\" border=\"0\"/>\n"; |
| 70 | 70 | $sToRender .= "</td>\n"; |
| 71 | - if (!isset($fFirstEdit)) { | |
| 71 | + if (!isset($bFirstEdit)) { | |
| 72 | 72 | //can't cancel if you're uploading for the first time, must fill out the generic meta data |
| 73 | 73 | $sToRender .= "<td>\n"; |
| 74 | 74 | $sToRender .= "<a href=\"$default->rootUrl/control.php?action=viewDocument&fDocumentID=$iDocumentID&fShowSection=genericMetaData\"><img src=\"" . KTHtml::getCancelButton() . "\" border=\"0\" /></a>\n"; | ... | ... |