Plugin Directory

Changeset 3407220


Ignore:
Timestamp:
12/01/2025 08:58:02 PM (4 months ago)
Author:
Benaceur
Message:

Update 01-12-2025

Location:
restrict-usernames-emails-characters/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • restrict-usernames-emails-characters/trunk/classes/classe_chars.php

    r3133353 r3407220  
    7676        }
    7777       
     78    function benrueeg_wp_is_valid_utf8( $text ) {
     79        if ( function_exists( 'wp_is_valid_utf8' ) ) {
     80            return wp_is_valid_utf8( $text ); // new function "wp_is_valid_utf8" in wordpress 6.9
     81        } else {
     82            return seems_utf8( $text );
     83        }
     84    }   
     85       
    7886    function benrueeg_remove_accents( $text, $locale = '' ) {
    7987    if ( ! preg_match( '/[\x80-\xff]/', $text ) ) {
     
    8189    }
    8290
    83     if ( seems_utf8( $text ) ) {
     91    if ( $this->benrueeg_wp_is_valid_utf8 ( $text ) ) {
    8492
    8593        /*
  • restrict-usernames-emails-characters/trunk/classes/classe_val.php

    r3133353 r3407220  
    7373            $list_chars = implode('\\', $list_chars_);
    7474
    75             $_login = preg_match( '/[à]/', $list_chars ) ? str_replace("à", "", $login) : $login;
     75            $_login = preg_match( '/[à]/', $list_chars ) ? str_replace("à", "9", $login) : $login;
    7676           
    7777            if ( preg_match('/^\s+|\s+$| \s+/', $_login ) )
  • restrict-usernames-emails-characters/trunk/classes/page_nl.php

    r3133353 r3407220  
    249249       
    250250        function urlencode_strtolower($title) {
    251             if ( seems_utf8( $title ) ) {
     251            if ( $this->benrueeg_wp_is_valid_utf8 ( $title ) ) {
    252252                if ( function_exists( 'mb_strtolower' ) ) {
    253253                    $title = mb_strtolower( $title, 'UTF-8' );
  • restrict-usernames-emails-characters/trunk/lang/restrict-usernames-emails-characters-ar.po

    r3133353 r3407220  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2020-07-21 20:06+0000\n"
    6 "PO-Revision-Date: 2024-08-08 09:54+0000\n"
     6"PO-Revision-Date: 2025-12-01 20:11+0000\n"
    77"Last-Translator: \n"
    88"Language-Team: العربية\n"
     
    2525"X-Loco-Version: 2.6.7; wp-6.5.2"
    2626
    27 #: restrict-usernames-emails-characters.php:1044
     27#: restrict-usernames-emails-characters.php:1043
    2828msgid "%d were updated and %d failed for %d user(s)"
    2929msgstr "(%d) تم تحديثه و (%d) فشل تحديثه من مجموع %d عضو"
    3030
    31 #: restrict-usernames-emails-characters.php:1017
     31#: restrict-usernames-emails-characters.php:1016
    3232#, php-format
    3333msgid "%s user were updated for"
     
    3939msgstr[4] "%s عضوا تم تحديثه من"
    4040msgstr[5] "%s عضو تم تحديثه من"
     41
     42#: page-setts.php:219
     43msgid ""not recommended""
     44msgstr ""لا يُنصح بهذا الخيار""
    4145
    4246#: page-setts.php:826
     
    124128
    125129#: restrict-usernames-emails-characters.php:529
    126 #: restrict-usernames-emails-characters.php:1072
     130#: restrict-usernames-emails-characters.php:1071
    127131msgid ""
    128132"<strong>Core Control:</strong> Sorry, This plugin (Restrict Usernames Emails "
     
    262266msgstr "جميع اللغات (كل الحروف والأرقام إضافة إلى المعلّمة مثل: é û)"
    263267
    264 #: restrict-usernames-emails-characters.php:1036
     268#: restrict-usernames-emails-characters.php:1035
    265269msgid "All users have been successfully updated"
    266270msgstr "تم تحديث جميع الأعضاء بنجاح"
    267271
    268272#: page-setts.php:219
    269 msgid ""
    270 "Allow this characters (Symbols or characters accented as é û) &#34;no "
    271 "recommended&#34;"
    272 msgstr ""
    273 "السماح باستعمال (الرموز أو الحروف المعلمة مثل é û) التالية &#34;لا يُنصح "
    274 "بهذا الخيار&#34;"
     273msgid "Allow this characters (Symbols or characters accented as é û)"
     274msgstr "السماح باستعمال (الرموز أو الحروف المعلمة مثل é û) التالية"
    275275
    276276#: page-setts.php:831
     
    328328msgstr "اختر لغة الحروف المستعملة في اسم المستخدم"
    329329
    330 #: restrict-usernames-emails-characters.php:1015
     330#: restrict-usernames-emails-characters.php:1014
    331331msgid "Continue updating..."
    332332msgstr "تابع التحديث..."
     
    417417msgstr "إضافات"
    418418
    419 #: restrict-usernames-emails-characters.php:1806
     419#: restrict-usernames-emails-characters.php:1805
    420420msgid "File deleted successfully"
    421421msgstr "تم حذف الملف بنجاح"
    422422
    423 #: restrict-usernames-emails-characters.php:1015
     423#: restrict-usernames-emails-characters.php:1014
    424424msgid "Finished"
    425425msgstr "انتهى"
     
    441441msgstr "كود hash (حروف لاتينية وأرقام فقط)"
    442442
    443 #: restrict-usernames-emails-characters.php:1119
     443#: restrict-usernames-emails-characters.php:1118
    444444msgid "here"
    445445msgstr "هنا"
    446446
    447 #: restrict-usernames-emails-characters.php:1112
     447#: restrict-usernames-emails-characters.php:1111
    448448msgid "hide"
    449449msgstr ""
     
    480480"فقط) فيصبح على سبيل المثال:"
    481481
    482 #: restrict-usernames-emails-characters.php:1100
     482#: restrict-usernames-emails-characters.php:1099
    483483msgid ""
    484484"If you choose a language other than the default language &#34;Choose "
     
    551551"يفصل بينها في رسالة الخطأ بهذا السطر (الهوك):"
    552552
    553 #: restrict-usernames-emails-characters.php:1111
     553#: restrict-usernames-emails-characters.php:1110
    554554msgid ""
    555555"In this version of the plugin, the method of saving the nicename (author "
     
    947947msgstr "يرجى التأكد من كتابة اسم المستخدم."
    948948
    949 #: restrict-usernames-emails-characters.php:1091
     949#: restrict-usernames-emails-characters.php:1090
    950950msgid "Please enter a valid language in &#34;Enter another language below&#34;"
    951951msgstr "الرجاء إدخال لغة صالحة في &#34; أدخل لغة أخرى في الأسفل&#34;"
    952952
    953 #: restrict-usernames-emails-characters.php:1081
     953#: restrict-usernames-emails-characters.php:1080
    954954msgid "Please select a language in &#34;Enter another language below&#34;"
    955955msgstr "اختر لغة من فضلك في &#34; أدخل لغة أخرى في الأسفل&#34;"
     
    960960
    961961#: restrict-usernames-emails-characters.php:935
    962 #: restrict-usernames-emails-characters.php:1171
     962#: restrict-usernames-emails-characters.php:1170
    963963msgid "Please upload a valid .json file"
    964964msgstr "ارفع ملف .json صالح من فضلك"
    965965
    966 #: restrict-usernames-emails-characters.php:1120
     966#: restrict-usernames-emails-characters.php:1119
    967967msgid "Registration is currently closed! open it:"
    968968msgstr "حاليا التسجيل في الموقع مغلق! يمكن فتحه من:"
     
    10171017
    10181018#. Name of the plugin
    1019 #: restrict-usernames-emails-characters.php:1110
     1019#: restrict-usernames-emails-characters.php:1109
    10201020msgid "Restrict Usernames Emails Characters"
    10211021msgstr ""
     
    10581058msgstr "إعدادات"
    10591059
    1060 #: restrict-usernames-emails-characters.php:1801
     1060#: restrict-usernames-emails-characters.php:1800
    10611061msgid "Settings saved successfully"
    10621062msgstr "تم حفظ الإعدادات بنجاح"
     
    10901090msgstr "اتجاه النص"
    10911091
    1092 #: restrict-usernames-emails-characters.php:1818
     1092#: restrict-usernames-emails-characters.php:1817
    10931093msgid "The database is being updated, please wait..."
    10941094msgstr "جاري تحديث قاعدة البيانات، يرجى الانتظار..."
     
    11301130msgstr "يجب تفعيل هذه الإضافة على"
    11311131
    1132 #: restrict-usernames-emails-characters.php:988
     1132#: restrict-usernames-emails-characters.php:987
    11331133msgid "There is a newer version, it's recommended to"
    11341134msgstr "هناك نسخة أحدث متاحة, يستحسن"
     
    11561156msgstr "اسم المستخدم هذا مسجّل مسبقاً. يرجى اختيار آخر."
    11571157
    1158 #: restrict-usernames-emails-characters.php:1642 classes/classe_mubp.php:124
     1158#: restrict-usernames-emails-characters.php:1641 classes/classe_mubp.php:124
    11591159#: classes/classe_mubp.php:124
    11601160msgid ""
     
    11861186msgstr "تحديث جميع الأعضاء دُفعة واحدة أو على دُفعات"
    11871187
    1188 #: restrict-usernames-emails-characters.php:988
     1188#: restrict-usernames-emails-characters.php:987
    11891189msgid "update now"
    11901190msgstr "التحديث الآن"
    11911191
    1192 #: restrict-usernames-emails-characters.php:1052
     1192#: restrict-usernames-emails-characters.php:1051
    11931193msgid "Updating all users failed"
    11941194msgstr "فشل تحديث جميع الأعضاء"
     
    12101210msgstr "مع اللاتينية"
    12111211
    1212 #: restrict-usernames-emails-characters.php:988
     1212#: restrict-usernames-emails-characters.php:987
    12131213msgid "You are using Version"
    12141214msgstr "أنت تستخدم النسخة"
  • restrict-usernames-emails-characters/trunk/lang/restrict-usernames-emails-characters.pot

    r3133353 r3407220  
    44"Project-Id-Version: Restrict Usernames Emails Characters\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2024-08-08 09:55+0000\n"
     6"POT-Creation-Date: 2025-12-01 20:16+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1414"Content-Transfer-Encoding: 8bit\n"
    1515"X-Generator: Loco https://localise.biz/\n"
    16 "X-Loco-Version: 2.6.11; wp-6.6.1\n"
     16"X-Loco-Version: 2.8.0; wp-6.9-RC3-61318; php-8.5.0\n"
    1717"X-Domain: restrict-usernames-emails-characters"
    1818
    19 #: restrict-usernames-emails-characters.php:1044
     19#: restrict-usernames-emails-characters.php:1043
    2020msgid "%d were updated and %d failed for %d user(s)"
    2121msgstr ""
    2222
    23 #: restrict-usernames-emails-characters.php:1017
     23#: restrict-usernames-emails-characters.php:1016
    2424#, php-format
    2525msgid "%s user were updated for"
     
    2727msgstr[0] ""
    2828msgstr[1] ""
     29
     30#: page-setts.php:219
     31msgid "&#34;not recommended&#34;"
     32msgstr ""
    2933
    3034#: page-setts.php:826
     
    8488
    8589#: restrict-usernames-emails-characters.php:529
    86 #: restrict-usernames-emails-characters.php:1072
     90#: restrict-usernames-emails-characters.php:1071
    8791msgid ""
    8892"<strong>Core Control:</strong> Sorry, This plugin (Restrict Usernames Emails "
     
    203207msgstr ""
    204208
    205 #: restrict-usernames-emails-characters.php:1036
     209#: restrict-usernames-emails-characters.php:1035
    206210msgid "All users have been successfully updated"
    207211msgstr ""
    208212
    209213#: page-setts.php:219
    210 msgid ""
    211 "Allow this characters (Symbols or characters accented as é û) &#34;no "
    212 "recommended&#34;"
     214msgid "Allow this characters (Symbols or characters accented as é û)"
    213215msgstr ""
    214216
     
    262264msgstr ""
    263265
    264 #: restrict-usernames-emails-characters.php:1015
     266#: restrict-usernames-emails-characters.php:1014
    265267msgid "Continue updating..."
    266268msgstr ""
     
    346348msgstr ""
    347349
    348 #: restrict-usernames-emails-characters.php:1806
     350#: restrict-usernames-emails-characters.php:1805
    349351msgid "File deleted successfully"
    350352msgstr ""
    351353
    352 #: restrict-usernames-emails-characters.php:1015
     354#: restrict-usernames-emails-characters.php:1014
    353355msgid "Finished"
    354356msgstr ""
     
    370372msgstr ""
    371373
    372 #: restrict-usernames-emails-characters.php:1119
     374#: restrict-usernames-emails-characters.php:1118
    373375msgid "here"
    374376msgstr ""
    375377
    376 #: restrict-usernames-emails-characters.php:1112
     378#: restrict-usernames-emails-characters.php:1111
    377379msgid "hide"
    378380msgstr ""
     
    406408msgstr ""
    407409
    408 #: restrict-usernames-emails-characters.php:1100
     410#: restrict-usernames-emails-characters.php:1099
    409411msgid ""
    410412"If you choose a language other than the default language &#34;Choose "
     
    461463msgstr ""
    462464
    463 #: restrict-usernames-emails-characters.php:1111
     465#: restrict-usernames-emails-characters.php:1110
    464466msgid ""
    465467"In this version of the plugin, the method of saving the nicename (author "
     
    833835msgstr ""
    834836
    835 #: restrict-usernames-emails-characters.php:1091
     837#: restrict-usernames-emails-characters.php:1090
    836838msgid "Please enter a valid language in &#34;Enter another language below&#34;"
    837839msgstr ""
    838840
    839 #: restrict-usernames-emails-characters.php:1081
     841#: restrict-usernames-emails-characters.php:1080
    840842msgid "Please select a language in &#34;Enter another language below&#34;"
    841843msgstr ""
     
    846848
    847849#: restrict-usernames-emails-characters.php:935
    848 #: restrict-usernames-emails-characters.php:1171
     850#: restrict-usernames-emails-characters.php:1170
    849851msgid "Please upload a valid .json file"
    850852msgstr ""
    851853
    852 #: restrict-usernames-emails-characters.php:1120
     854#: restrict-usernames-emails-characters.php:1119
    853855msgid "Registration is currently closed! open it:"
    854856msgstr ""
     
    903905
    904906#. Name of the plugin
    905 #: restrict-usernames-emails-characters.php:1110
     907#: restrict-usernames-emails-characters.php:1109
    906908msgid "Restrict Usernames Emails Characters"
    907909msgstr ""
     
    944946msgstr ""
    945947
    946 #: restrict-usernames-emails-characters.php:1801
     948#: restrict-usernames-emails-characters.php:1800
    947949msgid "Settings saved successfully"
    948950msgstr ""
     
    972974msgstr ""
    973975
    974 #: restrict-usernames-emails-characters.php:1818
     976#: restrict-usernames-emails-characters.php:1817
    975977msgid "The database is being updated, please wait..."
    976978msgstr ""
     
    10081010msgstr ""
    10091011
    1010 #: restrict-usernames-emails-characters.php:988
     1012#: restrict-usernames-emails-characters.php:987
    10111013msgid "There is a newer version, it's recommended to"
    10121014msgstr ""
     
    10331035msgstr ""
    10341036
    1035 #: restrict-usernames-emails-characters.php:1642 classes/classe_mubp.php:124
     1037#: restrict-usernames-emails-characters.php:1641 classes/classe_mubp.php:124
    10361038#: classes/classe_mubp.php:124
    10371039msgid ""
     
    10601062msgstr ""
    10611063
    1062 #: restrict-usernames-emails-characters.php:988
     1064#: restrict-usernames-emails-characters.php:987
    10631065msgid "update now"
    10641066msgstr ""
    10651067
    1066 #: restrict-usernames-emails-characters.php:1052
     1068#: restrict-usernames-emails-characters.php:1051
    10671069msgid "Updating all users failed"
    10681070msgstr ""
     
    10841086msgstr ""
    10851087
    1086 #: restrict-usernames-emails-characters.php:988
     1088#: restrict-usernames-emails-characters.php:987
    10871089msgid "You are using Version"
    10881090msgstr ""
  • restrict-usernames-emails-characters/trunk/page-setts.php

    r3133353 r3407220  
    217217            array(
    218218            'uid' => 'allow_spc_cars',
    219             'label' => __( 'Allow this characters (Symbols or characters accented as é û) &#34;no recommended&#34;','restrict-usernames-emails-characters' ),
     219            'label' => __( 'Allow this characters (Symbols or characters accented as é û)','restrict-usernames-emails-characters' ) . ' <span style="color:red;">' . __( '&#34;not recommended&#34;','restrict-usernames-emails-characters' ) . '</span>',
    220220            'label-em' => _x( '<span style="color:red; font-style:normal;">The following symbols <span style="background:#e9cd7a;color:#343414;padding:0 4px;">&#39; &#34; &#92; &#60; &#62;</span> have been blocked<br />Because allowing these symbols can cause problems when the registration</span><br />Place each character in one line, for example: <br />(<br />+<br />é', 'label_settings_field', 'restrict-usernames-emails-characters' ) .
    221221            '<div class="tri2-BENrueeg_RUE"></div>',
  • restrict-usernames-emails-characters/trunk/readme.txt

    r3186363 r3407220  
    33Tags: restrict user, author slug, registration, anti-spam, security
    44Requires at least: 3.0
    5 Tested up to: 6.7
     5Tested up to: 6.9
    66Requires PHP: 5.3.19
    7 Stable tag: 4.1.1
     7Stable tag: 4.1.2
    88License: GPLv2 or later
    99
     
    8080== Changelog ==
    8181
     82= 4.1.2 =
     83* Tested up to wordpress 6.9
     84* Tested up to php 8.5
     85* Deprecated "seems_utf8" function in wordpress 6.9
     86* Fix: "Allow this characters (Symbols or characters accented ...)" option.
    8287= 4.1.1 =
    8388* Tested up to wordpress 6.7
  • restrict-usernames-emails-characters/trunk/restrict-usernames-emails-characters.php

    r3186363 r3407220  
    55 * Plugin URI: https://benaceur-php.com/?p=2268
    66 * Description: Restrict the usernames in registration, email, characters and symbols or email from specific domain names or language ...
    7  * Version: 4.1.1
     7 * Version: 4.1.2
    88 * Author: benaceur
    99 * Text Domain: restrict-usernames-emails-characters
     
    977977       
    978978        function VerPlugUp(){
    979         $enable = true;
    980         if (apply_filters( 'benrueeg_rue_filter_msg_old_ver_plug', $enable ) === false) return;
     979        if ( !apply_filters( 'benrueeg_rue_filter_msg_old_ver_plug', true ) ) return;
    981980        if ( !current_user_can(apply_filters( 'benrueeg_rue_filter_mu_cap', 'update_plugins' ))) return;
    982981       
Note: See TracChangeset for help on using the changeset viewer.