| Ligne 18 : | Ligne 18 : | ||
* configurez '''$wgEnableUploads''' à '''true''' dans le fichier {{File|LocalSettings.php}} pour autoriser le téléversement | * configurez '''$wgEnableUploads''' à '''true''' dans le fichier {{File|LocalSettings.php}} pour autoriser le téléversement | ||
* Il faut ajouter l'extension "xls" au tableau "$wgFileExtensions" du fichier{{File|includes/DefaultSettings.php}}, <br> | * Il faut ajouter l'extension "xls" au tableau "$wgFileExtensions" du fichier {{File|includes/DefaultSettings.php}}, <br> | ||
:ou directement dans{{File|LocalSettings.php}}, et invalider la vérification des type MIME.<br> | :ou directement dans {{File|LocalSettings.php}}, et invalider la vérification des type MIME.<br> | ||
: {{syntaxhighlight| lang=php|code= | : {{syntaxhighlight| lang=php|code= | ||
| Ligne 26 : | Ligne 26 : | ||
}} | }} | ||
* Penser à utiliser le namespace "Media" | * Penser à utiliser le namespace "Media" plutôt que "Image" pour les liens vers des fichiers à télécharger. | ||
<br> | <br> | ||
$wgUseImageMagick = false;
$wgGroupPermissions['*']['createaccount'] = true;
$wgFileExtensions = array('svg','png','gif','jpg','jpeg','doc','xls','mpp','pdf','ppt','tiff','bmp','docx', 'xlsx', 'pptx','ps','odt','ods','odp','odg');
$wgVerifyMimeType = false;
# anything under /wiki is treated as an article title
RewriteRule ^wiki/(.+)$ MediaWiki/index.php?title=$1 [PT,L,QSA]
$wgScriptPath = "/MediaWiki";
$wgArticlePath = '/wiki/$1';
$wgFavicon = "$wgScriptPath/favico.ico";
< syntaxhighlight lang="php">
<?php
$v = "string"; // sample initialization
?>
</ syntaxhighlight>
<?php
$v = "string"; // sample initialization
?>
div.mw-geshi {
padding: 1em;
margin: 1em 0;
border: 1px dashed #2f6fab;
# allows external images
$wgAllowExternalImages = true;
http://www.openoffice.org/images/AOO_logos/AOO4_website_logo.png

$wgReadOnly = 'Site temporarily down for maintenance';