summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorKarl-Heinz Gödderz <Devel@GuKK-Online.de>2018-03-05 15:28:30 +0100
committerKarl-Heinz Gödderz <Devel@GuKK-Online.de>2018-03-05 15:28:30 +0100
commit67062a789285c7096e976a7ae7543a569bfc8678 (patch)
treea186bfe9c7e3cd94a4d8f9f017da80afe2016fd2 /www
parent000b17a9a909737930d59dee82c40e7eab2fa337 (diff)
downloadcacert-devel-67062a789285c7096e976a7ae7543a569bfc8678.tar.gz
cacert-devel-67062a789285c7096e976a7ae7543a569bfc8678.tar.xz
cacert-devel-67062a789285c7096e976a7ae7543a569bfc8678.zip
testing for photo-ids
Diffstat (limited to 'www')
-rw-r--r--www/gpg.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/www/gpg.php b/www/gpg.php
index cb72475..3b87009 100644
--- a/www/gpg.php
+++ b/www/gpg.php
@@ -128,6 +128,8 @@ function verifyEmail($email)
$lines = "";
$gpgarr = explode("\n", trim($gpg));
+ $containsphoto = FALSE;
+
foreach($gpgarr as $line)
{
#echo "Line[]: $line <br/>\n";
@@ -137,7 +139,23 @@ function verifyEmail($email)
$lines .= "\n";
$lines .= $line;
}
+ elseif(substr($line, 0, 3) == "uat")
+ {
+ $containsphoto = TRUE;
+ }
+ }
+
+ if ($containsphoto)
+ {
+ showheader(_("Welcome to CAcert.org"));
+
+ echo "<p style='color:#ff0000'>"._("There is an image/photo in your key.")."</p>";
+ unset($_REQUEST['process']);
+ $id = $oldid;
+ unset($oldid);
+ exit();
}
+
$gpg = $lines;
$expires = 0;
$nerr=0; $nok=0;