Changeset 1678 for sandbox/filemanager/inc/class.uifilemanager.inc.php
- Timestamp:
- 11/19/09 11:04:50 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/filemanager/inc/class.uifilemanager.inc.php
r1654 r1678 1142 1142 $max_size .= "M"; 1143 1143 1144 1144 $upload_max_filesize = str_replace("M","",$max_size) * 1024 * 1024; 1145 1145 1146 1146 if ($_FILES['upload_file']['size'][$i] > $upload_max_filesize) … … 1148 1148 $this->messages[]=lang('The size of %1 has exceded the limit: %2', $this->disppath.'/'.$_FILES['upload_file']['name'][$i], $max_size); 1149 1149 } 1150 else 1150 else if(strlen($this->current_config['filemanager_antivirus_command']) > 0) 1151 { 1152 $command = "nice -n19 ".$this->current_config['filemanager_antivirus_command']." ".$_FILES['upload_file']['tmp_name'][$i]; 1153 exec("bash -c ".escapeshellcmd(escapeshellarg($command)),$output,$return); 1154 if ($return == 1) 1155 { 1156 $this->messages[]=lang('Error:').lang('The file sent was considered infected'); 1157 $this->readFilesInfo(); 1158 $this->filelisting(); 1159 return true; 1160 } 1161 } 1151 1162 if($_FILES['upload_file']['size'][$i] > 0) 1152 1163 { … … 1283 1294 else 1284 1295 { 1285 $this->messages[] = lang(' Could not copy %1 to %2', $this->disppath.'/'.$file, $this->todir.'/'.$file);1296 $this->messages[] = lang('Error:').lang('Could not copy %1 to %2', $this->disppath.'/'.$file, $this->todir.'/'.$file); 1286 1297 } 1287 1298 }
Note: See TracChangeset
for help on using the changeset viewer.