diff options
author | arf20 <aruizfernandez05@gmail.com> | 2024-03-27 19:20:05 +0100 |
---|---|---|
committer | arf20 <aruizfernandez05@gmail.com> | 2024-03-27 19:20:05 +0100 |
commit | 028151379c419a004e17418bdade2dab39dda298 (patch) | |
tree | ff49b846734d0ad29f466282cb6c82fdb42e9c88 /verify.php | |
parent | b853d962fb1dfe89d30d51de8267916c357a4371 (diff) | |
download | arfnet2-cstims-028151379c419a004e17418bdade2dab39dda298.tar.gz arfnet2-cstims-028151379c419a004e17418bdade2dab39dda298.zip |
Fix register and login
Diffstat (limited to 'verify.php')
-rw-r--r-- | verify.php | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,10 @@ <?php +// Include config file +require_once "config.php"; + function send_verify_notification($username) { + global $link; // send admin mail $sql = "SELECT email FROM users WHERE type = 'admin'"; $stmt = mysqli_prepare($link, $sql); @@ -29,9 +33,6 @@ if (isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true) { exit; } -// Include config file -require_once "config.php"; - // Define variables and initialize with empty values $code = ""; $code_err = ""; |