jakCheckuserdata($username, $userpass); if ($user_check == true) { // Now login in the user $jakuserlogin->jakLogin($user_check["username"], $userpass, $lcookies); // Write the log file each time someone login after to show success JAK_base::jakWhatslog('', $opcacheid, $user_check["id"], 0, 2, 0, '', $user_check["username"], '', $valid_ip, ''); // Unset the recover message if (isset($_SESSION['password_recover'])) unset($_SESSION['password_recover']); if (isset($_SESSION['LCRedirect']) && strpos($_SESSION['LCRedirect'], JAK_OPERATOR_LOC) !== false) { jak_redirect($_SESSION['LCRedirect']); } else { jak_redirect(BASE_URL); } } else { $ErrLogin = $jkl['l']; } } if (isset($_SESSION["userlock"])) { $uilock = explode("#", $_SESSION["userlock"]); } // Title and Description $SECTION_TITLE = $jkl["l21"]; $SECTION_DESC = ""; // Include the javascript file for results $js_file_footer = 'js_lock.php'; $template = 'lock.php'; ?>