From 49b77257b20c5b5364b25a335369bc0cd5b759af Mon Sep 17 00:00:00 2001 From: root Date: Wed, 26 Dec 2007 22:27:45 +0000 Subject: [PATCH] Slightly improved --- www/api/ccsr.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/api/ccsr.php b/www/api/ccsr.php index 5cef94e..84c9d5d 100644 --- a/www/api/ccsr.php +++ b/www/api/ccsr.php @@ -8,7 +8,7 @@ die("403,That username couldn't be found\n"); $user = mysql_fetch_assoc($res); $memid = $user['id']; - $emails = ""; + $emails = array(); foreach($_REQUEST['email'] as $email) { $email = mysql_real_escape_string(trim($email)); @@ -71,11 +71,11 @@ mysql_query("insert into `emaillink` set `emailcertsid`='$certid', `emailid`='$emailid'"); $do = `../../scripts/runclient`; - sleep(5); // THIS IS BROKEN AND SHOULD BE FIXED + sleep(10); // THIS IS BROKEN AND SHOULD BE FIXED $query = "select * from `emailcerts` where `id`='$certid' and `crt_name` != ''"; $res = mysql_query($query); if(mysql_num_rows($res) <= 0) - die("404,Your certificate request has failed"); + die("404,Your certificate request has failed. ID: $certid"); $cert = mysql_fetch_assoc($res); echo "200,Authentication Ok\n"; readfile("../".$cert['crt_name']);