Period
-
Prediction
-
Confidence
0%
Analysis Dashboard
Most Frequent
-
Least Frequent
-
Win Rate
0%
Wins
0
Losses
0
Server Status
Connected
History
Statistics
Total Wins
0
Total Losses
0
Win Rate
0%
0 && $predictions_used >= $predictions_limit) { header("Location: limit_exceeded.php?reason=predictions_exceeded"); exit; } // 增加已使用的预测次数 $stmt = $pdo->prepare("UPDATE users SET predictions_used = predictions_used + 1 WHERE `key` = ?"); $stmt->execute([$_SESSION["key"]]); // 如果维护模式开启且用户不是管理员,则重定向到 user 目录下的 maintenance 页面 if (isset($_SESSION['maintenance_mode']) && $_SESSION['maintenance_mode'] === true && !isset($_SESSION['is_admin'])) { header("Location: /user/maintenance.php"); exit; } // 检查用户是否已登录 if (!isset($_SESSION["loggedin"])) { header("Location: login.php"); exit; } // 检查维护模式 if (isset($_SESSION['maintenance_mode']) && $_SESSION['maintenance_mode'] === true) { header("Location: maintenance.php"); exit; } // 检查是否超过30分钟 if (time() - $_SESSION["login_time"] > 30 * 60) { session_destroy(); header("Location: http://teamckinfinityai.com/user/device_login.php"); exit; } /// 设置马来西亚吉隆坡时区 date_default_timezone_set('Asia/Kuala_Lumpur'); // 获取用户的密钥和设备 ID $key = $_SESSION["key"]; $deviceID = $_SESSION["device_id"]; // 从数据库中获取用户信息 $stmt = $pdo->prepare("SELECT * FROM users WHERE `key` = ? AND device_id = ?"); $stmt->execute([$key, $deviceID]); $user = $stmt->fetch(); if (!$user) { header("Location: login.php"); exit; } // 检查是否超出预测次数限制 if ($user['predictions_limit'] != -1 && $user['predictions_used'] >= $user['predictions_limit']) { header("Location: limit_exceeded.php"); exit; } // 增加已使用的预测次数 $stmt = $pdo->prepare("UPDATE users SET predictions_used = predictions_used + 1 WHERE `key` = ?"); $stmt->execute([$key]); if (!$user) { header("Location: login.php"); exit; } // 检查访问权限 $access_level = $_SESSION["access_level"] ?? 'basic'; if ($access_level === 'basic' || $access_level === 'standard' || $access_level === 'full') { // 允许访问 } else { header("Location: limit_exceeded.php?reason=access_denied"); exit; } ?>
-
-
Confidence
0%
Most Frequent
-
Least Frequent
-
Win Rate
0%
Wins
0
Losses
0
Server Status
Connected
Total Wins
0
Total Losses
0
Win Rate
0%