<html>
<head>

	<link rel="StyleSheet" href="||nwimg||/skin.css" type="text/css">
||include||css_blue.tpl||
||include||color.dat||
</head>

<body>
<form name="config_pgp" method="post" action="||action||" enctype="multipart/form-data">
	<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>

	<center>

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

<table width="100%" cellspacing="2">
<tr>
	<td align="center">
	<table border="1" cellpadding="0" cellspacing="0"  bgcolor="#FFFFFF" width="100%">
	<tr>
		<td bgcolor="||color_menu||" colspan="2">
			<table border="0" cellspacing="0" cellpadding="0" width="100%">
			<tr>	
				<th width="100%">||lang_str||PGP Profile||</th>
			</tr>
			</table>
		</td>
	</tr>
	<tr><td>
		<table cellpadding="5" cellspacing="0" width="100%">		
||ifndef||have_pgp_key||
		<tr>
			<td align="right">&nbsp;</td>
			<td>||lang_str||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">||lang_str||Automatically add PGP||<br /> ||lang_str||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">||lang_str||To generate a new PGP private/public key set please press the following button||.<br />
				<a href="javascript:generatekey()">||lang_str||Generate New Key||</a>

	||ifdef||have_pgp_key||
			<br /> ||lang_str||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">||lang_str||To remove your PGP private/public key set please press the following button||.<br />
				<a href="javascript:removekey()">||lang_str||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||">||lang_str||update||</a></td>
			<td align="center">
				<table border="1">
				<tr>	<th colspan="4">||lang_str||List of PGP public Keys||</th></tr>
				<tr>	<td><table cellpadding="3" cellspacing="2">
				||begin_pgp_public||
					<tr>	||ifdef||pgp_you||
							<td><input type="checkbox" name="sel_||href_text||pgp_name||"></td>
							<th><b><i>||pgp_name||</i></b></th>
						||else||
							<td><input type="checkbox" name="sel_||href_text||pgp_name||"></td>
							<td><b>||html_text||pgp_name||</b></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||">||lang_str||remove||</a></td>
						||endif||
					</tr>
				||end_pgp_public||
					<tr>	<td colspan="4"><a href="javascript:pgpexport()">Export public keys</a></td></tr>
					</table></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>

			</td>
		</tr>
||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>


<tr><td>
	<table cellpadding="5" cellspacing="0" width="100%">
	<tr>
	</tr>
	</table>
</td></tr>
||endif||

</table>
	</center>
</form>

</body>
</html>

<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.config_pgp.cmd.value = "pgp_generatekey";
		document.config_pgp.page.value = "config_pgp";
		document.config_pgp.submit();
	}
}
function removekey()
{
	x = confirm('Are you sure you wish remove your PGP key set?');
	if (x == true) {
		document.config_pgp.cmd.value = "pgp_stop";
		document.config_pgp.page.value = "config_pgp";
		document.config_pgp.submit();
	}
}

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

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

//-->
</script>
