/** * 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 JAMES_blacklisted_emails 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."); } }); Delhi Tour
Delhi Tour
Delhi Tour

Delhi Tour

@delhitours

Discovering Delhi: A Comprehensive Guide to Unforgettable Tours and Attractions
https://www.thedelhitours.com/....blog/guide-to-delhi-

Discovering Delhi: Guide to Unforgettable Delhi Tours & Attractions
Favicon 
www.thedelhitours.com

Discovering Delhi: Guide to Unforgettable Delhi Tours & Attractions

Discover Delhi with Unforgettable Delhi Tours and Attraction help to Explore Delhi in Better Way. Book Your Delhi Tour with us

Travel Tips for Delhi: Do’s and Don’t for First-Time Visitors
https://www.thedelhitours.com/....blog/travel-tips-for

Favicon 
www.thedelhitours.com

Travel Tips for Delhi: Do's and Don'ts for First-Time Visitors

Travel Tips for Delhi: Dos and Don’ts for First-Time Visitors. Book your Delhi Travel Tour with us and make it memorable.

Places to Visit in Delhi with Family

https://www.thedelhitours.com/....blog/places-to-visit

Popular 33 Places to Visit in Delhi with Family
Favicon 
www.thedelhitours.com

Popular 33 Places to Visit in Delhi with Family

Discover the best places to visit in Delhi with family, from historic landmarks and educational museums to fun parks and vibrant markets.