<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>WebMail New Management Interface</title>
</head>

||ifdef||background||
<body background="||nwimg||/||background||">
||else||
<body>
||endif||
<center>
<table cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td valign="top">
		<img src="||nwimg||/logo.gif" alt="" /></td>
        <td>&nbsp;</td>
        <td align="center" valign="top">
		<font color="#FF0000" size="6">WebMail New Management Interface</font></td>
        <td>&nbsp;</td>
        <td align="right" valign="top"><img src="||nwimg||/logo.gif" alt="" /></td>
    </tr>
</table>
</center>
||ifdef||error||
	<center>
	<table border="1">		
		<tr>
			<td><img src="||nwimg||/attention.gif" alt="" /></td>
			<td bgcolor="ffffff">||error||</td>
		</tr>
	</table>
	</center>
||endif||


||ifndef||manpass||
	<h3>Welcome to the Managers Page. This is used to assist in mantaining your users.</h3>	
	<h3>You Must Enter Your Managers Password Below</h3>
	<form action="||action||" method="post">
		<input type="hidden" name="cmd" value="do_new_manager" />

		<center>
		<input type="password" size="20" name="manpass" />
		<input type="submit" name="domanager" size="10" value="Enter Manager" />
		</center>
	</form>
	<p><b>NOTE:</b> To setup a managers password you need to add the following line to your ini file:</p>

	<pre>                managers_password xxxxx</pre>
||else||

<script type="text/javascript">
<!--- hide script from old browsers
function mysubmit(cmd)
{
	document.managerform.cmd.value = cmd;
	document.managerform.submit();
}

function display_user(cmd)
{
	document.managerform.cmd.value = 'manager_user';
	document.managerform.user.value = cmd;
	document.managerform.submit();
}

// end hiding from old browsers -->
</script>


<form name="managerform" method="post" action="||action||">
	<input type="hidden" name="cmd" value="new_manager" />
	<input type="hidden" name="user" value="" />
	<input type="hidden" name="manpass" value="||manpass||" />
</form>

	<a href="javascript:mysubmit('new_manager');">Back</a>

	<center>
		<b>Hash Method Converting</b><br />


	<table border="0" width="75%">
	<tr>	<td>Converting the users on this page will NOT change the hash method
			that webmail is currently using. You also need to edit the webmail.ini file and add/change the 
			ini setting:
		</td> 
	</tr>
	<tr>	<td align="center"><table border="0">
		<tr>	<td></td><td><b>hash_method 1<b></td>
		<tr>	<td>or</td><td><b>hash_method 2<b></td>
		</table></td>
	</tr>
	</table>


	<form action="||action||" method="post">
		<input type="hidden" name="manpass" value="||manpass||" />
		<input type="hidden" name="wild_search" value="||wild_search||" />

	<table border="0" width="100%"> 
	
	<tr>
		<td align="center">
		<b>hash_method 1 (default)
			||ifequal||hash_method||2||
			||else||
				<br />(currently using)
			||endif||
		</b></td>	
		<td align="center"><b>hash_method 2
			||ifequal||hash_method||2||
				<br />(currently using)
			||endif||
		</b></td>
	</tr>
	<tr><td>
		The user profile directory layout for this method is:<br />

		&nbsp;&nbsp;&nbsp;<b>/u_xx/username@pop_host:port</b><br />

		Where 'u_xx' is build from the first two character of the username.<br />
		&nbsp;&nbsp;&nbsp;ie. <b>/u_jo/john@1_2_3_4:143</b>

		<center><input type="submit" name="do_manager_convert_one" size="10" value="Convert All User to Method 1" /></center>
	</td>
	<td>
		The user profile directory layout for this method is:<br />

		&nbsp;&nbsp;&nbsp;<b>/n_xx/yy/username@pop_host:port</b><br />
	
		Where 'n_xx' and 'yy' is generated from the full username.<br />
		&nbsp;&nbsp;&nbsp;ie. <b>/n_v0/w1/john@1_2_3_4:143</b>

		<center><input type="submit" name="do_manager_convert_two" size="10" value="Convert All User to Method 2" /></center>
	</td></tr>

	</table>
	</form>

	||ifdef||result||
		<table border="1" cellpadding="0" cellspacing="0">
		<tr><td>||result||</td></tr>
		</table>
	||endif||


	</center>
||endif||


||ifdef||register||
<p>If you are the system administrator of this site and you wish to register this 
copy of WebMail then you should click here ||register|| to enter order details.</p>
||endif||



<hr />
||copyright||
</body>
</html>
