use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");if ( $C->{User}{id} ) {$this->out("	Welcome, $C->{User}{name}!<br>You are currently logged in.\n");} else {$this->out("\n");if ( $C->{ErrorAuth} ) {$this->out("	<div style=\"margin: 0px 0px 15px 0px;\">\n		<span style=\"display: table-cell; color: red; colspan: 2\">Authorization error</span>\n	</div>\n");} elsif ( $C->{ErrorMem} ) {$this->out("	<div style=\"margin: 0px 0px 15px 0px;\">\n		<span style=\"display: table-cell; color: red; colspan: 2\">You don`t have a required membership to access this page</span>\n	</div>\n");}$this->out("	\n	<form name=LoginForm method=post>\n	<div>\n		<span style=\"display: table-cell; colspan: 2\">Authorization</span>\n	</div>\n	<div style=\"margin: 10px 0px 5px 0px;\">\n		<span style=\"display: table-cell; width: 100px; text-align: right\">\n			E-mail&nbsp;\n		</span>\n		<span style=\"display: table-cell\">\n			<input type=text tabIndex=1 size=20 name=login value=\"$C->{INPUT}{login}\">\n		</span>\n	</div>\n	<div>\n		<span style=\"display: table-cell; width: 100px; text-align: right\">\n			Password&nbsp;\n		</span>\n		<span style=\"display: table-cell\">\n			<input type=password tabIndex=2 size=20 name=passwd>\n		</span>\n	</div>\n	<div style=\"margin: 10px 0px 0px 0px;\">\n		<span style=\"display: table-cell; colspan: 2\">\n			<input style=\"font-size: 85\%;\" type=submit tabIndex=3 name=do_login value=\"Log in\">\n		</span>\n	</div>\n	</form>\n	<script>\n		document.LoginForm.login.focus();\n	</script>\n");}$this->out("");}