mediawiki禁止注册

只允许管理员代为注册,在LocalSettings.php中增加:

$wgGroupPermissions = array();
$wgGroupPermissions[’*’ ][’createaccount’] = false;
$wgGroupPermissions[’*’ ][’read’] = true;
$wgGroupPermissions[’*’ ][’edit’] = false;
$wgGroupPermissions[’*’ ][’createpage’] = false;
$wgGroupPermissions[’*’ ][’createtalk’] = false;
$wgGroupPermissions[’user’ ][’move’] = true;
$wgGroupPermissions[’user’ ][’read’] = true;
$wgGroupPermissions[’user’ ][’edit’] = true;
$wgGroupPermissions[’user’ ][’createpage’] = true;
$wgGroupPermissions[’user’ ][’createtalk’] = true;
$wgGroupPermissions[’user’ ][’upload’] = true;
$wgGroupPermissions[’user’ ][’reupload’] = true;
$wgGroupPermissions[’user’ ][’reupload-shared’] = true;
$wgGroupPermissions[’user’ ][’minoredit’] = true;
$wgGroupPermissions[’sysop’][’block’] = true;
$wgGroupPermissions[’sysop’][’createaccount’] = true;
$wgGroupPermissions[’sysop’][’delete’] = true;
$wgGroupPermissions[’sysop’][’deletedhistory’] = true;
$wgGroupPermissions[’sysop’][’editinterface’] = true;
$wgGroupPermissions[’sysop’][’import’] = true;
$wgGroupPermissions[’sysop’][’importupload’] = true;
$wgGroupPermissions[’sysop’][’move’] = true;
$wgGroupPermissions[’sysop’][’patrol’] = true;
$wgGroupPermissions[’sysop’][’protect’] = true;
$wgGroupPermissions[’sysop’][’rollback’] = true;
$wgGroupPermissions[’sysop’][’upload’] = true;
$wgGroupPermissions[’sysop’][’reupload’] = true;
$wgGroupPermissions[’sysop’][’reupload-shared’] = true;
$wgGroupPermissions[’sysop’][’unwatchedpages’] = true;
$wgGroupPermissions[’sysop’][’autoconfirmed’] = true;
$wgGroupPermissions[’bot’ ][’bot’] = true;
$wgGroupPermissions[’bot’ ][’autoconfirmed’] = true;

你可能感兴趣的:(media)