From 5bfde6e91eab8923d212e5097e1972b6cb64e0f6 Mon Sep 17 00:00:00 2001 From: rurban Date: Wed, 2 Feb 2005 18:49:34 +0000 Subject: [PATCH] without desc git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@4505 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- themes/smaller/templates/signin.tmpl | 58 ++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 themes/smaller/templates/signin.tmpl diff --git a/themes/smaller/templates/signin.tmpl b/themes/smaller/templates/signin.tmpl new file mode 100644 index 000000000..bd6f6f090 --- /dev/null +++ b/themes/smaller/templates/signin.tmpl @@ -0,0 +1,58 @@ + + +
+ getArgs(), false, array('auth')) ?> + +isAuthenticated()) { + $Sep = $WikiTheme->getButtonSeparator(); + $SignOutB = $WikiTheme->makeButton(_("Sign Out"), "javascript:SignOut();", 'wikiaction'); + // fails on gecko! + $SignOutJS = JavaScript(' document.write(\'\'); + function SignOut() { + var form = document.forms["'.$FORMNAME.'"]; + form.elements["auth[logout]"].value = 1; + form.submit(); + } + document.write(\''.AsXML($SignOutB).'\');'); +?> + + + 'text', + 'name' => "auth[userid]", + 'size' => 12, + 'maxlength' => 256, + 'onchange' => "SignIn(this.form,false);")); + if ($user->isSignedIn()) { // cookie + $SignInInput->setAttr('value', $user->getId()); + } + $SignInInput->addTooltip(_("Enter your UserId to sign in")); + $editing_policy = (defined('EDITING_POLICY') and $request->_dbi->isWikiPage(EDITING_POLICY)); + $SignInJS = JavaScript(' + function SignIn(form,userid) {'.($editing_policy ? ' + if (window.focus) { + window.open("' . WikiUrl(EDITING_POLICY) . '", + "PleaseReadThisFirst", + "width=600,height=430,scrollbars=yes,resizable=yes,toolbar=yes"); + }':'').' + if (userid) { + form.elements["auth[userid]"].value = userid; + } + form.submit(); + }'); +?> + + + + + +
+ \ No newline at end of file -- 2.45.0