Mercurial > hg > ywww
comparison user/confirmation.php @ 15:385ddd7c4b55 testing
use test_db.php to get mysqld_test instance
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Sun, 19 Feb 2017 16:17:53 +0000 |
parents | 077b0a0a3e6d |
children |
comparison
equal
deleted
inserted
replaced
14:1477b5e6dd16 | 15:385ddd7c4b55 |
---|---|
1 <?PHP | 1 <?PHP |
2 include "../../private/db.php"; | 2 include "../../../private/db_test.php"; |
3 | 3 |
4 | 4 |
5 // Passkey that got from link | 5 // Passkey that got from link |
6 $passkey=$_GET['passkey']; | 6 $passkey=$_GET['passkey']; |
7 $tbl_name1="temp_user"; | 7 $tbl_name1="temp_user"; |
57 | 57 |
58 // Delete information of this user from table "temp_members_db" that has this passkey | 58 // Delete information of this user from table "temp_members_db" that has this passkey |
59 mysqli_close($link); | 59 mysqli_close($link); |
60 $sql3="DELETE FROM $tbl_name1 WHERE confirm_code = '$passkey'"; | 60 $sql3="DELETE FROM $tbl_name1 WHERE confirm_code = '$passkey'"; |
61 //echo $sql3; | 61 //echo $sql3; |
62 include "../../private/db.php"; //need to reinclude otherwise an error is thrown | 62 include "../../../private/db_test.php"; //need to reinclude otherwise an error is thrown |
63 $result3=mysqli_query($link,$sql3); | 63 $result3=mysqli_query($link,$sql3); |
64 mysqli_close($link); | 64 mysqli_close($link); |
65 | 65 |
66 $message = "<HTML><STYLE>.chrome-seo_meta-nofollow,.chrome-seo_meta-nofollow *{outline:2px dashed #ffb400!important;outline-offset:1px;}.chrome-seo_nofollow,.chrome-seo_nofollow *{outline:2px dotted #e90000!important;outline-offset:1px;}</STYLE><HEAD><META http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"> | 66 $message = "<HTML><STYLE>.chrome-seo_meta-nofollow,.chrome-seo_meta-nofollow *{outline:2px dashed #ffb400!important;outline-offset:1px;}.chrome-seo_nofollow,.chrome-seo_nofollow *{outline:2px dotted #e90000!important;outline-offset:1px;}</STYLE><HEAD><META http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"> |
67 <TITLE> | 67 <TITLE> |