|
@@ 1860-1873 (lines=14) @@
|
| 1857 |
|
* @param array $files files |
| 1858 |
|
* @return boolean success |
| 1859 |
|
*/ |
| 1860 |
|
function ftDeleteFile($cid, $cpw = '', $files) { |
| 1861 |
|
if(!$this->runtime['selected']) { return $this->checkSelected(); } |
| 1862 |
|
$fileArray = array(); |
| 1863 |
|
|
| 1864 |
|
if(count($files) > 0) { |
| 1865 |
|
foreach($files AS $file) { |
| 1866 |
|
$fileArray[] = 'name='.$this->escapeText($file); |
| 1867 |
|
} |
| 1868 |
|
return $this->getData('boolean', 'ftdeletefile cid='.$cid.' cpw='.$this->escapeText($cpw).' '.implode('|', $fileArray)); |
| 1869 |
|
}else{ |
| 1870 |
|
$this->addDebugLog('no files given'); |
| 1871 |
|
return $this->generateOutput(false, array('Error: no files given'), false); |
| 1872 |
|
} |
| 1873 |
|
} |
| 1874 |
|
|
| 1875 |
|
/** |
| 1876 |
|
* ftDownloadFile |
|
@@ 2913-2926 (lines=14) @@
|
| 2910 |
|
* @param array $permissionIds permissionIds |
| 2911 |
|
* @return boolean success |
| 2912 |
|
*/ |
| 2913 |
|
function serverGroupDeletePerm($sgid, $permissionIds) { |
| 2914 |
|
if(!$this->runtime['selected']) { return $this->checkSelected(); } |
| 2915 |
|
$permissionArray = array(); |
| 2916 |
|
|
| 2917 |
|
if(count($permissionIds) > 0) { |
| 2918 |
|
foreach($permissionIds AS $value) { |
| 2919 |
|
$permissionArray[] = is_numeric($value) ? 'permid='.$value : 'permsid='.$this->escapeText($value); |
| 2920 |
|
} |
| 2921 |
|
return $this->getData('boolean', 'servergroupdelperm sgid='.$sgid.' '.implode('|', $permissionArray)); |
| 2922 |
|
}else{ |
| 2923 |
|
$this->addDebugLog('no permissions given'); |
| 2924 |
|
return $this->generateOutput(false, array('Error: no permissions given'), false); |
| 2925 |
|
} |
| 2926 |
|
} |
| 2927 |
|
|
| 2928 |
|
/** |
| 2929 |
|
* serverGroupList |