mirror of
https://silica.codes/islehorse/HorseIsleWeb.git
synced 2025-05-21 18:46:30 +12:00
Update email validation
This commit is contained in:
parent
0370556c20
commit
9b442b3284
3 changed files with 70 additions and 9 deletions
|
@ -487,6 +487,21 @@ function count_LastOn(int $userId)
|
|||
return intval($v[0]);
|
||||
}
|
||||
|
||||
function get_email_activation_status(int $userId)
|
||||
{
|
||||
|
||||
|
||||
include('config.php');
|
||||
$connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'");
|
||||
$stmt = $connect->prepare("SELECT EmailActivated FROM Users WHERE Id=?");
|
||||
$stmt->bind_param("i", $userId);
|
||||
$stmt->execute();
|
||||
$result = $stmt->get_result();
|
||||
$v = $result->fetch_row();
|
||||
|
||||
|
||||
return $v[0] === "YES";
|
||||
}
|
||||
|
||||
function get_LastOn(int $userId)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue