diff --git a/www/api/ccsr.php b/www/api/ccsr.php index 1617bcc..5cef94e 100644 --- a/www/api/ccsr.php +++ b/www/api/ccsr.php @@ -71,12 +71,12 @@ mysql_query("insert into `emaillink` set `emailcertsid`='$certid', `emailid`='$emailid'"); $do = `../../scripts/runclient`; - sleep(1); + sleep(5); // 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"); $cert = mysql_fetch_assoc($res); echo "200,Authentication Ok\n"; - readfile($cert['crt_name']); + readfile("../".$cert['crt_name']); ?>