How is possible to ask if a page (an article) already exists at mediawiki?
How do I know if the user visiting a page is already logged in or not?
Thanks in advance.
Luis
Do you mean how to check these things in the source code, or how to check them via the user interface?
Luis Mandel wrote:
How is possible to ask if a page (an article) already exists at mediawiki?
How do I know if the user visiting a page is already logged in or not?
Thanks in advance.
Luis
On 20/05/06, Luis Mandel luismandel@gmail.com wrote:
How is possible to ask if a page (an article) already exists at mediawiki?
$title = Title::makeTitle( namespace, text ); if( $title->exists() ) { ... }
How do I know if the user visiting a page is already logged in or not?
global $wgUser; if( $wgUser->isLoggedIn() ) { ... }
Rob Church
thanks! that must be what I was looking for.
Luis
On 5/20/06, Rob Church robchur@gmail.com wrote:
On 20/05/06, Luis Mandel luismandel@gmail.com wrote:
How is possible to ask if a page (an article) already exists at mediawiki?
$title = Title::makeTitle( namespace, text ); if( $title->exists() ) { ... }
How do I know if the user visiting a page is already logged in or not?
global $wgUser; if( $wgUser->isLoggedIn() ) { ... }
Rob Church _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org