HomeHelpTrac

Ignore:
Timestamp:
03/22/10 03:38:14 (2 years ago)
Author:
Anton Lesnikov
Message:

Ticket #1927

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/boonex/wall/classes/BxWallModule.php

    r13775 r13816  
    105105        $sResult = "parent." . $this->_sJsPostObject . "._loading(null, false);\n"; 
    106106 
    107         $this->_iOwnerId = (int)$_REQUEST['WallOwnerId']; 
     107        $this->_iOwnerId = (int)$_POST['WallOwnerId']; 
    108108        if (!$this->_isCommentPostAllowed(true)) 
    109109            return "<script>" . $sResult . "alert('" . addslashes(_t('_wall_msg_not_allowed_post')) . "');</script>"; 
    110110 
    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); 
    113113 
    114114        $sMethod = "_process" . ucfirst($sPostType) . ucfirst($sContentType); 
     
    143143     */ 
    144144    function actionDelete() {        
    145         $this->_iOwnerId = (int)$_REQUEST['WallOwnerId']; 
     145        $this->_iOwnerId = (int)$_POST['WallOwnerId']; 
    146146        if(!$this->_isCommentDeleteAllowed(true)) 
    147147            return '{code: 1}'; 
    148148 
    149         $iEventId = (int)$_REQUEST['WallEventId']; 
     149        $iEventId = (int)$_POST['WallEventId']; 
    150150        $bResult = $this->_oDb->deleteEvent(array('id' => $iEventId)); 
    151151 
     
    162162    function actionGetPost() { 
    163163        $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']; 
    166166         
    167167        $aEvents = $this->_oDb->getEvents(array('type' => 'id', 'object_id' => $iPostId)); 
     
    175175    function actionGetPosts() { 
    176176        $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; 
    181181 
    182182        return $sContent = $this->_getPosts('desc', $iStart, $iPerPage, $sFilter); 
     
    188188     */ 
    189189    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; 
    194194         
    195195        $oPaginate = $this->_getPaginate($sFilter); 
     
    521521        $aOwner = $this->_oDb->getUser($this->_getAuthorId()); 
    522522         
    523         $sContent = trim(process_db_input($_REQUEST['content'], BX_TAGS_VALIDATE)); 
     523        $sContent = trim(process_db_input($_POST['content'], BX_TAGS_VALIDATE)); 
    524524        if(empty($sContent)) 
    525525            return array( 
     
    539539        $aOwner = $this->_oDb->getUser($this->_getAuthorId()); 
    540540         
    541         $sUrl = trim(process_db_input($_REQUEST['url'], BX_TAGS_STRIP)); 
     541        $sUrl = trim(process_db_input($_POST['url'], BX_TAGS_STRIP)); 
    542542        if(empty($sUrl)) 
    543543            return array( 
Note: See TracChangeset for help on using the changeset viewer.