/*=========================================*/ foreach ($icon_list as $v) { list($icon["name"], $icon["path"]) = explode("||", $v); //小文字にする $icon["name"] = strtolower($icon["name"]); $icon_path[$icon["name"]] = $icon["path"]; } /*=========================================*/ /* データ編集 */ /*=========================================*/ if (is_array($data)) { foreach ($data as $v) { if ($v["useragent"] == "") { continue; } $ua = getuseragent($v["useragent"]); if (!array_key_exists($ua[0], $main)) { $main[$ua[0]][$ua[1]] = 1; $main[$ua[0]]["total"] = 1; } else { $main[$ua[0]][$ua[1]]++; $main[$ua[0]]["total"]++; } $main["total"]++; //指定ログ取得 if (isset($_GET["sel"]) && $ua[0] == $_GET["sel"]) { $select[] = $v; } } unset($data); }
<style type="text/css"> #chat_toggle { visibility: hidden; display: none; } </style> <?php require_once "models/config.php"; if (isUserLoggedIn()) { echo '<meta http-equiv="refresh" content="0; URL=index.php?page=account">'; die; } if (isLoginDisabled()) { echo "Logins are currently disabled."; } else { if (!empty($_POST)) { if ($_SESSION["Login_Attempts"] > 4) { $account = mysql_real_escape_string(strip_tags($loggedInUser->display_username)); $uagent = mysql_real_escape_string(getuseragent()); //get user agent $ip = mysql_real_escape_string(getIP()); //get user ip if (isUserLoggedIn) { if ($account != null) { $account = mysql_real_escape_string($loggedInUser->display_username); } else { $account = mysql_real_escape_string("Guest/Not Logged In"); } } $date = mysql_real_escape_string(gettime()); $sql = @mysql_query("INSERT INTO access_violations (username, ip, user_agent, time) VALUES ('{$account}', '{$ip}', '{$uagent}', '{$date}');");