Slightly improved
This commit is contained in:
parent
adc88034d5
commit
49b77257b2
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
||||||
die("403,That username couldn't be found\n");
|
die("403,That username couldn't be found\n");
|
||||||
$user = mysql_fetch_assoc($res);
|
$user = mysql_fetch_assoc($res);
|
||||||
$memid = $user['id'];
|
$memid = $user['id'];
|
||||||
$emails = "";
|
$emails = array();
|
||||||
foreach($_REQUEST['email'] as $email)
|
foreach($_REQUEST['email'] as $email)
|
||||||
{
|
{
|
||||||
$email = mysql_real_escape_string(trim($email));
|
$email = mysql_real_escape_string(trim($email));
|
||||||
|
@ -71,11 +71,11 @@
|
||||||
mysql_query("insert into `emaillink` set `emailcertsid`='$certid', `emailid`='$emailid'");
|
mysql_query("insert into `emaillink` set `emailcertsid`='$certid', `emailid`='$emailid'");
|
||||||
|
|
||||||
$do = `../../scripts/runclient`;
|
$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` != ''";
|
$query = "select * from `emailcerts` where `id`='$certid' and `crt_name` != ''";
|
||||||
$res = mysql_query($query);
|
$res = mysql_query($query);
|
||||||
if(mysql_num_rows($res) <= 0)
|
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);
|
$cert = mysql_fetch_assoc($res);
|
||||||
echo "200,Authentication Ok\n";
|
echo "200,Authentication Ok\n";
|
||||||
readfile("../".$cert['crt_name']);
|
readfile("../".$cert['crt_name']);
|
||||||
|
|
Loading…
Reference in a new issue