Changeset 4281
- Timestamp:
- Nov 16, 2009, 9:09:33 PM (15 years ago)
- Location:
- extensions/NBC_UserAdvManager/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/trunk/include/functions_UserAdvManager.inc.php
r4185 r4281 18 18 { 19 19 case 1: 20 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Add of %s', $username));20 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Add of %s', stripslashes($username))); 21 21 $password = $password <> '' ? $password : l10n('UserAdvManager_empty_pwd'); 22 22 23 if (function_exists('get_user_language_desc') and isset($conf_nbc_UserAdvManager[10]) and $conf_nbc_UserAdvManager[10] <> '') 24 $infos1_perso = get_user_language_desc($conf_nbc_UserAdvManager[10])."\n\n"; 23 if (isset($conf_nbc_UserAdvManager[10]) and $conf_nbc_UserAdvManager[10] <> '') 24 { 25 if (function_exists('get_user_language_desc')) 26 { 27 $infos1_perso = get_user_language_desc($conf_nbc_UserAdvManager[10])."\n\n"; 28 } 29 else $infos1_perso = l10n($conf_nbc_UserAdvManager[10])."\n\n"; 30 } 25 31 26 32 break; 27 33 28 34 case 2: 29 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Update of %s', $username));35 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Update of %s', stripslashes($username))); 30 36 $password = $password <> '' ? $password : l10n('UserAdvManager_empty_pwd'); 31 37 … … 33 39 34 40 case 3: 35 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Update of %s', $username));41 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Update of %s', stripslashes($username))); 36 42 $password = $password <> '' ? $password : l10n('UserAdvManager_no_update_pwd'); 37 43 … … 42 48 { 43 49 $infos1 = array( 44 get_l10n_args('infos_mail %s', $username),45 get_l10n_args('User: %s', $username),50 get_l10n_args('infos_mail %s', stripslashes($username)), 51 get_l10n_args('User: %s', stripslashes($username)), 46 52 get_l10n_args('Password: %s', $password), 47 53 get_l10n_args('Email: %s', $email), … … 59 65 ); 60 66 61 if (function_exists('get_user_language_desc') and isset($conf_nbc_UserAdvManager[11]) and $conf_nbc_UserAdvManager[11] <> '') 62 $infos2_perso = get_user_language_desc($conf_nbc_UserAdvManager[11])."\n\n"; 67 if (isset($conf_nbc_UserAdvManager[11]) and $conf_nbc_UserAdvManager[11] <> '') 68 { 69 if (function_exists('get_user_language_desc')) 70 { 71 $infos2_perso = get_user_language_desc($conf_nbc_UserAdvManager[11])."\n\n"; 72 } 73 else $infos2_perso = l10n($conf_nbc_UserAdvManager[11])."\n\n"; 74 } 63 75 } 64 76 … … 106 118 { 107 119 case 1: 108 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Reminder_with_key_of_%s', $username));109 110 if ( function_exists('get_user_language_desc') andisset($conf_nbc_UserAdvManager_ConfirmMail[2]) and $conf_nbc_UserAdvManager_ConfirmMail[2] <> '' and isset($conf_nbc_UserAdvManager_ConfirmMail[3]) and $conf_nbc_UserAdvManager_ConfirmMail[3] == 'true' and $confirm)120 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Reminder_with_key_of_%s', stripslashes($username))); 121 122 if (isset($conf_nbc_UserAdvManager_ConfirmMail[2]) and $conf_nbc_UserAdvManager_ConfirmMail[2] <> '' and isset($conf_nbc_UserAdvManager_ConfirmMail[3]) and $conf_nbc_UserAdvManager_ConfirmMail[3] == 'true' and $confirm) 111 123 { 112 $infos1 = get_user_language_desc($conf_nbc_UserAdvManager_ConfirmMail[2])."\n\n"; 113 114 $infos2 = array 115 ( 116 get_l10n_args('Link: %s', ResetConfirmMail($user_id)), 117 get_l10n_args('', ''), 118 ); 124 if (function_exists('get_user_language_desc')) 125 { 126 $infos1 = get_user_language_desc($conf_nbc_UserAdvManager_ConfirmMail[2])."\n\n"; 127 } 128 else $infos1 = l10n($conf_nbc_UserAdvManager_ConfirmMail[2])."\n\n"; 129 130 $infos2 = array 131 ( 132 get_l10n_args('Link: %s', ResetConfirmMail($user_id)), 133 get_l10n_args('', ''), 134 ); 119 135 } 136 120 137 break; 121 138 122 139 case 2: 123 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Reminder_without_key_of_%s', $username));124 125 if ( function_exists('get_user_language_desc') andisset($conf_nbc_UserAdvManager_ConfirmMail[2]) and $conf_nbc_UserAdvManager_ConfirmMail[2] <> '' and isset($conf_nbc_UserAdvManager_ConfirmMail[3]) and $conf_nbc_UserAdvManager_ConfirmMail[3] == 'true' and !$confirm)140 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Reminder_without_key_of_%s', stripslashes($username))); 141 142 if (isset($conf_nbc_UserAdvManager_ConfirmMail[2]) and $conf_nbc_UserAdvManager_ConfirmMail[2] <> '' and isset($conf_nbc_UserAdvManager_ConfirmMail[3]) and $conf_nbc_UserAdvManager_ConfirmMail[3] == 'true' and !$confirm) 126 143 { 127 $infos1 = get_user_language_desc($conf_nbc_UserAdvManager_ConfirmMail[2])."\n\n"; 144 if (function_exists('get_user_language_desc')) 145 { 146 $infos1 = get_user_language_desc($conf_nbc_UserAdvManager_ConfirmMail[2])."\n\n"; 147 } 148 else $infos1 = l10n($conf_nbc_UserAdvManager_ConfirmMail[2])."\n\n"; 128 149 } 150 129 151 break; 130 152 } 153 131 154 pwg_mail($email, array( 132 155 'subject' => $subject, … … 155 178 $infos1_perso = ""; 156 179 157 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Ghost_remainder_of_%s', $username)); 158 159 if (function_exists('get_user_language_desc') and isset($conf_nbc_UserAdvManager[19]) and $conf_nbc_UserAdvManager[19] <> '' and isset($conf_nbc_UserAdvManager[17]) and $conf_nbc_UserAdvManager[17] == 'true') 160 { 161 $infos1 = get_user_language_desc($conf_nbc_UserAdvManager[19])."\n\n"; 180 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Ghost_remainder_of_%s', stripslashes($username))); 181 182 if (isset($conf_nbc_UserAdvManager[19]) and $conf_nbc_UserAdvManager[19] <> '' and isset($conf_nbc_UserAdvManager[17]) and $conf_nbc_UserAdvManager[17] == 'true') 183 { 184 if (function_exists('get_user_language_desc')) 185 { 186 $infos1 = get_user_language_desc($conf_nbc_UserAdvManager[19])."\n\n"; 187 } 188 else $infos1 = l10n($conf_nbc_UserAdvManager[19])."\n\n"; 189 162 190 resetlastvisit($user_id); 163 191 } … … 588 616 list($username) = mysql_fetch_row(pwg_query($query)); 589 617 590 return isset($username) ? $username: '';618 return isset($username) ? stripslashes($username) : ''; 591 619 } 592 620 } -
extensions/NBC_UserAdvManager/trunk/main.inc.php
r4249 r4281 2 2 /* 3 3 Plugin Name: NBC UserAdvManager 4 Version: 2.12. 64 Version: 2.12.7 5 5 Description: 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 … … 99 99 -- 2.12.6 : Bug 1236 fixed - Admins was unable to add a new user in the user_list page. 100 100 Beginning of IT translations 101 102 -- 2.12.7 : Bug 1238 fixed - Simple custom email text wasn't send when Extended Description plugin wasn't set. 103 Ending of IT translations 101 104 */ 102 105
Note: See TracChangeset
for help on using the changeset viewer.