Changeset 12247 for extensions/UserAdvManager/trunk
- Timestamp:
- Sep 27, 2011, 9:28:27 PM (13 years ago)
- Location:
- extensions/UserAdvManager/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/trunk/include/upgradedb.inc.php
r12239 r12247 522 522 523 523 // Piwigo's native tables modifications for password reset function - Add pwdreset column 524 $q = ' 524 $query = ' 525 SHOW COLUMNS FROM '.USERS_TABLE.' 526 LIKE "UAM_pwdreset" 527 ;'; 528 529 $result = pwg_query($query); 530 531 if(!pwg_db_fetch_row($result)) 532 { 533 $q = ' 525 534 ALTER TABLE '.USERS_TABLE.' 526 535 ADD UAM_pwdreset enum("true","false") 527 536 ;'; 528 pwg_query($q); 537 pwg_query($q); 538 } 529 539 } 530 540 ?> -
extensions/UserAdvManager/trunk/main.inc.php
r12239 r12247 2 2 /* 3 3 Plugin Name: UserAdvManager 4 Version: 2.30.0 RC14 Version: 2.30.0 5 5 Description: Renforcer la gestion des utilisateurs - Enforce users management 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=216 -
extensions/UserAdvManager/trunk/maintain.inc.php
r12239 r12247 13 13 { 14 14 global $conf; 15 15 16 /* ****************************************************************** */ 17 /* **************** BEGIN - Data preparation in vars **************** */ 18 /* ****************************************************************** */ 19 20 // Default global parameters for UserAdvManager conf 16 21 $default1 = array('false','false',-1,-1,-1,'false','',-1,'','','false','','false',100,'false','false',10,'Hello [username]. 17 22 … … 24 29 The admin of the gallery.','false','false','false','false','false','Sorry [username], your account has been deleted due to a too long time passed since your last visit at [mygallery].','Sorry [username], your account has been deprecated due to a too long time passed since your last visit at [mygallery]. Please, use the following link to revalidate your account.',-1,-1,'Thank you for registering at [mygallery]. Your account has been manually validated by _admin_. You may now log in at _link_to_site_ and make any appropriate changes to your profile. Welcome to _name_of_site_!','false','You have requested a password reset on our gallery. Please, find below your new connection settings.','false','Sorry, your account has been deleted because you have not validated your registration in requested time. Please, try registration with a valid and non blocked email account.','false','false','false',-1,-1,-1,'false'); 25 30 31 // Default specific parameters for UserAdvManager ConfirmMail conf 32 $default2 = array('false',5,'Hello [username]. 33 34 This is a reminder message because you registered on our gallery [mygallery] but you do not validate your registration and your validation key has expired. To still allow you to access to our gallery, your validation period has been reset. You have again 5 days to validate your registration. 35 36 Note: After this period, your account will be permanently deleted.','false','Hello [username]. 37 38 This is a reminder message because you registered on our gallery [mygallery] but you do not validate your registration and your validation key will expire. To allow you access to our gallery, you have 2 days to confirm your registration by clicking on the link in the message you should have received when you registered. 39 40 Note: After this period, your account will be permanently deleted.','You have confirmed that you are human and may now use [mygallery]! Welcome [username]!','Your activation key is incorrect or expired or you have already validated your account, please contact the webmaster to fix this problem.'); 41 42 // Set current plugin version in config table 43 $plugin = PluginInfos(UAM_PATH); 44 $version = $plugin['version']; 45 46 /* **************************************************************** */ 47 /* **************** END - Data preparation in vars **************** */ 48 /* **************************************************************** */ 49 50 51 /* ***************************************************************************** */ 52 /* **************** BEGIN - Database actions and initialization **************** */ 53 /* ***************************************************************************** */ 54 55 // Create UserAdvManager conf if not already exists 26 56 $query = ' 27 57 SELECT param … … 40 70 } 41 71 42 43 $default2 = array('false',5,'Hello [username]. 44 45 This is a reminder message because you registered on our gallery [mygallery] but you do not validate your registration and your validation key has expired. To still allow you to access to our gallery, your validation period has been reset. You have again 5 days to validate your registration. 46 47 Note: After this period, your account will be permanently deleted.','false','Hello [username]. 48 49 This is a reminder message because you registered on our gallery [mygallery] but you do not validate your registration and your validation key will expire. To allow you access to our gallery, you have 2 days to confirm your registration by clicking on the link in the message you should have received when you registered. 50 51 Note: After this period, your account will be permanently deleted.','You have confirmed that you are human and may now use [mygallery]! Welcome [username]!','Your activation key is incorrect or expired or you have already validated your account, please contact the webmaster to fix this problem.'); 52 72 // Create UserAdvManager_ConfirmMail conf if not already exists 53 73 $query = ' 54 74 SELECT param … … 67 87 } 68 88 89 // Create UserAdvManager_Redir conf if not already exists 69 90 $query = ' 70 91 SELECT param … … 83 104 } 84 105 85 // Set current plugin version in config table 86 $plugin = PluginInfos(UAM_PATH); 87 $version = $plugin['version']; 88 106 // Create UserAdvManager_Version conf if not already exists 89 107 $query = ' 90 108 SELECT param … … 103 121 } 104 122 105 123 // Create USER_CONFIRM_MAIL_TABLE 106 124 $q = " 107 125 CREATE TABLE IF NOT EXISTS ".USER_CONFIRM_MAIL_TABLE." ( … … 117 135 pwg_query($q); 118 136 137 // Create USER_LASTVISIT_TABLE 119 138 $q = " 120 139 CREATE TABLE IF NOT EXISTS ".USER_LASTVISIT_TABLE." ( … … 127 146 pwg_query($q); 128 147 129 // Piwigo's native tables modifications for password reset function - Add pwdreset column 148 // Piwigo's native tables modifications for password reset function - Add pwdreset column if not already exists 130 149 $query = ' 131 150 SHOW COLUMNS FROM '.USERS_TABLE.' … … 143 162 pwg_query($q); 144 163 } 164 165 /* *************************************************************************** */ 166 /* **************** END - Database actions and initialization **************** */ 167 /* *************************************************************************** */ 145 168 } 146 169
Note: See TracChangeset
for help on using the changeset viewer.