diff -r 000000000000 -r d970ebf37754 wp/wp-content/plugins/wp-filemanager/incl/upload.inc.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wp/wp-content/plugins/wp-filemanager/incl/upload.inc.php Wed Nov 06 03:21:17 2013 +0000 @@ -0,0 +1,77 @@ +"; + + if (!isset($_FILES['userfile'])) + // maximum post size reached + print $StrUploadFailPost; + else + { + for($i=0;$i$StrUploading ".$_FILES['userfile']['name'][$i]."[$StrUploadSuccess]"; +$new_file = @realpath($home_directory.$wp_fileman_path).'/'.$_FILES['userfile']['name'][$i]; +$stat = @stat( dirname( $new_file )); +$perms = $stat['mode'] & 0000666; +@chmod( $new_file, $perms ); + } else if ($_FILES['userfile']['name'][$i]) + print "$StrUploading ".$_FILES['userfile']['name'][$i]."[$StrUploadFail]"; + } + } + print ""; +} + +else if ($AllowUpload) +{ + print ""; + print ""; + print ""; + print ""; + print ""; + print ""; + print ""; + print ""; + print "
"; + print " $StrUploadFilesTo \"/".htmlentities($wp_fileman_path)."\""; + print ""; + print "$StrBack"; + print "
"; +$max_upload = (int)(ini_get('upload_max_filesize')); +$max_post = (int)(ini_get('post_max_size')); +$memory_limit = (int)(ini_get('memory_limit')); +$upload_mb = min($max_upload, $max_post, $memory_limit); +$max_files = (int)(ini_get('max_file_uploads')); + +// print "MAX UPload : $max_upload MB, MAX POST : $max_post MB, MEM LIMIT : $memory_limit MB"; +print "
  Maximum File Size Allowed : $upload_mb MB"; +print "
  Maximum Number of Files Allowed : $max_files"; +// FIXME : add link to howto on how to change the upload size. + print "

"; + + + print "$StrUploadQuestion
"; + print "
"; + + print ""; + print ""; + print "
$StrFirstFile
"; + + print ""; + print ""; + print "
"; + print "

"; + + print "
"; +} +else + print "$StrAccessDenied"; + +?> \ No newline at end of file