/** * 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."); } });
#আলহামদুলিল্লাহ্
**************
۞ بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ [١:١]
শুরু করছি আল্লাহর নামে যিনি পরম করুণাময়, অতি দয়ালু।
In the name of Allah, the Entirely Merciful, the Especially Merciful.
الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ [١:٢]
যাবতীয় প্রশংসা আল্লাহ তাআলার যিনি সকল সৃষ্টি জগতের পালনকর্তা।
[All] praise is [due] to Allah, Lord of the worlds -
الرَّحْمَٰنِ الرَّحِيمِ [١:٣]
যিনি নিতান্ত মেহেরবান ও দয়ালু।
The Entirely Merciful, the Especially Merciful,
مَالِكِ يَوْمِ الدِّينِ [١:٤]
যিনি বিচার দিনের মালিক।
Sovereign of the Day of Recompense.
إِيَّاكَ نَعْبُدُ وَإِيَّاكَ نَسْتَعِينُ [١:٥]
আমরা একমাত্র তোমারই ইবাদত করি এবং শুধুমাত্র তোমারই সাহায্য প্রার্থনা করি।
It is You we worship and You we ask for help.
اهْدِنَا الصِّرَاطَ الْمُسْتَقِيمَ [١:٦]
আমাদেরকে সরল পথ দেখাও,
Guide us to the straight path -
صِرَاطَ الَّذِينَ أَنْعَمْتَ عَلَيْهِمْ غَيْرِ الْمَغْضُوبِ عَلَيْهِمْ وَلَا الضَّالِّينَ [١:٧]
সে সমস্ত লোকের পথ, যাদেরকে তুমি নেয়ামত দান করেছ। তাদের পথ নয়, যাদের প্রতি তোমার গজব নাযিল হয়েছে এবং যারা পথভ্রষ্ট হয়েছে।
The path of those upon whom You have bestowed favor, not of those who have evoked [Your] anger or of those who are astray.
*** আমীন ***
Rïyåd Ahmëd
تبصرہ حذف کریں۔
کیا آپ واقعی اس تبصرہ کو حذف کرنا چاہتے ہیں؟
James Boss
تبصرہ حذف کریں۔
کیا آپ واقعی اس تبصرہ کو حذف کرنا چاہتے ہیں؟