* Reorganised the includes directory, creating subdirectories db, parser and specials
[lhc/web/wiklou.git] / includes / specials / Userlogout.php
1 <?php
2 /**
3 * @file
4 * @ingroup SpecialPage
5 */
6
7 /**
8 * constructor
9 */
10 function wfSpecialUserlogout() {
11 global $wgUser, $wgOut;
12
13 $oldName = $wgUser->getName();
14 $wgUser->logout();
15 $wgOut->setRobotpolicy( 'noindex,nofollow' );
16
17 // Hook.
18 $injected_html = '';
19 wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html, $oldName) );
20
21 $wgOut->addHTML( wfMsgExt( 'logouttext', array( 'parse' ) ) . $injected_html );
22 $wgOut->returnToMain();
23 }