diff options
author | http://schmonz.livejournal.com/ <http://schmonz.livejournal.com/@web> | 2009-08-02 10:44:17 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2009-08-02 10:44:17 -0400 |
commit | acc3a2b53f346ea22ec4ba097bcf718f8df2460f (patch) | |
tree | 431b98edb4108d85d7d36abd1b01901170752f75 | |
parent | 4c21c5d1fa16972cf08583d96a05af87758e0936 (diff) |
sure maybe, but not with ikiwiki itself
-rw-r--r-- | doc/forum/appear_if_you_are_login_or_not_in_a_page.mdwn | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/forum/appear_if_you_are_login_or_not_in_a_page.mdwn b/doc/forum/appear_if_you_are_login_or_not_in_a_page.mdwn index e50eb4e1c..51b91d30d 100644 --- a/doc/forum/appear_if_you_are_login_or_not_in_a_page.mdwn +++ b/doc/forum/appear_if_you_are_login_or_not_in_a_page.mdwn @@ -3,3 +3,12 @@ Hi, Can you give me a hint for showing if one user is logged or not. If user is logged, then I want to display the user name, as wikipedia or dokuwiki for example. Regards, Xan. + +> ikiwiki doesn't serve pages, so this can't be done inside ikiwiki. +> For certain kinds of authentication it might be possible anyway. +> For instance, if you're using [[plugins/httpauth]] exclusively and +> your server has PHP, you could put `<?php print("$REMOTE_USER"); +> ?>` in all the relevant ikiwiki [[templates]] and arrange for the +> generated HTML pages to get run through the PHP interpreter. The trick +> would work differently with other [[plugins/type/auth]] plugins, +> if at all. |