bug 1199: Remove left over debugging code
authorMichael Tänzer <neo@nhng.de>
Tue, 6 Aug 2013 22:39:46 +0000 (00:39 +0200)
committerMichael Tänzer <neo@nhng.de>
Tue, 6 Aug 2013 22:39:46 +0000 (00:39 +0200)
Signed-off-by: Michael Tänzer <neo@nhng.de>
www/gpg.php

index 317072c..c3ba98d 100644 (file)
@@ -82,13 +82,13 @@ function verifyEmail($email)
        $state=0;
        if($oldid == "0" && $CSR != "")
        {
-               $debugkey = $gpgkey = clean_gpgcsr($CSR);
+               $gpgkey = clean_gpgcsr($CSR);
 
                $tnam = tempnam('/tmp/', '__gpg');
                $fp = fopen($tnam, 'w');
                fwrite($fp, $gpgkey);
                fclose($fp);
-               $debugpg = $gpg = trim(`gpg --with-colons --homedir /tmp 2>&1 < $tnam`);
+               $gpg = trim(`gpg --with-colons --homedir /tmp 2>&1 < $tnam`);
                unlink($tnam);
 
                $lines = "";
@@ -260,7 +260,6 @@ function verifyEmail($email)
                        unset($_REQUEST['process']);
                        $id = $oldid;
                        unset($oldid);
-                       $do = `echo "$debugkey\n--\n$debugpg\n--" >> /www/tmp/gpg.debug`;
                        exit();
                }
                elseif($nerr)
@@ -303,7 +302,7 @@ function verifyEmail($email)
                system("gpg --homedir $cwd --import $cwd/gpg.csr");
 
 
-               $debugpg = $gpg = trim(`gpg --homedir $cwd --with-colons --fixed-list-mode --list-keys $keyid 2>&1`);
+               $gpg = trim(`gpg --homedir $cwd --with-colons --fixed-list-mode --list-keys $keyid 2>&1`);
                $lines = "";
                $gpgarr = explode("\n", $gpg);
                foreach($gpgarr as $line)