mirror of https://github.com/itflow-org/itflow
Remove unused variable assignment. was calling get_os with no parameters, so nothing was ever returned anyway. Get_os instead can now be given the user agent to determine the OS
This commit is contained in:
parent
911b36b608
commit
b98439d74a
|
|
@ -24,7 +24,6 @@ if (!isset($_SESSION['logged']) || !$_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()));
|
||||
|
||||
// User agent
|
||||
$session_user_agent = strip_tags(mysqli_real_escape_string($mysqli,$_SERVER['HTTP_USER_AGENT']));
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ if (!$_SESSION['client_logged_in']) {
|
|||
|
||||
// SESSION FINGERPRINT
|
||||
$session_ip = strip_tags(mysqli_real_escape_string($mysqli, get_ip()));
|
||||
$session_os = strip_tags(mysqli_real_escape_string($mysqli, get_os()));
|
||||
|
||||
// Get user agent
|
||||
$session_user_agent = strip_tags(mysqli_real_escape_string($mysqli, $_SERVER['HTTP_USER_AGENT']));
|
||||
|
|
|
|||
Loading…
Reference in New Issue