Version Description
- add czech, catalan, romanian translations
- fix formatting issues in readme.txt
- add a filter to modify who has access to approve and deny users
- remove deprecated function calls when a user resets a password
- don't allow a user to login without a password
Download this release
Release Info
| Developer | picklewagon |
| Plugin | |
| Version | 1.3.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.3 to 1.3.1
- localization/new-user-approve-ca_ES.mo +0 -0
- localization/new-user-approve-ca_ES.po +200 -0
- localization/new-user-approve-cs_CZ.mo +0 -0
- localization/new-user-approve-cs_CZ.po +193 -0
- localization/new-user-approve-ro_RO.mo +0 -0
- localization/new-user-approve-ro_RO.po +198 -0
- new-user-approve.php +22 -14
- readme.txt +29 -18
localization/new-user-approve-ca_ES.mo
ADDED
|
Binary file
|
localization/new-user-approve-ca_ES.po
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SOME DESCRIPTIVE TITLE.
|
| 2 |
+
# Copyright (C) YEAR Josh Harrison
|
| 3 |
+
# This file is distributed under the same license as the PACKAGE package.
|
| 4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
| 5 |
+
#
|
| 6 |
+
msgid ""
|
| 7 |
+
msgstr ""
|
| 8 |
+
"Project-Id-Version: PACKAGE VERSION\n"
|
| 9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/new-user-approve\n"
|
| 10 |
+
"POT-Creation-Date: 2009-10-29 08:32+0000\n"
|
| 11 |
+
"PO-Revision-Date: 2012-05-07 13:18+0100\n"
|
| 12 |
+
"Last-Translator: Joan Marine <jmarine1962@hotmail.com>\n"
|
| 13 |
+
"Language-Team: JM-IPM <jmarine1962@hotmail.com>\n"
|
| 14 |
+
"MIME-Version: 1.0\n"
|
| 15 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
| 16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
| 17 |
+
"X-Poedit-Language: Catalan\n"
|
| 18 |
+
"X-Poedit-Country: SPAIN\n"
|
| 19 |
+
|
| 20 |
+
# "Last-Translator: Eduardo Aranda <eduardo@sinetiks.com>\n"
|
| 21 |
+
#: new-user-approve.php:126
|
| 22 |
+
msgid "Approve New Users"
|
| 23 |
+
msgstr "Aprovar usuaris nous"
|
| 24 |
+
|
| 25 |
+
#: new-user-approve.php:140
|
| 26 |
+
msgid "Settings"
|
| 27 |
+
msgstr "Configuració"
|
| 28 |
+
|
| 29 |
+
#: new-user-approve.php:183
|
| 30 |
+
msgid "Users"
|
| 31 |
+
msgstr "Usuaris"
|
| 32 |
+
|
| 33 |
+
#: new-user-approve.php:219
|
| 34 |
+
msgid "User successfully updated."
|
| 35 |
+
msgstr "Usuari actualitzat correctament."
|
| 36 |
+
|
| 37 |
+
#: new-user-approve.php:223
|
| 38 |
+
msgid "User Registration Approval"
|
| 39 |
+
msgstr "Aprobació d'usuaris nous"
|
| 40 |
+
|
| 41 |
+
#: new-user-approve.php:225
|
| 42 |
+
msgid "User Management"
|
| 43 |
+
msgstr "Administració d'usuaris"
|
| 44 |
+
|
| 45 |
+
#: new-user-approve.php:228
|
| 46 |
+
msgid "Users Pending Approval"
|
| 47 |
+
msgstr "Usuaris pendents d'aprovació"
|
| 48 |
+
|
| 49 |
+
#: new-user-approve.php:229
|
| 50 |
+
msgid "Approved Users"
|
| 51 |
+
msgstr "Usuaris aprovats"
|
| 52 |
+
|
| 53 |
+
#: new-user-approve.php:230
|
| 54 |
+
msgid "Denied Users"
|
| 55 |
+
msgstr "Usuaris rebutjats"
|
| 56 |
+
|
| 57 |
+
#: new-user-approve.php:255
|
| 58 |
+
msgid "ID"
|
| 59 |
+
msgstr "ID"
|
| 60 |
+
|
| 61 |
+
#: new-user-approve.php:256
|
| 62 |
+
msgid "Username"
|
| 63 |
+
msgstr "Usuari"
|
| 64 |
+
|
| 65 |
+
#: new-user-approve.php:257
|
| 66 |
+
msgid "Name"
|
| 67 |
+
msgstr "Nom"
|
| 68 |
+
|
| 69 |
+
#: new-user-approve.php:258
|
| 70 |
+
msgid "E-mail"
|
| 71 |
+
msgstr "E-mail"
|
| 72 |
+
|
| 73 |
+
#: new-user-approve.php:260
|
| 74 |
+
#: new-user-approve.php:262
|
| 75 |
+
msgid "Actions"
|
| 76 |
+
msgstr "Accions"
|
| 77 |
+
|
| 78 |
+
#: new-user-approve.php:296
|
| 79 |
+
msgid "email:"
|
| 80 |
+
msgstr "email:"
|
| 81 |
+
|
| 82 |
+
#: new-user-approve.php:298
|
| 83 |
+
msgid "Approve"
|
| 84 |
+
msgstr "Aprovar"
|
| 85 |
+
|
| 86 |
+
#: new-user-approve.php:301
|
| 87 |
+
msgid "Deny"
|
| 88 |
+
msgstr "Rebutjar"
|
| 89 |
+
|
| 90 |
+
#: new-user-approve.php:313
|
| 91 |
+
msgid "approved"
|
| 92 |
+
msgstr "aprovat"
|
| 93 |
+
|
| 94 |
+
#: new-user-approve.php:315
|
| 95 |
+
msgid "denied"
|
| 96 |
+
msgstr "rebutjat"
|
| 97 |
+
|
| 98 |
+
#: new-user-approve.php:317
|
| 99 |
+
msgid "pending"
|
| 100 |
+
msgstr "pendent"
|
| 101 |
+
|
| 102 |
+
#: new-user-approve.php:320
|
| 103 |
+
#, php-format
|
| 104 |
+
msgid "There are no users with a status of %s"
|
| 105 |
+
msgstr "No hi ha usuaris amb estatus %s"
|
| 106 |
+
|
| 107 |
+
#: new-user-approve.php:332
|
| 108 |
+
msgid "User name already exists"
|
| 109 |
+
msgstr "El nom d'usuari ja existeix"
|
| 110 |
+
|
| 111 |
+
#: new-user-approve.php:335
|
| 112 |
+
#, php-format
|
| 113 |
+
msgid "%1$s (%2$s) has requested a username at %3$s"
|
| 114 |
+
msgstr "%1$s (%2$s) ha sol·licitat un nom d'usuari a %3$s"
|
| 115 |
+
|
| 116 |
+
#: new-user-approve.php:337
|
| 117 |
+
#, php-format
|
| 118 |
+
msgid "To approve or deny this user access to %s go to"
|
| 119 |
+
msgstr "Per a aprovar o rebutjar aquest usuari a %s vagi a"
|
| 120 |
+
|
| 121 |
+
#: new-user-approve.php:341
|
| 122 |
+
#, php-format
|
| 123 |
+
msgid "[%s] User Approval"
|
| 124 |
+
msgstr "[%s] Aprovació d'usuari"
|
| 125 |
+
|
| 126 |
+
#: new-user-approve.php:372
|
| 127 |
+
#, php-format
|
| 128 |
+
msgid "You have been approved to access %s"
|
| 129 |
+
msgstr "Vostè ha estat aprovat per a accedir a %s"
|
| 130 |
+
|
| 131 |
+
#: new-user-approve.php:373
|
| 132 |
+
#, php-format
|
| 133 |
+
msgid "Username: %s"
|
| 134 |
+
msgstr "Usuari: %s"
|
| 135 |
+
|
| 136 |
+
#: new-user-approve.php:374
|
| 137 |
+
#, php-format
|
| 138 |
+
msgid "Password: %s"
|
| 139 |
+
msgstr "Password: %s"
|
| 140 |
+
|
| 141 |
+
#: new-user-approve.php:378
|
| 142 |
+
#, php-format
|
| 143 |
+
msgid "[%s] Registration Approved"
|
| 144 |
+
msgstr "[%s] Registre aprovat"
|
| 145 |
+
|
| 146 |
+
#: new-user-approve.php:397
|
| 147 |
+
#, php-format
|
| 148 |
+
msgid "You have been denied access to %s"
|
| 149 |
+
msgstr "Vostè no ha estat aprovat a %s"
|
| 150 |
+
|
| 151 |
+
#: new-user-approve.php:400
|
| 152 |
+
#, php-format
|
| 153 |
+
msgid "[%s] Registration Denied"
|
| 154 |
+
msgstr "[%s] Registre rebutjat"
|
| 155 |
+
|
| 156 |
+
#: new-user-approve.php:413
|
| 157 |
+
msgid "An email has been sent to the site administrator. The administrator will review the information that has been submitted and either approve or deny your request."
|
| 158 |
+
msgstr "S'ha enviat un correu a l'administrador del lloc. L'administrador revisarà la informació enviada i aprovarà o denegarà la seva sol·licitud. "
|
| 159 |
+
|
| 160 |
+
#: new-user-approve.php:414
|
| 161 |
+
msgid "You will receive an email with instructions on what you will need to do next. Thanks for your patience."
|
| 162 |
+
msgstr "Vostè rebrà un correu amb instruccions addicionals. Gràcies per la seva paciència."
|
| 163 |
+
|
| 164 |
+
#: new-user-approve.php:418
|
| 165 |
+
msgid "Pending Approval"
|
| 166 |
+
msgstr "Aprovació pendent"
|
| 167 |
+
|
| 168 |
+
#: new-user-approve.php:418
|
| 169 |
+
msgid "Registration successful."
|
| 170 |
+
msgstr "Registre completat amb èxit."
|
| 171 |
+
|
| 172 |
+
#: new-user-approve.php:466
|
| 173 |
+
#, php-format
|
| 174 |
+
msgid "Welcome to %s. This site is accessible to approved users only. To be approved, you must first register."
|
| 175 |
+
msgstr "Benvingut a %s. Aquest lloc està disponible únicament per a usuaris registrats. Per a sol·licitar l'accés, ha de registrar-se."
|
| 176 |
+
|
| 177 |
+
#: new-user-approve.php:471
|
| 178 |
+
msgid "After you register, your request will be sent to the site administrator for approval. You will then receive an email with further instructions."
|
| 179 |
+
msgstr "Després de registrar-se, la seva sol·licitud serà enviada a l'administrador del lloc per a la seva aprovació. A continuació, rebrà un correu electrònic amb instruccions addicionals."
|
| 180 |
+
|
| 181 |
+
#. Plugin Name of an extension
|
| 182 |
+
msgid "New User Approve"
|
| 183 |
+
msgstr "Aprovació de nous usuaris"
|
| 184 |
+
|
| 185 |
+
#. Plugin URI of an extension
|
| 186 |
+
msgid "http://www.picklewagon.com/wordpress/new-user-approve"
|
| 187 |
+
msgstr "http://www.picklewagon.com/wordpress/new-user-approve"
|
| 188 |
+
|
| 189 |
+
#. Description of an extension
|
| 190 |
+
msgid "This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog."
|
| 191 |
+
msgstr "Aquest plugin permet als administradors aprovar nous usuaris un cop aquests es registren. Només els usuaris autoritzats poden accedir al lloc."
|
| 192 |
+
|
| 193 |
+
#. Author of an extension
|
| 194 |
+
msgid "Josh Harrison"
|
| 195 |
+
msgstr "Josh Harrison"
|
| 196 |
+
|
| 197 |
+
#. Author URI of an extension
|
| 198 |
+
msgid "http://www.picklewagon.com/"
|
| 199 |
+
msgstr "http://www.picklewagon.com/"
|
| 200 |
+
|
localization/new-user-approve-cs_CZ.mo
ADDED
|
Binary file
|
localization/new-user-approve-cs_CZ.po
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
msgid ""
|
| 2 |
+
msgstr ""
|
| 3 |
+
"Project-Id-Version: New User Approve 1.0\n"
|
| 4 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/new-user-approve\n"
|
| 5 |
+
"POT-Creation-Date: 2009-10-29 08:32+0000\n"
|
| 6 |
+
"PO-Revision-Date: 2011-12-14 22:48+0100\n"
|
| 7 |
+
"Last-Translator: Tomáš Gažůr <gazurtomas@seznam.cz>\n"
|
| 8 |
+
"Language-Team: Philippe Scoffoni <philippe@scoffoni.net>\n"
|
| 9 |
+
"MIME-Version: 1.0\n"
|
| 10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
| 11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
| 12 |
+
"X-Poedit-Language: French\n"
|
| 13 |
+
|
| 14 |
+
#: new-user-approve.php:126
|
| 15 |
+
msgid "Approve New Users"
|
| 16 |
+
msgstr "Odsouhlasení nových uživatelů"
|
| 17 |
+
|
| 18 |
+
#: new-user-approve.php:140
|
| 19 |
+
msgid "Settings"
|
| 20 |
+
msgstr "Nastavení"
|
| 21 |
+
|
| 22 |
+
#: new-user-approve.php:183
|
| 23 |
+
msgid "Users"
|
| 24 |
+
msgstr "Uživatelé"
|
| 25 |
+
|
| 26 |
+
#: new-user-approve.php:219
|
| 27 |
+
msgid "User successfully updated."
|
| 28 |
+
msgstr "Uživatel úspěšně aktualizován."
|
| 29 |
+
|
| 30 |
+
#: new-user-approve.php:223
|
| 31 |
+
msgid "User Registration Approval"
|
| 32 |
+
msgstr "Uživatelova registrace povolena"
|
| 33 |
+
|
| 34 |
+
#: new-user-approve.php:225
|
| 35 |
+
msgid "User Management"
|
| 36 |
+
msgstr "Správa uživatele"
|
| 37 |
+
|
| 38 |
+
#: new-user-approve.php:228
|
| 39 |
+
msgid "Users Pending Approval"
|
| 40 |
+
msgstr "Uživatelé čekající na schválení"
|
| 41 |
+
|
| 42 |
+
#: new-user-approve.php:229
|
| 43 |
+
msgid "Approved Users"
|
| 44 |
+
msgstr "Odsouhlasení uživatelé"
|
| 45 |
+
|
| 46 |
+
#: new-user-approve.php:230
|
| 47 |
+
msgid "Denied Users"
|
| 48 |
+
msgstr "Zakázaní uživatelé"
|
| 49 |
+
|
| 50 |
+
#: new-user-approve.php:255
|
| 51 |
+
msgid "ID"
|
| 52 |
+
msgstr "ID"
|
| 53 |
+
|
| 54 |
+
#: new-user-approve.php:256
|
| 55 |
+
msgid "Username"
|
| 56 |
+
msgstr "Uživ. jméno"
|
| 57 |
+
|
| 58 |
+
#: new-user-approve.php:257
|
| 59 |
+
msgid "Name"
|
| 60 |
+
msgstr "Jméno"
|
| 61 |
+
|
| 62 |
+
#: new-user-approve.php:258
|
| 63 |
+
msgid "E-mail"
|
| 64 |
+
msgstr "E-mail"
|
| 65 |
+
|
| 66 |
+
#: new-user-approve.php:260
|
| 67 |
+
#: new-user-approve.php:262
|
| 68 |
+
msgid "Actions"
|
| 69 |
+
msgstr "Akce"
|
| 70 |
+
|
| 71 |
+
#: new-user-approve.php:296
|
| 72 |
+
msgid "email:"
|
| 73 |
+
msgstr "email:"
|
| 74 |
+
|
| 75 |
+
#: new-user-approve.php:298
|
| 76 |
+
msgid "Approve"
|
| 77 |
+
msgstr "Schválit"
|
| 78 |
+
|
| 79 |
+
#: new-user-approve.php:301
|
| 80 |
+
msgid "Deny"
|
| 81 |
+
msgstr "Zamítnout"
|
| 82 |
+
|
| 83 |
+
#: new-user-approve.php:313
|
| 84 |
+
msgid "approved"
|
| 85 |
+
msgstr "Schválený"
|
| 86 |
+
|
| 87 |
+
#: new-user-approve.php:315
|
| 88 |
+
msgid "denied"
|
| 89 |
+
msgstr "Zamítnutý"
|
| 90 |
+
|
| 91 |
+
#: new-user-approve.php:317
|
| 92 |
+
msgid "pending"
|
| 93 |
+
msgstr "nerozhodnutý"
|
| 94 |
+
|
| 95 |
+
#: new-user-approve.php:320
|
| 96 |
+
#, php-format
|
| 97 |
+
msgid "There are no users with a status of %s"
|
| 98 |
+
msgstr "Žádní uživatelé se stavem %s"
|
| 99 |
+
|
| 100 |
+
#: new-user-approve.php:332
|
| 101 |
+
msgid "User name already exists"
|
| 102 |
+
msgstr "Uživatelské jméno již existuje"
|
| 103 |
+
|
| 104 |
+
#: new-user-approve.php:335
|
| 105 |
+
#, php-format
|
| 106 |
+
msgid "%1$s (%2$s) has requested a username at %3$s"
|
| 107 |
+
msgstr "%1$s (%2$s) požádal v uživatelské jméno %3$s"
|
| 108 |
+
|
| 109 |
+
#: new-user-approve.php:337
|
| 110 |
+
#, php-format
|
| 111 |
+
msgid "To approve or deny this user access to %s go to"
|
| 112 |
+
msgstr "Chcete-li schválit nebo zamítnout tohoto uživatele %s klikněte"
|
| 113 |
+
|
| 114 |
+
#: new-user-approve.php:341
|
| 115 |
+
#, php-format
|
| 116 |
+
msgid "[%s] User Approval"
|
| 117 |
+
msgstr "[%s] Uživatel schválen"
|
| 118 |
+
|
| 119 |
+
#: new-user-approve.php:372
|
| 120 |
+
#, php-format
|
| 121 |
+
msgid "You have been approved to access %s"
|
| 122 |
+
msgstr "byl jste schválen pro přístup %s"
|
| 123 |
+
|
| 124 |
+
#: new-user-approve.php:373
|
| 125 |
+
#, php-format
|
| 126 |
+
msgid "Username: %s"
|
| 127 |
+
msgstr "Uživ. jméno : %s"
|
| 128 |
+
|
| 129 |
+
#: new-user-approve.php:374
|
| 130 |
+
#, php-format
|
| 131 |
+
msgid "Password: %s"
|
| 132 |
+
msgstr "Heslo: %s"
|
| 133 |
+
|
| 134 |
+
#: new-user-approve.php:378
|
| 135 |
+
#, php-format
|
| 136 |
+
msgid "[%s] Registration Approved"
|
| 137 |
+
msgstr "[%s] Registrace schválena"
|
| 138 |
+
|
| 139 |
+
#: new-user-approve.php:397
|
| 140 |
+
#, php-format
|
| 141 |
+
msgid "You have been denied access to %s"
|
| 142 |
+
msgstr "Byl Vám zamítnut přístup k %s"
|
| 143 |
+
|
| 144 |
+
#: new-user-approve.php:400
|
| 145 |
+
#, php-format
|
| 146 |
+
msgid "[%s] Registration Denied"
|
| 147 |
+
msgstr "[%s] Registrace zamítnuta"
|
| 148 |
+
|
| 149 |
+
#: new-user-approve.php:413
|
| 150 |
+
msgid "An email has been sent to the site administrator. The administrator will review the information that has been submitted and either approve or deny your request."
|
| 151 |
+
msgstr "E-mail byl odeslán správci webu. Administrátor zkontroluje údaje, které byly předloženy, a buď schválí, nebo zamítne vaši žádost."
|
| 152 |
+
|
| 153 |
+
#: new-user-approve.php:414
|
| 154 |
+
msgid "You will receive an email with instructions on what you will need to do next. Thanks for your patience."
|
| 155 |
+
msgstr "Obdržíte e-mail s pokyny o tom, co budete muset udělat. Děkujeme za vaši trpělivost."
|
| 156 |
+
|
| 157 |
+
#: new-user-approve.php:418
|
| 158 |
+
msgid "Pending Approval"
|
| 159 |
+
msgstr "Čeká na schválení"
|
| 160 |
+
|
| 161 |
+
#: new-user-approve.php:418
|
| 162 |
+
msgid "Registration successful."
|
| 163 |
+
msgstr "Registrace proběhla úspěšně."
|
| 164 |
+
|
| 165 |
+
#: new-user-approve.php:466
|
| 166 |
+
#, php-format
|
| 167 |
+
msgid "Welcome to %s. This site is accessible to approved users only. To be approved, you must first register."
|
| 168 |
+
msgstr "Vítejte v %s. Tato stránka je přístupná pouze schváleným uživatelům. Aby jste byl schválen, musíte se nejprve zaregistrovat."
|
| 169 |
+
|
| 170 |
+
#: new-user-approve.php:471
|
| 171 |
+
msgid "After you register, your request will be sent to the site administrator for approval. You will then receive an email with further instructions."
|
| 172 |
+
msgstr "Po registraci, bude Vaše žádost odeslána správci webu ke schválení. Poté obdržíte e-mail s dalšími instrukcemi."
|
| 173 |
+
|
| 174 |
+
#. Plugin Name of an extension
|
| 175 |
+
msgid "New User Approve"
|
| 176 |
+
msgstr "Schválit nového uživatele"
|
| 177 |
+
|
| 178 |
+
#. Plugin URI of an extension
|
| 179 |
+
msgid "http://www.picklewagon.com/wordpress/new-user-approve"
|
| 180 |
+
msgstr "http://www.picklewagon.com/wordpress/new-user-approve"
|
| 181 |
+
|
| 182 |
+
#. Description of an extension
|
| 183 |
+
msgid "This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog."
|
| 184 |
+
msgstr "Tento plugin umožňuje správcům ke schválení uživatele po registraci. Pouze schválení uživatelé budou mít přístup do prezentace."
|
| 185 |
+
|
| 186 |
+
#. Author of an extension
|
| 187 |
+
msgid "Josh Harrison"
|
| 188 |
+
msgstr "Josh Harrison"
|
| 189 |
+
|
| 190 |
+
#. Author URI of an extension
|
| 191 |
+
msgid "http://www.picklewagon.com/"
|
| 192 |
+
msgstr "http://www.picklewagon.com/"
|
| 193 |
+
|
localization/new-user-approve-ro_RO.mo
ADDED
|
Binary file
|
localization/new-user-approve-ro_RO.po
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) YEAR Josh Harrison
|
| 2 |
+
# This file is distributed under the same license as the PACKAGE package.
|
| 3 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
| 4 |
+
#
|
| 5 |
+
msgid ""
|
| 6 |
+
msgstr ""
|
| 7 |
+
"Project-Id-Version: PACKAGE VERSION\n"
|
| 8 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/new-user-approve\n"
|
| 9 |
+
"POT-Creation-Date: 2009-10-29 08:32+0000\n"
|
| 10 |
+
"PO-Revision-Date: 2012-03-13 15:04+0200\n"
|
| 11 |
+
"X-Poedit-Language: Romanian\n"
|
| 12 |
+
"X-Poedit-Country: Romania\n"
|
| 13 |
+
"Language-Team: Web Geeks\n"
|
| 14 |
+
"Last-Translator: \n"
|
| 15 |
+
"MIME-Version: 1.0\n"
|
| 16 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
| 17 |
+
"Content-Transfer-Encoding: 8bit\n"
|
| 18 |
+
|
| 19 |
+
#: new-user-approve.php:126
|
| 20 |
+
msgid "Approve New Users"
|
| 21 |
+
msgstr "Aprobarea noii utilizatori"
|
| 22 |
+
|
| 23 |
+
#: new-user-approve.php:140
|
| 24 |
+
msgid "Settings"
|
| 25 |
+
msgstr "SetÄri"
|
| 26 |
+
|
| 27 |
+
#: new-user-approve.php:183
|
| 28 |
+
msgid "Users"
|
| 29 |
+
msgstr "Utilizatorii"
|
| 30 |
+
|
| 31 |
+
#: new-user-approve.php:219
|
| 32 |
+
msgid "User successfully updated."
|
| 33 |
+
msgstr "Utilizator actualizat cu succes."
|
| 34 |
+
|
| 35 |
+
#: new-user-approve.php:223
|
| 36 |
+
msgid "User Registration Approval"
|
| 37 |
+
msgstr "Aprobarea de înregistrare utilizator"
|
| 38 |
+
|
| 39 |
+
#: new-user-approve.php:225
|
| 40 |
+
msgid "User Management"
|
| 41 |
+
msgstr "Management de utilizator"
|
| 42 |
+
|
| 43 |
+
#: new-user-approve.php:228
|
| 44 |
+
msgid "Users Pending Approval"
|
| 45 |
+
msgstr "Utilizatorii aÅteptarea aprobÄrii"
|
| 46 |
+
|
| 47 |
+
#: new-user-approve.php:229
|
| 48 |
+
msgid "Approved Users"
|
| 49 |
+
msgstr "Utilizatorii aprobate"
|
| 50 |
+
|
| 51 |
+
#: new-user-approve.php:230
|
| 52 |
+
msgid "Denied Users"
|
| 53 |
+
msgstr "Utilizatorii negat"
|
| 54 |
+
|
| 55 |
+
#: new-user-approve.php:255
|
| 56 |
+
msgid "ID"
|
| 57 |
+
msgstr "ID-UL"
|
| 58 |
+
|
| 59 |
+
#: new-user-approve.php:256
|
| 60 |
+
msgid "Username"
|
| 61 |
+
msgstr "Numele de utilizator"
|
| 62 |
+
|
| 63 |
+
#: new-user-approve.php:257
|
| 64 |
+
msgid "Name"
|
| 65 |
+
msgstr "nume"
|
| 66 |
+
|
| 67 |
+
#: new-user-approve.php:258
|
| 68 |
+
msgid "E-mail"
|
| 69 |
+
msgstr "PoÅtÄ electronicÄ"
|
| 70 |
+
|
| 71 |
+
#: new-user-approve.php:260
|
| 72 |
+
#: new-user-approve.php:262
|
| 73 |
+
msgid "Actions"
|
| 74 |
+
msgstr "Acţiuni"
|
| 75 |
+
|
| 76 |
+
#: new-user-approve.php:296
|
| 77 |
+
msgid "email:"
|
| 78 |
+
msgstr "e-mail:"
|
| 79 |
+
|
| 80 |
+
#: new-user-approve.php:298
|
| 81 |
+
msgid "Approve"
|
| 82 |
+
msgstr "Aprobarea"
|
| 83 |
+
|
| 84 |
+
#: new-user-approve.php:301
|
| 85 |
+
msgid "Deny"
|
| 86 |
+
msgstr "Nega"
|
| 87 |
+
|
| 88 |
+
#: new-user-approve.php:313
|
| 89 |
+
msgid "approved"
|
| 90 |
+
msgstr "aprobat"
|
| 91 |
+
|
| 92 |
+
#: new-user-approve.php:315
|
| 93 |
+
msgid "denied"
|
| 94 |
+
msgstr "refuzat"
|
| 95 |
+
|
| 96 |
+
#: new-user-approve.php:317
|
| 97 |
+
msgid "pending"
|
| 98 |
+
msgstr "aÅteptare"
|
| 99 |
+
|
| 100 |
+
#: new-user-approve.php:320
|
| 101 |
+
#, php-format
|
| 102 |
+
msgid "There are no users with a status of %s"
|
| 103 |
+
msgstr "Nu existÄ nici un utilizator cu un statut de %s"
|
| 104 |
+
|
| 105 |
+
#: new-user-approve.php:332
|
| 106 |
+
msgid "User name already exists"
|
| 107 |
+
msgstr "Numele de utilizator existÄ deja"
|
| 108 |
+
|
| 109 |
+
#: new-user-approve.php:335
|
| 110 |
+
#, php-format
|
| 111 |
+
msgid "%1$s (%2$s) has requested a username at %3$s"
|
| 112 |
+
msgstr "%1$ s (%2$ s) a solicitat un nume de utilizator, la %3$ s"
|
| 113 |
+
|
| 114 |
+
#: new-user-approve.php:337
|
| 115 |
+
#, php-format
|
| 116 |
+
msgid "To approve or deny this user access to %s go to"
|
| 117 |
+
msgstr "Pentru a aproba sau refuza accesul utilizatorului la %s du-te la"
|
| 118 |
+
|
| 119 |
+
#: new-user-approve.php:341
|
| 120 |
+
#, php-format
|
| 121 |
+
msgid "[%s] User Approval"
|
| 122 |
+
msgstr "[% s] Aprobarea de utilizator"
|
| 123 |
+
|
| 124 |
+
#: new-user-approve.php:372
|
| 125 |
+
#, php-format
|
| 126 |
+
msgid "You have been approved to access %s"
|
| 127 |
+
msgstr "Tu au fost aprobate pentru a accesa %s"
|
| 128 |
+
|
| 129 |
+
#: new-user-approve.php:373
|
| 130 |
+
#, php-format
|
| 131 |
+
msgid "Username: %s"
|
| 132 |
+
msgstr "Numele de utilizator: %s"
|
| 133 |
+
|
| 134 |
+
#: new-user-approve.php:374
|
| 135 |
+
#, php-format
|
| 136 |
+
msgid "Password: %s"
|
| 137 |
+
msgstr "Parola: %s"
|
| 138 |
+
|
| 139 |
+
#: new-user-approve.php:378
|
| 140 |
+
#, php-format
|
| 141 |
+
msgid "[%s] Registration Approved"
|
| 142 |
+
msgstr "[% s] Ãnregistrare aprobat"
|
| 143 |
+
|
| 144 |
+
#: new-user-approve.php:397
|
| 145 |
+
#, php-format
|
| 146 |
+
msgid "You have been denied access to %s"
|
| 147 |
+
msgstr "Tu au fost refuzat accesul la %s"
|
| 148 |
+
|
| 149 |
+
#: new-user-approve.php:400
|
| 150 |
+
#, php-format
|
| 151 |
+
msgid "[%s] Registration Denied"
|
| 152 |
+
msgstr "[% s] Ãnregistrare a negat"
|
| 153 |
+
|
| 154 |
+
#: new-user-approve.php:413
|
| 155 |
+
msgid "An email has been sent to the site administrator. The administrator will review the information that has been submitted and either approve or deny your request."
|
| 156 |
+
msgstr "Un e-mail a fost trimis la administratorul site-ului.Administratorul va revizui informaţiile care au fost prezentate şi fie a aproba sau respinge cererea dumneavoastră."
|
| 157 |
+
|
| 158 |
+
#: new-user-approve.php:414
|
| 159 |
+
msgid "You will receive an email with instructions on what you will need to do next. Thanks for your patience."
|
| 160 |
+
msgstr "Veţi primi un e-mail cu instrucţiuni asupra a ceea ce va trebui să faci în continuare. Vă mulţumim pentru răbdare."
|
| 161 |
+
|
| 162 |
+
#: new-user-approve.php:418
|
| 163 |
+
msgid "Pending Approval"
|
| 164 |
+
msgstr "AÅteptare autorizare"
|
| 165 |
+
|
| 166 |
+
#: new-user-approve.php:418
|
| 167 |
+
msgid "Registration successful."
|
| 168 |
+
msgstr "Ãnregistrare de succes."
|
| 169 |
+
|
| 170 |
+
#: new-user-approve.php:466
|
| 171 |
+
#, php-format
|
| 172 |
+
msgid "Welcome to %s. This site is accessible to approved users only. To be approved, you must first register."
|
| 173 |
+
msgstr "Bine ati venit la %s. Acest site este accesibil doar utilizatorilor autorizaţi. Pentru a fi aprobat, trebuie să vă înregistraţi mai întâi."
|
| 174 |
+
|
| 175 |
+
#: new-user-approve.php:471
|
| 176 |
+
msgid "After you register, your request will be sent to the site administrator for approval. You will then receive an email with further instructions."
|
| 177 |
+
msgstr "După ce vă înregistraţi, cererea dumneavoastră va fi trimis la administratorul site-ului pentru aprobare. Veţi primi apoi un e-mail cu instrucţiuni suplimentare."
|
| 178 |
+
|
| 179 |
+
#. Plugin Name of an extension
|
| 180 |
+
msgid "New User Approve"
|
| 181 |
+
msgstr "Utilizator nou aprobe"
|
| 182 |
+
|
| 183 |
+
#. Plugin URI of an extension
|
| 184 |
+
msgid "http://www.picklewagon.com/wordpress/new-user-approve"
|
| 185 |
+
msgstr "http://www.picklewagon.com/WordPress/New-user-approve"
|
| 186 |
+
|
| 187 |
+
#. Description of an extension
|
| 188 |
+
msgid "This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog."
|
| 189 |
+
msgstr "Acest plugin permite administratorilor să aprobe odată ce utilizatorii înregistraţi. Numai utilizatorii autorizaţi vor putea accesa blogul."
|
| 190 |
+
|
| 191 |
+
#. Author of an extension
|
| 192 |
+
msgid "Josh Harrison"
|
| 193 |
+
msgstr "Josh Harrison"
|
| 194 |
+
|
| 195 |
+
#. Author URI of an extension
|
| 196 |
+
msgid "http://www.picklewagon.com/"
|
| 197 |
+
msgstr "http://www.picklewagon.com/"
|
| 198 |
+
|
new-user-approve.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve/
|
| 5 |
Description: This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog.
|
| 6 |
Author: Josh Harrison
|
| 7 |
-
Version: 1.3
|
| 8 |
Author URI: http://www.picklewagon.com/
|
| 9 |
*/
|
| 10 |
|
|
@@ -24,6 +24,7 @@
|
|
| 24 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
| 25 |
*/
|
| 26 |
|
|
|
|
| 27 |
if (!class_exists('pw_new_user_approve')) {
|
| 28 |
class pw_new_user_approve {
|
| 29 |
/**
|
|
@@ -31,6 +32,8 @@ class pw_new_user_approve {
|
|
| 31 |
*/
|
| 32 |
var $plugin_id = 'new-user-approve';
|
| 33 |
|
|
|
|
|
|
|
| 34 |
// Class Functions
|
| 35 |
/**
|
| 36 |
* PHP 4 Compatible Constructor
|
|
@@ -79,7 +82,7 @@ class pw_new_user_approve {
|
|
| 79 |
public function admin_scripts_footer() {
|
| 80 |
global $wp_db_version;
|
| 81 |
|
| 82 |
-
if (
|
| 83 |
$page_id = ($wp_db_version >= 10851) ? '#pw_approve_tabs' : '#pw_approve_tabs > ul';
|
| 84 |
?>
|
| 85 |
<script type="text/javascript">
|
|
@@ -113,7 +116,7 @@ class pw_new_user_approve {
|
|
| 113 |
}
|
| 114 |
?>
|
| 115 |
<div>
|
| 116 |
-
<p><span style="font-weight:bold;"><a href="users.php?page=<?php print
|
| 117 |
<?php foreach($user_status as $status =>$count) print "$count $status "; ?>
|
| 118 |
</p>
|
| 119 |
</div>
|
|
@@ -204,11 +207,11 @@ class pw_new_user_approve {
|
|
| 204 |
$class = ($row % 2) ? '' : ' class="alternate"';
|
| 205 |
$avatar = get_avatar( $user->user_email, 32 );
|
| 206 |
if ($approve) {
|
| 207 |
-
$approve_link = get_option('siteurl').'/wp-admin/users.php?page='.
|
| 208 |
$approve_link = wp_nonce_url($approve_link, 'pw_new_user_approve_action_' . get_class($this));
|
| 209 |
}
|
| 210 |
if ($deny) {
|
| 211 |
-
$deny_link = get_option('siteurl').'/wp-admin/users.php?page='.
|
| 212 |
$deny_link = wp_nonce_url($deny_link, 'pw_new_user_approve_action_' . get_class($this));
|
| 213 |
}
|
| 214 |
if ( current_user_can( 'edit_user', $user->ID ) ) {
|
|
@@ -267,7 +270,7 @@ class pw_new_user_approve {
|
|
| 267 |
$message = sprintf(__('%1$s (%2$s) has requested a username at %3$s', $this->plugin_id), $user_login, $user_email, get_option('blogname')) . "\r\n\r\n";
|
| 268 |
$message .= get_option('siteurl') . "\r\n\r\n";
|
| 269 |
$message .= sprintf(__('To approve or deny this user access to %s go to', $this->plugin_id), get_option('blogname')) . "\r\n\r\n";
|
| 270 |
-
$message .= get_option('siteurl') . "/wp-admin/users.php?page=".
|
| 271 |
|
| 272 |
// send the mail
|
| 273 |
wp_mail(get_option('admin_email'), sprintf(__('[%s] User Approval', $this->plugin_id), get_option('blogname')), $message);
|
|
@@ -363,7 +366,7 @@ class pw_new_user_approve {
|
|
| 363 |
* @desc accept input from admin to modify a user
|
| 364 |
*/
|
| 365 |
public function process_input() {
|
| 366 |
-
if ((isset($_GET['page']) && $_GET['page'] ==
|
| 367 |
$valid_request = check_admin_referer('pw_new_user_approve_action_' . get_class($this));
|
| 368 |
|
| 369 |
if ($valid_request) {
|
|
@@ -384,11 +387,11 @@ class pw_new_user_approve {
|
|
| 384 |
public function lost_password() {
|
| 385 |
$is_email = strpos($_POST['user_login'], '@');
|
| 386 |
if ($is_email === false) {
|
| 387 |
-
$username = sanitize_user($_POST['user_login']);
|
| 388 |
-
$user_data =
|
| 389 |
} else {
|
| 390 |
-
$email = is_email($_POST['user_login']);
|
| 391 |
-
$user_data =
|
| 392 |
}
|
| 393 |
|
| 394 |
if ($user_data->pw_user_status != 'approved') {
|
|
@@ -414,18 +417,23 @@ class pw_new_user_approve {
|
|
| 414 |
}
|
| 415 |
|
| 416 |
public function init() {
|
| 417 |
-
if ( is_admin() && isset($_GET['page']) && $_GET['page'] ==
|
| 418 |
wp_enqueue_script('jquery-ui-tabs');
|
| 419 |
wp_enqueue_style('pw-admin-ui-tabs', plugins_url( 'ui.tabs.css', __FILE__ ) );
|
| 420 |
}
|
| 421 |
}
|
| 422 |
|
| 423 |
function admin_menu_link() {
|
| 424 |
-
$
|
|
|
|
| 425 |
}
|
| 426 |
|
| 427 |
public function validate_user( $empty, $username, $password ) {
|
| 428 |
-
if (empty( $
|
|
|
|
|
|
|
|
|
|
|
|
|
| 429 |
return;
|
| 430 |
}
|
| 431 |
|
| 4 |
Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve/
|
| 5 |
Description: This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog.
|
| 6 |
Author: Josh Harrison
|
| 7 |
+
Version: 1.3.1
|
| 8 |
Author URI: http://www.picklewagon.com/
|
| 9 |
*/
|
| 10 |
|
| 24 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
| 25 |
*/
|
| 26 |
|
| 27 |
+
|
| 28 |
if (!class_exists('pw_new_user_approve')) {
|
| 29 |
class pw_new_user_approve {
|
| 30 |
/**
|
| 32 |
*/
|
| 33 |
var $plugin_id = 'new-user-approve';
|
| 34 |
|
| 35 |
+
var $_admin_page = 'new-user-approve-admin';
|
| 36 |
+
|
| 37 |
// Class Functions
|
| 38 |
/**
|
| 39 |
* PHP 4 Compatible Constructor
|
| 82 |
public function admin_scripts_footer() {
|
| 83 |
global $wp_db_version;
|
| 84 |
|
| 85 |
+
if ( is_admin() && isset( $_GET['page'] ) && $_GET['page'] == $this->_admin_page) {
|
| 86 |
$page_id = ($wp_db_version >= 10851) ? '#pw_approve_tabs' : '#pw_approve_tabs > ul';
|
| 87 |
?>
|
| 88 |
<script type="text/javascript">
|
| 116 |
}
|
| 117 |
?>
|
| 118 |
<div>
|
| 119 |
+
<p><span style="font-weight:bold;"><a href="users.php?page=<?php print $this->_admin_page ?>"><?php _e('Users', $this->plugin_id) ?></a></span>:
|
| 120 |
<?php foreach($user_status as $status =>$count) print "$count $status "; ?>
|
| 121 |
</p>
|
| 122 |
</div>
|
| 207 |
$class = ($row % 2) ? '' : ' class="alternate"';
|
| 208 |
$avatar = get_avatar( $user->user_email, 32 );
|
| 209 |
if ($approve) {
|
| 210 |
+
$approve_link = get_option('siteurl').'/wp-admin/users.php?page='.$this->_admin_page.'&user='.$user->ID.'&status=approve';
|
| 211 |
$approve_link = wp_nonce_url($approve_link, 'pw_new_user_approve_action_' . get_class($this));
|
| 212 |
}
|
| 213 |
if ($deny) {
|
| 214 |
+
$deny_link = get_option('siteurl').'/wp-admin/users.php?page='.$this->_admin_page.'&user='.$user->ID.'&status=deny';
|
| 215 |
$deny_link = wp_nonce_url($deny_link, 'pw_new_user_approve_action_' . get_class($this));
|
| 216 |
}
|
| 217 |
if ( current_user_can( 'edit_user', $user->ID ) ) {
|
| 270 |
$message = sprintf(__('%1$s (%2$s) has requested a username at %3$s', $this->plugin_id), $user_login, $user_email, get_option('blogname')) . "\r\n\r\n";
|
| 271 |
$message .= get_option('siteurl') . "\r\n\r\n";
|
| 272 |
$message .= sprintf(__('To approve or deny this user access to %s go to', $this->plugin_id), get_option('blogname')) . "\r\n\r\n";
|
| 273 |
+
$message .= get_option('siteurl') . "/wp-admin/users.php?page=".$this->_admin_page."\r\n";
|
| 274 |
|
| 275 |
// send the mail
|
| 276 |
wp_mail(get_option('admin_email'), sprintf(__('[%s] User Approval', $this->plugin_id), get_option('blogname')), $message);
|
| 366 |
* @desc accept input from admin to modify a user
|
| 367 |
*/
|
| 368 |
public function process_input() {
|
| 369 |
+
if ((isset($_GET['page']) && $_GET['page'] == $this->_admin_page) && isset($_GET['status'])) {
|
| 370 |
$valid_request = check_admin_referer('pw_new_user_approve_action_' . get_class($this));
|
| 371 |
|
| 372 |
if ($valid_request) {
|
| 387 |
public function lost_password() {
|
| 388 |
$is_email = strpos($_POST['user_login'], '@');
|
| 389 |
if ($is_email === false) {
|
| 390 |
+
$username = sanitize_user( $_POST['user_login'] );
|
| 391 |
+
$user_data = get_user_by( 'login', trim( $username ) );
|
| 392 |
} else {
|
| 393 |
+
$email = is_email( $_POST['user_login'] );
|
| 394 |
+
$user_data = get_user_by( 'email', $email );
|
| 395 |
}
|
| 396 |
|
| 397 |
if ($user_data->pw_user_status != 'approved') {
|
| 417 |
}
|
| 418 |
|
| 419 |
public function init() {
|
| 420 |
+
if ( is_admin() && isset($_GET['page']) && $_GET['page'] == $this->_admin_page ) {
|
| 421 |
wp_enqueue_script('jquery-ui-tabs');
|
| 422 |
wp_enqueue_style('pw-admin-ui-tabs', plugins_url( 'ui.tabs.css', __FILE__ ) );
|
| 423 |
}
|
| 424 |
}
|
| 425 |
|
| 426 |
function admin_menu_link() {
|
| 427 |
+
$cap = apply_filters( 'new_user_approve_minimum_cap', 'edit_users' );
|
| 428 |
+
$this->user_page_hook = add_users_page( __('Approve New Users', $this->plugin_id), __('Approve New Users', $this->plugin_id), $cap, $this->_admin_page, array( $this, 'approve_admin' ) );
|
| 429 |
}
|
| 430 |
|
| 431 |
public function validate_user( $empty, $username, $password ) {
|
| 432 |
+
if ( empty( $password ) ) {
|
| 433 |
+
return;
|
| 434 |
+
}
|
| 435 |
+
|
| 436 |
+
if ( empty( $username ) ) {
|
| 437 |
return;
|
| 438 |
}
|
| 439 |
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: http://picklewagon.com/wordpress/new-user-approve/donate
|
|
| 4 |
Tags: users, registration
|
| 5 |
Requires at least: 3.1
|
| 6 |
Tested up to: 3.3.2
|
| 7 |
-
Stable tag: 1.3
|
| 8 |
|
| 9 |
New User Approve is a Wordpress plugin that allows a blog administrator to
|
| 10 |
approve a user before they are able to access and login to the blog.
|
|
@@ -36,14 +36,15 @@ user will not be able to login to the site.
|
|
| 36 |
The New User Approve plugin uses the functions provided by WordPress to send
|
| 37 |
email. Make sure your host is setup correctly to send email if this happens.
|
| 38 |
|
| 39 |
-
= How do customize the email address when sending notifications to users? =
|
| 40 |
|
| 41 |
This is not a function of the plugin but of WordPress. WordPress provides the
|
| 42 |
-
|
| 43 |
There are also a number of plugins that provide a setting to change this to
|
| 44 |
your liking.
|
| 45 |
-
|
| 46 |
-
*
|
|
|
|
| 47 |
|
| 48 |
== Screenshots ==
|
| 49 |
|
|
@@ -51,6 +52,13 @@ your liking.
|
|
| 51 |
|
| 52 |
== Changelog ==
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
= 1.3 =
|
| 55 |
* use the User API to retrieve a user instead of querying the db
|
| 56 |
* require at least WordPress 3.1
|
|
@@ -117,21 +125,24 @@ your liking.
|
|
| 117 |
= 1.3 =
|
| 118 |
This version fixes some issues when authenticating users. Requires at least WordPress 3.1.
|
| 119 |
|
|
|
|
|
|
|
|
|
|
| 120 |
== Other Notes ==
|
| 121 |
|
| 122 |
= Translations =
|
| 123 |
-
The plugin has been prepared to be translated. If you want to help to translate
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
*
|
| 129 |
-
*
|
| 130 |
-
* French translation by <a href="http://philippe.scoffoni.net">Philippe Scoffoni</a>
|
| 131 |
-
* Greek translation by <a href="http://alt3rnet.info">Leftys</a>
|
| 132 |
-
* Polish translation by <a href="http://wordpress.org/support/profile/1271256">pik256</a>
|
| 133 |
* German translation by Christoph Ploedt
|
| 134 |
-
* Spanish translation by
|
| 135 |
-
* Dutch translation by
|
| 136 |
-
* Italian translation by
|
|
|
|
|
|
|
|
|
|
| 137 |
|
| 4 |
Tags: users, registration
|
| 5 |
Requires at least: 3.1
|
| 6 |
Tested up to: 3.3.2
|
| 7 |
+
Stable tag: 1.3.1
|
| 8 |
|
| 9 |
New User Approve is a Wordpress plugin that allows a blog administrator to
|
| 10 |
approve a user before they are able to access and login to the blog.
|
| 36 |
The New User Approve plugin uses the functions provided by WordPress to send
|
| 37 |
email. Make sure your host is setup correctly to send email if this happens.
|
| 38 |
|
| 39 |
+
= How do I customize the email address and/or name when sending notifications to users? =
|
| 40 |
|
| 41 |
This is not a function of the plugin but of WordPress. WordPress provides the
|
| 42 |
+
*wp_mail_from* and *wp_mail_from_name* filters to allow you to customize this.
|
| 43 |
There are also a number of plugins that provide a setting to change this to
|
| 44 |
your liking.
|
| 45 |
+
|
| 46 |
+
* [wp mail from](http://wordpress.org/extend/plugins/wp-mailfrom/)
|
| 47 |
+
* [Mail From](http://wordpress.org/extend/plugins/mail-from/)
|
| 48 |
|
| 49 |
== Screenshots ==
|
| 50 |
|
| 52 |
|
| 53 |
== Changelog ==
|
| 54 |
|
| 55 |
+
= 1.3.1 =
|
| 56 |
+
* add czech, catalan, romanian translations
|
| 57 |
+
* fix formatting issues in readme.txt
|
| 58 |
+
* add a filter to modify who has access to approve and deny users
|
| 59 |
+
* remove deprecated function calls when a user resets a password
|
| 60 |
+
* don't allow a user to login without a password
|
| 61 |
+
|
| 62 |
= 1.3 =
|
| 63 |
* use the User API to retrieve a user instead of querying the db
|
| 64 |
* require at least WordPress 3.1
|
| 125 |
= 1.3 =
|
| 126 |
This version fixes some issues when authenticating users. Requires at least WordPress 3.1.
|
| 127 |
|
| 128 |
+
= 1.3.1 =
|
| 129 |
+
Download version 1.3.1 immediately! A bug was found in version 1.3 that allows a user to login without using password.
|
| 130 |
+
|
| 131 |
== Other Notes ==
|
| 132 |
|
| 133 |
= Translations =
|
| 134 |
+
The plugin has been prepared to be translated. If you want to help to translate the plugin to your language, please have a look at the localization/new-user-approve.pot file which contains all defintions and may be used with a gettext editor like Poedit (Windows). More information can be found on the [Codex](http://codex.wordpress.org/Translating_WordPress).
|
| 135 |
+
|
| 136 |
+
* Belarusian translation by [Fat Cow](http://www.fatcow.com/)
|
| 137 |
+
* Danish translation by [GeorgWP](http://wordpress.org/support/profile/georgwp)
|
| 138 |
+
* French translation by [Philippe Scoffoni](http://philippe.scoffoni.net/)
|
| 139 |
+
* Greek translation by [Leftys](http://alt3rnet.info/)
|
| 140 |
+
* Polish translation by [pik256](http://wordpress.org/support/profile/1271256)
|
|
|
|
|
|
|
|
|
|
| 141 |
* German translation by Christoph Ploedt
|
| 142 |
+
* Spanish translation by [Eduardo Aranda](http://sinetiks.com/)
|
| 143 |
+
* Dutch translation by [Ronald Moolenaar](http://profiles.wordpress.org/moolie/)
|
| 144 |
+
* Italian translation by [Pierfrancesco Marsiaj](http://profiles.wordpress.org/pierinux/)
|
| 145 |
+
* Czech translation by [GazikT](http://profiles.wordpress.org/gazikt/)
|
| 146 |
+
* Catalan translation by [xoanet](http://profiles.wordpress.org/xoanet/)
|
| 147 |
+
* Romanian translation by [Web Hosting Geeks](http://webhostinggeeks.com/)
|
| 148 |
|
