diff --git a/check_login.php b/check_login.php index e24efb6a..9bda9444 100644 --- a/check_login.php +++ b/check_login.php @@ -23,7 +23,7 @@ if(!$_SESSION['logged']){ // 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_os = strip_tags(mysqli_real_escape_string($mysqli,get_os())); // User agent $session_user_agent = strip_tags(mysqli_real_escape_string($mysqli,$_SERVER['HTTP_USER_AGENT'])); diff --git a/client_overview.php b/client_overview.php index fce0d2f1..22f2f65a 100644 --- a/client_overview.php +++ b/client_overview.php @@ -31,7 +31,7 @@ $sql_domains_expiring = mysqli_query($mysqli,"SELECT * FROM domains -
+
diff --git a/functions.php b/functions.php index bbbe397d..92a4172f 100644 --- a/functions.php +++ b/functions.php @@ -86,8 +86,8 @@ function get_ip() { return $ip; } -function get_web_browser() { - $user_agent = get_user_agent(); +function get_web_browser($user_browser) { + //$user_agent = $log_user_agent; $browser = "Unknown Browser"; $browser_array = array( '/msie/i' => " Internet Explorer", @@ -98,15 +98,14 @@ function get_web_browser() { '/opera/i' => " Opera" ); foreach ($browser_array as $regex => $value) { - if (preg_match($regex, $user_agent)) { + if (preg_match($regex, $user_browser)) { $browser = $value; } } return $browser; } -function get_os() { - $user_agent = get_user_agent(); +function get_os($user_os) { $os_platform = "Unknown OS"; $os_array = array( '/windows nt 10/i' => " Windows 10", @@ -126,7 +125,7 @@ function get_os() { '/android/i' => " Android" ); foreach ($os_array as $regex => $value) { - if (preg_match($regex, $user_agent)) { + if (preg_match($regex, $user_os)) { $os_platform = $value; } } diff --git a/logs.php b/logs.php index 8d6fc0b7..9a740c57 100644 --- a/logs.php +++ b/logs.php @@ -67,7 +67,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); ?>
-
+

Audit Logs

@@ -169,7 +169,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); - $log_user_browser"; ?> + $log_user_browser
$log_user_agent"; ?> 10) { } if($p <> $total_pages){ - echo "
  • Next
  • "; + echo "
  • Next
  • "; } ?> diff --git a/settings_alerts.php b/settings_alerts.php index 3f9e7506..4723fec9 100644 --- a/settings_alerts.php +++ b/settings_alerts.php @@ -1,7 +1,7 @@
    -
    +

    Alerts

    diff --git a/settings_backup.php b/settings_backup.php index 312e1fe3..07f7b1aa 100644 --- a/settings_backup.php +++ b/settings_backup.php @@ -1,7 +1,7 @@
    -
    +

    Download Database

    @@ -12,7 +12,7 @@
    -
    +

    Backup Master Encryption Key

    diff --git a/settings_defaults.php b/settings_defaults.php index b2613e9d..c64898ac 100644 --- a/settings_defaults.php +++ b/settings_defaults.php @@ -1,7 +1,7 @@
    -
    +

    Defaults

    diff --git a/settings_integrations.php b/settings_integrations.php index 9576ec22..0666b64f 100644 --- a/settings_integrations.php +++ b/settings_integrations.php @@ -1,7 +1,7 @@
    -
    +

    Integration Settings

    diff --git a/settings_invoice.php b/settings_invoice.php index e3298f8b..12db8763 100644 --- a/settings_invoice.php +++ b/settings_invoice.php @@ -1,7 +1,7 @@
    -
    +

    Invoice Settings

    diff --git a/settings_mail.php b/settings_mail.php index 4b25de82..cb3d6edf 100644 --- a/settings_mail.php +++ b/settings_mail.php @@ -1,7 +1,7 @@
    -
    +

    Mail Settings

    @@ -131,7 +131,7 @@
    -
    +

    Test Email Sending

    @@ -151,7 +151,7 @@
    -
    +

    Test Email Receiving

    diff --git a/settings_modules.php b/settings_modules.php index 09c0a7ac..5a762ba0 100644 --- a/settings_modules.php +++ b/settings_modules.php @@ -1,7 +1,7 @@
    -
    +

    Modules

    diff --git a/settings_online_payment.php b/settings_online_payment.php index db7a8d54..a6e14107 100644 --- a/settings_online_payment.php +++ b/settings_online_payment.php @@ -5,7 +5,7 @@
    -
    +

    Online Payment

    diff --git a/settings_quote.php b/settings_quote.php index f0bc54b6..dc0d6181 100644 --- a/settings_quote.php +++ b/settings_quote.php @@ -1,7 +1,7 @@
    -
    +

    Quote Settings

    diff --git a/settings_theme.php b/settings_theme.php index 8d9fd3e4..4b015f61 100644 --- a/settings_theme.php +++ b/settings_theme.php @@ -1,7 +1,7 @@
    -
    +

    Theme

    diff --git a/settings_ticket.php b/settings_ticket.php index e41dbb6f..308b411f 100644 --- a/settings_ticket.php +++ b/settings_ticket.php @@ -1,7 +1,7 @@
    -
    +

    Ticket Settings

    diff --git a/settings_update.php b/settings_update.php index bbe27db0..6003c668 100644 --- a/settings_update.php +++ b/settings_update.php @@ -22,7 +22,7 @@ $git_log = shell_exec("git log $repo_branch..origin/$repo_branch --pretty=format ?>
    -
    +

    Update