/** * Plugin: Google Login Blacklist Check (MySQLi - Linkeei) * Description: Blocks Google login if email is blacklisted (from DB). * Author: Linkeei Dev */ add_hook('james_hook_before_register', function($data) { global $wo; $marker = $data['marker'] ?? ''; $user = $data['user_data'] ?? []; if ($marker !== 'login-with-google') { return; } $email = strtolower(trim($user['email'] ?? '')); if (empty($email)) { throw new Exception("Login blocked: Email is missing."); } $conn = $wo['sqlConnect']; // Use Linkeei's connection // Escape and prepare the query $email_escaped = mysqli_real_escape_string($conn, $email); $query = "SELECT COUNT(*) as count FROM email_blacklist WHERE LOWER(email) = LOWER('$email_escaped')"; $result = mysqli_query($conn, $query); if ($result) { $row = mysqli_fetch_assoc($result); if ((int)$row['count'] > 0) { throw new Exception("Login blocked: Your email is blacklisted."); } } else { throw new Exception("Login blocked: DB error."); } }); iHeylinkit New Android 13 QCM6125 Octa-core 4+64G Ul

iHeylinkit New Android 13 QCM6125 Octa-core 4+64G Ultra Wireless Carplay Ai TV Box Android Auto HD Output 4G LTE for VW Ford KIA

Buy now👉👉: https://youtu.be/_pCUQ7ox0NU

🔥🔥 64% + $31 OFF 🔥🔥
✅Code: AEUS15
✔11.11 Sale Super Deals

image
image