From e0cf9622750ba4a2a0709d10cc3272530e85972f Mon Sep 17 00:00:00 2001 From: Philipp Dunkel Date: Thu, 15 Oct 2009 21:41:37 +0000 Subject: [PATCH] Refactored code for generatecertpath function, removed old code --- www/gpg.php | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/www/gpg.php b/www/gpg.php index 9ee6dda..26998d8 100644 --- a/www/gpg.php +++ b/www/gpg.php @@ -463,23 +463,11 @@ function verifyEmail($email) } + $csrname=generatecertpath("csr","gpg",$id); + $do=`gpg --homedir $cwd --batch --export-options export-minimal --export $keyid >$csrname`; - $do=`gpg --homedir $cwd --batch --export-options export-minimal --export $keyid >../csr/gpg-$id.csr`; - - //echo "Export: $do\n"; - - //$fp = fopen("../csr/gpg-$id.csr", "w"); - //fputs($fp, clean_csr($CSR')); - //fclose($fp); - - -if(1) -{ - - mysql_query("update `gpg` set `csr`='../csr/gpg-$id.csr' where `id`='$id'"); - + mysql_query("update `gpg` set `csr`='$csrname' where `id`='$id'"); waitForResult('gpg', $id); -} showheader(_("Welcome to CAcert.org")); echo $resulttable;