[pmwiki-users] Logged in/Log Out

Thomas Lederer celok at gmx.net
Mon Mar 27 10:40:23 CST 2006


Sure :)

(:if auth LEVEL:) [[http:?action=logout|Logout]] (:if:)
(:if ! auth LEVEL:) [[http:?action=login|Login]] (:if:)

see also
http://www.pmwiki.org/wiki/PmWiki/ConditionalMarkup
http://www.pmwiki.org/wiki/Cookbook/ConditionalMarkupSamples

Best Regards,
Tom

Firefly schrieb am 27.03.2006 18:24 Uhr:
> I am wondering how do I show a link that, if logged in it says log out and
> if logged out it shows log in. I’m sure its simple. 
> 
>  
> 
> I know what it wants to do but not what it is in pmwiki
> 
>  
> 
> If user = logged in
> 
>  
> 
>             Show “Logout” (as the log out link)
> 
> Else
> 
>  
> 
>             Show “[[Main/Login]]”
> 
>  
> 
>  
> 
> Or something like that.
> 
>  
> 
>  
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users




More information about the pmwiki-users mailing list