# rename mw/images/ to mw/_uploads
# DOES NOT WORK
#$wgUploadDirectory = "$IP/_uploads";
# Allow uploads:
$wgDisableUploads = false;
# Enable subpages in the main namespace:
$wgNamespacesWithSubpages[0] = true;
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg', 'pdf', 'zip', 'rar' );
$wgFileBlacklist = array(
# HTML may contain cookie-stealing JavaScript and web bugs
'html', 'htm',
# PHP scripts may execute arbitrary code on the server
'php', 'phtml', 'php3', 'php4', 'phps',
# Other types that may be interpreted by some servers
'shtml', 'jhtml', 'pl', 'py', 'rb', 'rbw',
# May contain harmful executables for Windows victims
'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
# Browser Blacklist for unicode non compliant browsers
# Contains a list of regexps : "/regexp/" matching problematic browsers
$wgBrowserBlackList = array(
"/Mozilla\/4\.78 \[en\] \(X11; U; Linux/",
/**
* MSIE on Mac OS 9 is teh sux0r, converts <C3><BE> to <thorn>, <C3><B0> to <eth>, <C3> to <THORN> and <C3> to <ETH>
*
* Known useragents:
* - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
* - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
* - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
* - [...]
*
* @link https://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
* @link https://en.wikipedia.org/wiki/Template%3AOS9
*/
"/Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/"
);
# Can anonymous users create accounts?
$wgGroupPermissions['*']['createaccount'] = true;
# Can anonymous users edit?
$wgGroupPermissions['*']['edit'] = false;
# prevent the use of this tag:
# $wgSpamRegex="/overflow\s*:\s*auto/i";
$wgSpamRegex="/<div/i";
$wgSpamRegex = "/\<.*style.*?(display|position|overflow|visibility|height)\s*:.*?>/i";
$wgSpamRegex = "/".
"overflow:\s*auto;\s*height:\s*[0-4]px;|".
"\<\s*a\s*href|".
"style\s*=\s*\"\s*display\s*:\s*none".
"/i";