1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: UserAdvManager |
---|
4 | ** Change log ** |
---|
5 | *************************************** |
---|
6 | ***** Plugin history (branch 2.10)***** |
---|
7 | *************************************** |
---|
8 | |
---|
9 | -- 2.10.0-beta : Initial beta release for Piwigo compatibility |
---|
10 | -- 2.10.1-beta : Small correction on generated path |
---|
11 | -- 2.10.2-beta : Bug resolved on register validation page |
---|
12 | |
---|
13 | -- 2.10.3 : Final and fully functional release |
---|
14 | Bug resolved on plugin activation |
---|
15 | |
---|
16 | -- 2.10.4 : Bug fixed on profiles update |
---|
17 | |
---|
18 | -- 2.10.5 : Improved code on profiles update |
---|
19 | |
---|
20 | -- 2.10.6 : Old language packs (iso) deleted (forget from PWG 1.7.x version) |
---|
21 | |
---|
22 | -- 2.10.7 : Bug fixed on user's validation email sending |
---|
23 | |
---|
24 | -- 2.10.8 : ConfirmMail page looks better (Sylvia theme only) |
---|
25 | Improved code for checking author on guest comments |
---|
26 | |
---|
27 | -- 2.10.9 : Bug fixed - Missing english translation |
---|
28 | Bug fixed - Notice on forbidden characters function use |
---|
29 | Bug fixed - Audit on forbidden characters in username didn't work |
---|
30 | Adding of email provider exclusion (like *@hotmail.com) - Warning ! -> Known bug : This feature doesn't work on user profile page. So, already registered users can change their email address to a forbiden one. |
---|
31 | |
---|
32 | -- 2.10.9a : Email provider exclusion is no longer case sensitive |
---|
33 | |
---|
34 | -- 2.10.9b : Bug fixed - Home icon wasn't linked to gallery url in ConfirmMail page. If GALLERY_URL is not set, Home icon gets the pwg root path. |
---|
35 | |
---|
36 | -- 2.10.9c : Bug fixed - If Email provider exclusion is set off, new registered user will have a PHP notice on "Undefined variable: ncsemail" |
---|
37 | |
---|
38 | -- 2.10.9d : Code simplification - need no more ""template"" sub-directory in plugin directory for enhance "back link" icon in ConfirMail.tpl |
---|
39 | |
---|
40 | -- 2.10.9e : Compatibility improvement with PHP 5.3 - Some old functions will be deprecated like : |
---|
41 | ereg replaced by preg_match |
---|
42 | eregi replace by preg_match with "i" moderator |
---|
43 | split replace by preg_split |
---|
44 | |
---|
45 | -- 2.10.9f : Compatibility bug fixed when used with DynamicRecentPeriod plugin |
---|
46 | |
---|
47 | |
---|
48 | ***** Plugin history (branch 2.11)***** |
---|
49 | |
---|
50 | -- 2.11.0 : New tabsheet menu to manage ConfirMail functions (setting a timeout without validation, Cleanup expired user's accounts, Force confirmation, Renew validation key, list unvalidated users,...) |
---|
51 | Beautify plugin's main admin panel |
---|
52 | |
---|
53 | -- 2.11.1 : Bug fixed with install and upgrade functions |
---|
54 | Language files correction |
---|
55 | |
---|
56 | -- 2.11.2 : Bug fixed on bad query for unvalidated users display in unvalidated users list |
---|
57 | Bug fixed : Sql syntax error on plugin activation |
---|
58 | |
---|
59 | -- 2.11.3 : On Patricia's request (french forum and bug 1173), the unvalidated users management tab shows users according with the settings of unvalidated group and / or unvalidated status. |
---|
60 | Feature 1172 added : Email providers exclusion list can be set with CR/LF between each entry. The comma seperator (,) is still mandatory. |
---|
61 | Bug 1175 fixed : Bad translation tag in french language file. |
---|
62 | Improvement of unvalidated users management tab (feature 1174)- Expired users are displayed in red color text. |
---|
63 | |
---|
64 | -- 2.11.4 : Bug 1177 fixed : Width of excluded email providers list reset to ancient value (80 col) |
---|
65 | Bug 1179 fixed : Adding a notice in plugin inline documentation for use of validation groups and status. A default group must be set in Piwigo's groups settings and the "Guest" (or another user) must be set as default for status values. |
---|
66 | Bug 1182 fixed : Language tag missing in confirmation email generation |
---|
67 | |
---|
68 | -- 2.11.5 : Bug 1195 fixed : Registration displays the good title |
---|
69 | |
---|
70 | |
---|
71 | *************************************** |
---|
72 | ***** Plugin history (branch 2.12)***** |
---|
73 | *************************************** |
---|
74 | |
---|
75 | -- 2.12.0 : Bug 1206 fixed : All plugin functionnalities work in user's profile page |
---|
76 | Plugin's core code and admin panel refactoring |
---|
77 | Password control and enforcement : A complexity score is computed on user registration. If this score is less than the goal set by admin, the password choosen is rejected. |
---|
78 | Feature 1194 "Ghost Tracker" added : New plugin tab displays users who don't comes back to the gallery since x days. Ability to send email reminders and to delete reminded but "dead" users. It's the reason why this feature is called "Ghost Tracker". |
---|
79 | |
---|
80 | -- 2.12.1 : Rollback on admin panel improvement (it was a bad idea) |
---|
81 | |
---|
82 | -- 2.12.2 : Bug 1221 fixed - Adding of a new funtion to populate the lastvisit table on Ghost Tracker activation |
---|
83 | Bug 1224 fixed - Error in database after plugin activation |
---|
84 | Bug 1225 fixed - "Reminder" status don't change from "false" to "true" after the sent of a reminder email |
---|
85 | Some code beautify (SQL requests and HTML 4 strict for tpl) |
---|
86 | |
---|
87 | -- 2.12.3 : Bug 1226 fixed - "duplicate key error" when lastvisit table is not empty and on using Ghost Tracker init function |
---|
88 | |
---|
89 | -- 2.12.4 : Adding a password field control for SendMail2User - Neighborhood plugin compatibility improvement |
---|
90 | Bug 1229 fixed - Email was no longer mandatory when plugin was active, even if Piwigo's email madatory option was set. |
---|
91 | |
---|
92 | -- 2.12.5 : Bug 1233 fixed - "duplicate key error" when a user wants to register with an existing username. In fact, all standard Piwigo's register controls didn't work when plugin was activated. That fixes this too. |
---|
93 | Adding DE, ES and IT languages. All translations are not finalized and could be improved. |
---|
94 | Adding of description.txt file in language directories. |
---|
95 | |
---|
96 | -- 2.12.6 : Bug 1236 fixed - Admins was unable to add a new user in the user_list page. |
---|
97 | Beginning of IT translations |
---|
98 | |
---|
99 | -- 2.12.7 : Bug 1238 fixed - Simple custom email text wasn't send when Extended Description plugin wasn't set |
---|
100 | Bug 1245 fixed - Semicolons (;) are no longer allowed in text areas (mail info text, ConfirmMail text, reminder text,...). They'll be replaced by dots (.). |
---|
101 | Bug 1248 fixed - Php notice on user registration with a forbidden email domain |
---|
102 | Bug 1250 fixed - Email provider didn't work after the third exclusion in list |
---|
103 | Escaping all special characters typed in login name and recover them |
---|
104 | |
---|
105 | |
---|
106 | *************************************** |
---|
107 | ***** Plugin history (branch 2.13)***** |
---|
108 | *************************************** |
---|
109 | |
---|
110 | -- 2.13.0 : Bug 1246 fixed - Extended Description tags are working again ! Caution : The language used and saved in database is the one configured by default in the visitor's browser and not the language given by Language Switch. |
---|
111 | Evolution 1239 - New option to add a new tab that shows the number of days since their last visit for each registered user. |
---|
112 | Bug 1257 fixed - If email exclusion list begins with a CR-LF, an informative warning message is displayed (I was unable to delete automatically this CR-LF). |
---|
113 | Bug 1259 fixed - PHP notice on user addition by admin in user_list page. |
---|
114 | Bug 1260 fixed - Username case sensitivity is now fully functionnal in all users entries (user registration and admin panel) |
---|
115 | Evolution 1273 - Adding of reminder field in advanced user management tab. This allows to see if a reminder have already been send. |
---|
116 | Evolution 1292 - Adding of navigation bar in tabs where users are listed (when more than 1 page is needed to display users). |
---|
117 | Code refactory and improvements. |
---|
118 | Translations improvements. |
---|
119 | |
---|
120 | -- 2.13.1 : Bug 1302 fixed - Re-coded double email check on registration. |
---|
121 | Bug 1304 fixed - Adding of plugin version in plugin admin panel title. |
---|
122 | |
---|
123 | -- 2.13.2 : Bug 1308 fixed - Reminder emails have the good translated subject. |
---|
124 | |
---|
125 | -- 2.13.3 : Bug 1309 fixed - Forbidden characters in login name work fine again. |
---|
126 | Bug 1340 fixed - Explanation improvement for option "Nickname is mandatory for comments" |
---|
127 | Bug 1342 fixed - Calculation between last visit and today is ok and displays the good color in user list. |
---|
128 | Italian language improvement (thx to Rio) |
---|
129 | |
---|
130 | -- 2.13.4 : Add of obsolete files management |
---|
131 | Bug 1303 and 1387 fixed - Due to a bug in Piwigo's 2.0.8 switch_lang() function, the email contents using Extended Description tags wasn't taking user's language in account. A first fix is now set for the current 2.0.8 Piwigo's version and another one is ready to work for the next Piwigo's release. |
---|
132 | Bug 1444 fixed |
---|
133 | Bug 1445 fixed - The plugin's administration panel have been all reviewed and improved with text simplification and display enhancement. |
---|
134 | Bug 1463 fixed |
---|
135 | |
---|
136 | *** Feature temporarily postponed in a later version due to problems with ";" in text fields *** Add compatibility with FCK Editor plugin for email text fields |
---|
137 | |
---|
138 | |
---|
139 | *************************************** |
---|
140 | ***** Plugin history (branch 2.14)***** |
---|
141 | *************************************** |
---|
142 | |
---|
143 | -- 2.14.0 : Bug 1308 refixed - Piwigo 2.0.9 fixes the bug on switch_lang() function so the initial UAM fix is no longer needed |
---|
144 | Evolution 1392 - No more confirmation email for admins profile changing |
---|
145 | Evolution 1465 - Plugin's configuration data are now serialized in database |
---|
146 | Bug 1466 fixed - The plugin version is correctly displayed on Ghost Tracker tab |
---|
147 | Bug 1468 fixed - Java error (thx to cljosse) |
---|
148 | Evolution 1485 - The admin's can choose if the validation of registration have to be sent to users created by them |
---|
149 | Improving obsolete files cleaning |
---|
150 | Evolution 1488 - When an admin creates an account an information email is always sent to created user |
---|
151 | Code simplification - All variables are changed from "UserAdvManager" to "UAM" |
---|
152 | |
---|
153 | -- 2.14.1 : Bug 1497 fixed - Using users tracker without Ghost Tracker is now OK |
---|
154 | |
---|
155 | |
---|
156 | *************************************** |
---|
157 | ***** Plugin history (branch 2.15)***** |
---|
158 | *************************************** |
---|
159 | |
---|
160 | -- 2.15.0 : Plugin compatibility for Piwigo 2.1 |
---|
161 | Bug 1467 fixed - FCK Editor's functionnalities are available on registration's confirmation return page customization fields |
---|
162 | Bug 1474 fixed - Messages on registration's confirmation return page (ConfirmMail.tpl) are customizable |
---|
163 | Bug 1508 fixed - Plugin's name is now UserAdvManager (deletion of "nbc_" in code and PEM) |
---|
164 | Bug 1551 fixed - Database upgrade improvement |
---|
165 | |
---|
166 | -- 2.15.1 : Bug 1571 fixed - Missing translation tag |
---|
167 | Bug 1572 fixed - Fix unable to read resource: "ConfirmMail.tpl" |
---|
168 | Bug 1574 fixed - Beautifying ConfirmMail page |
---|
169 | Bug 1576 fixed - Compatibility with other database systems than MySql like PostgreSql or Sqlite. Using Piwigo's pwg_db_### integrated functions. |
---|
170 | Bug 1586 fixed - Links to official forum topic support and bugtacker were added in plugin's admin page |
---|
171 | |
---|
172 | -- 2.15.2 : Bug 1551 re-fixed - There was some problems remaining with old version upgrades |
---|
173 | Some translations revisited |
---|
174 | Bug 1655 fixed - Navigation bar is usefull again |
---|
175 | |
---|
176 | -- 2.15.3 : Quick update to fix a database upgrade issue |
---|
177 | |
---|
178 | -- 2.15.4 : Bug 1310 fixed - UAM tables are now sortable |
---|
179 | Bug 1656 fixed - New register validation mode: Manual validation by admin |
---|
180 | Bug 1687 fixed - Login case sensitivity is no more used in this plugin because already set in Piwigo's core |
---|
181 | Bug 1727 partially fixed - New option to redirect users to profile page after their first login only. |
---|
182 | Known problem: The redirection doesn't work after registration and after confirmation page (if ConfirmMail is enabled) |
---|
183 | The redirection applies to already registered users including admins, webmaster and generic status. |
---|
184 | Bug 1789 fixed - Escaping double quotes in text fields |
---|
185 | Bug 1790 fixed - Validation tracking tab is set when correct options are set |
---|
186 | Bug 1795 fixed - Fixes rules using email information and/or email of validation |
---|
187 | |
---|
188 | -- 2.15.5 : Bug 1693 fixed - Multi-languages are available for ConfirmMail customization (using Extended Description plugin) |
---|
189 | Bug 1727 fixed - The redirection does not appli to admins, webmaster and generic users. |
---|
190 | Bug 1807 fixed - Textareas are resized according the screen resolution |
---|
191 | Bug 1808 fixed - The Tracking users table is ordered by default on "LastVisit" field (last in at top) |
---|
192 | Bug 1809 fixed - Addition of a direct link to user's profile in all UAM tables. The link gives a new window |
---|
193 | Bug 1810 partially fixed - Auto login is not performed after visitors have validated their registration but the "home" button changes his link to redirect to identification page when the redirection option is set. Note: The redirection to profile.php doesn't work because I was unable to use the log_user() function on ConfirmMail page. This feature is still under investigation to perform the best way. |
---|
194 | |
---|
195 | -- 2.15.6 : Bug 1819 fixed - Wrong help text on redirection function |
---|
196 | Bug 1821 fixed - Cleanup of old deprecated functions slags (Case sensitivity on logins) |
---|
197 | Bug 1834 fixed - Improving plugin installation and uninstallation process |
---|
198 | |
---|
199 | -- 2.15.7 : Bug 1869 fixed - Compatibility with Adult_Content installation process |
---|
200 | |
---|
201 | -- 2.15.8 : Bug 1935 fixed - Fatal error on ConfirmMail page when Extended Description plugin is not used |
---|
202 | Bug 1936 fixed - Bad home link in ConfirmMail page when gallery URL is not set |
---|
203 | small CSS improvement (thx to Gotcha) |
---|
204 | |
---|
205 | -- 2.15.9 : Bug 2010 fixed - No confirmation email when information email is not set |
---|
206 | |
---|
207 | -- 2.15.10 : Bug 2050 fixed - Compatibility with Captcha |
---|
208 | |
---|
209 | |
---|
210 | *************************************** |
---|
211 | ***** Plugin history (branch 2.16)***** |
---|
212 | *************************************** |
---|
213 | -- 2.16.0 : Bug 1585 fixed - UAM version is set in database to improve future upgrades |
---|
214 | Bug 2011 fixed - Text fields are no longer locked if related option button is not set and saved. Now this fields and unused options are hidden |
---|
215 | Bug 2046 fixed - Using Piwigo's $conf['insensitive_case_logon'] = true option works again with UAM |
---|
216 | Bug 2053 fixed - Manual validation by admins wasn't working correctly |
---|
217 | Bug 2054 fixed - Add of customized email notification to validated users when admins validate them manually |
---|
218 | Bug 1430, 1840, 2056 fixed - Automated tasks are available to delete or downgrade ghost users with or without email notification |
---|
219 | Add of Latvian (lv_LV) translation (Thx to Aivars Baldone) |
---|
220 | |
---|
221 | ************************************************************** |
---|
222 | ***** Plugin history (branch 2.20 - Piwigo 2.2 compliant)***** |
---|
223 | ************************************************************** |
---|
224 | -- 2.20.0 : Compliance with Piwigo 2.2 |
---|
225 | Bug 1479 fixed - New feature : Add of a dedicated UAM block in PWG Stuffs plugin to inform unvalidated users on their status |
---|
226 | Bug 1666 fixed - New feature : Customizing "lost password" email |
---|
227 | Bug 2045 fixed - New feature : Special tags insertion in text fields. The tags actually available are [username] (insert current user username),[mygallery] (insert current gallery title), [myurl] (insert gallery url if set in Piwigo's configuration options). |
---|
228 | Bug 2055 fixed - New automated task for unvalidated registers (auto email reminder sent and auto deletion if already reminded). |
---|
229 | Bug 2072 fixed - Remove sort on "difference in days" in user tracking tab |
---|
230 | Bug 2140 fixed - English sentence corrections |
---|
231 | Bug 2186 fixed - JQuery accordion menu when no users are listed in UAM tables |
---|
232 | Bug 2188 fixed - Avoid translation flags conflicts |
---|
233 | Bug 2192 fixed - GT Automated tasks improvement and refactory |
---|
234 | Bug 2203 fixed - [username] special flag is not supported in lost password email customization |
---|
235 | |
---|
236 | -- 2.20.1 : Bug 2254 fixed - Plugin installation crashes when installing from scratch |
---|
237 | Bug 2255 fixed - Error in jQuery path |
---|
238 | |
---|
239 | -- 2.20.2 : Bug 2256 fixed - Error on upgrade from version 2.20.0 to 2.20.1 |
---|
240 | |
---|
241 | -- 2.20.3 : Bug 2257 fixed - Improve admin panel display with clear theme |
---|
242 | Bug 2258 fixed - New feature to backup UAM configuration and personnal settings |
---|
243 | |
---|
244 | -- 2.20.4 : Bug 2265 fixed - Add new option to display or not user's password in information email |
---|
245 | |
---|
246 | -- 2.20.5 : Bug 2287 fixed - The UAM block for PWG_Stuffs is correctly displayed (stuffs_module directory was missing) |
---|
247 | |
---|
248 | -- 2.20.6 : Improve database update process |
---|
249 | Bug 2289 fixed - "Password in clear text in the information email" was working in a reverse logic |
---|
250 | |
---|
251 | -- 2.20.7 : Use pwg_db_real_escape_string() instead of addslashes() |
---|
252 | Database upgrade process simplied (using version_compare() and code refactoring) |
---|
253 | Bug 2253 fixed - New feature to allow comments on pictures only for specific users (who belong to a group) when "comments for all" is disabled |
---|
254 | |
---|
255 | -- 2.20.8 : Remove all options related to comments because they are processed in new "Comments Access Manager" plugin. |
---|
256 | |
---|
257 | -- 2.20.9 : Bug fixed on installation from scratch (unable to save config) |
---|
258 | |
---|
259 | -- 2.20.10 : Bug 2324 fixed - New feature : Add [days] autotext flag to insert maximum numbers of days between two visits set in plugin's GhostTracker in GhostTracker reminder email. |
---|
260 | |
---|
261 | -- 2.20.11 : Bug 2336 fixed - New feature : Add [Kdays] autotext flag to insert the number of days until expiration. |
---|
262 | |
---|
263 | ************************************************************** |
---|
264 | ***** Plugin history (branch 2.30 - Piwigo 2.3 compliant)***** |
---|
265 | ************************************************************** |
---|
266 | -- 2.30.0 : Piwigo 2.3.0 compliant |
---|
267 | Bug 2415 fixed - New feature : Set automatically privacy level for users who have validated or not their registration. Automated task available. |
---|
268 | Bug 2437 fixed - New feature : Request password renewal for selected users in Piwigo's users management panel. |
---|
269 | Bug 2445 fixed - Duplicate key MySql error when a user tries to validate his registration twice. |
---|
270 | Bug 2447 fixed - Only for installation from scratch, all text fields pre-filled and given as examples are translated into the language of the webmaster (if the language is supported by the plugin). The default language remains English in case of any failure. |
---|
271 | Bug 2450 fixed - New feature : Backup file restoration. |
---|
272 | Help files remaned and relocated in the language root directory (no more "help" subdirectory) for compliance with the new online translation tool. |
---|
273 | |
---|
274 | -- 2.30.1 : Bug 2455 fixed - Exclusion of specific users (généric and admins users) for password reset function. |
---|
275 | Bug 2451 fixed - Unable to handle Sql errors but control of backup file validity have been enforced. |
---|
276 | |
---|
277 | -- 2.30.2 : Bug 2456 fixed - New feature : Avoid user connexion to the gallery until there has been no validation of registration. Users are redirected to a customizable content page. |
---|
278 | |
---|
279 | -- 2.30.3 : Bug 2524 fixed - The "Information email" option has been moved to "misc options" section of admin panel |
---|
280 | Bug 2525 fixed - "Obligatory email for registrations" option is checked before using the email exclusion option |
---|
281 | Bug 2526 fixed - "PWG stuff" option has been moved one step higher in admin panel |
---|
282 | Bug 2527 fixed - "Confirmation for admins" option has been moved one step higher in admin panel |
---|
283 | Bug 2528 fixed - The word "validation" for "registration validation" has been replaced by "confirmation" |
---|
284 | Bug 2569 fixed - Missing connexion rejected page |
---|
285 | |
---|
286 | -- 2.30.4 : Bug 2580 fixed - DE translation files corrupted |
---|
287 | */ |
---|
288 | ?> |
---|