diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/upload.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/upload.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ -"; - - 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