Podręcznik:$wgMimeInfoFile

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgMimeInfoFile and the translation is 40% complete.

Other languages:
English • ‎Nederlands • ‎dansk • ‎español • ‎polski • ‎日本語
MIME types: $wgMimeInfoFile
Sets the MIME type info file to be used by MimeMagic.php .
Wprowadzono w wersji:1.5.0
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(path relative to $IP )
Domyślna wartość:'includes/mime.info'

Szczegóły

Sets the MIME type info file, which assigns each MIME type to one of several general categories. Dostępne są następujące kategorie:

UNKNOWN nieznany format
BITMAP some bitmap image or image source (like PSD, etc). Can't scale up.
DRAWING some vector drawing (SVG, WMF, PS, ...) or image source (oo-draw, etc). Can scale up.
AUDIO simple audio file (ogg, mp3, wav, midi, whatever)
VIDEO simple video file (ogg, mpg, etc; do not include formats here that may contain executable sections or scripts!)
MULTIMEDIA Scriptable Multimedia (flash, advanced video container formats, etc)
OFFICE Office Documents, Spreadsheets (office formats possibly containing macros, scripts, etc)
TEXT plain text (possibly containing program code or scripts)
EXECUTABLE plik wykonywalny
ARCHIVE plik archiwum (zip, tar, itd.)

A default mime.info file is distributed with MediaWiki.

Przykłady:

$wgMimeInfoFile = "/usr/doc/mime.info";
$wgMimeInfoFile = null;   // use a limited set of built-in defaults only (defined in MimeMagic.php)

Zobacz też