Manual:$wgCopyUploadsDomains

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

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎中文 • ‎日本語
Uploads: $wgCopyUploadsDomains
Limit $wgAllowCopyUploads to a specific whitelist
Introduzida na versão:1.20.0 (git #8c6c29b3)
Removida na versão:ainda em uso
Valores permitidos:array
Valor por omissão:array()
Outras configurações: Lista Alfabética | Lista por Função

Detalhes

The domains in the whitelist can include wildcard characters (*) in place of any of the domain levels, e.g. '*.flickr.com' or 'upload.*.gov.uk'.

If this array is empty (per the default), all domains are accepted.

Example usage

This example setup will allow all autoconfirmed users to upload by URL, via Special:Upload or the API, from Flickr and some UK Government websites only. Add to the bottom of your LocalSettings.php :

$wgGroupPermissions['autoconfirmed']['upload_by_url'] = true;
$wgAllowCopyUploads = true;
$wgCopyUploadsFromSpecialUpload = true;
$wgCopyUploadsDomains = array( '*.flickr.com', 'upload.*.gov.uk' );

Ver também