From 25b5cb3d40de5985f44468d33514abdf97a63816 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 22 Dec 2021 17:24:54 -0500 Subject: [PATCH] Moved Functions above check login so that check login can use some of the functions, Moved Fingerprinting to check login instead of in functions as its a more appropriate place --- check_login.php | 6 ++++ header.php | 83 --------------------------------------------- login.php | 1 + post.php | 29 +++++++++++++--- settings-update.php | 3 +- 5 files changed, 34 insertions(+), 88 deletions(-) diff --git a/check_login.php b/check_login.php index e908aaf4..e545b975 100644 --- a/check_login.php +++ b/check_login.php @@ -13,6 +13,12 @@ die; } + //SESSION FINGERPRINT + $session_ip = strip_tags(mysqli_real_escape_string($mysqli,get_ip())); + $session_os = strip_tags(mysqli_real_escape_string($mysqli,get_os())); + $session_browser = strip_tags(mysqli_real_escape_string($mysqli,get_web_browser())); + $session_device = strip_tags(mysqli_real_escape_string($mysqli,get_device())); + $session_user_id = $_SESSION['user_id']; $sql = mysqli_query($mysqli,"SELECT * FROM users, user_settings WHERE users.user_id = user_settings.user_id AND users.user_id = $session_user_id"); diff --git a/header.php b/header.php index 379d0c8c..e69de29b 100644 --- a/header.php +++ b/header.php @@ -1,83 +0,0 @@ - - - - - - - - - - - <?php echo $config_app_name; ?> - - - - - - - - - - - - - - - - - - - - -
- - - - - -
- - -
-
- - -
- - -
- diff --git a/login.php b/login.php index 86df9590..e09f7930 100644 --- a/login.php +++ b/login.php @@ -11,6 +11,7 @@ if(!file_exists('config.php')){ %h
Current Version
-
Update
NOW
+
Update
App
+
Update
Database Structure

Congratulations you are up to date!