From: Jeff D. <da...@da...> - 2001-11-09 21:30:47
|
On Fri, 09 Nov 2001 22:09:31 +0100 "Tara Star" <te...@cl...> wrote: > see what I mean? it's not nice to see a list of ips next to recent > changes ;) I don't need a password or security thing - maybe just a > cookie, yeah, that would be nice. A cookie :) This patch to templates/browse.html will make it so that the user won't see an 'Edit' button unless he's signed in. (Beware that it's not secure: by entering a suitable URL manually, one can still edit a page without being signed in.) Cookies are coming some time. --- cvs.100/templates/browse.html Fri, 14 Sep 2001 13:12:37 -0700 dairiki (phpwiki/6_browse.htm 1.1.1.1.1.1.1.1.2.1.1.10.1.3.1.14 644) +++ cvs.100(w)/templates/browse.html Fri, 09 Nov 2001 13:21:54 -0800 dairiki (phpwiki/6_browse.htm 1.1.1.1.1.1.1.1.2.1.1.10.1.3.1.14 644) @@ -67,6 +67,9 @@ <table class="toolbar" width="100%" cellpadding=0 cellspacing=0 border=0><tr valign="baseline"> <td> + <?php if (!$user->is_authenticated()) { ?> + Please sign in before editing. + <?php } else { ?> <?php if ($page->get('locked') && !$user->is_admin()) { ?> Page locked <?php } else { ?> @@ -76,6 +79,7 @@ <a class="wikiaction" href="${ACTION}edit&version=${VERSION}" >Edit old revision</a> <?php } ?> + <?php } ?> <?php } ?> <?php if ($user->is_admin()) { ?> <?php if ($page->get('locked')) { ?> |