mirror of https://github.com/itflow-org/itflow
Fix user agent var is guest view
This commit is contained in:
parent
583fe9807d
commit
9368a3b58d
|
|
@ -6,9 +6,9 @@ require_once("functions.php");
|
|||
session_start();
|
||||
|
||||
$ip = sanitizeInput(getIP());
|
||||
$ua = sanitizeInput($_SERVER['HTTP_USER_AGENT']);
|
||||
$os = sanitizeInput(getOS($ua));
|
||||
$browser = sanitizeInput(getWebBrowser($ua));
|
||||
$user_agent = sanitizeInput($_SERVER['HTTP_USER_AGENT']);
|
||||
$os = sanitizeInput(getOS($user_agent));
|
||||
$browser = sanitizeInput(getWebBrowser($user_agent));
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ if ($item_type == "Document") {
|
|||
|
||||
// Logging
|
||||
$name = sanitizeInput($login_row['login_name']);
|
||||
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Sharing', log_action = 'View', log_description = 'Viewed shared $item_type $name via link', log_client_id = $client_id, log_ip = '$ip', log_user_agent = '$ua'");
|
||||
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Sharing', log_action = 'View', log_description = 'Viewed shared $item_type $name via link', log_client_id = $client_id, log_ip = '$ip', log_user_agent = '$user_agent'");
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue