202 |
|
|
203 |
$sql = "SELECT * from users where username='$username'"; |
$sql = "SELECT * from users where username='$username'"; |
204 |
|
|
205 |
$loc_db->query("sql"); |
$loc_db->query($sql); |
206 |
|
|
207 |
$loc_db->next_record(); |
$loc_db->next_record(); |
208 |
|
|
209 |
$to = $loc_db->f("email"); |
$to = $loc_db->f("email"); |
210 |
$subject = "[locfinder] User Confirmation"; |
$subject = "[locfinder] User Confirmation"; |
211 |
$headers = "From: " . $opt_maintainer_email . "\r\nX-Mailer: PHP/" . phpversion(); |
$headers = "From: " . $opt_maintainer_email . "\r\nX-Mailer: PHP/" . phpversion(); |
212 |
$message = "Hi" . $loc_db->f("name") . "\r\n\r\nThankyou for registering as a user with locfinder - to complete your registration, all you need to do is click on the link below.\r\n\r\nBest of luck getting your node active!\r\n\r\nhttp:\\" . $opt_server . $opt_loc_path . "index.php?action=confirm&username=" . $username . "&hash=" . $loc_db->f("password"); |
$message = "Hi" . $loc_db->f("name") . "\r\n\r\nThankyou for registering as a user with locfinder - to complete your registration, all you need to do is click on the link below.\r\n\r\nBest of luck getting your node active!\r\n\r\nhttp:\\\" . $opt_server . $opt_loc_path . "index.php?action=confirm&username=" . $username . "&hash=" . $loc_db->f("password"); |
213 |
|
|
214 |
mail($to, $subject, $message, $headers); |
mail($to, $subject, $message, $headers); |
215 |
|
|