4 Allows people to "log in", so the personal WikiUserName gets saved
5 when an edited page gets saved (a bit like 'BogoLogin' in PhpWiki).
6 (no passwords, no real authentication, no _protected_mode)
10 $ewiki_plugins["page"]["WikiUserLogin"] = "ewiki_page_wikiuserlogin";
13 if ($uu = $_REQUEST["wikiauthor"]) {
18 function ewiki_page_wikiuserlogin($id, $data, $action) {
20 $o .= "<h2>$id</h2>\n";
22 if (empty($_GET["wikiauthor"])) {
24 <form action="'.ewiki_script("login",$id).'" method="get">
25 your WikiName <input type="text" name="wikiauthor" size="20">
27 <input type="submit" value="log in">
28 <input type="hidden" name="page" value="'.$id.'">
30 <input type="checkbox" name="forever" value="1"> make cookie persistent forever
36 Your author name is now set to "'.$_GET["wikiauthor"].'". Please go ahead and
39 if ($_REQUEST["forever"]) {
40 setcookie("wikiauthor", $_GET["wikiauthor"]);
43 setcookie("wikiauthor", $_GET["wikiauthor"], time()*1.2);