if (!isset($_GET['msg'])) { //header("Location: http://hornetmedia.ca/evites.html"); } $db = ""; include './inc/admin_db.php'; if (isset($_POST['email'])) { $user_email = mysqli_real_escape_string($link, $_POST['email']); } if (isset($_POST['Submit'])) { if ($_POST['Submit']=='Login') { $md5pass = md5($_POST['pwd']); $sql = "SELECT id, user_email, current_login FROM users WHERE user_email = '$user_email' AND user_pwd = '$md5pass' AND user_activated='1'"; $result = mysqli_query($link, $sql) or die (mysqli_error($link)); $num = mysqli_num_rows($result); if ( $num != 0 ) { // A matching row was found - the user is authenticated. session_start(); list($user_id, $user_email, $past_login) = mysqli_fetch_row($result); // this sets variables in the session $_SESSION['user']= $user_email; // set last login date date_default_timezone_set("America/New_York"); $sql = "UPDATE users SET last_login='".$past_login."', current_login='".date("m/d/Y h:i a")."' WHERE user_email='".$user_email."'"; $result = mysqli_query($link, $sql) or die (mysqli_error($link)); if (isset($_GET['ret']) && !empty($_GET['ret'])) { header("Location: ".$_GET['ret']); } else { header("Location: control_panel.php"); } exit(); } header("Location: index.php?msg=Invalid Login. Please try again."); exit(); } } ?> hornet evites Project Dashboard
hornet
hornet media

Dashboard Login

Welcome to your project dashboard. Login below to access your projects.

Support | Forget Password?
© hornet media 2026