Fixed the broken API

pull/1/head
root 17 years ago
parent 920b3b44f8
commit 009b4894cd

@ -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']);
?>

Loading…
Cancel
Save