mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2026-06-02 14:14:47 -04:00
fix subscriptions feature for php8 and add mailhog
This commit is contained in:
@@ -190,7 +190,7 @@ Class Subscriber
|
||||
{
|
||||
global $mysqli;
|
||||
|
||||
|
||||
// error_log(print_r($token, TRUE));
|
||||
$stmt = $mysqli->prepare("SELECT subscriberID, token, userID, active, expires FROM subscribers WHERE token LIKE ? LIMIT 1");
|
||||
$stmt->bind_param("s", $token );
|
||||
$stmt->execute();
|
||||
@@ -202,7 +202,7 @@ Class Subscriber
|
||||
// No data found, fail gently...
|
||||
return false;
|
||||
}
|
||||
|
||||
// error_log(print_r($row, TRUE));
|
||||
// If account is not already active, check if we are within timeframe of exipre +2h
|
||||
// and active if so, otherwise,delete account and return falsev
|
||||
if ( $row['active'] <> 1 ) {
|
||||
|
||||
Reference in New Issue
Block a user