Changeset 3882 for extensions
- Timestamp:
- Sep 19, 2009, 11:02:21 PM (15 years ago)
- Location:
- extensions/NBC_UserAdvManager/branches/2.11
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/branches/2.11/admin/UserAdvManager_admin.php
r3873 r3882 384 384 $conf_nbc_UserAdvManager_ConfirmMail = isset($conf['nbc_UserAdvManager_ConfirmMail']) ? explode(";" , $conf['nbc_UserAdvManager_ConfirmMail']) : array(); 385 385 386 if (isset($conf_nbc_UserAdvManager[2]) and $conf_nbc_UserAdvManager[2]=='true' and isset($conf_nbc_UserAdvManager _ConfirmMail[0]) and $conf_nbc_UserAdvManager_ConfirmMail[0]=='true')386 if (isset($conf_nbc_UserAdvManager[2]) and $conf_nbc_UserAdvManager[2]=='true' and isset($conf_nbc_UserAdvManager[3]) and $conf_nbc_UserAdvManager[3] <> '-1' and isset($conf_nbc_UserAdvManager_ConfirmMail[0]) and $conf_nbc_UserAdvManager_ConfirmMail[0]=='true') 387 387 { 388 388 // +-----------------------------------------------------------------------+ -
extensions/NBC_UserAdvManager/branches/2.11/include/functions_UserAdvManager.inc.php
r3859 r3882 635 635 WHERE u.'.$conf['user_fields']['id'].' >= 0 636 636 AND ug.group_id = "'.$conf_nbc_UserAdvManager[3].'" 637 AND TO_DAYS(NOW()) - TO_DAYS(ui.registration_date) >= "'.$conf_nbc_UserAdvManager_ConfirmMail[1].'" 637 AND (TO_DAYS(NOW()) - TO_DAYS(ui.registration_date) >= "'.$conf_nbc_UserAdvManager_ConfirmMail[1].'" 638 OR TO_DAYS(NOW()) - TO_DAYS(ui.registration_date) < "'.$conf_nbc_UserAdvManager_ConfirmMail[1].'") 638 639 ORDER BY id ASC 639 640 ;'; -
extensions/NBC_UserAdvManager/branches/2.11/language/en_UK/plugin.lang.php
r3873 r3882 108 108 $lang['invalid_pwd'] = 'Invalid username or password !'; 109 109 $lang['Err_ConfirmMail_Settings'] = 'This page will be available only if "Email address confirmation" is activated in tab "Global Configuration".'; 110 $lang['Err_UserManager_Settings'] = 'This page is available only if "Enable limiting the registration deadline" is active in the "ConfirmMail Settings" tab .';110 $lang['Err_UserManager_Settings'] = 'This page is available only if "Enable limiting the registration deadline" is active in the "ConfirmMail Settings" tab and an unvalidated users group is set in "Global Configuration" tab.'; 111 111 $lang['No_validation_for_Guest'] = 'The "Guest" account is not subject to validation'; 112 112 $lang['No_validation_for_default_user'] = 'The default account is not subject to validation'; -
extensions/NBC_UserAdvManager/branches/2.11/language/fr_FR/plugin.lang.php
r3873 r3882 108 108 $lang['invalid_pwd'] = 'Nom utilisateur ou Mot de passe invalide !'; 109 109 $lang['Err_ConfirmMail_Settings'] = 'Cette page n\'est accessible que si "Confirmation de l\'adresse email" est actif dans l\'onglet "Configuration Générale".'; 110 $lang['Err_UserManager_Settings'] = 'Cette page n\'est accessible que si "Délai de validation d\'inscription" est actif dans l\'onglet "Configuration de ConfirmMail" .';110 $lang['Err_UserManager_Settings'] = 'Cette page n\'est accessible que si "Délai de validation d\'inscription" est actif dans l\'onglet "Configuration de ConfirmMail" et si un groupe de visiteurs non validés est configuré dans l\'onglet "Configuration Générale".'; 111 111 $lang['No_validation_for_Guest'] = 'Le compte Guest n\'est pas soumis à validation'; 112 112 $lang['No_validation_for_default_user'] = 'Le compte par défaut n\'est pas soumis à validation'; -
extensions/NBC_UserAdvManager/branches/2.11/main.inc.php
r3873 r3882 2 2 /* 3 3 Plugin Name: NBC UserAdvManager 4 Version: 2.11. 14 Version: 2.11.2 5 5 Description: Permet de renforcer les possibilités de gestion des utilisateurs - Enforce users management 6 6 Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=216 … … 55 55 -- 2.11.1 : Bug fixed with install and upgrade functions 56 56 Language files correction 57 58 -- 2.11.2 : Bug fixed on bad query for unvalidated users display in unvalidated users list 59 Bug fixed : Sql syntax error on plugin activation 57 60 58 61 */ -
extensions/NBC_UserAdvManager/branches/2.11/maintain.inc.php
r3873 r3882 18 18 $q = ' 19 19 INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 20 VALUES ("nbc_UserAdvManager_ConfirmMail","true;5;Hello. 20 VALUES ("nbc_UserAdvManager_ConfirmMail","false;5;Hello. 21 22 This is a reminder message because you registered on our gallery 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. 21 23 22 This is a reminder message because you registered on our gallery but you do not validate your registration and your 24 Note: After this period, your account will be permanently deleted.;false;Hello. 23 25 24 validation key has expired. To still allow you to access to our gallery, your validation period has been reset. You 25 26 have again 5 days to validate your registration. 27 28 Note: After this period, your account will be permanently deleted.;true;Hello. 29 30 This is a reminder message because you registered on our gallery but you do not validate your registration and your 31 32 validation key will expire. To allow you access to our gallery, you have 2 days to confirm your registration by 33 34 clicking on the link in the message you should have received when you registered. 26 This is a reminder message because you registered on our gallery 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. 35 27 36 28 Note: After this period, your account will be permanently deleted.","Parametres nbc_UserAdvManager - ConfirmMail") … … 57 49 /* Check for upgrade */ 58 50 $query = ' 59 SELECT * , COUNT (*)51 SELECT * 60 52 FROM '.CONFIG_TABLE.' 61 53 WHERE param = "nbc_UserAdvManager_ConfirmMail" 62 54 ;'; 63 list($count) = mysql_fetch_row(pwg_query($query));55 $count = mysql_num_rows(pwg_query($query)); 64 56 65 57 /* upgrade from branch 2.10 */ … … 84 76 } 85 77 78 if (isset($conf['nbc_UserAdvManager_ConfirmMail'])) 79 { 80 $q = ' 81 DELETE FROM '.CONFIG_TABLE.' 82 WHERE param="nbc_UserAdvManager_ConfirmMail" 83 ;'; 84 85 pwg_query($q); 86 } 86 87 87 88 $q = 'DROP TABLE '.USER_CONFIRM_MAIL_TABLE.';'; … … 95 96 $q = ' 96 97 INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 97 VALUES ("nbc_UserAdvManager_ConfirmMail","true;5;Hello. 98 VALUES ("nbc_UserAdvManager_ConfirmMail","false;5;Hello. 99 100 This is a reminder message because you registered on our gallery 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. 98 101 99 This is a reminder message because you registered on our gallery but you do not validate your registration and your 102 Note: After this period, your account will be permanently deleted.;false;Hello. 100 103 101 validation key has expired. To still allow you to access to our gallery, your validation period has been reset. You 102 103 have again 5 days to validate your registration. 104 105 Note: After this period, your account will be permanently deleted.;true;Hello. 106 107 This is a reminder message because you registered on our gallery but you do not validate your registration and your 108 109 validation key will expire. To allow you access to our gallery, you have 2 days to confirm your registration by 110 111 clicking on the link in the message you should have received when you registered. 104 This is a reminder message because you registered on our gallery 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. 112 105 113 106 Note: After this period, your account will be permanently deleted.","Parametres nbc_UserAdvManager - ConfirmMail")
Note: See TracChangeset
for help on using the changeset viewer.