__section__
default
__description__
Form for new user.

No specially passed variables.
__title__
New User Form
__page__
login
__lang__
en_US
__name__
newUserForm
__template__
<div id="users" class="wide">
	[% PROCESS titlebar title="Create Account" %]
		<div class="generalbody">
			[% IF note %]
				[% note %]
			[% END %]
			[% chars = constants.nick_chars;
			   chars = chars.replace('abcdefghijklmnopqrstuvwxyz', 'a-z');
			   chars = chars.replace('ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'A-Z');
			   chars = chars.replace('0123456789', '0-9');
			%]
			<form action="[% constants.real_rootdir %]/login.pl" method="post">
			<fieldset>
			<legend></legend>
			[% PROCESS formkey_tag %]
				<label>
					Nick Name
				</label>
				<input type="text" name="newusernick" value="" maxlength="[% constants.nick_maxlen %]">
				<div class="note">
					(Note: only the characters <tt>[% chars | strip_literal %]</tt>, plus space, are allowed in nicknames, and all others will be stripped out.)
				</div>
				<label>
					Email Address
				</label>
				<input type="hidden" name="op" value="newuser">
				<input type="text" name="email" value="" size="40">
				<input type="text" name="email2" value="" size="40">
				<div class="note">
					Enter a valid email address <b>twice</b> to send your registration information to. This address will <b>not</b> be displayed on [% constants.sitename %] without you setting your preferences to display it.
				</div>
				<label>
					<input type="checkbox" name="comment_reply" value="1" checked> Replies to my comments will be mailed to me
				</label>
				<label>
					<input type="checkbox" name="newsletter" value="1"> Send me the newsletter
				</label>
				<label>
					<input type="checkbox" name="headlines" value="1"> Send me the daily headlines
				</label>
				<label>
					My timezone
				</label> 
			[%
			USE this_format = format('%+0.4d %s');
			this_tzdescs = Slash.db.getDescriptions('tzdescription');
			this_tzcodes = Slash.db.getDescriptions('tzcodes');
        	        these_tzdescs = {};
			FOREACH tz = this_tzcodes.keys;
				this_num = this_tzcodes.$tz / 36;
				this_num = this_num.replace('50$', '30');
				these_tzdescs.$tz = this_format(this_num, this_tzdescs.$tz);
			END;

			this_tzcode = user.tzcode_orig || user.tzcode;
			Slash.createSelect('tzcode',
				these_tzdescs, this_tzcode, 1, 0, this_tzcodes.nsort
			);
		%]
		<div class="note">
			Select your current local time.
		</div>
[% IF constants.plugin.HumanConf && constants.hc && constants.hc_sw_newuser && user.state.hc %]
        [% IF user.state.hcinvalid %]
                [% user.state.hcerror %]
        [% ELSE %]
		<label>
			[% user.state.hcquestion %]
                	[% user.state.hchtml %]
                	<input type="text" name="hcanswer" value="" size=8 maxlength=8>
		</label>
		<p>Click the button to create your account and be mailed a password.</p>
		<input type="submit" name="newuser" value="Create Account">
        [% END %]
[% ELSE %]
		<input type="submit" name="newuser" value="Create Account">
[% END %]
</fieldset>
</form>
		<p>
			<a href="[% constants.real_rootdir %]/login.pl?op=userlogin">Log in to [% constants.sitename %]</a>.<br> Forget your password? <a href="[% constants.real_rootdir %]/login.pl?op=mailpasswdform">Have your password mailed to you</a> by entering your nickname, uid, or email address.
		</p>
	</div>
</div>
__seclev__
10000
__version__
$Id$
