01.12.2012 Views

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Permitting user<br />

registration<br />

Database tables<br />

122<br />

��<br />

��<br />

��<br />

Thus, <strong>the</strong>re is no whitelist for editing and none for reading pages.<br />

That means that non-registered users are not excluded from having<br />

access. In addition, visitors can register as users. If you want to limit<br />

editing privileges only to registered users, you should activate <strong>the</strong><br />

edit whitelist:<br />

$wgWhitelistEdit = true;<br />

$wgWhitelistRead = false;<br />

Here, it is not possible to release only certain pages for general editing.<br />

On <strong>the</strong> o<strong>the</strong>r hand, for a read whitelist, <strong>the</strong> individual pages<br />

must be explicitly cleared for reading:<br />

$wgWhitelistRead = array("Page1", "Page1");<br />

This means that you will have one or more openly accessible introductory<br />

pages for your wiki, but that all o<strong>the</strong>rs can only be accessed<br />

upon registration.<br />

The previously discussed settings assume that users will first<br />

make <strong>the</strong>mselves known to <strong>the</strong> system before reading or editing anything.<br />

This is done by logging in, or if a user does not yet have an<br />

account, registering. In principle, this means that reading and editing<br />

is still open to anyone. If you would like to prevent this (e.g. because<br />

you have a fixed team of authors), you must limit <strong>the</strong> possibility of<br />

opening new accounts to sysops.<br />

$wgWhitelistAccount = array ( "user" => 0,<br />

"sysop" => 1, "developer" => 1 );<br />

If you, as an administrator, wish to register a new user, you must<br />

first log in yourself and <strong>the</strong>n access <strong>the</strong> page Special:Userlogin.<br />

Since it is not listed among <strong>the</strong> special pages, it must be activated via<br />

a search or URL. Enter a user name and <strong>the</strong> email address of <strong>the</strong> new<br />

user and click via email. A random password will <strong>the</strong>n be generated<br />

and sent to <strong>the</strong> user.<br />

8.2<br />

Database Structure<br />

Almost all data created in working with MediaWiki is stored in <strong>the</strong><br />

database. It is <strong>the</strong> final resort for edits to <strong>the</strong> data if no corresponding<br />

special page is available for <strong>the</strong> desired tasks. Thus, we provide an<br />

overview of <strong>the</strong> tables in <strong>the</strong> database below (see Tab. 8.2):<br />

8 Administration

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!