| Server IP : 192.169.170.185 / Your IP : 216.73.216.97 Web Server : Apache System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64 User : akhilnew ( 1712764) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/akhilnew/www/casereportsofsurgery.com/ |
Upload File : |
<?php
require_once("header.php");
$urlemail = isset($_GET['email']) ? $fn->escape(urldecode($_GET['email'])) : NULL;
$urltoken = isset($_GET['token']) ? $fn->escape($_GET['token']) : NULL;
if(($urlemail && $urltoken)):
$stmt = $mysqli->prepare("SELECT * FROM users WHERE (email = ? AND token = ?)") or die('An error occurred. Please try after some time.');
$stmt->bind_param('ss', $urlemail, $urltoken);
$stmt->execute();
$stmt->store_result();
$count_rows = $stmt->num_rows();
$stmt->close();
if($count_rows == 1):
$null = null;
$stmt = $mysqli->prepare("UPDATE users SET token = ? WHERE (email = ? AND token = ?)") or die('An error occurred. Please try after some time.');
$stmt->bind_param('sss', $null, $urlemail, $urltoken);
$stmt->execute();
$stmt->close();
echo 'Your email in now confirmed.';
else:
echo 'You followed invalid link.';
endif;
else:
echo 'You followed invalid link.';
endif;
require_once("footer.php");
?>