User:Chris earle

clean/custom login page mods
This generally works to create a custom login page that doesn't reveal anything about the wiki system beneath. Uses a really simple Namespace lookup and then a meta tag refresh

OutputPage.php

loginToUse if ($wgTitle->getNamespace != 0) {$actualNS = $wgContLang->getNsText( $wgTitle->getNamespace ).":";} else {$actualNS = "";} $titleObj = htmlspecialchars($actualNS)."".$wgTitle->getDBkey;

and a bit further down say... $this->addMeta('http:Refresh', '0;url=http://address to custom login php page?returnto='.$titleObj);

SpecialUserlogin.php

add to function mainLoginForm( $err ) { if (!$wgUser->isLoggedIn){$wgOut->addMeta( 'http:Refresh', '0;url=http://address to custom login php page?returnto='.wfUrlencode( $this->mReturnto ) );}