mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
- Move the initialization of ip, user agent, browser and os vars to guest_header.php
- General tidy and bugfixing of undefined vars
This commit is contained in:
@@ -6,7 +6,9 @@ require_once("functions.php");
|
||||
session_start();
|
||||
|
||||
$ip = trim(strip_tags(mysqli_real_escape_string($mysqli, getIP())));
|
||||
$user_agent = strip_tags(mysqli_real_escape_string($mysqli, $_SERVER['HTTP_USER_AGENT']));
|
||||
$ua = strip_tags(mysqli_real_escape_string($mysqli, $_SERVER['HTTP_USER_AGENT']));
|
||||
$os = strip_tags(mysqli_real_escape_string($mysqli, getOS($ua)));
|
||||
$browser = strip_tags(mysqli_real_escape_string($mysqli, getWebBrowser($ua)));
|
||||
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user