Changeset 1678
- Timestamp:
- 11/19/09 11:04:50 (14 years ago)
- Files:
-
- 1 added
- 5 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 } -
sandbox/filemanager/inc/hook_admin.inc.php
r1529 r1678 26 26 $file = Array( 27 27 'Site Configuration' => $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiconfig.index&appname=' . $appname), 28 'Quota management' => $GLOBALS['phpgw']->link('/index.php','menuaction='.$appname.'.uiconfig.quota'), 29 28 30 ); 29 31 //Do not modify below this line -
sandbox/filemanager/setup/phpgw_pt-br.lang
r1648 r1678 27 27 created %1 filemanager pt-br Criado %1 28 28 You have no permission to access this file filemanager pt-br Você não tem permissão para acessar este arquivo 29 The file sent was considered infected filemanager pt-br O arquivo enviado foi considerado infectado por vírus 29 30 no comments filemanager pt-br sem comentários 30 31 created %1,%2 filemanager pt-br Criado %1, %2 -
sandbox/filemanager/templates/default/config.tpl
r1556 r1678 7 7 <!-- END header --> 8 8 <!-- BEGIN body --> 9 <tr bgcolor="{row_on}"> 10 <td>{lang_Max_file_size}</td> 11 <td> 9 <tr bgcolor="{row_on}"> 10 <td>{lang_Max_file_size}</td> 11 <td> 12 12 <input size="1" name="newsettings[filemanager_Max_file_size]" value="{value_filemanager_Max_file_size}"> Mb 13 13 </td> 14 14 </tr> 15 <tr bgcolor="{row_off}"> 16 <td>{lang_quota_size}</td> 17 <td> 15 <tr bgcolor="{row_off}"> 16 <td>{lang_quota_size}</td> 17 <td> 18 18 <input size="2" name="newsettings[filemanager_quota_size]" value="{value_filemanager_quota_size}"> Mb 19 19 </td> 20 20 </tr> 21 <tr bgcolor="{row_on}"> 22 <td>{lang_antivirus_command}</td> 23 <td> 24 <input size="50" name="newsettings[filemanager_antivirus_command]" value="{value_filemanager_antivirus_command}"> 25 </td> 26 </tr> 27 21 28 <!-- END body --> 22 29 <!-- BEGIN footer -->
Note: See TracChangeset
for help on using the changeset viewer.