This commit is contained in:
parent
b6652020cf
commit
674044a525
1 changed files with 14 additions and 0 deletions
14
www/gpg.php
14
www/gpg.php
|
@ -104,11 +104,25 @@ function verifyEmail($email)
|
||||||
$resulttable=_("The following UIDs were found in your key:")."<br/><table border='1'><tr><td>#</td><td>"._("Name")."</td><td>"._("Email")."</td><td>Result</td>";
|
$resulttable=_("The following UIDs were found in your key:")."<br/><table border='1'><tr><td>#</td><td>"._("Name")."</td><td>"._("Email")."</td><td>Result</td>";
|
||||||
$i=0;
|
$i=0;
|
||||||
$lastvalidemail="";
|
$lastvalidemail="";
|
||||||
|
$npubs=0;
|
||||||
foreach(explode("\n", $gpg) as $line)
|
foreach(explode("\n", $gpg) as $line)
|
||||||
{
|
{
|
||||||
$bits = explode(":", $line);
|
$bits = explode(":", $line);
|
||||||
$resulttable.="<tr><td>".++$i."</td>";
|
$resulttable.="<tr><td>".++$i."</td>";
|
||||||
$name = $comment = "";
|
$name = $comment = "";
|
||||||
|
if($bits[0] == "pub")
|
||||||
|
{
|
||||||
|
$npubs++;
|
||||||
|
}
|
||||||
|
if($npubs>1)
|
||||||
|
{
|
||||||
|
showheader(_("Welcome to CAcert.org"));
|
||||||
|
echo "<font color='#ff0000'>"._("Please upload only one key at a time.")."</font>";
|
||||||
|
unset($_REQUEST['process']);
|
||||||
|
$id = $oldid;
|
||||||
|
unset($oldid);
|
||||||
|
exit();
|
||||||
|
}
|
||||||
if($bits[0] == "pub" && (!$keyid || !$when))
|
if($bits[0] == "pub" && (!$keyid || !$when))
|
||||||
{
|
{
|
||||||
$keyid = $bits[4];
|
$keyid = $bits[4];
|
||||||
|
|
Loading…
Reference in a new issue