Changeset 13816 for trunk/modules/boonex/wall/classes/BxWallModule.php
- Timestamp:
- 03/22/10 03:38:14 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/boonex/wall/classes/BxWallModule.php
r13775 r13816 105 105 $sResult = "parent." . $this->_sJsPostObject . "._loading(null, false);\n"; 106 106 107 $this->_iOwnerId = (int)$_ REQUEST['WallOwnerId'];107 $this->_iOwnerId = (int)$_POST['WallOwnerId']; 108 108 if (!$this->_isCommentPostAllowed(true)) 109 109 return "<script>" . $sResult . "alert('" . addslashes(_t('_wall_msg_not_allowed_post')) . "');</script>"; 110 110 111 $sPostType = process_db_input($_ REQUEST['WallPostType'], BX_TAGS_STRIP);112 $sContentType = process_db_input($_ REQUEST['WallContentType'], BX_TAGS_STRIP);111 $sPostType = process_db_input($_POST['WallPostType'], BX_TAGS_STRIP); 112 $sContentType = process_db_input($_POST['WallContentType'], BX_TAGS_STRIP); 113 113 114 114 $sMethod = "_process" . ucfirst($sPostType) . ucfirst($sContentType); … … 143 143 */ 144 144 function actionDelete() { 145 $this->_iOwnerId = (int)$_ REQUEST['WallOwnerId'];145 $this->_iOwnerId = (int)$_POST['WallOwnerId']; 146 146 if(!$this->_isCommentDeleteAllowed(true)) 147 147 return '{code: 1}'; 148 148 149 $iEventId = (int)$_ REQUEST['WallEventId'];149 $iEventId = (int)$_POST['WallEventId']; 150 150 $bResult = $this->_oDb->deleteEvent(array('id' => $iEventId)); 151 151 … … 162 162 function actionGetPost() { 163 163 $this->_bJsMode = true; 164 $this->_iOwnerId = (int)$_ REQUEST['WallOwnerId'];165 $iPostId = (int)$_ REQUEST['WallPostId'];164 $this->_iOwnerId = (int)$_POST['WallOwnerId']; 165 $iPostId = (int)$_POST['WallPostId']; 166 166 167 167 $aEvents = $this->_oDb->getEvents(array('type' => 'id', 'object_id' => $iPostId)); … … 175 175 function actionGetPosts() { 176 176 $this->_bJsMode = true; 177 $this->_iOwnerId = (int)$_ REQUEST['WallOwnerId'];178 $iStart = (int)$_ REQUEST['WallStart'];179 $iPerPage = isset($_ REQUEST['WallPerPage']) ? (int)$_REQUEST['WallPerPage'] : $this->_oConfig->getPerPage();180 $sFilter = isset($_ REQUEST['WallFilter']) ? process_db_input($_REQUEST['WallFilter'], BX_TAGS_STRIP) : BX_WALL_FILTER_ALL;177 $this->_iOwnerId = (int)$_POST['WallOwnerId']; 178 $iStart = (int)$_POST['WallStart']; 179 $iPerPage = isset($_POST['WallPerPage']) ? (int)$_POST['WallPerPage'] : $this->_oConfig->getPerPage(); 180 $sFilter = isset($_POST['WallFilter']) ? process_db_input($_POST['WallFilter'], BX_TAGS_STRIP) : BX_WALL_FILTER_ALL; 181 181 182 182 return $sContent = $this->_getPosts('desc', $iStart, $iPerPage, $sFilter); … … 188 188 */ 189 189 function actionGetPaginate() { 190 $this->_iOwnerId = (int)$_ REQUEST['WallOwnerId'];191 $iStart = (int)$_ REQUEST['WallStart'];192 $iPerPage = isset($_ REQUEST['WallPerPage']) ? (int)$_REQUEST['WallPerPage'] : $this->_oConfig->getPerPage();193 $sFilter = isset($_ REQUEST['WallFilter']) ? process_db_input($_REQUEST['WallFilter'], BX_TAGS_STRIP) : BX_WALL_FILTER_ALL;190 $this->_iOwnerId = (int)$_POST['WallOwnerId']; 191 $iStart = (int)$_POST['WallStart']; 192 $iPerPage = isset($_POST['WallPerPage']) ? (int)$_POST['WallPerPage'] : $this->_oConfig->getPerPage(); 193 $sFilter = isset($_POST['WallFilter']) ? process_db_input($_POST['WallFilter'], BX_TAGS_STRIP) : BX_WALL_FILTER_ALL; 194 194 195 195 $oPaginate = $this->_getPaginate($sFilter); … … 521 521 $aOwner = $this->_oDb->getUser($this->_getAuthorId()); 522 522 523 $sContent = trim(process_db_input($_ REQUEST['content'], BX_TAGS_VALIDATE));523 $sContent = trim(process_db_input($_POST['content'], BX_TAGS_VALIDATE)); 524 524 if(empty($sContent)) 525 525 return array( … … 539 539 $aOwner = $this->_oDb->getUser($this->_getAuthorId()); 540 540 541 $sUrl = trim(process_db_input($_ REQUEST['url'], BX_TAGS_STRIP));541 $sUrl = trim(process_db_input($_POST['url'], BX_TAGS_STRIP)); 542 542 if(empty($sUrl)) 543 543 return array(
Note: See TracChangeset
for help on using the changeset viewer.