prepare("SELECT id, user_name FROM users WHERE user_name = ?"); $stmt->bind_param("s", $username); $stmt->execute(); $result = $stmt->get_result(); if ($result->num_rows > 0) { if ($row = $result->fetch_assoc()) { // Validate the token (this part may require a more secure approach depending on your use case) $_SESSION["signedin"] = true; $_SESSION["id"] = $row['id']; $_SESSION["username"] = htmlspecialchars($username, ENT_QUOTES, 'UTF-8'); // Sanitize the username session_regenerate_id(true); // Regenerate session ID to prevent session fixation } } $stmt->close(); } function isOldFlipPhone() { $oldFlipPhoneKeywords = [ 'Nokia', 'SonyEricsson', 'Motorola', 'Samsung', 'LG', 'Sanyo', 'Alcatel', 'Kyocera', 'BlackBerry', 'Palm', 'Symbian', 'MIDP' ]; $userAgent = $_SERVER['HTTP_USER_AGENT'] ?? ''; foreach ($oldFlipPhoneKeywords as $keyword) { if (stripos($userAgent, $keyword) !== false) { return true; } } return false; } ?> www.bluestarch.com! - report - signed out
Fatal error: Uncaught Error: Call to undefined function isOldFlipPhone() in /var/www/html/php-includes/header.php:109 Stack trace: #0 /var/www/html/report.php(97): include() #1 {main} thrown in /var/www/html/php-includes/header.php on line 109