![]() ![]() */ $wgCheckFileExtensions = false /** * If this is turned off, users may override the warning for files not covered * by $wgFileExtensions. */ $wgMimeTypeBlacklist = array ( # HTML may contain cookie-stealing JavaScript and web bugs 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript', # PHP scripts may execute arbitrary code on the server 'application/x-php', 'text/x-php', # Other types that may be interpreted by some servers 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh', # Windows metafile, client-side vulnerability on some systems 'application/x-msmetafile' ) /** This is a flag to determine whether or not to check file extensions on upload. */ $wgFileBlacklist = array ( # HTML may contain cookie-stealing JavaScript and web bugs 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', # PHP scripts may execute arbitrary code on the server 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', # Other types that may be interpreted by some servers 'shtml', 'jhtml', 'pl', 'py', 'cgi', # May contain harmful executables for Windows victims 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ) /** Files with these mime types will never be allowed as uploads * if $wgVerifyMimeType is enabled. */ $wgFileExtensions = array ( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'docx', 'xls', 'xlsx', 'pdf' ) /** Files with these extensions will never be allowed as uploads. Uploading files * with extensions not in this list will trigger a warning. ** * This is the list of preferred extensions for uploading files. This is managed by the orders in includes/DefaultSettings.php : 5.4 Template for showing links to files with appropriate iconsīy default, MediaWiki only allows you to upload certain types of files (extensions gif, jpg, jpeg, ogg and png).3.11 Multiple images with floating text.3.9 Blank on the side(s), frame with caption.3.6 Blank on the side(s), thumb with caption.3.4 Blank on the side(s), neither thumb nor frame.A steam locomotive, at File:LBNGR_MR740_05-09-11.jpeg) (saves bandwidth and rendering time compared with letting the browser do the reduction) When a file is uploaded, a file page (also called "image description page") will be created, with a page name consisting of the file name (including extension), prefixed with "File:" (or in general the value of variable ^n(2k-1).) ![]() In earlier versions of MediaWiki, the term "image" was used for any uploaded file the current version uses the term (and namespace) "file:" or "media:" instead. Also other files can be uploaded, see below. In other words, to embed an image, the image file has to be uploaded. You can upload files through MediaWiki and embed them in textual pages. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |