<!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();
	}
}

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>
||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||" 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>
	||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 enabled ||product||.</td>
		</tr>
	</table>
	</center>
||endif||

<table width="85%" cellspacing="2">
<tr>
	<td align="center">
		<table cellpadding="5" bgcolor="#eeeeff" width="80%">
		<tr>
			<td bgcolor="#D6D6CE" colspan="2">
				<table border="0" cellspacing="0" cellpadding="0" width="100%">
				<tr>
					<th width="100%">PGP Profile</th>
					<td align="right" nowrap="nowrap"><a href="||action||?cmd=config&amp;force_connection=true&amp;page=config_adv&amp;utoken=||utoken||&amp;&amp;"><img border="0" alt="Back to advanced options page" src="||nwimg||/smallback.gif" /></a></td>
				</tr>
				</table>
			</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||
		<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="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>
</table>
	</center>
</form>

</body>
</html>
