<html>
||include||meta.tpl||
<head>
<link rel="stylesheet" type="text/css" href="||nwimg||||tpl_color||/surge.css" />
<script type="text/javascript" src="||common_files||/util.js"></script>
<script type="text/javascript" src="||nwimg||/layout.js"></script>
<script type="text/javascript">
<!--
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();
	}
}

function pgpexport()
{
	document.configform.cmd.value = "pgp_export";
	document.configform.page.value = "config_pgp";
	document.configform.submit();
}

function pgpimport()
{
	document.configform.cmd.value = "pgp_import";
	document.configform.page.value = "config_pgp";
	document.configform.submit();
}

//-->
</script>
<title>||cust_title|| - ||lang_str||PGP Profile||</title>
</head>

<body class="body" onload="doresize();" onresize="doresize()">

||include||_layout_start.tpl||

||ifdef||error||
	||include||_errorinline.tpl||
||endif||
||ifdef||msg||
	||include||_msginline.tpl||
||endif||

<form name="configform" enctype="multipart/form-data" method="post" action="||action||">
<input type="hidden" name="force_connection" value="true" />
<input type="hidden" name="utoken" value="||utoken||" />
<input type="hidden" name="page" value="config_adv" />
<input type="hidden" name="cmd" value="" />

<center>
<p><div class="LF b">||lang_str||PGP Profile||</div></p>
<table class="LT" cellpadding="0" cellspacing="0">
<tr class="bg1">
	<th colspan="3">List of PGP public Keys - <a href="||action||?cmd=pgp_update&amp;force_connection=true&amp;page=config_pgp&amp;utoken=||utoken||">update</a></th>
</tr>
||define||color||1||
||begin_pgp_public||
	<tr class="L||color||">
		||ifequal||color||1||
			||define||color||0||
		||else||
			||define||color||1||
		||endif||
		||ifdef||pgp_you||
			<td><input type="checkbox" name="sel_||href_text||pgp_name||"></td>
			<th align="right"><i>||pgp_name||</i></th>
		||else||
			<td><input type="checkbox" name="sel_||href_text||pgp_name||"></td>
			<td>||html_text||pgp_name||</td>
			<td nowrap="nowrap">UID = '||html_text||pgp_uid||'</td>
			<td><a href="||action||?cmd=pgp_remove&amp;force_connection=true&amp;page=config_pgp&amp;pgp_name=||href_text||pgp_name||&amp;utoken=||utoken||">remove</a></td>
		||endif||
	</tr>
||end_pgp_public||
	<tr>	<td colspan="4"><a href="javascript:pgpexport()">Export public keys</a></td></tr>
	<tr>	<td colspan="4"><hr></td></tr>
	<tr>	<td><table cellpadding="3" cellspacing="2">
		<tr>	<td colspan="4"><input type="file" size="60" name="attach"></td></tr>
		<tr>	<td colspan="4"><a href="javascript:pgpimport()">Import public keys</a></td></tr>
		</table></td>
	</tr>
</table>
<br>
<table cellpadding="5" class="bg1">
<tr>
	<td colspan="2" class="c"><a class="LF" href="||action||?cmd=config&amp;force_connection=true&amp;page=config_adv&amp;utoken=||utoken||&amp;&amp;">||lang_str||Back to advanced options||</a></td>
</tr>
||ifndef||have_pgp_key||
		<tr>
			<td align="right">&nbsp;</td>
			<td>Currently no PGP public/private keys have been set up for you. First you
			need to generate a new PGP key.</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 set up. By generating another key set
				the old key set will be replaced.
	||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||

||ifdef||have_pgp_key||
		<tr>
			<td align="right" valign="top"><br><b>||lang_str||Your PGP Public Key||:</b></td>
			||define||pub||(||my_pgp_public||)||
			<td align="center">
				<table border="1">
				<tr>	<td><pre>||html_line||pub||</pre></td></tr>
				</table>
			</td>
		</tr>
||endif||

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