Source cleanup + SQL structure

This commit is contained in:
flash 2024-12-24 10:37:16 +01:00
parent 85a010d482
commit e9c12c9321
9 changed files with 162 additions and 544 deletions
include

View file

@ -2,7 +2,7 @@
include_once '_utils.php';
define('FMF_UF_SCROLLBEYOND', 1);
define('FMF_UF_NEWSTYLE', 2);
//define('FMF_UF_NEWSTYLE', 2);
function get_user_id(string $username, string $email): int {
global $pdo;
@ -217,7 +217,7 @@ function verify_password(string $pass, ?int $user = null): bool {
function user_set_password(int $user, string $password): void {
global $pdo;
if($user < 1)
return;
@ -231,7 +231,7 @@ function user_set_password(int $user, string $password): void {
function user_set_email(int $user, string $email, bool $verified = false): ?string {
global $pdo;
if($user < 1)
return null;