*/
if( !defined( 'MEDIAWIKI' ) )
- die();
+ die( -1 );
/**
* @todo document
$s = "";
$qb = $this->qbSetting();
$mainPageObj = Title::newMainPage();
-
+
$s .= "\n<div id='content'>\n<div id='topbar'>" .
"<table width='100%' border='0' cellspacing='0' cellpadding='8'><tr>";
if ( 0 != $qb ) { $s .= $this->quickBar(); }
return $s;
}
-
+
function doGetUserStyles() {
global $wgOut, $wgStyleSheetPath;
$s = parent::doGetUserStyles();
}
return $s;
}
-
+
function sysLinks() {
global $wgUser, $wgContLang, $wgTitle;
$li = $wgContLang->specialPage("Userlogin");
$rt = $wgTitle->getPrefixedURL();
if ( 0 == strcasecmp( urlencode( $lo ), $rt ) ) {
$q = "";
- } else {
- $q = "returnto={$rt}";
+ } else {
+ $q = "returnto={$rt}";
}
-
+
$s = "" .
$this->makeKnownLink( wfMsgForContent( "mainpage" ), wfMsg( "mainpage" ) )
. " | " .
/**
* Compute the sidebar
- * @private
+ * @access private
*/
function quickBar()
{
htmlspecialchars( $link['text'] ) . '</a>' . $sep;
}
}
-
+
if ( $wgOut->isArticle() ) {
$s .= $this->menuHead( "qbedit" );
$s .= "<strong>" . $this->editThisPage() . "</strong>";
$s .= $this->menuHead( "qbpageoptions" );
$s .= $this->talkLink()
- . $sep . $this->commentLink()
+ . $sep . $this->commentLink()
. $sep . $this->printableLink();
if ( $wgUser->isLoggedIn() ) {
$s .= $sep . $this->watchThisPage();
. $this->historyLink()
. $sep . $this->whatLinksHere()
. $sep . $this->watchPageLinksLink();
-
+
if( $tns == NS_USER || $tns == NS_USER_TALK ) {
$id=User::idFromName($wgTitle->getText());
if ($id != 0) {
. $sep . $tl
. $sep . $this->specialLink( "watchlist" )
. $sep . $this->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, "Contributions" ),
- wfMsg( "mycontris" ), "target=" . wfUrlencode($wgUser->getName() ) )
+ wfMsg( "mycontris" ), "target=" . wfUrlencode($wgUser->getName() ) )
. $sep . $this->specialLink( "preferences" )
. $sep . $this->specialLink( "userlogout" );
} else {
}
$s .= $this->menuHead( "qbspecialpages" )
- . $this->specialLink( "newpages" )
- . $sep . $this->specialLink( "imagelist" )
- . $sep . $this->specialLink( "statistics" )
+ . $this->specialLink( "newpages" )
+ . $sep . $this->specialLink( "imagelist" )
+ . $sep . $this->specialLink( "statistics" )
. $sep . $this->bugReportsLink();
if ( $wgUser->isLoggedIn() && $wgEnableUploads ) {
$s .= $sep . $this->specialLink( "upload" );
$s .= $sep."<a href=\"".htmlspecialchars($wgSiteSupportPage)."\" class =\"internal\">"
.wfMsg( "sitesupport" )."</a>";
}
-
+
$s .= $sep . $this->makeKnownLinkObj(
Title::makeTitle( NS_SPECIAL, 'Specialpages' ),
wfMsg( 'moredotdotdot' ) );