Current File : //var/wcp4/jminor/public_html/tmp/templates/protect_directory.html
<script>
function check_passwd() {
	if (!document.frm_protect.username.value  || !document.frm_protect.password.value )  {
		alert("Please enter the Username and Password");
		return false;
	}
}
</script>
<form name=frm_protect action='<%http_ref%>' method=post>
<link rel="stylesheet" href="<%html_url%>/<%scheme%>.css">
<body  class="background" leftmargin=5 topmargin=5 onload="document.frm_protect.p_username.focus(); <%if msg%>alert('<%msg%>');<%endif%>">
<table border='1' cellpadding='0' cellspacing='0' width=100%>
	<tr>
		<td>
			<table border='0' cellpadding='0' cellspacing='0' width=100%>
				<tr height=25>
					<td width='10%' ><%font%><b>&nbsp;Commands:</b></font></td>
					<td width='90%'><%font%>
					<%if show_all%>
					<a href='javascript:top.js_cmd_edit()'>Edit</a> | 
					<a href='javascript:top.js_cmd_download()'>Download</a> | 
					<a href='javascript:top.js_cmd_copy(1)'>Copy</a> | 
					<a href='javascript:top.js_cmd_delete()'>Delete</a> | 
					<a href='javascript:top.js_cmd_move(1)'>Move</a> | 
					<a href='javascript:top.js_cmd_chmod(1)'>Chmod</a> | 
					<a href='javascript:top.js_cmd_tail(1)'>Tail</a> | 
					<a href='javascript:top.js_cmd_perl(1)'>Perl</a> | 
					<a href='javascript:top.js_cmd_diff(1)'>Diff</a> | 
					<a href='javascript:top.js_cmd_tar(1)'>Tar</a></font>
					<%else%>
					<%if cmd_edit%><a href='javascript:top.js_cmd_edit()'>Edit</a> | <%endif%>
					<%if cmd_download%><a href='javascript:top.js_cmd_download()'>Download</a> | <%endif%>
					<%if cmd_copy%><a href='javascript:top.js_cmd_copy(1)'>Copy</a> | <%endif%>
					<%if cmd_delete%><a href='javascript:top.js_cmd_delete()'>Delete</a> | <%endif%>
					<%if cmd_move%><a href='javascript:top.js_cmd_move(1)'>Move</a> | <%endif%>
					<%if cmd_chmod%><a href='javascript:top.js_cmd_chmod(1)'>Chmod</a> | <%endif%>
					<%if cmd_tail%><a href='javascript:top.js_cmd_tail(1)'>Tail</a> | <%endif%>
					<%if cmd_perl%><a href='javascript:top.js_cmd_perl(1)'>Perl</a> | <%endif%>
					<%if cmd_diff%><a href='javascript:top.js_cmd_diff(1)'>Diff</a> | <%endif%>
					<%if cmd_tar%><a href='javascript:top.js_cmd_tar(1)'>Tar</a><%endif%></font>
					<%endif%>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<table border='0' cellpadding='2' cellspacing='0'>
	<%ifnot delete_list%>
	<tr>
		<td height=25><%font%>
		<%if pass_path%>
		Password directory is <b><%pass_path%></b>
		<%else%>
			Protect <b><%if work_path%><%work_path%><%else%>Root<%endif%></b> directory.
		<%endif%></font></td>
	</tr>
	<%endif%>
	<tr>
		<td>
			<table cellspacing=1 cellpadding=0>
				<tr>
					<td><%font%>User name: <input type=text name=p_username size='10'  class='button'></font></td>
					<td><%font%>Password:</font> <input type=password name=p_password size='10'  class='button'></td>
					<td><input type=submit name=add value='Add User'  class='submit'></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td><%font%>
		<%if delete_list%>User name: <%delete_list%> 
		<input type=submit name=remove value='Remove'"  class='submit'>&nbsp;
		<input type=submit name=remove_all value='Remove all'  class='submit'>
		<%if pass_path%>
		Password directory is <b><%pass_path%></b>
		<%else%>
		Protect <b><%if work_path%><%work_path%><%else%>Root<%endif%></b> directory.<%endif%></font></td>
		<%endif%>
	</tr>
</table>
<input type=hidden name=do value='fileman'>
<input type=hidden name=work_path value='<%work_path%>'>
<input type=hidden name=cmd_do value='cmd_passwd'>
<%ifnot user_sessions%>
<!--multi users-->
<input type=hidden name="session_id" value="<%session_id%>">
<%endif%>
<%if root_selected%>
<input type=hidden name='root_selected' value="<%root_selected%>">
<%endif%>
</form></body>