[Mediawiki-l] help with $wgUser

Imtiyaz S. imtiyaz_sh at hotmail.com
Thu Sep 28 21:41:24 UTC 2006


I have a new php page and want to control access to this page using 
mediawiki isLoggedIn() function.. something likee this. All i get is an 
empty page. can anyone tell me what i am doing wrong
thnx

<html>
<title>Login Script d</title>
<body>

hello

<?
global $wgUser;
if( $wgUser->isLoggedIn())
{
	echo "cheese";
}
?>

Over
</body>
</html>





More information about the MediaWiki-l mailing list