MediaWiki配置:修订间差异
无编辑摘要 |
|||
| (未显示同一用户的2个中间版本) | |||
| 第27行: | 第27行: | ||
chmod 777 images | chmod 777 images | ||
== | === 只能登入后查看 === | ||
<syntaxhighlight lang="php"> | |||
[[ | # Disable reading by anonymous users | ||
$wgGroupPermissions['*']['read'] = false; | |||
# Disable anonymous editing | |||
$wgGroupPermissions['*']['edit'] = false; | |||
# Prevent new user registrations except by sysops | |||
$wgGroupPermissions['*']['createaccount'] = false; | |||
</syntaxhighlight> | |||
[[分类:MediaWiki]] | |||