<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script type="text/javascript">
<!--
function setTitle(){
	||ifequal||top||_top||
		window.top.document.title = "||cust_title|| - ||current_user|| - Options";
	||endif||
}

function generatekey()
{
	x = confirm('This might take a while, are you sure you wish to Generate a PGP key set?');
	if (x == true) {
		document.configform.cmd.value = "pgp_generatekey";
		document.configform.page.value = "config_pgp";
		document.configform.submit();
	}	
}
function removekey()
{
	x = confirm('Are you sure you wish remove your PGP key set?');
	if (x == true) {
		document.configform.cmd.value = "pgp_stop";
		document.configform.page.value = "config_pgp";
		document.configform.submit();
	}	
}

//-->
</script>
||just_include||configfcss.tpl||
<title>PGP Profile</title>
</head>

<body background="||cust_panel_background||" bgcolor="||cust_panel_bgcolor||" onload="setTitle();">
<form name="configform" method="post" action="||action||">
	<input type="hidden" name="force_connection" value="true" />
	<input type="hidden" name="cmd" value="" />
	<input type="hidden" name="page" value="configf" />
	<input type="hidden" name="utoken" value="||utoken||" />
	<p>&nbsp;</p>
	||ifdef||error||
		<center>
		<table border="1">
			<tr>
				<td><img src="||nwimg||/attention.gif" alt="Attention" /></td>
				<td bgcolor="ffffff">||error||</td>
			</tr>
		</table>
		</center>
	||endif||

	||ifdef||msg||
		<center>
		<table border="1">
			<tr>	<td bgcolor="ffffff">||msg||</td>
			</tr>
		</table>
		</center>
	||endif||

	<center>

||ifndef||pgp_enabled||
	<center>
	<table border="1">
		<tr>	<td bgcolor="ffffff">For the following configuration page to work you 
			need a PGP enable ||product||</td>
		</tr>
	</table>
	</center>
||endif||

	<table width="85%"><tr><td><table bgcolor="#eeeeff" cellspacing="0" cellpadding="2">
	<tr bgcolor="#D6D6CE">
		<th nowrap="nowrap">PGP Profile</th>
		<td align="right">&nbsp;</td>
	</tr>

||ifndef||have_pgp_key||
	<tr>
		<td align="right">&nbsp;</td>
		<td>Currently no PGP public/private keys have been setup for you, you will 
			need to first generate new PGP keys see below</td>
	</tr>	
||else||
<!--	<tr>
		<td align="right">Automatically add PGP<br /> public keys to key ring</td>
		<td><input type=checkbox name="pgp_autoadd" ||is_checked||pgp_autoadd||></td>
	</tr>
-->
||endif||
	<tr>
		<td align="right">&nbsp;</td>
		<td align="center">To generate a new PGP private/public key set please press the following button<br />
			<a href="javascript:generatekey()">Generate New Key</a>

||ifdef||have_pgp_key||
		<br /> You currently have a PGP public/private key setup, by generating another key set 
			the old key set will be replace.
||endif||
		</td>
	</tr>
||ifdef||have_pgp_key||
	<tr>
		<td align="right">&nbsp;</td>
		<td align="center">To remove your PGP private/public key set please press the following button<br />
			<a href="javascript:removekey()">Remove PGP Key</a>

		</td>
	</tr>
||endif||

	<tr>
		<td align="right">&nbsp;</td>
		<td>&nbsp;</td>
	</tr>

	<tr>
		<td align="center"><a href="||action||?cmd=pgp_update&amp;page=config_pgp&amp;utoken=||utoken||">update</a></td>
		<td align="center">
			<table border="1">
			<tr>	<th colspan="3">List of PGP public Keys</th></tr>
			
			||begin_pgp_public||
				<tr>	||ifdef||pgp_you||
						<th align="right"><i>||pgp_name||</i></th>
					||else||
						<td>||html_text||pgp_name||</td>
						<td nowrap="nowrap">UID = '||html_text||pgp_uid||'</td>
						<td><a href="||action||?cmd=pgp_remove&amp;page=config_pgp&amp;pgp_name=||href_text||pgp_name||&amp;utoken=||utoken||">remove</a></td>
					||endif||					
				</tr>
			||end_pgp_public||

			</table>

		</td>
	</tr>

	</table></td></tr></table>
	</center>
</form>

</body>
</html>
