{capture name="title"} - {l}User Management{/l}{/capture}
{capture assign="in_page_title"}{l}User Management{/l}{/capture}
{include file="header.tpl"}

{include file="top_bar2.tpl"}
{strip}
<br></br>
{if $thank_you}
<div class="msg">{l}Thank you for registering. Your account has been created. You may now log in with your username and password.{/l}</div>

{elseif $agreement_terms}
<div id="bar"><h3>{l}Registration Agreement Terms{/l}</h3></div>	




<table width="98%" border="0" align="center">
   <tr>
      <td><div align="justify" class="linkshortdesc">
         While the administrators and editors of this link directory will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every link. Therefore you acknowledge that all links submitted to this link directory express the views and opinions of the author and not the administrators, editors or webmaster (except for posts by these people) and hence will not be held liable.
<br /><br />
         You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other links and/or material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all submitted links is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and editors of this link directory have the right to remove, edit or move any link at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and editors cannot be held responsible for any cracking attempt that may lead to the data being compromised.
<br /><br />
         This link directory uses sessions to store information. These do not contain any of the information you have entered above; they serve only to improve your viewing and submit pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).
<br /><br />
         By clicking Register below you agree to be bound by these conditions.
    </div></td>
   </tr>
   <tr>
      <td class="navbar">
         <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register&amp;agreed=true" title="{l}I Agree to these terms{/l}">{l}I Agree to these terms{/l}</a>
      </td>
   </tr>
   <tr>
      <td class="navbar">
         <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register&amp;agreed=false" title="{l}I Do Not Agree to these terms{/l}">{l}I Do Not Agree to these terms{/l}</a>
      </td>
   </tr>
</table>

{elseif $confirm eq 1}
   {if $password_recovered eq 1}
<div class="msg">{l}You can now login with your new password.{/l}</div>


{elseif $password_recovered eq 0}
<div class="err">{l}An error occured while saving your new password.{/l}</div>
{/if}

{elseif $send_password eq 1}
   {if $email_status eq 1 or $wrong_user_details eq 1}
<div class="{if $email_sent eq 'sent'}msg{else}err{/if}">
{if $email_sent eq 'sent'}
{l}Please check your email to confirm your new password request.{/l}
{elseif $email_sent eq 'error'}
{l}An error occurred while sending the email.{/l}
{if $email_error_msg}<br />{$email_error_msg}{/if}
{elseif $wrong_user_details}
{l}The details you supplied do not match any registered user.{/l}
{else}
{l}Unknown error.{/l}
{/if}
</div>

   
   
{else}
<form method="post" action="">
<div id="bar"><h3>{l}Recover Password{/l}</h3></div>	

  
<table width="98%" border="0" cellspacing="2" cellpadding="2" align="center">
      <tr>
         <td class="navbar" width="110"><span class='req'>*</span>{l}Login{/l}:</td>
         <td class="linkshortdesc">
            <input type="text" name="LOGIN" value="{$LOGIN}" size="25" maxlength="{$smarty.const.USER_LOGIN_MAX_LENGTH}" class="text" /><br />
            {validate form="profile" id="v_LOGIN" message=$smarty.capture.field_char_required}
            {validate form="profile" id="v_LOGIN_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.USER_LOGIN_MIN_LENGTH|replace:'#MAX#':$smarty.const.USER_LOGIN_MAX_LENGTH}
         </td>
      </tr>
      <tr>
         <td class="navbar"><span class='req'>*</span>{l}Email{/l}:</td>
         <td class="linkshortdesc">
            <input type="text" name="EMAIL" value="{$EMAIL}" size="20" maxlength="255" class="text" /><br />
			{validate form="submit_link" id="v_OWNER_EMAIL_BANNED" message=$smarty.capture.email_banned}
            {validate form="profile" id="v_EMAIL" message=$smarty.capture.invalid_email}
         </td>
      </tr>
      {if $smarty.const.VISUAL_CONFIRM}
      <tr>
         <td class="navbar" valign="top">
            <span class='req'>*</span>{l}Confirmation code{/l}
            </td>
         <td>		 
		    <input type="text" name="CAPTCHA" value="" size="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" maxlength="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" class="text" autocomplete="off" />
            {validate form="profile" id="v_CAPTCHA" message=$smarty.capture.invalid_code}<br />
			<p class="small">{l}This helps prevent automated registrations.{/l}</p>
			<input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" /> <img src="{$smarty.const.DOC_ROOT}/captcha.php?imagehash={$imagehash}" class="captcha" alt="{l}Visual Confirmation Security Code{/l}" title="{l}Visual Confirmation Security Code{/l}" />
         </td>
      </tr>
      {/if}

      <tr>
         <td>&nbsp;</td>
         <td><input type="submit" name="submit" value="Submit" /></td>
      </tr>
   </table><br />

   </form>
   {/if}

{elseif $user_registration eq 1 or $user_edit eq 1}
<form method="post" action="">
<div id="bar"><h3>{if $user_registration eq 1}{l}Registration Information{/l}{elseif $user_edit eq 1}{l}Update Information{/l}{/if}</h3></div>	



<table width="98%" border="0" align="center">
   {if $user_registration eq 1}
   <tr>
      <td class="navbar" width="30%"><span class='req'>*</span>{l}Login{/l}:</td>
      <td>
         <input type="text" name="LOGIN" value="{$LOGIN}" size="25" maxlength="{$smarty.const.USER_LOGIN_MAX_LENGTH}" class="text" />
         {validate form="profile" id="v_LOGIN" message=$smarty.capture.field_char_required}
         {validate form="profile" id="v_LOGIN_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.USER_LOGIN_MIN_LENGTH|replace:'#MAX#':$smarty.const.USER_LOGIN_MAX_LENGTH}
         {validate form="profile" id="v_LOGIN_U" message=$smarty.capture.login_not_unique}
      </td>
   </tr>
   {/if}
   <tr>
      <td class="navbar" width="30%"><span class='req'>*</span>{l}Name{/l}:</td>
      <td>
         <input type="text" name="NAME" value="{$NAME}" size="25" maxlength="{$smarty.const.USER_NAME_MAX_LENGTH}" class="text" />
         {validate form="profile" id="v_NAME" message=$smarty.capture.field_char_required}
         {validate form="profile" id="v_NAME_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.USER_NAME_MIN_LENGTH|replace:'#MAX#':$smarty.const.USER_NAME_MAX_LENGTH}
      </td>
   </tr>
   <tr>
      <td class="navbar" width="30%"><span class='req'>*</span>{l}Password{/l}:</td>
      <td>
         <input type="password" name="PASSWORD" value="" size="25" maxlength="{$smarty.const.USER_PASSWORD_MAX_LENGTH}" class="text" />
         {validate form="profile" id="v_PASSWORD" message=$smarty.capture.field_pass_required}
         {validate form="profile" id="v_PASSWORD_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.USER_PASSWORD_MIN_LENGTH|replace:'#MAX#':$smarty.const.USER_PASSWORD_MAX_LENGTH}
      </td>
   </tr>
   <tr>
      <td class="navbar" width="30%"><span class='req'>*</span>{l}Confirm Password{/l}:</td>
      <td>
         <input type="password" name="PASSWORDC" value="" size="25" maxlength="{$smarty.const.USER_PASSWORD_MAX_LENGTH}" class="text" />
         {validate form="profile" id="v_PASSWORDC" message=$smarty.capture.password_not_match}
      </td>
   </tr>
   
   
      <tr>
      <td class="navbar" width="30%"><span class='req'>*</span>{l}Language{/l}:</td>
      <td>
         {html_options options=$languages selected=$LANGUAGE name="LANGUAGE"}
         {validate form="profile" id="v_LANGUAGE" message=$smarty.capture.field_required}
      </td>
   </tr>
   
   
   
   
   <tr>
      <td class="navbar" width="30%"><span class='req'>*</span>{l}Email{/l}:</td>
      <td>
         <input type="text" name="EMAIL" value="{$EMAIL}" size="25" maxlength="255" class="text" />
		 {validate form="submit_link" id="v_OWNER_EMAIL_BANNED" message=$smarty.capture.email_banned}
         {validate form="profile" id="v_EMAIL" message=$smarty.capture.invalid_email}
         {validate form="profile" id="v_EMAIL_U" message=$smarty.capture.email_not_unique}
      </td>
   </tr>
   {if $smarty.const.VISUAL_CONFIRM}
      <tr>
         <td class="navbar" width="30%" valign="top">
            <span class='req'>*</span>{l}Confirmation code{/l}
            </td>
         <td>
            <input type="text" name="CAPTCHA" value="" size="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" maxlength="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" class="text" autocomplete="off" />
            {validate form="profile" id="v_CAPTCHA" message=$smarty.capture.invalid_code}<br />
			<p class="small">{l}This helps prevent automated registrations.{/l}</p>
			<input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" /> <img src="{$smarty.const.DOC_ROOT}/captcha.php?imagehash={$imagehash}" class="captcha" alt="{l}Visual Confirmation Security Code{/l}" title="{l}Visual Confirmation Security Code{/l}" />
        </td>
      </tr>
   {/if}
   <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="submit" value="Register" /></td>
   </tr>
</table>
<br />

{if $profileUpdate}
<div class="msg">{l}Profile updated{/l}</div>
{/if}

</form>
{/if}

{include file="footer.tpl"}
{/strip}