diff options
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 = ""; |