Changeset 139 for pro-bachkim-filespace


Ignore:
Timestamp:
Sep 19, 2014 7:10:20 PM (11 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-bachkim-filespace/sourcecode/application/modules/ajax/controllers/privatecontent.php

    r121 r139  
    9797        }
    9898       
    99         public function deleteDir () {
     99        public function delete () {
    100100                $delobj =  $this->input->post('delobj',TRUE);
    101101                $xmlData = $this->vservices->actionExecute('deletemulti',array('delobj' => $delobj));
     
    121121                        }
    122122                        else {
    123                                 $aryFolders['FILES'][] = $this->xml->tree->folder->_param['id'];
     123                                $aryFolders['FILES'][] = $this->xml->tree->file->_param['id'];
    124124                        }
    125125                }
     
    143143                $destination =  $this->input->post('destination',TRUE);
    144144                $data =  $this->input->post('data',TRUE);
     145                $act =  $this->input->post('act',TRUE);
    145146               
    146                 $xmlData = $this->vservices->actionExecute('copy',array('data' => $data, 'destination' => $destination == 0 ? -1:$destination));
     147                $xmlData = $this->vservices->actionExecute('copy' ,array('act' => $act,'data' => $data, 'destination' => $destination == 0 ? -1:$destination));
    147148                $this->xml->parse($xmlData);
    148149               
     
    150151                $aryNewFiles =  isset($this->xml->data->filedata) ? json_decode($this->xml->data->filedata->_value) : array();
    151152               
    152                 $aryData = array();
    153                 $aryData['RESULT'] = array('DIRECTORIES' => $aryNewDirs, 'FILES' => $aryNewFiles);
     153                $aryData = array('DIRECTORIES' => $aryNewDirs, 'FILES' => $aryNewFiles);
    154154                $aryData['ERROR'] = array('err' => $this->xml->data->_param['err'], 'errCode' => (int)$this->xml->data->_param['errCode']);;
    155155                echo json_encode($aryData);
Note: See TracChangeset for help on using the changeset viewer.