]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/shamino_com/templates/signin.tmpl
Allow bold, italics or underlined for numbers
[SourceForge/phpwiki.git] / themes / shamino_com / templates / signin.tmpl
1 <?php
2 // signin only implicitly by clicking "Edit"
3 if (empty($FORMNAME))
4     $FORMNAME = 'signin';
5 else
6     $NOFORM = true;
7 ?>
8 <?php if (empty($NOFORM)) { ?>
9   <form method="post" action="<?php echo $request->getPostURL() ?>" accept-charset="UTF-8" name="<?php echo $FORMNAME?>">
10   <?php echo HiddenInputs($request->getArgs(), false, array('auth')) ?>
11 <?php }
12 if ($user->isAuthenticated()) {
13     $SignOutB = $WikiTheme->makeButton(_("Sign Out"), "javascript:SignOut();", 'wikiaction');
14     $SignOutJS = JavaScript('
15     document.write(\'<input type="hidden" name="auth[logout]" value="0" />\');
16     function SignOut() { 
17       var form = document.forms["'.$FORMNAME.'"];
18       form.elements["auth[logout]"].value = 1;
19       form.submit();
20     }
21     document.write(\''.AsXML($SignOutB).'\');');
22 ?>
23   <span class="signin"><?php echo fmt("Authenticated as %s", WikiLink($user->getAuthenticatedId(), 'auto')) ?>
24   <?php echo $SEP?><?php echo $SignOutJS?></span>
25   <noscript>
26     <span class="signin"><?php echo Button("submit:auth[logout]", _("Sign Out"), 'wikiaction') ?></span>
27   </noscript>
28 <?php } ?>
29 <?php if (empty($NOFORM)) { ?>
30   </form>
31 <?php } ?>