Changeset 6776
- Timestamp:
- Aug 18, 2010, 10:56:53 PM (14 years ago)
- Location:
- extensions/NBC_UserAdvManager/branches/2.15
- Files:
-
- 14 added
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/branches/2.15/ConfirmMail.php
r5634 r6776 14 14 load_language('plugin.lang', UAM_PATH); 15 15 16 /**17 * set in ./language/en_UK.iso-8859-1/local.lang.php (maybe to create)18 * for example for clear theme:19 $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '.20 ' A standard template/theme of PhpWebgallery.';21 *22 * Don't forget php tags !!!23 *24 * Another way is to code it thru the theme itself in ./themeconf.inc.php25 */26 27 16 $title= l10n('confirm_mail_page_title'); 28 17 $page['body_id'] = 'theAboutPage'; … … 31 20 @include(PHPWG_ROOT_PATH.'template/'.$user['template']. 32 21 '/theme/'.$user['theme'].'/themeconf.inc.php'); 22 33 23 34 24 if (isset($_GET['key'])) -
extensions/NBC_UserAdvManager/branches/2.15/admin/UAM_admin.php
r6253 r6776 28 28 $UAM_Password_Test_Score = 0; 29 29 $UAM_Exclusionlist_Error = false; 30 31 30 32 31 // +-----------------------------------------------------------------------+ … … 102 101 case 'global': 103 102 104 if (isset($_POST['submit']) and !is_adviser() and isset($_POST['UAM_Mail_Info']) and isset($_POST['UAM_ No_Casse']) and isset($_POST['UAM_Username_Char']) and isset($_POST['UAM_Confirm_Mail']) and isset($_POST['UAM_No_Comment_Anonymous']) and isset($_POST['UAM_Password_Enforced']) and isset($_POST['UAM_AdminPassword_Enforced']) and isset($_POST['UAM_GhostUser_Tracker']) and isset($_POST['UAM_Admin_ConfMail']))103 if (isset($_POST['submit']) and !is_adviser() and isset($_POST['UAM_Mail_Info']) and isset($_POST['UAM_Username_Char']) and isset($_POST['UAM_Confirm_Mail']) and isset($_POST['UAM_No_Comment_Anonymous']) and isset($_POST['UAM_Password_Enforced']) and isset($_POST['UAM_AdminPassword_Enforced']) and isset($_POST['UAM_GhostUser_Tracker']) and isset($_POST['UAM_Admin_ConfMail']) and isset($_POST['UAM_RedirToProfile'])) 105 104 { 106 105 107 106 /* General configuration settings */ 108 $_POST['UAM_MailInfo_Text'] = str_replace( "\'", "'", str_replace("\\\\", "\\", $_POST['UAM_MailInfo_Text']));107 $_POST['UAM_MailInfo_Text'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_MailInfo_Text']))); 109 108 110 $_POST['UAM_ConfirmMail_Text'] = str_replace( "\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_Text']));111 112 $_POST['UAM_GhostTracker_ReminderText'] = str_replace( "\'", "'", str_replace("\\\\", "\\", $_POST['UAM_GhostTracker_ReminderText']));109 $_POST['UAM_ConfirmMail_Text'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_Text']))); 110 111 $_POST['UAM_GhostTracker_ReminderText'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_GhostTracker_ReminderText']))); 113 112 114 113 … … 119 118 $UAM_Exclusionlist_Error = true; 120 119 } 121 120 122 121 $newconf_UAM = array( 123 122 $_POST['UAM_Mail_Info'], 124 $_POST['UAM_No_Casse'],125 123 $_POST['UAM_Confirm_Mail'], 126 124 (isset($_POST['UAM_No_Confirm_Group'])?$_POST['UAM_No_Confirm_Group']:''), … … 142 140 $_POST['UAM_GhostTracker_ReminderText'], 143 141 $_POST['UAM_Add_LastVisit_Column'], 144 $_POST['UAM_Admin_ConfMail']); 142 $_POST['UAM_Admin_ConfMail'], 143 $_POST['UAM_RedirToProfile']); 145 144 146 145 $conf['UserAdvManager'] = serialize($newconf_UAM); … … 155 154 pwg_query($query); 156 155 157 158 156 /* Email confirmation settings */ 159 $_POST['UAM_ConfirmMail_ReMail_Txt1'] = str_replace( "\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_ReMail_Txt1']));160 161 $_POST['UAM_ConfirmMail_ReMail_Txt2'] = str_replace( "\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_ReMail_Txt2']));157 $_POST['UAM_ConfirmMail_ReMail_Txt1'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_ReMail_Txt1']))); 158 159 $_POST['UAM_ConfirmMail_ReMail_Txt2'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_ReMail_Txt2']))); 162 160 163 $_POST['UAM_ConfirmMail_Custom_Txt1'] = str_replace( "\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_Custom_Txt1']));161 $_POST['UAM_ConfirmMail_Custom_Txt1'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_Custom_Txt1']))); 164 162 165 $_POST['UAM_ConfirmMail_Custom_Txt2'] = str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_Custom_Txt2'])); 166 167 163 $_POST['UAM_ConfirmMail_Custom_Txt2'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_Custom_Txt2']))); 164 168 165 $newconf_UAM_ConfirmMail = array ( 169 166 $_POST['UAM_ConfirmMail_TimeOut'], … … 220 217 $groups[$row['id']] = $row['name']; 221 218 /* configuration value for unvalidated users */ 219 if (isset($conf_UAM[2]) and $conf_UAM[2] == $row['id']) 220 { 221 $No_Valid = $row['id']; 222 } 223 /* configuration value for validated users */ 222 224 if (isset($conf_UAM[3]) and $conf_UAM[3] == $row['id']) 223 {224 $No_Valid = $row['id'];225 }226 /* configuration value for validated users */227 if (isset($conf_UAM[4]) and $conf_UAM[4] == $row['id'])228 225 { 229 226 $Valid = $row['id']; … … 257 254 { 258 255 $status_options[$status] = l10n('user_status_'.$status); 259 if (isset($conf_UAM[ 9]) and $conf_UAM[9] == $status)256 if (isset($conf_UAM[8]) and $conf_UAM[8] == $status) 260 257 { 261 258 $No_Valid_Status = $status; … … 276 273 { 277 274 $status_options[$status] = l10n('user_status_'.$status); 278 if (isset($conf_UAM[ 5]) and $conf_UAM[5] == $status)275 if (isset($conf_UAM[4]) and $conf_UAM[4] == $status) 279 276 { 280 277 $Valid_Status = $status; … … 305 302 'UAM_MAIL_INFO_TRUE' => $conf_UAM[0]=='true' ? 'checked="checked"' : '' , 306 303 'UAM_MAIL_INFO_FALSE' => $conf_UAM[0]=='false' ? 'checked="checked"' : '' , 307 'UAM_MAILINFO_TEXT' => $conf_UAM[10], 308 'UAM_NO_CASSE_TRUE' => $conf_UAM[1]=='true' ? 'checked="checked"' : '' , 309 'UAM_NO_CASSE_FALSE' => $conf_UAM[1]=='false' ? 'checked="checked"' : '' , 310 'UAM_USERNAME_CHAR_TRUE' => $conf_UAM[7]=='true' ? 'checked="checked"' : '' , 311 'UAM_USERNAME_CHAR_FALSE' => $conf_UAM[7]=='false' ? 'checked="checked"' : '' , 312 'UAM_USERNAME_CHAR_LIST' => $conf_UAM[8], 313 'UAM_CONFIRM_MAIL_TRUE' => $conf_UAM[2]=='true' ? 'checked="checked"' : '' , 314 'UAM_CONFIRM_MAIL_FALSE' => $conf_UAM[2]=='false' ? 'checked="checked"' : '' , 315 'UAM_CONFIRMMAIL_TEXT' => $conf_UAM[11], 316 'UAM_No_Confirm_Group' => $conf_UAM[3], 317 'UAM_Validated_Group' => $conf_UAM[4], 318 'UAM_No_Confirm_Status' => $conf_UAM[9], 319 'UAM_Validated_Status' => $conf_UAM[5], 320 'UAM_NO_COMMENT_ANO_TRUE' => $conf_UAM[6]=='true' ? 'checked="checked"' : '' , 321 'UAM_NO_COMMENT_ANO_FALSE' => $conf_UAM[6]=='false' ? 'checked="checked"' : '' , 322 'UAM_MAILEXCLUSION_TRUE' => $conf_UAM[12]=='true' ? 'checked="checked"' : '' , 323 'UAM_MAILEXCLUSION_FALSE' => $conf_UAM[12]=='false' ? 'checked="checked"' : '' , 324 'UAM_MAILEXCLUSION_LIST' => $conf_UAM[13], 325 'UAM_PASSWORDENF_TRUE' => $conf_UAM[14]=='true' ? 'checked="checked"' : '' , 326 'UAM_PASSWORDENF_FALSE' => $conf_UAM[14]=='false' ? 'checked="checked"' : '' , 327 'UAM_PASSWORD_SCORE' => $conf_UAM[15], 328 'UAM_ADMINPASSWENF_TRUE' => $conf_UAM[16]=='true' ? 'checked="checked"' : '' , 329 'UAM_ADMINPASSWENF_FALSE' => $conf_UAM[16]=='false' ? 'checked="checked"' : '' , 330 'UAM_GHOSTRACKER_TRUE' => $conf_UAM[17]=='true' ? 'checked="checked"' : '' , 331 'UAM_GHOSTRACKER_FALSE' => $conf_UAM[17]=='false' ? 'checked="checked"' : '' , 332 'UAM_GHOSTRACKER_DAYLIMIT' => $conf_UAM[18], 333 'UAM_GHOSTRACKER_REMINDERTEXT' => $conf_UAM[19], 334 'UAM_ADDLASTVISIT_TRUE' => $conf_UAM[20]=='true' ? 'checked="checked"' : '' , 335 'UAM_ADDLASTVISIT_FALSE' => $conf_UAM[20]=='false' ? 'checked="checked"' : '' , 336 'UAM_ADMINCONFMAIL_TRUE' => $conf_UAM[21]=='true' ? 'checked="checked"' : '' , 337 'UAM_ADMINCONFMAIL_FALSE' => $conf_UAM[21]=='false' ? 'checked="checked"' : '' , 304 'UAM_MAILINFO_TEXT' => $conf_UAM[9], 305 'UAM_USERNAME_CHAR_TRUE' => $conf_UAM[6]=='true' ? 'checked="checked"' : '' , 306 'UAM_USERNAME_CHAR_FALSE' => $conf_UAM[6]=='false' ? 'checked="checked"' : '' , 307 'UAM_USERNAME_CHAR_LIST' => $conf_UAM[7], 308 'UAM_CONFIRM_MAIL_TRUE' => $conf_UAM[1]=='true' ? 'checked="checked"' : '' , 309 'UAM_CONFIRM_MAIL_FALSE' => $conf_UAM[1]=='false' ? 'checked="checked"' : '' , 310 'UAM_CONFIRM_MAIL_LOCAL' => $conf_UAM[1]=='local' ? 'checked="checked"' : '' , 311 'UAM_CONFIRMMAIL_TEXT' => $conf_UAM[10], 312 'UAM_No_Confirm_Group' => $conf_UAM[2], 313 'UAM_Validated_Group' => $conf_UAM[3], 314 'UAM_No_Confirm_Status' => $conf_UAM[8], 315 'UAM_Validated_Status' => $conf_UAM[4], 316 'UAM_NO_COMMENT_ANO_TRUE' => $conf_UAM[5]=='true' ? 'checked="checked"' : '' , 317 'UAM_NO_COMMENT_ANO_FALSE' => $conf_UAM[5]=='false' ? 'checked="checked"' : '' , 318 'UAM_MAILEXCLUSION_TRUE' => $conf_UAM[11]=='true' ? 'checked="checked"' : '' , 319 'UAM_MAILEXCLUSION_FALSE' => $conf_UAM[11]=='false' ? 'checked="checked"' : '' , 320 'UAM_MAILEXCLUSION_LIST' => $conf_UAM[12], 321 'UAM_PASSWORDENF_TRUE' => $conf_UAM[13]=='true' ? 'checked="checked"' : '' , 322 'UAM_PASSWORDENF_FALSE' => $conf_UAM[13]=='false' ? 'checked="checked"' : '' , 323 'UAM_PASSWORD_SCORE' => $conf_UAM[14], 324 'UAM_ADMINPASSWENF_TRUE' => $conf_UAM[15]=='true' ? 'checked="checked"' : '' , 325 'UAM_ADMINPASSWENF_FALSE' => $conf_UAM[15]=='false' ? 'checked="checked"' : '' , 326 'UAM_GHOSTRACKER_TRUE' => $conf_UAM[16]=='true' ? 'checked="checked"' : '' , 327 'UAM_GHOSTRACKER_FALSE' => $conf_UAM[16]=='false' ? 'checked="checked"' : '' , 328 'UAM_GHOSTRACKER_DAYLIMIT' => $conf_UAM[17], 329 'UAM_GHOSTRACKER_REMINDERTEXT' => $conf_UAM[18], 330 'UAM_ADDLASTVISIT_TRUE' => $conf_UAM[19]=='true' ? 'checked="checked"' : '' , 331 'UAM_ADDLASTVISIT_FALSE' => $conf_UAM[19]=='false' ? 'checked="checked"' : '' , 332 'UAM_ADMINCONFMAIL_TRUE' => $conf_UAM[20]=='true' ? 'checked="checked"' : '' , 333 'UAM_ADMINCONFMAIL_FALSE' => $conf_UAM[20]=='false' ? 'checked="checked"' : '' , 334 'UAM_REDIRTOPROFILE_TRUE' => $conf_UAM[21]=='true' ? 'checked="checked"' : '' , 335 'UAM_REDIRTOPROFILE_FALSE' => $conf_UAM[21]=='false' ? 'checked="checked"' : '' , 338 336 'UAM_PASSWORD_TEST_SCORE' => $UAM_Password_Test_Score, 339 337 'UAM_ERROR_REPORTS4' => $UAM_Exclusionlist_Error, … … 355 353 356 354 /* username insensible a la casse */ 357 if (isset($conf_UAM[ 3]) and $conf_UAM[3] == 'true')355 if (isset($conf_UAM[2]) and $conf_UAM[2] == 'true') 358 356 { 359 357 $query = " … … 379 377 380 378 /* Username without forbidden keys */ 381 if ( isset($conf_UAM[ 7]) and $conf_UAM[7] == 'true' )379 if ( isset($conf_UAM[6]) and $conf_UAM[6] == 'true' ) 382 380 { 383 381 $query = " … … 398 396 399 397 /* Email without forbidden domain */ 400 if ( isset($conf_UAM[1 2]) and $conf_UAM[12] == 'true' )398 if ( isset($conf_UAM[11]) and $conf_UAM[11] == 'true' ) 401 399 { 402 400 $query = " … … 409 407 while($row = pwg_db_fetch_assoc($result)) 410 408 { 411 $conf_MailExclusion = preg_split("/[\s,]+/",$conf_UAM[1 3]);409 $conf_MailExclusion = preg_split("/[\s,]+/",$conf_UAM[12]); 412 410 for ($i = 0 ; $i < count($conf_MailExclusion) ; $i++) 413 411 { … … 467 465 $conf_UAM = unserialize($conf['UserAdvManager']); 468 466 469 if (isset($conf_UAM[ 20]) and $conf_UAM[20]=='true')467 if (isset($conf_UAM[19]) and $conf_UAM[19]=='true') 470 468 { 471 469 // +-----------------------------------------------------------------------+ … … 495 493 // | Template Init | 496 494 // +-----------------------------------------------------------------------+ 497 $base_url = PHPWG_ROOT_PATH.'admin.php?page=user_list';495 /*$base_url = PHPWG_ROOT_PATH.'admin.php?page=user_list'; 498 496 499 497 if (isset($_GET['start']) and is_numeric($_GET['start'])) … … 504 502 { 505 503 $start = 0; 506 } 504 }*/ 507 505 508 506 // +-----------------------------------------------------------------------+ … … 510 508 // +-----------------------------------------------------------------------+ 511 509 512 $url = PHPWG_ROOT_PATH.'admin.php'.get_query_string_diff(array('start'));510 /*$url = PHPWG_ROOT_PATH.'admin.php'.get_query_string_diff(array('start')); 513 511 514 512 $navbar = create_navigation_bar( … … 519 517 ); 520 518 521 $template->assign('navbar', $navbar); 519 $template->assign('navbar', $navbar);*/ 522 520 523 521 // +-----------------------------------------------------------------------+ … … 528 526 foreach ($page['filtered_users'] as $num => $local_user) 529 527 { 530 / * simulate LIMIT $start, $conf['users_page'] */531 if ($num < $start)528 // simulate LIMIT $start, $conf['users_page'] 529 /*if ($num < $start) 532 530 { 533 531 continue; … … 536 534 { 537 535 break; 538 } 536 }*/ 539 537 540 538 $visible_user_list[] = $local_user; … … 555 553 $deltadays = floor($deltasecs / 86400);// Convert result from seconds to days 556 554 557 if (isset($conf_UAM[1 7]) and $conf_UAM[17]=='true' and $conf_UAM[18] <> '')555 if (isset($conf_UAM[16]) and $conf_UAM[16]=='true' and $conf_UAM[17] <> '') 558 556 { 559 if ($deltadays <= ($conf_UAM[1 8]/2))557 if ($deltadays <= ($conf_UAM[17]/2)) 560 558 { 561 559 $display = 'green'; 562 560 } 563 561 564 if (($deltadays > ($conf_UAM[1 8]/2)) and ($deltadays < $conf_UAM[18]))562 if (($deltadays > ($conf_UAM[17]/2)) and ($deltadays < $conf_UAM[17])) 565 563 { 566 564 $display = 'orange'; 567 565 } 568 566 569 if ($deltadays >= $conf_UAM[1 8])567 if ($deltadays >= $conf_UAM[17]) 570 568 { 571 569 $display = 'red'; … … 629 627 $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']); 630 628 631 if (isset($conf_UAM[ 2]) and $conf_UAM[2]=='true' and ((isset($conf_UAM[3]) and $conf_UAM[3] <> '-1') or (isset($conf_UAM[9]) and $conf_UAM[9] <> '-1')) and isset($conf_UAM_ConfirmMail[0]) and $conf_UAM_ConfirmMail[0]=='true')632 { 629 if (isset($conf_UAM[1]) and ($conf_UAM[1]=='true' or $conf_UAM[1]=='local') and ((isset($conf_UAM[2]) and $conf_UAM[2] <> '-1') or (isset($conf_UAM[8]) and $conf_UAM[8] <> '-1'))) 630 { 633 631 // +-----------------------------------------------------------------------+ 634 632 // | initialization | … … 1009 1007 // | Template Init | 1010 1008 // +-----------------------------------------------------------------------+ 1011 $base_url = PHPWG_ROOT_PATH.'admin.php?page=user_list';1009 /*$base_url = PHPWG_ROOT_PATH.'admin.php?page=user_list'; 1012 1010 1013 1011 if (isset($_GET['start']) and is_numeric($_GET['start'])) … … 1018 1016 { 1019 1017 $start = 0; 1020 } 1018 }*/ 1021 1019 1022 1020 /* Hide radio-button if not allow to assign adviser */ … … 1030 1028 // +-----------------------------------------------------------------------+ 1031 1029 1032 $url = PHPWG_ROOT_PATH.'admin.php'.get_query_string_diff(array('start'));1030 /*$url = PHPWG_ROOT_PATH.'admin.php'.get_query_string_diff(array('start')); 1033 1031 1034 1032 $navbar = create_navigation_bar( … … 1039 1037 ); 1040 1038 1041 $template->assign('navbar', $navbar); 1039 $template->assign('navbar', $navbar);*/ 1042 1040 1043 1041 // +-----------------------------------------------------------------------+ … … 1052 1050 { 1053 1051 /* simulate LIMIT $start, $conf['users_page'] */ 1054 if ($num < $start)1052 /*if ($num < $start) 1055 1053 { 1056 1054 continue; … … 1059 1057 { 1060 1058 break; 1061 } 1059 }*/ 1062 1060 1063 1061 $visible_user_list[] = $local_user; … … 1115 1113 1116 1114 $expiration = expiration($local_user['id']); 1117 1115 1118 1116 $template->append( 1119 1117 'users', … … 1138 1136 ) 1139 1137 ); 1140 } 1138 } 1139 1140 // Check if validation of register is made by admin or visitor 1141 // If visitor, $Confirm_Local is used to mask useless buttons 1142 $Confirm_Local = ""; 1143 1144 if ($conf_UAM[1] == 'local') 1145 { 1146 $Confirm_Local = $conf_UAM[1]; 1147 } 1148 else 1149 { 1150 $Confirm_Local = ""; 1151 } 1152 1141 1153 /* Plugin version inserted */ 1142 1154 $template->assign( 1143 1155 array( 1156 'CONFIRM_LOCAL'=> $Confirm_Local, 1144 1157 'UAM_VERSION' => $version, 1145 1158 'UAM_PATH' => UAM_PATH, … … 1181 1194 $conf_UAM = unserialize($conf['UserAdvManager']); 1182 1195 1183 if (isset($conf_UAM[1 7]) and $conf_UAM[17]=='true')1196 if (isset($conf_UAM[16]) and $conf_UAM[16]=='true') 1184 1197 { 1185 1198 // +-----------------------------------------------------------------------+ … … 1443 1456 // | Template Init | 1444 1457 // +-----------------------------------------------------------------------+ 1445 $base_url = PHPWG_ROOT_PATH.'admin.php?page=user_list';1458 /*$base_url = PHPWG_ROOT_PATH.'admin.php?page=user_list'; 1446 1459 1447 1460 if (isset($_GET['start']) and is_numeric($_GET['start'])) … … 1452 1465 { 1453 1466 $start = 0; 1454 } 1467 }*/ 1455 1468 1456 1469 /* Hide radio-button if not allow to assign adviser */ … … 1464 1477 // +-----------------------------------------------------------------------+ 1465 1478 1466 $url = PHPWG_ROOT_PATH.'admin.php'.get_query_string_diff(array('start'));1479 /*$url = PHPWG_ROOT_PATH.'admin.php'.get_query_string_diff(array('start')); 1467 1480 1468 1481 $navbar = create_navigation_bar( … … 1473 1486 ); 1474 1487 1475 $template->assign('navbar', $navbar); 1488 $template->assign('navbar', $navbar);*/ 1476 1489 1477 1490 // +-----------------------------------------------------------------------+ … … 1483 1496 { 1484 1497 /* simulate LIMIT $start, $conf['users_page'] */ 1485 if ($num < $start)1498 /*if ($num < $start) 1486 1499 { 1487 1500 continue; … … 1490 1503 { 1491 1504 break; 1492 } 1505 }*/ 1493 1506 1494 1507 $visible_user_list[] = $local_user; -
extensions/NBC_UserAdvManager/branches/2.15/admin/template/ghosttracker.tpl
r5593 r6776 1 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 3 {known_script id="jquery.tablesorter" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.js"} 4 {known_script id="jquery.tablesorter.pager" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.pager.js"} 3 5 4 6 {html_head}<link rel="stylesheet" type="text/css" href="{$UAM_PATH}admin/template/uam.css">{/html_head} … … 13 15 {rdelim}); 14 16 {rdelim}); 17 18 $(document).ready(function() 19 {ldelim} 20 $("#sorting") 21 .tablesorter({ldelim}sortList:[[3,1]], headers: {ldelim} 0: {ldelim} sorter: false {rdelim}{rdelim}{rdelim}) 22 .tablesorterPager({ldelim}container: $("#pager"), positionFixed: false, size: 20, totalPages: 0{rdelim}); 23 {rdelim} 24 ); 15 25 </script> 16 26 … … 32 42 <fieldset> 33 43 <legend class="cluetip" title="{'UAM_gtTitle'|translate}|{'UAM_gtTitle_d'|translate}">{'GhostTracker_Title'|@translate}</legend> 34 {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} 35 <table class="table2" width="97%" summary=""> 44 <table id="sorting" class="table2" width="97%" summary=""> 36 45 <thead> 37 46 <tr class="throw"> 38 <t d> </td>39 <t d>{'Username'|@translate}</td>40 <t d>{'Email address'|@translate}</td>41 <t d>{'LastVisit_Date'|@translate}</td>42 <t d>{'Reminder'|@translate}</td>47 <th> </th> 48 <th>{'Username'|@translate}</th> 49 <th>{'Email address'|@translate}</th> 50 <th>{'LastVisit_Date'|@translate}</th> 51 <th>{'Reminder'|@translate}</th> 43 52 </tr> 44 53 </thead> 45 54 <tbody> 46 55 {foreach from=$users item=user name=users_loop} 47 56 <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}"> … … 61 70 </tr> 62 71 {/foreach} 72 </tbody> 63 73 </table> 64 65 {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} 74 <div id="pager" class="pager"> 75 <form> 76 <img src="{$UAM_PATH}admin/template/icon/first.png" class="first"> 77 <img src="{$UAM_PATH}admin/template/icon/prev.png" class="prev"> 78 <input type="text" class="pagedisplay"> 79 <img src="{$UAM_PATH}admin/template/icon/next.png" class="next"> 80 <img src="{$UAM_PATH}admin/template/icon/last.png" class="last"> 81 <select class="pagesize"> 82 <option value="10">10</option> 83 <option selected="selected" value="20">20</option> 84 <option value="30">30</option> 85 <option value="40">40</option> 86 </select> 87 </form> 88 </div> 66 89 <br> 67 68 90 <p> 69 91 {'target'|@translate} -
extensions/NBC_UserAdvManager/branches/2.15/admin/template/global.tpl
r5763 r6776 69 69 <fieldset> 70 70 <ul> 71 <li>72 <label class="cluetip" title="{'UAM_casenTitle'|translate}|{'UAM_casenTitle_d'|translate}">73 {'UAM_No_Casse'|@translate}74 </label>75 <br><br>76 <input type="radio" value="false" {$UAM_NO_CASSE_FALSE} name="UAM_No_Casse">77 {'UAM_No_Casse_false'|@translate}<br>78 <input type="radio" value="true" {$UAM_NO_CASSE_TRUE} name="UAM_No_Casse">79 {'UAM_No_Casse_true'|@translate}<br><br>80 </li>81 82 71 <li> 83 72 <label class="cluetip" title="{'UAM_carexcTitle'|translate}|{'UAM_carexcTitle_d'|translate}"> … … 226 215 {'UAM_Confirm_Mail_false'|@translate}<br> 227 216 <input type="radio" value="true" {$UAM_CONFIRM_MAIL_TRUE} name="UAM_Confirm_Mail"> 228 {'UAM_Confirm_Mail_true'|@translate} 217 {'UAM_Confirm_Mail_true'|@translate}<br> 218 <input type="radio" value="local" {$UAM_CONFIRM_MAIL_LOCAL} name="UAM_Confirm_Mail"> 219 {'UAM_Confirm_Mail_local'|@translate} 229 220 <br><br> 230 221 </li> … … 506 497 <input type="radio" value="false" {$UAM_NO_COMMENT_ANO_FALSE} name="UAM_No_Comment_Anonymous">{'UAM_No_Comment_Anonymous_false'|@translate}<br> 507 498 <input type="radio" value="true" {$UAM_NO_COMMENT_ANO_TRUE} name="UAM_No_Comment_Anonymous">{'UAM_No_Comment_Anonymous_true'|@translate}<br><br> 499 </li> 500 501 <li><label class="cluetip" title="{'UAM_RedirTitle'|translate}|{'UAM_RedirTitle_d'|translate}">{'UAM_RedirToProfile'|@translate}</label><br><br> 502 <input type="radio" value="false" {$UAM_REDIRTOPROFILE_FALSE} name="UAM_RedirToProfile">{'UAM_RedirToProfile_false'|@translate}<br> 503 <input type="radio" value="true" {$UAM_REDIRTOPROFILE_TRUE} name="UAM_RedirToProfile">{'UAM_RedirToProfile_true'|@translate}<br><br> 508 504 </li> 509 505 </ul> -
extensions/NBC_UserAdvManager/branches/2.15/admin/template/uam.css
r5593 r6776 60 60 padding:0 15px 15px; 61 61 } 62 63 tr.throw 64 { 65 cursor:pointer; 66 text-align:center; 67 } 68 69 th.header 70 { 71 background-image:url("./icon/bg.png"); 72 background-position:right center; 73 background-repeat:no-repeat; 74 cursor:pointer; 75 } 76 77 th.headerSortDown 78 { 79 background-image:url("./icon/desc.png"); 80 } 81 82 th.headerSortUp 83 { 84 background-image:url("./icon/asc.png"); 85 } 86 87 .pager{ 88 text-align:center; 89 } -
extensions/NBC_UserAdvManager/branches/2.15/admin/template/userlist.tpl
r5593 r6776 1 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 3 {known_script id="jquery.tablesorter" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.js"} 4 {known_script id="jquery.tablesorter.pager" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.pager.js"} 5 3 6 4 7 {html_head}<link rel="stylesheet" type="text/css" href="{$UAM_PATH}admin/template/uam.css">{/html_head} … … 13 16 {rdelim}); 14 17 {rdelim}); 18 19 $(document).ready(function() 20 {ldelim} 21 $("#sorting") 22 .tablesorter({ldelim}sortList:[[3,0]]{rdelim}) 23 .tablesorterPager({ldelim}container: $("#pager"), positionFixed: false, size: 20, totalPages: 0{rdelim}); 24 {rdelim} 25 ); 15 26 </script> 27 16 28 17 29 <div class="titrePage"> … … 23 35 <legend class="cluetip" title="{'UAM_userlistTitle'|translate}|{'UAM_userlistTitle_d'|translate}">{'UserList_Title'|@translate}</legend> 24 36 25 {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} 26 <table class="table2" width="97%" summary=""> 37 <table id="sorting" class="table2" width="97%" summary=""> 27 38 <thead> 28 39 <tr class="throw"> 29 <t d>{'Username'|@translate}</td>30 <t d>{'Email address'|@translate}</td>31 <t d>{'LastVisit_Date'|@translate}</td>32 <t d>{'Nb_Days'|@translate}</td>40 <th>{'Username'|@translate}</th> 41 <th>{'Email address'|@translate}</th> 42 <th>{'LastVisit_Date'|@translate}</th> 43 <th>{'Nb_Days'|@translate}</th> 33 44 </tr> 34 45 </thead> 35 46 <tbody> 36 47 {foreach from=$users item=user name=users_loop} 37 48 <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}"> … … 53 64 </tr> 54 65 {/foreach} 66 </tbody> 55 67 </table> 56 57 {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} 68 <div id="pager" class="pager"> 69 <form> 70 <img src="{$UAM_PATH}admin/template/icon/first.png" class="first"> 71 <img src="{$UAM_PATH}admin/template/icon/prev.png" class="prev"> 72 <input type="text" class="pagedisplay"> 73 <img src="{$UAM_PATH}admin/template/icon/next.png" class="next"> 74 <img src="{$UAM_PATH}admin/template/icon/last.png" class="last"> 75 <select class="pagesize"> 76 <option value="10">10</option> 77 <option selected="selected" value="20">20</option> 78 <option value="30">30</option> 79 <option value="40">40</option> 80 </select> 81 </form> 82 </div> 58 83 <br> 59 84 </fieldset> -
extensions/NBC_UserAdvManager/branches/2.15/admin/template/usermanager.tpl
r5593 r6776 1 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 3 {known_script id="jquery.tablesorter" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.js"} 4 {known_script id="jquery.tablesorter.pager" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.pager.js"} 3 5 4 6 {html_head}<link rel="stylesheet" type="text/css" href="{$UAM_PATH}admin/template/uam.css">{/html_head} … … 13 15 {rdelim}); 14 16 {rdelim}); 17 18 $(document).ready(function() 19 {ldelim} 20 $("#sorting") 21 .tablesorter({ldelim}sortList:[[5,1]], headers: {ldelim} 0: {ldelim} sorter: false {rdelim}{rdelim}{rdelim}) 22 .tablesorterPager({ldelim}container: $("#pager"), positionFixed: false, size: 20, totalPages: 0{rdelim}); 23 {rdelim} 24 ); 15 25 </script> 16 26 … … 22 32 <fieldset> 23 33 <legend class="cluetip" title="{'UAM_usermanTitle'|translate}|{'UAM_usermanTitle_d'|translate}">{'UserManager_Title'|@translate}</legend> 24 25 {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} 26 <table class="table2" width="97%" summary=""> 34 <table id="sorting" class="table2" width="97%" summary=""> 27 35 <thead> 28 36 <tr class="throw"> 29 <td> </td> 30 <td>{'Username'|@translate}</td> 31 <td>{'User status'|@translate}</td> 32 <td>{'Email address'|@translate}</td> 33 <td>{'Groups'|@translate}</td> 34 <td>{'Registration_Date'|@translate}</td> 35 <td>{'Reminder'|@translate}</td> 37 <th> </td> 38 <th> {'Username'|@translate} </th> 39 <th> {'User status'|@translate} </th> 40 <th> {'Email address'|@translate} </th> 41 <th> {'Groups'|@translate} </th> 42 <th> {'Registration_Date'|@translate} </th> 43 {if $CONFIRM_LOCAL == ""} 44 <th> {'Reminder'|@translate} </th> 45 {/if} 36 46 </tr> 37 47 </thead> 38 48 <tbody> 39 49 {foreach from=$users item=user name=users_loop} 40 50 <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}"> … … 45 55 <td>{$user.GROUPS}</td> 46 56 <td {if $user.EXPIRATION == True}style="color:red;text-align:center;"{else}style="color:lime;text-align:center;"{/if}>{$user.REGISTRATION}</td> 57 {if $CONFIRM_LOCAL == ""} 47 58 <td style="text-align:center;">{$user.REMINDER}</td> 59 {/if} 48 60 {foreach from=$user.plugin_columns item=data} 49 61 <td>{$data}</td> … … 51 63 </tr> 52 64 {/foreach} 65 </tbody> 53 66 </table> 54 55 {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} 67 {if !empty($users)} 68 <div id="pager" class="pager"> 69 <form> 70 <img src="{$UAM_PATH}admin/template/icon/first.png" class="first"> 71 <img src="{$UAM_PATH}admin/template/icon/prev.png" class="prev"> 72 <input type="text" class="pagedisplay"> 73 <img src="{$UAM_PATH}admin/template/icon/next.png" class="next"> 74 <img src="{$UAM_PATH}admin/template/icon/last.png" class="last"> 75 <select class="pagesize"> 76 <option value="10">10</option> 77 <option selected="selected" value="20">20</option> 78 <option value="30">30</option> 79 <option value="40">40</option> 80 </select> 81 </form> 82 </div> 83 {/if} 56 84 <br> 57 85 … … 63 91 64 92 <p> 93 {if $CONFIRM_LOCAL == "local"} 94 <input class="submit" type="submit" value="{'Delete_selected'|@translate}" name="Del_Selected"> 95 <input class="submit" type="submit" value="{'Force_Validation'|@translate}" name="Force_Validation"> 96 {else} 65 97 <input class="submit" type="submit" value="{'Delete_selected'|@translate}" name="Del_Selected"> 66 98 <input class="submit" type="submit" value="{'Mail_without_key'|@translate}" name="Mail_Without_Key"> 67 99 <input class="submit" type="submit" value="{'Mail_with_key'|@translate}" name="Mail_With_Key"> 68 100 <input class="submit" type="submit" value="{'Force_Validation'|@translate}" name="Force_Validation"> 101 {/if} 69 102 </p> 70 103 </fieldset> -
extensions/NBC_UserAdvManager/branches/2.15/changelog.txt.php
r6256 r6776 174 174 Bug 1655 fixed - Navigation bar is usefull again 175 175 176 -- 2.15.3 : Quick update to fix a database upgrade issue 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 177 187 */ 178 188 ?> -
extensions/NBC_UserAdvManager/branches/2.15/include/functions.inc.php
r5634 r6776 45 45 $password = $password <> '' ? $password : l10n('UAM_empty_pwd'); 46 46 47 if (isset($conf_UAM[ 10]) and $conf_UAM[10] <> '')47 if (isset($conf_UAM[9]) and $conf_UAM[9] <> '') 48 48 { 49 49 if (function_exists('get_user_language_desc')) 50 50 { 51 $infos1_perso = get_user_language_desc($conf_UAM[ 10])."\n\n";51 $infos1_perso = get_user_language_desc($conf_UAM[9])."\n\n"; 52 52 } 53 else $infos1_perso = l10n($conf_UAM[ 10])."\n\n";53 else $infos1_perso = l10n($conf_UAM[9])."\n\n"; 54 54 } 55 55 … … 81 81 82 82 83 if ( isset($conf_UAM[ 2]) and $conf_UAM[2] == 'true' and $confirm)83 if ( isset($conf_UAM[1]) and $conf_UAM[1] == 'true' and $confirm) 84 84 { 85 85 $infos2 = array … … 89 89 ); 90 90 91 if (isset($conf_UAM[1 1]) and $conf_UAM[11] <> '')91 if (isset($conf_UAM[10]) and $conf_UAM[10] <> '') 92 92 { 93 93 if (function_exists('get_user_language_desc')) 94 94 { 95 $infos2_perso = get_user_language_desc($conf_UAM[1 1])."\n\n";95 $infos2_perso = get_user_language_desc($conf_UAM[10])."\n\n"; 96 96 } 97 else $infos2_perso = l10n($conf_UAM[1 1])."\n\n";97 else $infos2_perso = l10n($conf_UAM[10])."\n\n"; 98 98 } 99 99 } … … 275 275 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('Ghost_reminder_of_%s', $username)); 276 276 277 if (isset($conf_UAM[1 9]) and $conf_UAM[19] <> '' and isset($conf_UAM[17]) and $conf_UAM[17] == 'true')277 if (isset($conf_UAM[18]) and $conf_UAM[18] <> '' and isset($conf_UAM[16]) and $conf_UAM[16] == 'true') 278 278 { 279 279 if (function_exists('get_user_language_desc')) 280 280 { 281 $infos1 = get_user_language_desc($conf_UAM[1 9])."\n\n";281 $infos1 = get_user_language_desc($conf_UAM[18])."\n\n"; 282 282 } 283 283 else 284 284 { 285 $infos1 = l10n($conf_UAM[1 9])."\n\n";285 $infos1 = l10n($conf_UAM[18])."\n\n"; 286 286 } 287 287 … … 359 359 WHERE user_id = '".$user_id."' 360 360 AND ( 361 group_id = '".$conf_UAM[2]."' 362 OR 361 363 group_id = '".$conf_UAM[3]."' 362 OR363 group_id = '".$conf_UAM[4]."'364 364 ) 365 365 ;"; 366 366 pwg_query($query); 367 367 368 if (!is_admin() and $conf_UAM[ 9] <> -1)368 if (!is_admin() and $conf_UAM[8] <> -1) 369 369 { 370 370 $query = " 371 371 UPDATE ".USER_INFOS_TABLE." 372 SET status = '".$conf_UAM[ 9]."'372 SET status = '".$conf_UAM[8]."' 373 373 WHERE user_id = '".$user_id."' 374 374 ;"; … … 376 376 } 377 377 378 if ( $conf_UAM[ 3] <> -1 )378 if ( $conf_UAM[2] <> -1 ) 379 379 { 380 380 $query = " … … 382 382 (user_id, group_id) 383 383 VALUES 384 ('".$user_id."', '".$conf_UAM[ 3]."')384 ('".$user_id."', '".$conf_UAM[2]."') 385 385 ;"; 386 386 pwg_query($query); … … 388 388 389 389 return get_absolute_root_url().UAM_PATH.'ConfirmMail.php?key='.$Confirm_Mail_ID; 390 } 391 } 392 393 394 /* Function called from main.inc.php to set group to new users if manual validation is set */ 395 function setgroup($user_id) 396 { 397 global $conf; 398 399 $conf_UAM = unserialize($conf['UserAdvManager']); 400 401 $query = " 402 DELETE FROM ".USER_GROUP_TABLE." 403 WHERE user_id = '".$user_id."' 404 AND ( 405 group_id = '".$conf_UAM[2]."' 406 OR 407 group_id = '".$conf_UAM[3]."' 408 ) 409 ;"; 410 pwg_query($query); 411 412 if (!is_admin() and $conf_UAM[8] <> -1) 413 { 414 $query = " 415 UPDATE ".USER_INFOS_TABLE." 416 SET status = '".$conf_UAM[8]."' 417 WHERE user_id = '".$user_id."' 418 ;"; 419 pwg_query($query); 420 } 421 422 if ( $conf_UAM[2] <> -1 ) 423 { 424 $query = " 425 INSERT INTO ".USER_GROUP_TABLE." 426 (user_id, group_id) 427 VALUES 428 ('".$user_id."', '".$conf_UAM[2]."') 429 ;"; 430 pwg_query($query); 390 431 } 391 432 } … … 457 498 pwg_query($query); 458 499 } 500 501 502 /* Function called from main.inc.php - Triggered on user deletion */ 503 function DeleteRedir($user_id) 504 { 505 $tab = array(); 506 507 $query = " 508 SELECT value 509 FROM ".CONFIG_TABLE." 510 WHERE param = 'UserAdvManager_Redir' 511 ;"; 512 513 $tab = pwg_db_fetch_row(pwg_query($query)); 514 515 $values = explode(',', $tab[0]); 516 517 unset($values[array_search($user_id, $values)]); 518 519 $query = " 520 UPDATE ".CONFIG_TABLE." 521 SET value = \"".implode(',', $values)."\" 522 WHERE param = 'UserAdvManager_Redir';"; 523 524 pwg_query($query); 525 } 526 459 527 460 528 /* Function called from ConfirmMail.php to verify validation key used by user according time limit */ … … 525 593 pwg_query($query); 526 594 527 if ($conf_UAM[ 3] <> -1) // Delete user from unvalidated users group595 if ($conf_UAM[2] <> -1) // Delete user from unvalidated users group 528 596 { 529 597 $query = " 530 598 DELETE FROM ".USER_GROUP_TABLE." 531 599 WHERE user_id = '".$data['user_id']."' 532 AND group_id = '".$conf_UAM[ 3]."'600 AND group_id = '".$conf_UAM[2]."' 533 601 ;"; 534 602 pwg_query($query); 535 603 } 536 604 537 if ($conf_UAM[ 4] <> -1) // Add user to validated users group605 if ($conf_UAM[3] <> -1) // Add user to validated users group 538 606 { 539 607 $query = " … … 541 609 (user_id, group_id) 542 610 VALUES 543 ('".$data['user_id']."', '".$conf_UAM[ 4]."')611 ('".$data['user_id']."', '".$conf_UAM[3]."') 544 612 ;"; 545 613 pwg_query($query); 546 614 } 547 615 548 if (($conf_UAM[ 5] <> -1 or isset($data['status']))) // Change user's status616 if (($conf_UAM[4] <> -1 or isset($data['status']))) // Change user's status 549 617 { 550 618 $query = " 551 619 UPDATE ".USER_INFOS_TABLE." 552 SET status = '".(isset($data['status']) ? $data['status'] : $conf_UAM[ 5])."'620 SET status = '".(isset($data['status']) ? $data['status'] : $conf_UAM[4])."' 553 621 WHERE user_id = '".$data['user_id']."' 554 622 ;"; … … 577 645 pwg_query($query); 578 646 647 if ($conf_UAM[2] <> -1) 648 { 649 $query = " 650 DELETE FROM ".USER_GROUP_TABLE." 651 WHERE user_id = '".$data['user_id']."' 652 AND group_id = '".$conf_UAM[2]."' 653 ;"; 654 pwg_query($query); 655 } 656 579 657 if ($conf_UAM[3] <> -1) 580 658 { … … 585 663 ;"; 586 664 pwg_query($query); 587 }588 589 if ($conf_UAM[4] <> -1)590 {591 $query = "592 DELETE FROM ".USER_GROUP_TABLE."593 WHERE user_id = '".$data['user_id']."'594 AND group_id = '".$conf_UAM[4]."'595 ;";596 pwg_query($query);597 665 598 666 $query = " … … 600 668 (user_id, group_id) 601 669 VALUES 602 ('".$data['user_id']."', '".$conf_UAM[ 4]."')670 ('".$data['user_id']."', '".$conf_UAM[3]."') 603 671 ;"; 604 672 pwg_query($query); 605 673 } 606 674 607 if (($conf_UAM[ 5] <> -1 or isset($data['status'])))675 if (($conf_UAM[4] <> -1 or isset($data['status']))) 608 676 { 609 677 $query = " 610 678 UPDATE ".USER_INFOS_TABLE." 611 SET status = '".(isset($data['status']) ? $data['status'] : $conf_UAM[ 5])."'679 SET status = '".(isset($data['status']) ? $data['status'] : $conf_UAM[4])."' 612 680 WHERE user_id = '".$data['user_id']."' 613 681 ;"; … … 662 730 pwg_query($query); 663 731 732 if ($conf_UAM[2] <> -1) 733 { 734 $query = " 735 DELETE FROM ".USER_GROUP_TABLE." 736 WHERE user_id = '".$data['user_id']."' 737 AND group_id = '".$conf_UAM[2]."' 738 ;"; 739 pwg_query($query); 740 } 741 664 742 if ($conf_UAM[3] <> -1) 665 743 { … … 668 746 WHERE user_id = '".$data['user_id']."' 669 747 AND group_id = '".$conf_UAM[3]."' 670 ;";671 pwg_query($query);672 }673 674 if ($conf_UAM[4] <> -1)675 {676 $query = "677 DELETE FROM ".USER_GROUP_TABLE."678 WHERE user_id = '".$data['user_id']."'679 AND group_id = '".$conf_UAM[4]."'680 748 ;"; 681 749 pwg_query($query); … … 685 753 (user_id, group_id) 686 754 VALUES 687 ('".$data['user_id']."', '".$conf_UAM[ 4]."')755 ('".$data['user_id']."', '".$conf_UAM[3]."') 688 756 ;"; 689 757 pwg_query($query); 690 758 } 691 759 692 if (($conf_UAM[ 5] <> -1 or isset($data['status'])))760 if (($conf_UAM[4] <> -1 or isset($data['status']))) 693 761 { 694 762 $query = " 695 763 UPDATE ".USER_INFOS_TABLE." 696 SET status = '".(isset($data['status']) ? $data['status'] : $conf_UAM[ 5])."'764 SET status = '".(isset($data['status']) ? $data['status'] : $conf_UAM[4])."' 697 765 WHERE user_id = '".$data['user_id']."' 698 766 ;"; … … 706 774 } 707 775 708 /* Function called from main.inc.php - Get username case insensitive */709 function NotSensibleSearchUsername($username)710 {711 global $conf;712 713 if (isset($username))714 {715 $query = "716 SELECT ".$conf['user_fields']['username']."717 FROM ".USERS_TABLE."718 WHERE LOWER(".stripslashes($conf['user_fields']['username']).") = '".strtolower($username)."'719 ;";720 $users = pwg_db_num_rows(pwg_query($query));721 if ($users > 0)722 {723 return true;724 }725 else726 {727 return false;728 }729 }730 }731 732 776 733 777 /* Function called from main.inc.php - Check if username matches forbidden caracters */ … … 738 782 $conf_UAM = unserialize($conf['UserAdvManager']); 739 783 740 if (isset($login) and isset($conf_UAM[ 8]) and $conf_UAM[8] <> '')741 { 742 $conf_CharExclusion = preg_split("/,/",$conf_UAM[ 8]);784 if (isset($login) and isset($conf_UAM[7]) and $conf_UAM[7] <> '') 785 { 786 $conf_CharExclusion = preg_split("/,/",$conf_UAM[7]); 743 787 for ($i = 0 ; $i < count($conf_CharExclusion) ; $i++) 744 788 { … … 765 809 $conf_UAM = unserialize($conf['UserAdvManager']); 766 810 767 if (isset($email) and isset($conf_UAM[1 3]) and $conf_UAM[13] <> '')811 if (isset($email) and isset($conf_UAM[12]) and $conf_UAM[12] <> '') 768 812 { 769 813 //$ncsemail = strtolower($email); 770 $conf_MailExclusion = preg_split("/[\s,]+/",$conf_UAM[1 3]);814 $conf_MailExclusion = preg_split("/[\s,]+/",$conf_UAM[12]); 771 815 for ($i = 0 ; $i < count($conf_MailExclusion) ; $i++) 772 816 { … … 816 860 OR TO_DAYS(NOW()) - TO_DAYS(ui.registration_date) < "'.$conf_UAM_ConfirmMail[1].'")'; 817 861 818 if ($conf_UAM[ 3] <> '-1' and $conf_UAM[9] == '-1')862 if ($conf_UAM[2] <> '-1' and $conf_UAM[8] == '-1') 819 863 { 820 864 $query.= ' 821 AND ug.group_id = '.$conf_UAM[ 3];822 } 823 if ($conf_UAM[ 3] == '-1' and $conf_UAM[9] <> '-1')865 AND ug.group_id = '.$conf_UAM[2]; 866 } 867 if ($conf_UAM[2] == '-1' and $conf_UAM[8] <> '-1') 824 868 { 825 869 $query.= ' 826 AND ui.status = \''.$conf_UAM[ 9]."'";827 } 828 if ($conf_UAM[ 3] <> '-1' and $conf_UAM[9] <> '-1')870 AND ui.status = \''.$conf_UAM[8]."'"; 871 } 872 if ($conf_UAM[2] <> '-1' and $conf_UAM[8] <> '-1') 829 873 { 830 874 $query.= ' 831 AND ug.group_id = \''.$conf_UAM[ 3]."'";875 AND ug.group_id = \''.$conf_UAM[2]."'"; 832 876 } 833 877 $query.= ' 834 ORDER BY idASC878 ORDER BY ui.registration_date ASC 835 879 ;'; 836 880 … … 896 940 INNER JOIN '.USER_LASTVISIT_TABLE.' AS lv 897 941 ON u.'.$conf['user_fields']['id'].' = lv.user_id 898 WHERE (TO_DAYS(NOW()) - TO_DAYS(lv.lastvisit) >= "'.$conf_UAM[1 8].'")899 ORDER BY idASC;';942 WHERE (TO_DAYS(NOW()) - TO_DAYS(lv.lastvisit) >= "'.$conf_UAM[17].'") 943 ORDER BY lv.lastvisit ASC;'; 900 944 901 945 $result = pwg_query($query); … … 937 981 ON u.'.$conf['user_fields']['id'].' = ug.user_id 938 982 WHERE u.'.$conf['user_fields']['id'].' >= 3 939 ORDER BY lastvisit DESC983 ORDER BY ug.lastvisit DESC 940 984 ;'; 941 985 … … 1002 1046 else 1003 1047 { 1004 return True;1048 return true; 1005 1049 } 1006 1050 } … … 1168 1212 } 1169 1213 } 1214 1215 1216 // check_consult - Thx to LucMorizur 1217 // checks if a user id is registered as having already 1218 // visited his profile.php page. 1219 // @uid : the user id 1220 // @user_idsOK : (returned) array of all users ids having already visited 1221 // their profile.php pages 1222 // 1223 // @returns : true or false whether the users has already visited his 1224 // profile.php page or not 1225 function check_consult($uid, &$user_idsOK) 1226 { 1227 $t = array(); 1228 $v = false; 1229 1230 $query = " 1231 SELECT value 1232 FROM ".CONFIG_TABLE." 1233 WHERE param = 'UserAdvManager_Redir' 1234 ;"; 1235 1236 if ($v = (($t = pwg_db_fetch_row(pwg_query($query))) !== false)) 1237 { 1238 $user_idsOK = explode(',', $t[0]); 1239 $v = (in_array($uid, $user_idsOK)); 1240 } 1241 return $v; 1242 } 1170 1243 ?> -
extensions/NBC_UserAdvManager/branches/2.15/include/upgradedb.inc.php
r6256 r6776 204 204 205 205 pwg_query($query); 206 207 upgrade_2153_2154(); 208 } 209 210 /* upgrade from branch 2.15.3 to 2.15.4 */ 211 /* ************************************ */ 212 function upgrade_2153_2154() 213 { 214 global $conf; 215 216 /* Upgrading options */ 217 $query = ' 218 SELECT value 219 FROM '.CONFIG_TABLE.' 220 WHERE param = "UserAdvManager" 221 ;'; 222 223 $result = pwg_query($query); 224 $conf_UAM = pwg_db_fetch_assoc($result); 225 226 $Newconf_UAM = unserialize($conf_UAM['value']); 227 228 $Newconf_UAM[0] = $Newconf_UAM[0]; 229 $Newconf_UAM[1] = $Newconf_UAM[2]; 230 $Newconf_UAM[2] = $Newconf_UAM[3]; 231 $Newconf_UAM[3] = $Newconf_UAM[4]; 232 $Newconf_UAM[4] = $Newconf_UAM[5]; 233 $Newconf_UAM[5] = $Newconf_UAM[6]; 234 $Newconf_UAM[6] = $Newconf_UAM[7]; 235 $Newconf_UAM[7] = $Newconf_UAM[8]; 236 $Newconf_UAM[8] = $Newconf_UAM[9]; 237 $Newconf_UAM[9] = $Newconf_UAM[10]; 238 $Newconf_UAM[10] = $Newconf_UAM[11]; 239 $Newconf_UAM[11] = $Newconf_UAM[12]; 240 $Newconf_UAM[12] = $Newconf_UAM[13]; 241 $Newconf_UAM[13] = $Newconf_UAM[14]; 242 $Newconf_UAM[14] = $Newconf_UAM[15]; 243 $Newconf_UAM[15] = $Newconf_UAM[16]; 244 $Newconf_UAM[16] = $Newconf_UAM[17]; 245 $Newconf_UAM[17] = $Newconf_UAM[18]; 246 $Newconf_UAM[18] = $Newconf_UAM[19]; 247 $Newconf_UAM[19] = $Newconf_UAM[20]; 248 $Newconf_UAM[20] = $Newconf_UAM[21]; 249 $Newconf_UAM[21] = 'false'; 250 251 $update_conf = serialize($Newconf_UAM); 252 253 $query = ' 254 UPDATE '.CONFIG_TABLE.' 255 SET value="'.addslashes($update_conf).'" 256 WHERE param="UserAdvManager" 257 LIMIT 1 258 ;'; 259 260 pwg_query($query); 261 262 $query = ' 263 INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 264 VALUES ("UserAdvManager_Redir","0","UAM Redirections") 265 ;'; 266 267 pwg_query($query); 206 268 } 207 269 ?> -
extensions/NBC_UserAdvManager/branches/2.15/language/de_DE/help/plugin.lang.php
r6253 r6776 3 3 4 4 $lang['UAM_restricTitle'] = 'Einschränkungen für Registrierungen'; 5 $lang['UAM_restricTitle_d'] = '6 - Groß-und Kleinschreibung<br>7 - Charaktere Ausgrenzung<br>8 - Passwort Durchsetzung<br>9 - E-Mail-Domänen Ausgrenzung<br>10 ...11 ';12 5 $lang['UAM_confirmTitle'] = 'Bestätigungen und Validierungen der Registrierung'; 13 6 $lang['UAM_confirmTitle_d'] = ' … … 53 46 Um mehrere Sprachen zu benutzen, können Sie die Extended description Plugin-Tags verwenden, wenn er aktiv ist.<br><br> 54 47 <b style="color: red;">Text Änderung ist nur verfügbar, wenn die "Informations-E-Mail" aktiviert ist.</b>'; 55 $lang['UAM_confirmmailTitle'] = 'Die Bestätigung der Anmeldung';56 $lang['UAM_confirmmailTitle_d'] = 'Diese Option ermöglicht es einem Benutzer benötigen, um ihre Registrierung durch Klick auf einen Link zu validieren erhielt in eine E-Mail geschickt zum Zeitpunkt der Anmeldung.<br><br>57 Die E-Mail ist eine anpassbare Teil komponiert, um eine kleine Begrüßung Einführung und einem festen Teil mit den Aktivierungs-Link, die von einem zufälligen Schlüssel, die möglicherweise durch die "Tracking Validierungen regenerieren" Registerkarte erzeugt wird.<br><br>58 Diese Option ist in der Regel mit der automatischen Zuordnung der Gruppe und / oder Satzung verwendet. Zum Beispiel, ein Benutzer, der nicht validiert ihre Eintragung in eine bestimmte Gruppe von Nutzern eingestellt werden (mit oder ohne Einschränkungen auf der Galerie), während ein Benutzer, der seine Registrierung bestätigt wird in einem "normalen" Gruppe eingestellt werden.';59 48 $lang['UAM_confirmtxtTitle'] = 'Anpassen der E-Mail-Bestätigung'; 60 49 $lang['UAM_confirmtxtTitle_d'] = 'Geben Sie den einleitenden Text, den Sie in der E-Mail-Bestätigung der Anmeldung erscheinen.<br><br> … … 99 88 $lang['UAM_userlistTitle'] = 'Tracking Benutzer'; 100 89 $lang['UAM_usermanTitle'] = 'Tracking Validierungen'; 101 $lang['UAM_usermanTitle_d'] = 'Wenn die Begrenzung der Frist für die Anmeldung aktiviert ist, finden Sie weiter unten die Liste der Benutzer, deren Validierung Eintragung erwartet wird, <b style="text-decoration: underline;">ob oder nicht</b> sind sie in der Zeit zu validieren.<br><br>102 Das Datum der Eintragung wird in grün angezeigt, wenn der Benutzer unter dem betreffenden Frist wird auf seine Registrierung zu bestätigen. In diesem Fall ist die Validierung Schlüssel noch gültig ist, und wir können eine E-Mail mit oder ohne eine neue Validierung Schlüssel zu schicken.<br><br>103 Wenn das Datum der Eintragung erscheint in Rot, die Validierung abgelaufen. In diesem Fall müssen Sie eine E-Mail mit der Regeneration der Validierung Schlüssel senden, wenn Sie dem Benutzer die Möglichkeit, ihre Anmeldung bestätigen möchten.<br><br>104 In allen Fällen ist es möglich, manuell die Validierung Kraft.<br><br>105 In dieser Ansicht können Sie:106 <br><br>107 - Löschen Sie manuell Konten <b>(Handbuch Drain)</b>108 <br>109 - Generieren Sie per E-Mail-Erinnerung <b>ohne</b> erzeugt einen neuen Schlüssel. Warnung: Senden Sie eine E-Mail-Erinnerung für die angestrebten Besucher. Diese Funktion kann nicht zurückgesetzt dem Zeitpunkt der Eintragung des angestrebten Besucher und das Zeitlimit ist weiterhin gültig.110 <br>111 - Generieren Sie per E-Mail-Erinnerung <b>mit</b> erzeugt einen neuen Schlüssel. Warnung: Senden Sie eine E-Mail-Erinnerung für die angestrebten Besucher. Diese Funktion setzt auch den Zeitpunkt der Eintragung des angestrebten Besucher, die die Frist für die Validierung erweitern entspricht.112 <br>113 - Senden einer Registrierung erwartet Validierung von Hand, auch wenn das Ablaufdatum überschritten ist <b>(zwingen Validierung)</b>.';114 90 $lang['UAM_gtTitle'] = 'Geist Besucher-Management'; 115 $lang['UAM_gtTitle_d'] = 'Als Ghost Tracker aktiviert ist und initialisiert wurde, finden Sie weiter unten die Liste der registrierten Besucher, die sich seit x Tagen zurückgegeben haben. "x" ist die Anzahl der Tage konfiguriert in der General-Setup. Darüber hinaus finden Sie eine Spalte angibt, ob eine E-Mail-Erinnerung hat, um die angestrebten Besucher gesendet wurde. So können Sie auf einen Blick sehen und zu behandeln Besucher, die nicht wegen der Erinnerung genommen haben.<br><br>In dieser Ansicht können Sie:116 <br><br>117 - Löschen Sie manuell Konten <b>(Handbuch Drain)</b>118 <br>119 - Generieren Sie per E-Mail-Erinnerung <b>mit dem Zurücksetzen der letzte Besuch date</b>. Dies erlaubt es, einen Platzhalter, um die angestrebten Besucher geben. Wenn der Besucher bereits eine Mahnung erhalten haben, durch nichts daran gehindert, eine neue Mail, die wieder zurückgesetzt werden, in der Tat übel, dem letzten Tag besuchen.';120 91 121 92 … … 126 97 Durch die Deaktivierung dieser Option (Standard), nur die E-Mail-Informationen gesendet werden (wenn "Informations-E-Mail an Benutzer" aktiviert ist).'; 127 98 // --------- End: New or revised $lang ---- from version 2.14.0 128 129 130 // --------- Starting below: New or revised $lang ---- from version 2.14.1131 $lang['UAM_userlistTitle_d'] = 'Diese Seite gibt es zur Information an den Administrator. Es zeigt eine Liste von allen Nutzern auf der Galerie zeigt das Datum und die Anzahl der Tage seit dem letzten Besuch registriert. Die Liste ist in aufsteigender Reihenfolge der Anzahl der Tage sortiert.132 <br><br>133 <b><u>Erst wenn der Geist Tracker aktiv ist</u></b>, wird die Anzahl der Tage ohne einen Besuch wie der folgende Farbcode nach dem Maximum in der Geist Tracker Optionen:134 <br>135 - <b style="color: lime;">Grün</b> : Wenn der Benutzer hat die Galerie <b style="color:lime;"><u>weniger als 50%</u></b> besucht der angegebene Höchstzahl in der Geist-Tracker.<br>136 - <b style="color: orange;">Orange</b> : Wenn der Benutzer hat die Galerie <b style="color:orange;"><u>zwischen 50% und 99%</u></b> besucht der angegebene Höchstzahl in der Geist-Tracker.<br>137 - <b style="color: red;">Rot</b> : Wenn der Benutzer hat die Galerie <b style="color:red;"><u>für mehr als 100%</u></b> besucht der angegebene Höchstzahl in der Geist-Tracker. <b><u>In diesem Fall muss der Benutzer sich auch in der Geist-Tracker-Tabelle.</u></b><br>138 <br>139 Beispiel:140 <br>141 Die Höchstdauer von Geist Tracker ist so konfiguriert, dass 100 Tage.142 <br>143 Ein Benutzer wird in grün angezeigt, wenn er die Galerie für weniger als 50 Tagen besucht haben, in orange, wenn sein letzter Besuch stattgefunden hat zwischen 50 und 99 Tage und rot für 100 Tage und mehr.144 <br><br>145 <b>HINWEIS</b> : Die Liste wird nicht angezeigt, die nicht validiert ihrer Registrierung (falls die Möglichkeit der Validierung der Registrierung aktiviert ist). Diese Benutzer werden dann in besonderer Weise in der "Tracking Validierungen verwaltet" aus.';146 // --------- End: New or revised $lang ---- from version 2.14.1147 99 148 100 … … 166 118 <b style="color: red;">Warnung: Diese Option hat keine Auswirkungen auf den Benutzernamen erstellt vor ihrer Aktivierung.</b>'; 167 119 // --------- End: New or revised $lang ---- from version 2.15.2 120 121 122 // --------- Starting below: New or revised $lang ---- from version 2.15.4 123 $lang['UAM_restricTitle_d'] = ' 124 - Charaktere Ausgrenzung<br> 125 - Passwort Durchsetzung<br> 126 - E-Mail-Domänen Ausgrenzung<br> 127 ... 128 '; 129 $lang['UAM_userlistTitle_d'] = 'Diese Seite gibt es zur Information an den Administrator. Es zeigt eine Liste von allen Nutzern auf der Galerie zeigt das Datum und die Anzahl der Tage seit dem letzten Besuch registriert. Die Liste ist in aufsteigender Reihenfolge der Anzahl der Tage sortiert. 130 <br><br> 131 <b><u>Erst wenn der Geist Tracker aktiv ist</u></b>, wird die Anzahl der Tage ohne einen Besuch wie der folgende Farbcode nach dem Maximum in der Geist Tracker Optionen: 132 <br> 133 - <b style="color: lime;">Grün</b> : Wenn der Benutzer hat die Galerie <b style="color:lime;"><u>weniger als 50%</u></b> besucht der angegebene Höchstzahl in der Geist-Tracker.<br> 134 - <b style="color: orange;">Orange</b> : Wenn der Benutzer hat die Galerie <b style="color:orange;"><u>zwischen 50% und 99%</u></b> besucht der angegebene Höchstzahl in der Geist-Tracker.<br> 135 - <b style="color: red;">Rot</b> : Wenn der Benutzer hat die Galerie <b style="color:red;"><u>für mehr als 100%</u></b> besucht der angegebene Höchstzahl in der Geist-Tracker. <b><u>In diesem Fall muss der Benutzer sich auch in der Geist-Tracker-Tabelle.</u></b><br> 136 <br> 137 Beispiel: 138 <br> 139 Die Höchstdauer von Geist Tracker ist so konfiguriert, dass 100 Tage. 140 <br> 141 Ein Benutzer wird in grün angezeigt, wenn er die Galerie für weniger als 50 Tagen besucht haben, in orange, wenn sein letzter Besuch stattgefunden hat zwischen 50 und 99 Tage und rot für 100 Tage und mehr. 142 <br><br> 143 <b>HINWEIS</b>: Die Liste wird nicht angezeigt, die nicht validiert ihrer Registrierung (falls die Möglichkeit der Validierung der Registrierung aktiviert ist). Diese Benutzer werden dann in besonderer Weise in der "Tracking Validierungen verwaltet" aus. 144 <br><br> 145 <b>Die Sortierung der Tabelle Function</b>: Sie können die Daten mit einem Klick auf die Spaltenüberschriften angezeigt. Halten Sie SHIFT-Taste, um Art bis zu 4 gleichzeitige maximale Spalten.'; 146 $lang['UAM_usermanTitle_d'] = 'Wenn die Begrenzung der Frist für die Anmeldung aktiviert ist, finden Sie weiter unten die Liste der Benutzer, deren Validierung Eintragung erwartet wird, <b style="text-decoration: underline;">ob oder nicht</b> sind sie in der Zeit zu validieren.<br><br> 147 Das Datum der Eintragung wird in grün angezeigt, wenn der Benutzer unter dem betreffenden Frist wird auf seine Registrierung zu bestätigen. In diesem Fall ist die Validierung Schlüssel noch gültig ist, und wir können eine E-Mail mit oder ohne eine neue Validierung Schlüssel zu schicken.<br><br> 148 Wenn das Datum der Eintragung erscheint in Rot, die Validierung abgelaufen. In diesem Fall müssen Sie eine E-Mail mit der Regeneration der Validierung Schlüssel senden, wenn Sie dem Benutzer die Möglichkeit, ihre Anmeldung bestätigen möchten.<br><br> 149 In allen Fällen ist es möglich, manuell die Validierung Kraft.<br><br> 150 In dieser Ansicht können Sie: 151 <br><br> 152 - Löschen Sie manuell Konten <b>(Handbuch Drain)</b> 153 <br> 154 - Generieren Sie per E-Mail-Erinnerung <b>ohne</b> erzeugt einen neuen Schlüssel. Warnung: Senden Sie eine E-Mail-Erinnerung für die angestrebten Besucher. Diese Funktion kann nicht zurückgesetzt dem Zeitpunkt der Eintragung des angestrebten Besucher und das Zeitlimit ist weiterhin gültig. 155 <br> 156 - Generieren Sie per E-Mail-Erinnerung <b>mit</b> erzeugt einen neuen Schlüssel. Warnung: Senden Sie eine E-Mail-Erinnerung für die angestrebten Besucher. Diese Funktion setzt auch den Zeitpunkt der Eintragung des angestrebten Besucher, die die Frist für die Validierung erweitern entspricht. 157 <br> 158 - Senden einer Registrierung erwartet Validierung von Hand, auch wenn das Ablaufdatum überschritten ist <b>(zwingen Validierung)</b>. 159 <br><br> 160 <b>Die Sortierung der Tabelle Function</b> : Sie können die Daten mit einem Klick auf die Spaltenüberschriften angezeigt. Halten Sie SHIFT-Taste, um Art bis zu 4 gleichzeitige maximale Spalten.'; 161 $lang['UAM_gtTitle_d'] = 'Als Ghost Tracker aktiviert ist und initialisiert wurde, finden Sie weiter unten die Liste der registrierten Besucher, die sich seit x Tagen zurückgegeben haben. "x" ist die Anzahl der Tage konfiguriert in der General-Setup. Darüber hinaus finden Sie eine Spalte angibt, ob eine E-Mail-Erinnerung hat, um die angestrebten Besucher gesendet wurde. So können Sie auf einen Blick sehen und zu behandeln Besucher, die nicht wegen der Erinnerung genommen haben.<br><br>In dieser Ansicht können Sie: 162 <br><br> 163 - Löschen Sie manuell Konten <b>(Handbuch Drain)</b> 164 <br> 165 - Generieren Sie per E-Mail-Erinnerung <b>mit dem Zurücksetzen der letzte Besuch date</b>. Dies erlaubt es, einen Platzhalter, um die angestrebten Besucher geben. Wenn der Besucher bereits eine Mahnung erhalten haben, durch nichts daran gehindert, eine neue Mail, die wieder zurückgesetzt werden, in der Tat übel, dem letzten Tag besuchen. 166 <br><br> 167 <b>Die Sortierung der Tabelle Function</b> : Sie können die Daten mit einem Klick auf die Spaltenüberschriften angezeigt. Halten Sie SHIFT-Taste, um Art bis zu 4 gleichzeitige maximale Spalten.'; 168 $lang['UAM_confirmmailTitle'] = 'Die Bestätigung der Anmeldung'; 169 /*TODO*/$lang['UAM_confirmmailTitle_d'] = 'This option allows a user to either confirm registration by clicking on a link received in an email sent upon registration or the administrator to manually activate the registration.<br><br> 170 In first case, the e-mail is composed of a customizable part to introduce a little welcome note and a fixed part containing the activation link that is generated from a random key that can possibly regenerate through the "Tracking validations" tab.<br><br> 171 <br><br> 172 In second case, <b><u>there is no validation key send by email!</u></b>. Visitors have to wait until an administrator validate them himself in "Validation tracking" tab. It\s recommanded to activate the Piwigo\'s option "Email admins when a new user registers" (see in Piwigo\'s configuration options) and to use the "Information email to user" to warn new registers to wait on their account activation. 173 <br> 174 <b style="color: red;">NB: Options "Deadline for registration validation limited" and "Remind unvalidated users " have to be set to off when admin\'s manual validation is enabled.</b> 175 <br><br> 176 Diese Option ist in der Regel mit der automatischen Zuordnung der Gruppe und / oder Satzung verwendet. Zum Beispiel, ein Benutzer, der nicht validiert ihre Eintragung in eine bestimmte Gruppe von Nutzern eingestellt werden (mit oder ohne Einschränkungen auf der Galerie), während ein Benutzer, der seine Registrierung bestätigt wird in einem "normalen" Gruppe eingestellt werden.'; 177 $lang['UAM_RedirTitle'] = 'Umleitung auf "Benutzerdaten" Seite'; 178 $lang['UAM_RedirTitle_d'] = 'Diese Option automatisch umleiten ein registrierter Benutzer zum sein Benutzerdaten Seite nur bei seinem ersten Anschluss an die Galerie.<br><br> 179 Bitte beachten Sie: Diese Funktion gilt für alle bereits registrierten Nutzern einschließlich derjenigen mit "admin", "Webmaster" oder "Generic" Status.'; 180 // --------- End: New or revised $lang ---- from version 2.15.4 168 181 ?> -
extensions/NBC_UserAdvManager/branches/2.15/language/de_DE/plugin.lang.php
r5763 r6776 30 30 $lang['Err_audit_advise'] = '<b>Sie müssen Korrekturen an mit neuen Regeln die Sie aktiviert haben, nachzukommen durchzuführen.<br>Verwenden Sie ein Datenbank-Management-Dienstprogramm, um Benutzer-Accounts direkt in der Tabelle richtig ###_USERS'; 31 31 $lang['UAM_Empty Author'] = 'Der Autor Feld müssen ausgefüllt werden um einen Kommentar zu schicken.'; 32 if ( isset($conf_UAM[1]) and $conf_UAM[1] == 'true' ) 33 $lang['reg_err_login5'] = 'Benutzername bereits vorhanden, WARNUNG Name ist Groß-und Kleinschreibung.'; 32 $lang['reg_err_login5'] = 'Benutzername bereits vorhanden, WARNUNG Name ist Groß-und Kleinschreibung.'; 34 33 $lang['reg_err_login6'] = 'Benutzername muss nicht die folgenden Zeichen übereinstimmen: '; 35 34 $lang['reg_err_login7'] = 'Ihre E-Mail-Anbieter für die Registrierung ist verboten. Gebannten E-Mail-Anbieter sind: '; … … 57 56 $lang['Mail_without_key'] = 'Erinnerung ohne Schlüssel'; 58 57 $lang['Mail_with_key'] = 'Erinnerung mit Schlüssel'; 59 $lang['Force_Validation'] = 'gezwungen Validierung';60 58 61 59 … … 144 142 $lang['UAM_MailInfo_Text'] = ' Anpassen der Informationen per E-Mail:'; 145 143 $lang['UAM_Confirm_Mail'] = 'Bestätigung der Anmeldung:'; 146 $lang['UAM_Confirm_Mail_true'] = ' Aktivieren';147 144 $lang['UAM_Confirm_Mail_false'] = ' Deaktivieren (Standard)'; 148 145 $lang['UAM_ConfirmMail_Text'] = ' Anpassen der E-Mail-Bestätigung'; … … 265 262 Ebenfalls erhältlich, das Projekt Bugtracker: <a href="http://piwigo.org/bugs/" onclick="window.open(this.href);return false;">http://piwigo.org/bugs/</a>'; 266 263 // --------- End: New or revised $lang ---- from version 2.15.1 264 265 266 // --------- Starting below: New or revised $lang ---- from version 2.15.4 267 $lang['Force_Validation'] = 'Handbuch Validierung'; 268 $lang['UAM_Confirm_Mail_true'] = ' Aktivieren - Validation von Benutzer'; 269 $lang['UAM_Confirm_Mail_local'] = ' Aktivieren - Validation von admin (keine Validierung Key gesendet)'; 270 $lang['UAM_RedirToProfile'] = 'Umleitung auf "Benutzerdaten" Seite'; 271 $lang['UAM_RedirToProfile_false'] = ' Deaktivieren (Standard)'; 272 $lang['UAM_RedirToProfile_true'] = ' Aktivieren'; 273 // --------- End: New or revised $lang ---- from version 2.15.4 267 274 ?> -
extensions/NBC_UserAdvManager/branches/2.15/language/en_UK/help/plugin.lang.php
r6253 r6776 3 3 4 4 $lang['UAM_restricTitle'] = 'Restrictions for registrations'; 5 $lang['UAM_restricTitle_d'] = '6 - Case sensitivity<br>7 - Characters exclusion<br>8 - Password enforcement<br>9 - Email domains exclusion<br>10 ...11 ';12 5 $lang['UAM_confirmTitle'] = 'Confirmations and validations of registration'; 13 6 $lang['UAM_confirmTitle_d'] = ' … … 53 46 To use multiple languages, you can use the Extended description plugin\'s tags if it is active.<br><br> 54 47 <b style="color: red;">Text modifying is available only if the "Information email" is enabled.</b>'; 55 $lang['UAM_confirmmailTitle'] = 'Confirmation of registration';56 $lang['UAM_confirmmailTitle_d'] = 'This option allows to require a user to validate their registration by clicking on a link received in an email sent at the time of registration.<br><br>57 The e-mail is composed of a customizable part to introduce a little welcome note and a fixed part containing the activation link that is generated from a random key that can possibly regenerate through the "Tracking validations" tab.<br><br>58 This option is generally used with the automatic assignment of group and/or statutes. For example, a user who has not validated their registration will be set in a specific group of users (with or without restrictions on the gallery) while a user who validated his registration shall be set in a "normal" group.';59 48 $lang['UAM_confirmtxtTitle'] = 'Customizing the confirmation email'; 60 49 $lang['UAM_confirmtxtTitle_d'] = 'Enter the introductory text that you want to appear in the email confirmation of registration.<br><br> … … 99 88 $lang['UAM_userlistTitle'] = 'Tracking users'; 100 89 $lang['UAM_usermanTitle'] = 'Tracking validations'; 101 $lang['UAM_usermanTitle_d'] = 'When limiting the deadline for registration is enabled, you will find below the list of users whose validation registration is expected, <b style="text-decoration: underline;">whether or not</b> they are in time to validate.<br><br>102 The registration date is displayed in green when the user concerned is below the time limit to validate his registration. In this case, the validation key is still valid and we can send an email with or without a new validation key.<br><br>103 When the registration date appears in red, the validation period has expired. In this case, you must send an email with regeneration of validation key if you want to enable the user to validate their registration.<br><br>104 In all cases, it is possible to manually force the validation.<br><br>105 In this view, you can:106 <br><br>107 - Manually delete accounts <b>(manual drain)</b>108 <br>109 - Generate email reminder <b>without</b> generating a new key. Warning: Send an email reminder to targeted visitors. This function does not reset the date of registration of targeted visitors and the timeout is still valid.110 <br>111 - Generate email reminder <b>with</b> generating a new key. Warning : Send an email reminder to targeted visitors. This function also resets the date of registration of targeted visitors which equates to extend the deadline for validation.112 <br>113 - Submit a registration awaiting validation manually even if the expiry date has passed <b>(forcing validation)</b>.';114 90 $lang['UAM_gtTitle'] = 'Ghost visitors management'; 115 $lang['UAM_gtTitle_d'] = 'When Ghost Tracker is enabled and initialized, you will find below the list of registered visitors who have not returned since x days. "x" is the number of days configured in the General Setup tab. In addition, you will find a column indicating whether an email reminder has been sent to targeted visitors. So, you can see at a glance and treat visitors who have not taken account of the reminder.<br><br>In this view, you can:116 <br><br>117 - Manually delete accounts <b>(manual drain)</b>118 <br>119 - Generate email reminder <b>with resetting the last visit date</b>. This allows to give a wildcard to targeted visitors. If the visitor has already received a reminder, nothing prevents to resent a new mail which will reset again, in fact, the last visit date.';120 91 121 92 … … 126 97 By disabling this option (default), only the email information is sent (if "Information email to user" is enabled).'; 127 98 // --------- End: New or revised $lang ---- from version 2.14.0 128 129 130 // --------- Starting below: New or revised $lang ---- from version 2.14.1131 $lang['UAM_userlistTitle_d'] = 'This page is for information to the administrator. It displays a list of all users registered on the gallery showing the date and number of days since their last visit. The list is sorted in ascending order of number of days.132 <br><br>133 <b><u>Only when the Ghost Tracker is active</u></b>, the number of days without a visit appears as the following color code, according to the maximum set in the Ghost Tracker options:134 <br>135 - <b style="color: lime;">Green</b> : When the user has visited the gallery <b style="color: lime;"><u>less than 50%</u></b> of the maximum indicated in the Ghost Tracker.<br>136 - <b style="color: orange;">Orange</b> : When the user has visited the gallery <b style="color: orange;"><u> between 50% and 99% </u></b> of the maximum indicated in the Ghost Tracker.<br>137 - <b style="color: red;">Red</b> : When the user has visited the gallery <b style="color: red;"><u>for more than 100%</u></b> of the maximum indicated in the Ghost Tracker. <b><u>In this case, the user must also appear in the Ghost Tracker table.</u></b><br>138 <br>139 Example :140 <br>141 The maximum period of Ghost Tracker is configured to 100 days.142 <br>143 A user will appear in green if he visited the gallery for less than 50 days, in orange if his last visit took place between 50 and 99 days and red for 100 days and above.144 <br><br>145 <b>NOTE</b> : The list does not display who have not validated their registration (if the option of validating the registration is activated). These users are then managed in a special way in the "Tracking validations" tab.';146 // --------- End: New or revised $lang ---- from version 2.14.1147 99 148 100 … … 166 118 <b style="color: red;">Warning: This option has no effect on the user names created prior to its activation.</b>'; 167 119 // --------- End: New or revised $lang ---- from version 2.15.2 120 121 // --------- Starting below: New or revised $lang ---- from version 2.15.4 122 $lang['UAM_restricTitle_d'] = ' 123 - Characters exclusion<br> 124 - Password enforcement<br> 125 - Email domains exclusion<br> 126 ... 127 '; 128 $lang['UAM_userlistTitle_d'] = 'This page is for information to the administrator. It displays a list of all users registered on the gallery showing the date and number of days since their last visit. The list is sorted in ascending order of number of days. 129 <br><br> 130 <b><u>Only when the Ghost Tracker is active</u></b>, the number of days without a visit appears as the following color code, according to the maximum set in the Ghost Tracker options: 131 <br> 132 - <b style="color: lime;">Green</b> : When the user has visited the gallery <b style="color: lime;"><u>less than 50%</u></b> of the maximum indicated in the Ghost Tracker.<br> 133 - <b style="color: orange;">Orange</b> : When the user has visited the gallery <b style="color: orange;"><u> between 50% and 99% </u></b> of the maximum indicated in the Ghost Tracker.<br> 134 - <b style="color: red;">Red</b> : When the user has visited the gallery <b style="color: red;"><u>for more than 100%</u></b> of the maximum indicated in the Ghost Tracker. <b><u>In this case, the user must also appear in the Ghost Tracker table.</u></b><br> 135 <br> 136 Example : 137 <br> 138 The maximum period of Ghost Tracker is configured to 100 days. 139 <br> 140 A user will appear in green if he visited the gallery for less than 50 days, in orange if his last visit took place between 50 and 99 days and red for 100 days and above. 141 <br><br> 142 <b>NOTE</b>: The list does not display who have not validated their registration (if the option of validating the registration is activated). These users are then managed in a special way in the "Tracking validations" tab. 143 <br><br> 144 <b>Table Sorting Function</b>: You can sort the data displayed by clicking on the column headers. Hold the SHIFT key to sort up to 4 simultaneous columns.'; 145 $lang['UAM_usermanTitle_d'] = 'When limiting the deadline for registration is enabled, you will find below the list of users whose validation registration is expected, <b style="text-decoration: underline;">whether or not</b> they are in time to validate.<br><br> 146 The registration date is displayed in green when the user concerned is below the time limit to validate his registration. In this case, the validation key is still valid and we can send an email with or without a new validation key.<br><br> 147 When the registration date appears in red, the validation period has expired. In this case, you must send an email with regeneration of validation key if you want to enable the user to validate their registration.<br><br> 148 In all cases, it is possible to manually force the validation.<br><br> 149 In this view, you can: 150 <br><br> 151 - Manually delete accounts <b>(manual drain)</b> 152 <br> 153 - Generate email reminder <b>without</b> generating a new key. Warning: Send an email reminder to targeted visitors. This function does not reset the date of registration of targeted visitors and the timeout is still valid. 154 <br> 155 - Generate email reminder <b>with</b> generating a new key. Warning : Send an email reminder to targeted visitors. This function also resets the date of registration of targeted visitors which equates to extend the deadline for validation. 156 <br> 157 - Submit a registration awaiting validation manually even if the expiry date has passed <b>(forcing validation)</b>. 158 <br><br> 159 <b>Table Sorting Function</b>: You can sort the data displayed by clicking on the column headers. Hold the SHIFT key to sort up to 4 simultaneous columns.'; 160 $lang['UAM_gtTitle_d'] = 'When Ghost Tracker is enabled and initialized, you will find below the list of registered visitors who have not returned since x days. "x" is the number of days configured in the General Setup tab. In addition, you will find a column indicating whether an email reminder has been sent to targeted visitors. So, you can see at a glance and treat visitors who have not taken account of the reminder.<br><br>In this view, you can: 161 <br><br> 162 - Manually delete accounts <b>(manual drain)</b> 163 <br> 164 - Generate email reminder <b>with resetting the last visit date</b>. This allows to give a wildcard to targeted visitors. If the visitor has already received a reminder, nothing prevents to resent a new mail which will reset again, in fact, the last visit date. 165 <br><br> 166 <b>Table Sorting Function</b>: You can sort the data displayed by clicking on the column headers. Hold the SHIFT key to sort up to 4 simultaneous columns.'; 167 $lang['UAM_confirmmailTitle'] = 'Confirmation of registration'; 168 $lang['UAM_confirmmailTitle_d'] = 'This option allows a user to either confirm registration by clicking on a link received in an email sent upon registration or the administrator to manually activate the registration.<br><br> 169 In first case, the e-mail is composed of a customizable part to introduce a little welcome note and a fixed part containing the activation link that is generated from a random key that can possibly regenerate through the "Tracking validations" tab.<br><br> 170 Dans le premier cas, le message envoyé comprend une partie fixe, avec le lien d\'activation généré à partir d\'une clef aléatoire (cette clé peut éventuellement être régénérée via l\'onglet "Suivi des validations"), et une partie personnalisable par un texte d\'accueil. 171 <br><br> 172 In second case, <b><u>there is no validation key send by email!</u></b>. Visitors have to wait until an administrator validate them himself in "Validation tracking" tab. It\s recommanded to activate the Piwigo\'s option "Email admins when a new user registers" (see in Piwigo\'s configuration options) and to use the "Information email to user" to warn new registers to wait on their account activation. 173 <br> 174 <b style="color: red;">NB: Options "Deadline for registration validation limited" and "Remind unvalidated users " have to be set to off when admin\'s manual validation is enabled.</b> 175 <br><br> 176 This option is generally used with the automatic assignment of group and/or statutes. For example, a user who has not validated their registration will be set in a specific group of users (with or without restrictions on the gallery) while a user who validated his registration shall be set in a "normal" group.'; 177 $lang['UAM_RedirTitle'] = 'Redirect to "Customization" page'; 178 $lang['UAM_RedirTitle_d'] = 'This option automatically redirect a registered user to his customization page only at his first connection to the gallery.<br><br> 179 Please note: This feature applies to all already registered users including those with "admin", "webmaster" or "generic" status.'; 180 // --------- End: New or revised $lang ---- from version 2.15.4 168 181 ?> -
extensions/NBC_UserAdvManager/branches/2.15/language/en_UK/plugin.lang.php
r5763 r6776 29 29 $lang['Err_audit_advise'] = '<b>you have to perform corrections to comply with new rules that you have activated.<br>Use a database management utility to correct user accounts directly in the table ###_USERS'; 30 30 $lang['UAM_Empty Author'] = 'The author field have to be filled to send a comment.'; 31 if ( isset($conf_UAM[1]) and $conf_UAM[1] == 'true' ) 32 $lang['reg_err_login5'] = 'Username already exist, WARNING name is case insensitive (Shift = Tiny).'; 31 $lang['reg_err_login5'] = 'Username already exist, WARNING name is case insensitive (Shift = Tiny).'; 33 32 $lang['reg_err_login6'] = 'Username does not have to match the following characters: '; 34 33 $lang['reg_err_login7'] = 'Your email provider is banned for registration. Banned email providers are: '; … … 56 55 $lang['Mail_without_key'] = 'Reminder without key'; 57 56 $lang['Mail_with_key'] = 'Reminder with key'; 58 $lang['Force_Validation'] = 'Forced validation';59 57 60 58 … … 141 139 $lang['UAM_MailInfo_Text'] = ' Customizing the information email:'; 142 140 $lang['UAM_Confirm_Mail'] = 'Confirmation of registration:'; 143 $lang['UAM_Confirm_Mail_true'] = ' Enable';144 141 $lang['UAM_Confirm_Mail_false'] = ' Disable (default)'; 145 142 $lang['UAM_ConfirmMail_Text'] = ' Customizing the confirmation email:'; … … 262 259 Also available, the project\'s bugtracker: <a href="http://piwigo.org/bugs/" onclick="window.open(this.href);return false;">http://piwigo.org/bugs/</a>'; 263 260 // --------- End: New or revised $lang ---- from version 2.15.1 261 262 263 // --------- Starting below: New or revised $lang ---- from version 2.15.4 264 $lang['Force_Validation'] = 'Manual validation'; 265 $lang['UAM_Confirm_Mail_true'] = ' Enable - Validation by user'; 266 $lang['UAM_Confirm_Mail_local'] = ' Enable - Validation by admin (no validation key sent)'; 267 $lang['UAM_RedirToProfile'] = 'Redirect to "Customization" page'; 268 $lang['UAM_RedirToProfile_false'] = ' Disable (default)'; 269 $lang['UAM_RedirToProfile_true'] = ' Enable'; 270 // --------- End: New or revised $lang ---- from version 2.15.4 264 271 ?> -
extensions/NBC_UserAdvManager/branches/2.15/language/es_ES/help/plugin.lang.php
r6253 r6776 3 3 4 4 $lang['UAM_restricTitle'] = 'Restricciones para el registro'; 5 $lang['UAM_restricTitle_d'] = '6 - Entre mayúsculas y minúsculas<br>7 - Excluyendo los caracteres<br>8 - Ejecución Contraseña<br>9 - Exclusión de dominios de correo electrónico<br>10 ...11 ';12 5 $lang['UAM_confirmTitle'] = 'Confirmaciones y validaciones de registro'; 13 6 $lang['UAM_confirmTitle_d'] = ' … … 53 46 Para utilizar varios idiomas, puede utilizar las etiquetas para el plugin Extended description si está activo.<br><br> 54 47 <b style="color: red;">Texto de la modificación sólo está disponible si está activado el "correo electrónico de la información".</b>'; 55 $lang['UAM_confirmmailTitle'] = 'Confirmación de registro';56 $lang['UAM_confirmmailTitle_d'] = 'Esta opción permite exigir a un usuario validar su registro haciendo clic en un enlace recibido en un correo electrónico enviado en el momento de la inscripción.<br><br>57 El correo electrónico se compone de una parte personalizable para introducir una nota de bienvenida y una parte fija que contiene el enlace de activación que se genera a partir de una clave aleatoria que posiblemente puede regenerar a través de "Seguimiento de las Validaciones"<br><br>58 Esta opción se utiliza generalmente con la asignación automática de grupo y / o estatutos. Por ejemplo, un usuario que no ha validado su registro se encuentra en un grupo específico de usuarios (con o sin restricciones a la galería) mientras que un usuario que haya validado su registro se encuentra en un "normal" del grupo.';59 48 $lang['UAM_confirmtxtTitle'] = 'Personalización del mensaje recordatorio'; 60 49 $lang['UAM_confirmtxtTitle_d'] = 'Introduzca el texto de introducción que desea que aparezca en el correo electrónico de confirmación de registro.<br><br> … … 99 88 $lang['UAM_userlistTitle'] = 'Seguimiento de los usuarios'; 100 89 $lang['UAM_usermanTitle'] = 'Seguimiento de las Validaciones'; 101 $lang['UAM_usermanTitle_d'] = 'Cuando el limite de plazo de inscripción está habilitado, podrá encontrar más adelante la lista de usuarios cuya validación de registro esta en espera, <b style="text-decoration: underline;">si o no</b> que están en el tiempo para validar.<br><br>102 La fecha de registro se muestra en verde cuando el usuario en cuestión está por debajo del límite de tiempo para validar su inscripción. En este caso, la clave de validación es todavía válida y que puede enviar un correo electrónico con o sin una clave de validación nueva.<br><br>103 Cuando la fecha de registro aparece en rojo, el período de validación ha caducado. En este caso, debe enviar un correo electrónico con la regeneración de la clave de validación si desea que el usuario pueda validar su inscripción.<br><br>104 En todos los casos, es posible forzar manualmente la validación.<br><br>105 En esta vista, puede:106 <br><br>107 - Eliminar manualmente las cuentas de <b>(drenaje manual)</b>108 <br>109 - Generar recordatorio por correo electrónico <b>sin</b> generar una nueva clave. Advertencia: Enviar un recordatorio por correo electrónico dirigido a los visitantes. Esta función no restaura la fecha de registro de visitantes apuntado y el tiempo de espera sigue siendo válido.110 <br>- Generar recordatorio por correo electrónico <b>con</b> generar una nueva clave. Advertencia: Enviar un recordatorio por correo electrónico dirigido a los visitantes. Esta función también restablece la fecha de registro de visitantes y específicos, que equivale a prorrogar el plazo para la validación.111 <br>112 - Presentar una solicitud de registro en espera de validación manual, aunque la fecha de caducidad ha pasado <b>(forzando la validación)</b>.';113 90 $lang['UAM_gtTitle'] = 'Gestión de los usuarios fantasmas'; 114 $lang['UAM_gtTitle_d'] = 'Cuando el Tracker Ghost está habilitado y se inicializa, se encuentra por debajo de la lista de visitantes registrados que no han regresado desde los x días. "x" es el número de días configurado en la pestaña Configuración general. Además, usted encontrará una columna que indica si un recordatorio por correo electrónico ha sido enviado a los visitantes específicos. Así, se puede ver a simple vista y tratar a los visitantes que no han tenido en cuenta el recordatorio.<br><br>115 En esta vista, puede:116 <br><br>117 - Elimine manualmente las cuentas de <b>(drenaje manual)</b>118 <br>119 - Generar recordatorio por correo electrónico <b>con el cambio de la fecha de última visita</b>. Esto permite dar un comodín a los visitantes específicos. Si el visitante ya ha recibido un recordatorio, nada impide a enviar un nuevo correo que se restablecerá la fecha de la última visita.';120 91 121 92 … … 126 97 Al deshabilitar esta opción (por defecto), sólo el coreo de información se envía (si "Información por correo electrónico para el usuario" está activado).'; 127 98 // --------- End: New or revised $lang ---- from version 2.14.0 128 129 130 // --------- Starting below: New or revised $lang ---- from version 2.14.1131 $lang['UAM_userlistTitle_d'] = 'Esta página es para información al administrador. Se muestra una lista de todos los usuarios registrados en la galería que indique la fecha y el número de días transcurridos desde su última visita. La lista está ordenada por orden ascendente del número de días.132 <br><br>133 <b><u>Sólo cuando el Ghost Tracker está activo</u></b>, el número de días sin visita aparece con el código de color siguientes, según el plazo máximo establecido en las opciones de Ghost Tracker:134 <br>135 - <b style="color: lime;">Verde</b> : Cuando el usuario ha visitado la galería de <b style="color: lime;"><u>menos del 50%</u></b> del plazo máximo indicado en el Ghost Tracker.<br>136 - <b style="color: orange;">Naranja</b> : Cuando el usuario ha visitado la galería de <b style="color: orange;"><u>entre 50% y 99%</u></b> del plazo máximo indicado en el Ghost Tracker.<br>137 - <b style="color: red;">Rojo</b> : Cuando el usuario ha visitado la galería de <b style="color: red;"><u>por más de 100%</u></b> del plazo máximo indicado en el Ghost Tracker. <b><u>En este caso, el usuario también debe aparecer en el cuadro Ghost Tracker.</u></b><br>138 <br>139 Ejemplo :140 <br>141 El período máximo de Ghost Tracker está configurado para 100 días.142 <br>143 Un usuario aparecerá en verde si visitó la galería hace menos de 50 días, en naranja si su última visita tuvo lugar entre el 50 y 99 días y el rojo durante 100 días o más.144 <br><br>145 <b>NOTA</b> : La lista no muestra que no han validado su registro (si la opción de validar el registro está activado). Estos usuarios estan administrados después de una manera particular en la pestaña "Seguimiento de las Validaciones".';146 // --------- End: New or revised $lang ---- from version 2.14.1147 99 148 100 … … 166 118 <b style="color: red;">Warning: This option has no effect on the user names created prior to its activation.</b>'; 167 119 // --------- End: New or revised $lang ---- from version 2.15.2 120 121 122 // --------- Starting below: New or revised $lang ---- from version 2.15.4 123 $lang['UAM_restricTitle_d'] = ' 124 - Excluyendo los caracteres<br> 125 - Ejecución Contraseña<br> 126 - Exclusión de dominios de correo electrónico<br> 127 ... 128 '; 129 $lang['UAM_userlistTitle_d'] = 'Esta página es para información al administrador. Se muestra una lista de todos los usuarios registrados en la galería que indique la fecha y el número de días transcurridos desde su última visita. La lista está ordenada por orden ascendente del número de días. 130 <br><br> 131 <b><u>Sólo cuando el Ghost Tracker está activo</u></b>, el número de días sin visita aparece con el código de color siguientes, según el plazo máximo establecido en las opciones de Ghost Tracker: 132 <br> 133 - <b style="color: lime;">Verde</b> : Cuando el usuario ha visitado la galería de <b style="color: lime;"><u>menos del 50%</u></b> del plazo máximo indicado en el Ghost Tracker.<br> 134 - <b style="color: orange;">Naranja</b> : Cuando el usuario ha visitado la galería de <b style="color: orange;"><u>entre 50% y 99%</u></b> del plazo máximo indicado en el Ghost Tracker.<br> 135 - <b style="color: red;">Rojo</b> : Cuando el usuario ha visitado la galería de <b style="color: red;"><u>por más de 100%</u></b> del plazo máximo indicado en el Ghost Tracker. <b><u>En este caso, el usuario también debe aparecer en el cuadro Ghost Tracker.</u></b><br> 136 <br> 137 Ejemplo : 138 <br> 139 El período máximo de Ghost Tracker está configurado para 100 días. 140 <br> 141 Un usuario aparecerá en verde si visitó la galería hace menos de 50 días, en naranja si su última visita tuvo lugar entre el 50 y 99 días y el rojo durante 100 días o más. 142 <br><br> 143 <b>NOTA</b>: La lista no muestra que no han validado su registro (si la opción de validar el registro está activado). Estos usuarios estan administrados después de una manera particular en la pestaña "Seguimiento de las Validaciones". 144 <br><br> 145 <b>Funciones Clasificación de la tabla</b>: Puede ordenar los datos mostrados, haga clic en los encabezados de columna. Sostenga la tecla SHIFT para ordenar hasta 4 columnas máxima simultánea.'; 146 $lang['UAM_usermanTitle_d'] = 'Cuando el limite de plazo de inscripción está habilitado, podrá encontrar más adelante la lista de usuarios cuya validación de registro esta en espera, <b style="text-decoration: underline;">si o no</b> que están en el tiempo para validar.<br><br> 147 La fecha de registro se muestra en verde cuando el usuario en cuestión está por debajo del límite de tiempo para validar su inscripción. En este caso, la clave de validación es todavía válida y que puede enviar un correo electrónico con o sin una clave de validación nueva.<br><br> 148 Cuando la fecha de registro aparece en rojo, el período de validación ha caducado. En este caso, debe enviar un correo electrónico con la regeneración de la clave de validación si desea que el usuario pueda validar su inscripción.<br><br> 149 En todos los casos, es posible forzar manualmente la validación.<br><br> 150 En esta vista, puede: 151 <br><br> 152 - Eliminar manualmente las cuentas de <b>(drenaje manual)</b> 153 <br> 154 - Generar recordatorio por correo electrónico <b>sin</b> generar una nueva clave. Advertencia: Enviar un recordatorio por correo electrónico dirigido a los visitantes. Esta función no restaura la fecha de registro de visitantes apuntado y el tiempo de espera sigue siendo válido. 155 <br>- Generar recordatorio por correo electrónico <b>con</b> generar una nueva clave. Advertencia: Enviar un recordatorio por correo electrónico dirigido a los visitantes. Esta función también restablece la fecha de registro de visitantes y específicos, que equivale a prorrogar el plazo para la validación. 156 <br> 157 - Presentar una solicitud de registro en espera de validación manual, aunque la fecha de caducidad ha pasado <b>(forzando la validación)</b>. 158 <br><br> 159 <b>Funciones Clasificación de la tabla</b>: Puede ordenar los datos mostrados, haga clic en los encabezados de columna. Sostenga la tecla SHIFT para ordenar hasta 4 columnas máxima simultánea.'; 160 $lang['UAM_gtTitle_d'] = 'Cuando el Tracker Ghost está habilitado y se inicializa, se encuentra por debajo de la lista de visitantes registrados que no han regresado desde los x días. "x" es el número de días configurado en la pestaña Configuración general. Además, usted encontrará una columna que indica si un recordatorio por correo electrónico ha sido enviado a los visitantes específicos. Así, se puede ver a simple vista y tratar a los visitantes que no han tenido en cuenta el recordatorio.<br><br> 161 En esta vista, puede: 162 <br><br> 163 - Elimine manualmente las cuentas de <b>(drenaje manual)</b> 164 <br> 165 - Generar recordatorio por correo electrónico <b>con el cambio de la fecha de última visita</b>. Esto permite dar un comodín a los visitantes específicos. Si el visitante ya ha recibido un recordatorio, nada impide a enviar un nuevo correo que se restablecerá la fecha de la última visita. 166 <br><br> 167 <b>Funciones Clasificación de la tabla</b>: Puede ordenar los datos mostrados, haga clic en los encabezados de columna. Sostenga la tecla SHIFT para ordenar hasta 4 columnas máxima simultánea.'; 168 $lang['UAM_confirmmailTitle'] = 'Confirmación de registro'; 169 /*TODO*/$lang['UAM_confirmmailTitle_d'] = 'This option allows a user to either confirm registration by clicking on a link received in an email sent upon registration or the administrator to manually activate the registration.<br><br> 170 In first case, the e-mail is composed of a customizable part to introduce a little welcome note and a fixed part containing the activation link that is generated from a random key that can possibly regenerate through the "Tracking validations" tab.<br><br> 171 Dans le premier cas, le message envoyé comprend une partie fixe, avec le lien d\'activation généré à partir d\'une clef aléatoire (cette clé peut éventuellement être régénérée via l\'onglet "Suivi des validations"), et une partie personnalisable par un texte d\'accueil. 172 <br><br> 173 In second case, <b><u>there is no validation key send by email!</u></b>. Visitors have to wait until an administrator validate them himself in "Validation tracking" tab. It\s recommanded to activate the Piwigo\'s option "Email admins when a new user registers" (see in Piwigo\'s configuration options) and to use the "Information email to user" to warn new registers to wait on their account activation. 174 <br> 175 <b style="color: red;">NB: Options "Deadline for registration validation limited" and "Remind unvalidated users " have to be set to off when admin\'s manual validation is enabled.</b> 176 <br><br> 177 Esta opción se utiliza generalmente con la asignación automática de grupo y / o estatutos. Por ejemplo, un usuario que no ha validado su registro se encuentra en un grupo específico de usuarios (con o sin restricciones a la galería) mientras que un usuario que haya validado su registro se encuentra en un "normal" del grupo.'; 178 $lang['UAM_RedirTitle'] = 'Redirigir a la página de "personalización"'; 179 $lang['UAM_RedirTitle_d'] = 'Esta opción se redireccionan automáticamente un usuario registrado para su página de personalización sólo en su primera conexión a la galería.<br><br> 180 Atención: Esta característica se aplica a todos los usuarios ya registrados, incluidos aquellos con estados "admin", "webmaster" o "generic".'; 181 // --------- End: New or revised $lang ---- from version 2.15.4 168 182 ?> -
extensions/NBC_UserAdvManager/branches/2.15/language/es_ES/plugin.lang.php
r6253 r6776 30 30 $lang['Err_audit_advise'] = '<b>Usted tiene que realizar correcciones para cumplir con las nuevas normas que ha activado.<br>Use una herramienta de gestión de base de datos para corregir las cuentas de usuario directamente en la tabla ###_USERS'; 31 31 $lang['UAM_Empty Author'] = 'El campo de autor tienen que ser llenados para enviar un comentario.'; 32 if ( isset($conf_UAM[1]) and $conf_UAM[1] == 'true' ) 33 $lang['reg_err_login5'] = 'Este nombre de usuario ya existe, ADVERTENCIA se distinguen las mayúsculas (Shift = pequeño).'; 32 $lang['reg_err_login5'] = 'Este nombre de usuario ya existe, ADVERTENCIA se distinguen las mayúsculas (Shift = pequeño).'; 34 33 $lang['reg_err_login6'] = 'El nombre de usuario no puede coincidir con los siguientes caracteres: '; 35 34 $lang['reg_err_login7'] = 'Su proveedor de correo electrónico está prohibido para el registro. Proveedores de correo electrónico en veda son: '; … … 57 56 $lang['Mail_without_key'] = 'Aviso sin clave'; 58 57 $lang['Mail_with_key'] = 'Aviso con clave'; 59 $lang['Force_Validation'] = 'Validación forzada';60 58 61 59 … … 142 140 $lang['UAM_MailInfo_Text'] = ' Personalización del correo electrónico de información:'; 143 141 $lang['UAM_Confirm_Mail'] = 'Confirmación de registro:'; 144 $lang['UAM_Confirm_Mail_true'] = ' Activar';145 142 $lang['UAM_Confirm_Mail_false'] = ' Desactivar (por defecto)'; 146 143 $lang['UAM_ConfirmMail_Text'] = ' Personalización del correo electrónico de confirmación:'; … … 264 261 También está disponible, el bugtracker del proyecto: <a href="http://piwigo.org/bugs/" onclick="window.open(this.href);return false;">http://piwigo.org/bugs/</a>'; 265 262 // --------- End: New or revised $lang ---- from version 2.15.1 263 264 265 // --------- Starting below: New or revised $lang ---- from version 2.15.4 266 $lang['Force_Validation'] = 'Validación manual'; 267 $lang['UAM_Confirm_Mail_true'] = ' Activar - La validación por el usuario'; 268 $lang['UAM_Confirm_Mail_local'] = ' Activar - La validación por el administrador (sin clave de validación enviado)'; 269 $lang['UAM_RedirToProfile'] = 'Redirigir a la página de "personalización"'; 270 $lang['UAM_RedirToProfile_false'] = ' Desactivar (por defecto)'; 271 $lang['UAM_RedirToProfile_true'] = ' Activar'; 272 // --------- End: New or revised $lang ---- from version 2.15.4 266 273 ?> -
extensions/NBC_UserAdvManager/branches/2.15/language/fr_FR/help/plugin.lang.php
r6253 r6776 3 3 4 4 $lang['UAM_restricTitle'] = 'Restriction des inscriptions'; 5 $lang['UAM_restricTitle_d'] = '6 - Sensibilité à la casse<br>7 - Exclusion de caractères dans les noms d\'utilisateurs<br>8 - Renforcement des mots de passe<br>9 - Exclusion des domaines de messagerie<br>10 ...11 ';12 5 $lang['UAM_confirmTitle'] = 'Confirmation et validation des inscriptions'; 13 6 $lang['UAM_confirmTitle_d'] = ' … … 52 45 Pour une utilisation multi-langues, vous pouvez utiliser les balises [lang] du plugin Extended Description si celui-ci est actif.<br><br> 53 46 <b style="color: red;">La modification du texte n\'est possible QUE si l\'option "Email d\'information" est activée.</b>'; 54 $lang['UAM_confirmmailTitle'] = 'Confirmation d\'inscription';55 $lang['UAM_confirmmailTitle_d'] = 'Cette option permet d\'obliger un utilisateur à valider son inscription en cliquant sur un lien reçu dans un email envoyé dès son enregistrement sur la galerie.<br><br>56 Le message envoyé comprend une partie fixe, avec le lien d\'activation généré à partir d\'une clef aléatoire (cette clé peut éventuellement être régénérée via l\'onglet "Suivi des validations"), et une partie personnalisable par un texte d\'accueil.57 <br><br>58 Cette option est généralement utilisée avec l\'attribution automatique de groupe et/ou de statuts. Selon qu\'il a validé ou non son inscription, il est en effet possible d\'affecter à l\'utilisateur un groupe différent, avec plus ou moins de restrictions d\'accès à la galerie.';59 47 $lang['UAM_confirmtxtTitle'] = 'Personnalisation de l\'email de confirmation'; 60 48 $lang['UAM_confirmtxtTitle_d'] = 'Saisissez ici le texte d\'introduction qui apparaîtra dans l\'email de confirmation d\'inscription.<br><br> … … 100 88 $lang['UAM_userlistTitle'] = 'Suivi des utilisateurs inscrits'; 101 89 $lang['UAM_usermanTitle'] = 'Suivi des validations'; 102 $lang['UAM_usermanTitle_d'] = 'Lorsque la limitation du délai d\'inscription est activée, vous trouverez ci-dessous la liste des utilisateurs en attente de validation d\'inscription <b style="text-decoration: underline;">qu\'ils soient ou pas</b> dans les délais pour la valider.<br><br>La date d\'enregistrement s\'affiche en vert lorsque l\'utilisateur concerné est en dessous du temps limite pour valider son inscription. Dans ce cas, la clé de validation est toujours valide et on pourra envoyer un email avec ou sans régénération de clé.<br><br>Lorsque la date d\'enregistrement s\'affiche en rouge, le délai de validation est expiré. Dans ce cas, on enverra obligatoirement un email avec régénération de clé si on veut permettre à cet utilisateur de pouvoir valider son inscription.<br><br>Dans tous les cas, il est possible de forcer manuellement la validation.<br><br>Dans cette vue, vous pouvez :103 <br><br>104 - Supprimer manuellement les comptes <b>(purge manuelle)</b>105 <br>106 - Générer l\'email de rappel <b>sans génération</b> d\'une nouvelle clef. Rappel : Cette fonction ne réinitialise pas la date d\'inscription du visiteur ciblé et le délai d\'expiration est toujours d\'actualité.107 <br>108 - Générer l\'email de rappel <b>avec génération</b> d\'une nouvelle clef. Rappel : Cette fonction réinitialise également la date d\'inscription du visiteur ciblé ce qui équivaut à prolonger le délai de validation.109 <br>110 - Valider manuellement une inscription en attente de validation même si la date d\'expiration est révolue <b>(forçage de la validation)</b>.';111 90 $lang['UAM_gtTitle'] = 'Gestion des visiteurs fantômes'; 112 $lang['UAM_gtTitle_d'] = 'Lorsque la gestion des visiteurs fantômes est activée et initialisée, vous trouverez ci-dessous la liste des visiteurs inscrits sur votre galerie et qui ne sont pas revenus depuis x jours. "x" étant le nombre de jours paramétrés dans l\'onglet de configuration générale. De plus, vous trouverez une colonne précisant si un mail de rappel a déjà été envoyé aux visiteurs ciblés, vous permettant de visualiser d\'un coup d\'oeil et traiter les visiteurs qui n\'auraient pas tenu compte du rappel.<br><br>Dans cette vue, vous pouvez :113 <br><br>114 - Supprimer manuellement les comptes <b>(purge manuelle)</b>115 <br>116 - Générer l\'email de rappel <b>avec réinitialisation de la date de dernière visite</b>. Ce qui permet de donner un "joker" au visiteur ciblé. Si le visiteur a déjà bénéficié d\'un mail de rappel, rien n\'empêche de renvoyer un nouveau mail qui réinitialisera, de fait, la date de dernière visite.';117 91 118 92 … … 123 97 En désactivant cette option (mode par défaut), seul l\'email d\'information est envoyé (si la fonction "Email d\'information à l\'utilisateur" est activée).'; 124 98 // --------- End: New or revised $lang ---- from version 2.14.0 125 126 127 // --------- Starting below: New or revised $lang ---- from version 2.14.1128 $lang['UAM_userlistTitle_d'] = 'Cette page est à titre d\'information pour l\'administrateur. Elle affiche la liste de tous les utilisateurs inscrits sur la galerie en faisant apparaitre la date et le nombre de jours depuis leur dernière visite. La liste est triée dans l\'ordre croissant du nombre de jours.129 <br><br>130 <b><u>Uniquement lorsque le Ghost Tracker est actif</u></b>, le nombre de jours sans visite s\'affiche selon le code couleur suivant, en fonction du délai maximum paramétré dans les options du Ghost Tracker :131 <br>132 - <b style="color: lime;">En vert</b> : Lorsque l\'utilisateur a visité la galerie <b style="color: lime;"><u>depuis moins de 50%</u></b> du délai maximum renseigné dans le Ghost Tracker.<br>133 - <b style="color: orange;">En orange</b> : Lorsque l\'utilisateur a visité la galerie <b style="color: orange;"><u>entre 50% et 99%</u></b> du délai maximum renseigné dans le Ghost Tracker.<br>134 - <b style="color: red;">En rouge</b> : Lorsque l\'utilisateur a visité la galerie <b style="color: red;"><u>depuis 100% et plus</u></b> du délai maximum renseigné dans le Ghost Tracker. <b><u>Dans ce cas, l\'utilisateur doit également apparaitre dans le tableau du Ghost Tracker.</u></b><br>135 <br>136 Exemple :137 <br>138 Le délai maximum du Ghost Tracker est configuré à 100 jours.139 <br>140 Un utilisateur apparaitra en vert s\'il a visité la galerie depuis moins de 50 jours, en orange si sa dernière visite s\'est déroulée entre 50 et 99 jours et en rouge à 100 jours et au-delà.141 <br><br>142 <b>A NOTER</b> : La liste n\'affiche pas les inscrits qui n\'auraient pas validé leur inscription (si l\'option de validation de l\'inscription est activée). Ces utilisateurs sont alors gérés de manière particulière dans l\'onglet "Suivi des validations".';143 // --------- End: New or revised $lang ---- from version 2.14.1144 99 145 100 … … 163 118 <b style="color: red;">Attention : Cette option est sans effet sur les noms d\'utilisateurs créés préalablement à son activation.</b>'; 164 119 // --------- End: New or revised $lang ---- from version 2.15.2 120 121 122 // --------- Starting below: New or revised $lang ---- from version 2.15.4 123 $lang['UAM_restricTitle_d'] = ' 124 - Exclusion de caractères dans les noms d\'utilisateurs<br> 125 - Renforcement des mots de passe<br> 126 - Exclusion des domaines de messagerie<br> 127 ... 128 '; 129 $lang['UAM_userlistTitle_d'] = 'Cette page est à titre d\'information pour l\'administrateur. Elle affiche la liste de tous les utilisateurs inscrits sur la galerie en faisant apparaitre la date et le nombre de jours depuis leur dernière visite. La liste est triée dans l\'ordre croissant du nombre de jours. 130 <br><br> 131 <b><u>Uniquement lorsque le Ghost Tracker est actif</u></b>, le nombre de jours sans visite s\'affiche selon le code couleur suivant, en fonction du délai maximum paramétré dans les options du Ghost Tracker : 132 <br> 133 - <b style="color: lime;">En vert</b> : Lorsque l\'utilisateur a visité la galerie <b style="color: lime;"><u>depuis moins de 50%</u></b> du délai maximum renseigné dans le Ghost Tracker.<br> 134 - <b style="color: orange;">En orange</b> : Lorsque l\'utilisateur a visité la galerie <b style="color: orange;"><u>entre 50% et 99%</u></b> du délai maximum renseigné dans le Ghost Tracker.<br> 135 - <b style="color: red;">En rouge</b> : Lorsque l\'utilisateur a visité la galerie <b style="color: red;"><u>depuis 100% et plus</u></b> du délai maximum renseigné dans le Ghost Tracker. <b><u>Dans ce cas, l\'utilisateur doit également apparaitre dans le tableau du Ghost Tracker.</u></b><br> 136 <br> 137 Exemple: 138 <br> 139 Le délai maximum du Ghost Tracker est configuré à 100 jours. 140 <br> 141 Un utilisateur apparaitra en vert s\'il a visité la galerie depuis moins de 50 jours, en orange si sa dernière visite s\'est déroulée entre 50 et 99 jours et en rouge à 100 jours et au-delà. 142 <br><br> 143 <b>A NOTER</b>: La liste n\'affiche pas les inscrits qui n\'auraient pas validé leur inscription (si l\'option de validation de l\'inscription est activée). Ces utilisateurs sont alors gérés de manière particulière dans l\'onglet "Suivi des validations". 144 <br><br> 145 <b>Fonction de tri du tableau</b>: Vous pouvez trier les données affichées en cliquant sur les entêtes de colonnes. L\'utilisation de la touche MAJ ou SHIFT permet de trier sur 1 à 4 colonnes simultanées maximum.'; 146 $lang['UAM_usermanTitle_d'] = 'Lorsque la limitation du délai d\'inscription est activée, vous trouverez ci-dessous la liste des utilisateurs en attente de validation d\'inscription <b style="text-decoration: underline;">qu\'ils soient ou pas</b> dans les délais pour la valider.<br><br>La date d\'enregistrement s\'affiche en vert lorsque l\'utilisateur concerné est en dessous du temps limite pour valider son inscription. Dans ce cas, la clé de validation est toujours valide et on pourra envoyer un email avec ou sans régénération de clé.<br><br>Lorsque la date d\'enregistrement s\'affiche en rouge, le délai de validation est expiré. Dans ce cas, on enverra obligatoirement un email avec régénération de clé si on veut permettre à cet utilisateur de pouvoir valider son inscription.<br><br>Dans tous les cas, il est possible de forcer manuellement la validation.<br><br>Dans cette vue, vous pouvez : 147 <br><br> 148 - Supprimer manuellement les comptes <b>(purge manuelle)</b> 149 <br> 150 - Générer l\'email de rappel <b>sans génération</b> d\'une nouvelle clef. Rappel : Cette fonction ne réinitialise pas la date d\'inscription du visiteur ciblé et le délai d\'expiration est toujours d\'actualité. 151 <br> 152 - Générer l\'email de rappel <b>avec génération</b> d\'une nouvelle clef. Rappel : Cette fonction réinitialise également la date d\'inscription du visiteur ciblé ce qui équivaut à prolonger le délai de validation. 153 <br> 154 - Valider manuellement une inscription en attente de validation même si la date d\'expiration est révolue <b>(forçage de la validation)</b>. 155 <br><br> 156 <b>Fonction de tri du tableau</b>: Vous pouvez trier les données affichées en cliquant sur les entêtes de colonnes. L\'utilisation de la touche MAJ ou SHIFT permet de trier sur 1 à 4 colonnes simultanées maximum.'; 157 $lang['UAM_gtTitle_d'] = 'Lorsque la gestion des visiteurs fantômes est activée et initialisée, vous trouverez ci-dessous la liste des visiteurs inscrits sur votre galerie et qui ne sont pas revenus depuis x jours. "x" étant le nombre de jours paramétrés dans l\'onglet de configuration générale. De plus, vous trouverez une colonne précisant si un mail de rappel a déjà été envoyé aux visiteurs ciblés, vous permettant de visualiser d\'un coup d\'oeil et traiter les visiteurs qui n\'auraient pas tenu compte du rappel.<br><br>Dans cette vue, vous pouvez : 158 <br><br> 159 - Supprimer manuellement les comptes <b>(purge manuelle)</b> 160 <br> 161 - Générer l\'email de rappel <b>avec réinitialisation de la date de dernière visite</b>. Ce qui permet de donner un "joker" au visiteur ciblé. Si le visiteur a déjà bénéficié d\'un mail de rappel, rien n\'empêche de renvoyer un nouveau mail qui réinitialisera, de fait, la date de dernière visite. 162 <br><br> 163 <b>Fonction de tri du tableau</b>: Vous pouvez trier les données affichées en cliquant sur les entêtes de colonnes. L\'utilisation de la touche MAJ ou SHIFT permet de trier sur 1 à 4 colonnes simultanées maximum.'; 164 $lang['UAM_confirmmailTitle'] = 'Confirmation d\'inscription'; 165 $lang['UAM_confirmmailTitle_d'] = 'Cette option permet soit à un utilisateur de valider son inscription en cliquant sur un lien reçu dans un email envoyé dès son enregistrement sur la galerie soit à l\'administrateur d\'activer manuellement les inscriptions.<br><br> 166 Dans le premier cas, le message envoyé comprend une partie fixe, avec le lien d\'activation généré à partir d\'une clef aléatoire (cette clé peut éventuellement être régénérée via l\'onglet "Suivi des validations"), et une partie personnalisable par un texte d\'accueil. 167 <br><br> 168 Dans le second cas, <b><u>il n\'y a pas d\'envoi de clé de validation par email</u></b>. Les visiteurs doivent patienter que l\'administrateur valide lui même leur inscription via l\'onglet "Suivi des validations". Il est conseillé d\'activer la notification des administrateurs lors des inscriptions (voir la configuration des options de Piwigo) et d\'utiliser la fonction "Email d\'information à l\'utilisateur" pour avertir les nouveaux inscrits de la nécessité de patienter avant activation de leur compte. 169 <br> 170 <b style="color: red;">NB: Les options "Limitation du délai de validation d\'inscription" et "Mail de rappel aux inscrits non validés" doivent être désactivées lorsque la validation manuelle est active.</b> 171 <br><br> 172 Cette option est généralement utilisée avec l\'attribution automatique de groupe et/ou de statut. Selon qu\'il a validé ou non son inscription, il est en effet possible d\'affecter à l\'utilisateur un groupe différent, avec plus ou moins de restrictions d\'accès à la galerie.'; 173 $lang['UAM_RedirTitle'] = 'Redirection vers la page "Personnalisation"'; 174 $lang['UAM_RedirTitle_d'] = 'Cette option permet de rediriger automatiquement un utilisateur inscrit vers sa page de personnalisation uniquement lors de sa première connexion à la galerie.<br><br> 175 A savoir: Cette fonction s\'applique également à tous les utilisateurs déjà inscrits, y compris ceux disposant du status "admin", "webmaster" ou "generique".'; 176 // --------- End: New or revised $lang ---- from version 2.15.4 165 177 ?> -
extensions/NBC_UserAdvManager/branches/2.15/language/fr_FR/plugin.lang.php
r5763 r6776 29 29 $lang['Err_audit_advise'] = '<b>Vous avez des corrections a faire pour respecter les nouvelles règles que vous avez activées.<br>Utilisez un utilitaire de gestion de base de données pour corriger les comptes utilisateurs directement dans la table ###_USERS si nécessaire.</b><br><br>'; 30 30 $lang['UAM_Empty Author'] = 'Le champs auteur doit être rempli pour enregistrer un commentaire.'; 31 if ( isset($conf_UAM[1]) and $conf_UAM[1] == 'true' ) 32 $lang['reg_err_login5'] = 'ce nom utilisateur est déjà pris, ATTENTION le nom est insensible à la casse (Majuscule = Minuscule).'; 31 $lang['reg_err_login5'] = 'ce nom utilisateur est déjà pris, ATTENTION le nom est insensible à la casse (Majuscule = Minuscule).'; 33 32 $lang['reg_err_login6'] = 'le nom utilisateur ne doit pas contenir les caractère suivants : '; 34 33 $lang['reg_err_login7'] = 'L\'adresse email est issue d\'un prestataire interdit. Les prestataires d\'adresses email interdits à l\'inscription sont : '; … … 56 55 $lang['Mail_without_key'] = 'Rappel sans clé'; 57 56 $lang['Mail_with_key'] = 'Rappel avec clé'; 58 $lang['Force_Validation'] = 'Validation forcée';59 57 60 58 … … 142 140 $lang['UAM_MailInfo_Text'] = ' Texte d\'accueil personnalisé:'; 143 141 $lang['UAM_Confirm_Mail'] = 'Confirmation d\'inscription:'; 144 $lang['UAM_Confirm_Mail_true'] = ' Activer';145 142 $lang['UAM_Confirm_Mail_false'] = ' Désactiver (valeur par défaut)'; 146 143 $lang['UAM_ConfirmMail_Text'] = ' Texte d\'accueil personnalisé:'; … … 261 258 Egalement disponible, le bugtracker du projet: <a href="http://piwigo.org/bugs/" onclick="window.open(this.href);return false;">http://piwigo.org/bugs/</a>'; 262 259 // --------- End: New or revised $lang ---- from version 2.15.1 260 261 262 // --------- Starting below: New or revised $lang ---- from version 2.15.4 263 $lang['Force_Validation'] = 'Validation manuelle'; 264 $lang['UAM_Confirm_Mail_true'] = ' Activer - Validation par le visiteur'; 265 $lang['UAM_Confirm_Mail_local'] = ' Activer - Validation par l\'administrateur (pas d\'envoi de clé de validation)'; 266 $lang['UAM_RedirToProfile'] = 'Redirection vers la page "Personnalisation"'; 267 $lang['UAM_RedirToProfile_false'] = ' Désactiver (valeur par défaut)'; 268 $lang['UAM_RedirToProfile_true'] = ' Activer'; 269 // --------- End: New or revised $lang ---- from version 2.15.4 263 270 ?> -
extensions/NBC_UserAdvManager/branches/2.15/language/it_IT/help/plugin.lang.php
r6253 r6776 3 3 4 4 $lang['UAM_restricTitle'] = 'Restrizioni per le iscrizzioni'; 5 $lang['UAM_restricTitle_d'] = '6 - Sensibilità maiuscole/minuscole<br>7 - Caratteri vietati nei nomi degli utenti<br>8 - Rafforzare il livello di sicurezza delle password<br>9 - Esclusione dei domini d\'Email<br>10 ...11 ';12 5 $lang['UAM_confirmTitle'] = 'Confirmazzione e validazione delle iscrizzioni'; 13 6 $lang['UAM_confirmTitle_d'] = ' … … 53 46 Per utilizzare più lingue, è possibile utilizzare i tag del plugin Extended Description, se esso è attivo.<br><br> 54 47 <b style="color: red;">Modifica del testo è disponibile solo se "E-mail informazioni per l\'utente" è attivata.</b>'; 55 $lang['UAM_confirmmailTitle'] = 'Conferma della registrazione';56 $lang['UAM_confirmmailTitle_d'] = 'Questa opzione permette di richiedere all\'utente di convalidare la registrazione cliccando su un link ricevuto in una email inviata al momento della registrazione.<br><br>57 L\'e-mail è composto da una parte personalizzabile di introdurre una piccola nota di benvenuto e una parte fissa contenente il link di attivazione che viene generato da una chiave casuale che può eventualmente rigenerare attraverso la "Tracciamento convalide" tab.<br><br>58 Questa opzione è generalmente utilizzato con l\'assegnazione automatica di gruppo e / o statuto. Ad esempio, un utente che non ha convalidato la loro registrazione sarà ambientato in un gruppo specifico di utenti (con o senza le restrizioni alla galleria), mentre un utente che ha convalidato la sua registrazione è fissato in un "normale" del gruppo.';59 48 /* TODO */$lang['UAM_confirmtxtTitle'] = 'Customizing the confirmation email'; 60 49 /* TODO */$lang['UAM_confirmtxtTitle_d'] = 'Enter the introductory text that you want to appear in the email confirmation of registration.<br><br> … … 99 88 /* TODO */$lang['UAM_userlistTitle'] = 'Tracking users'; 100 89 /* TODO */$lang['UAM_usermanTitle'] = 'Tracking validations'; 101 /* TODO */$lang['UAM_usermanTitle_d'] = 'When limiting the deadline for registration is enabled, you will find below the list of users whose validation registration is expected, <b style="text-decoration: underline;">whether or not</b> they are in time to validate.<br><br>102 The registration date is displayed in green when the user concerned is below the time limit to validate his registration. In this case, the validation key is still valid and we can send an email with or without a new validation key.<br><br>103 When the registration date appears in red, the validation period has expired. In this case, you must send an email with regeneration of validation key if you want to enable the user to validate their registration.<br><br>104 In all cases, it is possible to manually force the validation.<br><br>105 In this view, you can:106 <br><br>107 - Manually delete accounts <b>(manual drain)</b>108 <br>109 - Generate email reminder <b>without</b> generating a new key. Warning: Send an email reminder to targeted visitors. This function does not reset the date of registration of targeted visitors and the timeout is still valid.110 <br>111 - Generate email reminder <b>with</b> generating a new key. Warning : Send an email reminder to targeted visitors. This function also resets the date of registration of targeted visitors which equates to extend the deadline for validation.112 <br>113 - Submit a registration awaiting validation manually even if the expiry date has passed <b>(forcing validation)</b>.';114 90 /* TODO */$lang['UAM_gtTitle'] = 'Ghost visitors management'; 115 /* TODO */$lang['UAM_gtTitle_d'] = 'When Ghost Tracker is enabled and initialized, you will find below the list of registered visitors who have not returned since x days. "x" is the number of days configured in the General Setup tab. In addition, you will find a column indicating whether an email reminder has been sent to targeted visitors. So, you can see at a glance and treat visitors who have not taken account of the reminder.<br><br>In this view, you can:116 <br><br>117 - Manually delete accounts <b>(manual drain)</b>118 <br>119 - Generate email reminder <b>with resetting the last visit date</b>. This allows to give a wildcard to targeted visitors. If the visitor has already received a reminder, nothing prevents to resent a new mail which will reset again, in fact, the last visit date.';120 91 121 92 … … 126 97 Disabilitando questa opzione ((predefinito)), solo le informazioni e-mail viene inviata (se "E-mail informazioni per l\'utente" è abilitato).'; 127 98 // --------- End: New or revised $lang ---- from version 2.14.0 128 129 130 131 // --------- Starting below: New or revised $lang ---- from version 2.14.1132 /* TODO */$lang['UAM_userlistTitle_d'] = 'This page is for information to the administrator. It displays a list of all users registered on the gallery showing the date and number of days since their last visit. The list is sorted in ascending order of number of days.133 <br><br>134 <b><u>Only when the Ghost Tracker is active</u></b>, the number of days without a visit appears as the following color code, according to the maximum set in the Ghost Tracker options:135 <br>136 - <b style="color: lime;">Green</b> : When the user has visited the gallery <b style="color: lime;"><u>less than 50%</u></b> of the maximum indicated in the Ghost Tracker.<br>137 - <b style="color: orange;">Orange</b> : When the user has visited the gallery <b style="color: orange;"><u> between 50% and 99% </u></b> of the maximum indicated in the Ghost Tracker.<br>138 - <b style="color: red;">Red</b> : When the user has visited the gallery <b style="color: red;"><u>for more than 100%</u></b> of the maximum indicated in the Ghost Tracker. <b><u>In this case, the user must also appear in the Ghost Tracker table.</u></b><br>139 <br>140 Example :141 <br>142 The maximum period of Ghost Tracker is configured to 100 days.143 <br>144 A user will appear in green if he visited the gallery for less than 50 days, in orange if his last visit took place between 50 and 99 days and red for 100 days and above.145 <br><br>146 <b>NOTE</b> : The list does not display who have not validated their registration (if the option of validating the registration is activated). These users are then managed in a special way in the "Tracking validations" tab.';147 // --------- End: New or revised $lang ---- from version 2.14.1148 99 149 100 … … 167 118 <b style="color: red">Attenzione: questa opzione non ha alcun effetto sui pseudo creati prima della sua attivazione.</b>'; 168 119 // --------- End: New or revised $lang ---- from version 2.15.2 120 121 122 // --------- Starting below: New or revised $lang ---- from version 2.15.4 123 $lang['UAM_restricTitle_d'] = ' 124 - Caratteri vietati nei nomi degli utenti<br> 125 - Rafforzare il livello di sicurezza delle password<br> 126 - Esclusione dei domini d\'Email<br> 127 ... 128 '; 129 /* TODO */$lang['UAM_userlistTitle_d'] = 'This page is for information to the administrator. It displays a list of all users registered on the gallery showing the date and number of days since their last visit. The list is sorted in ascending order of number of days. 130 <br><br> 131 <b><u>Only when the Ghost Tracker is active</u></b>, the number of days without a visit appears as the following color code, according to the maximum set in the Ghost Tracker options: 132 <br> 133 - <b style="color: lime;">Green</b> : When the user has visited the gallery <b style="color: lime;"><u>less than 50%</u></b> of the maximum indicated in the Ghost Tracker.<br> 134 - <b style="color: orange;">Orange</b> : When the user has visited the gallery <b style="color: orange;"><u> between 50% and 99% </u></b> of the maximum indicated in the Ghost Tracker.<br> 135 - <b style="color: red;">Red</b> : When the user has visited the gallery <b style="color: red;"><u>for more than 100%</u></b> of the maximum indicated in the Ghost Tracker. <b><u>In this case, the user must also appear in the Ghost Tracker table.</u></b><br> 136 <br> 137 Example : 138 <br> 139 The maximum period of Ghost Tracker is configured to 100 days. 140 <br> 141 A user will appear in green if he visited the gallery for less than 50 days, in orange if his last visit took place between 50 and 99 days and red for 100 days and above. 142 <br><br> 143 <b>NOTE</b>: The list does not display who have not validated their registration (if the option of validating the registration is activated). These users are then managed in a special way in the "Tracking validations" tab. 144 <br><br> 145 <b>Table Sorting Function</b>: You can sort the data displayed by clicking on the column headers. Hold the SHIFT key to sort up to 4 simultaneous columns.'; 146 /* TODO */$lang['UAM_usermanTitle_d'] = 'When limiting the deadline for registration is enabled, you will find below the list of users whose validation registration is expected, <b style="text-decoration: underline;">whether or not</b> they are in time to validate.<br><br> 147 The registration date is displayed in green when the user concerned is below the time limit to validate his registration. In this case, the validation key is still valid and we can send an email with or without a new validation key.<br><br> 148 When the registration date appears in red, the validation period has expired. In this case, you must send an email with regeneration of validation key if you want to enable the user to validate their registration.<br><br> 149 In all cases, it is possible to manually force the validation.<br><br> 150 In this view, you can: 151 <br><br> 152 - Manually delete accounts <b>(manual drain)</b> 153 <br> 154 - Generate email reminder <b>without</b> generating a new key. Warning: Send an email reminder to targeted visitors. This function does not reset the date of registration of targeted visitors and the timeout is still valid. 155 <br> 156 - Generate email reminder <b>with</b> generating a new key. Warning : Send an email reminder to targeted visitors. This function also resets the date of registration of targeted visitors which equates to extend the deadline for validation. 157 <br> 158 - Submit a registration awaiting validation manually even if the expiry date has passed <b>(forcing validation)</b>. 159 <br><br> 160 <b>Table Sorting Function</b>: You can sort the data displayed by clicking on the column headers. Hold the SHIFT key to sort up to 4 simultaneous columns.'; 161 /* TODO */$lang['UAM_gtTitle_d'] = 'When Ghost Tracker is enabled and initialized, you will find below the list of registered visitors who have not returned since x days. "x" is the number of days configured in the General Setup tab. In addition, you will find a column indicating whether an email reminder has been sent to targeted visitors. So, you can see at a glance and treat visitors who have not taken account of the reminder.<br><br>In this view, you can: 162 <br><br> 163 - Manually delete accounts <b>(manual drain)</b> 164 <br> 165 - Generate email reminder <b>with resetting the last visit date</b>. This allows to give a wildcard to targeted visitors. If the visitor has already received a reminder, nothing prevents to resent a new mail which will reset again, in fact, the last visit date. 166 <br><br> 167 <b>Table Sorting Function</b>: You can sort the data displayed by clicking on the column headers. Hold the SHIFT key to sort up to 4 simultaneous columns.'; 168 $lang['UAM_confirmmailTitle'] = 'Conferma della registrazione'; 169 /*TODO*/$lang['UAM_confirmmailTitle_d'] = 'This option allows a user to either confirm registration by clicking on a link received in an email sent upon registration or the administrator to manually activate the registration.<br><br> 170 In first case, the e-mail is composed of a customizable part to introduce a little welcome note and a fixed part containing the activation link that is generated from a random key that can possibly regenerate through the "Tracking validations" tab.<br><br> 171 Dans le premier cas, le message envoyé comprend une partie fixe, avec le lien d\'activation généré à partir d\'une clef aléatoire (cette clé peut éventuellement être régénérée via l\'onglet "Suivi des validations"), et une partie personnalisable par un texte d\'accueil. 172 <br><br> 173 Questa opzione è generalmente utilizzato con l\'assegnazione automatica di gruppo e / o statuto. Ad esempio, un utente che non ha convalidato la loro registrazione sarà ambientato in un gruppo specifico di utenti (con o senza le restrizioni alla galleria), mentre un utente che ha convalidato la sua registrazione è fissato in un "normale" del gruppo.'; 174 /*TODO*/$lang['UAM_RedirTitle'] = 'Redirect to "Customization" page'; 175 /*TODO*/$lang['UAM_RedirTitle_d'] = 'This option automatically redirect a registered user to his customization page only at his first connection to the gallery.<br><br> 176 Please note: This feature applies to all already registered users including those with "admin", "webmaster" or "generic" status.'; 177 // --------- End: New or revised $lang ---- from version 2.15.4 169 178 ?> -
extensions/NBC_UserAdvManager/branches/2.15/language/it_IT/plugin.lang.php
r5763 r6776 30 30 $lang['Err_audit_advise'] = '<b>Dovete eseguire delle correzioni per rispettare le nuove impostazzioni che avete attivato.<br> Utilizzare un programma per la gestione della base dati per correggere i conti utente direttamente nella tabella ###_USERS'; 31 31 $lang['UAM_Empty Author'] = 'Il campo autore deve essere riempito per potere inviare un commento.'; 32 if ( isset($conf_UAM[1]) and $conf_UAM[1] == 'true' ) 33 $lang['reg_err_login5'] = 'Nome utente esiste già. Attenzione : il campo è insensibile alle maiuscole/minuscole.'; 32 $lang['reg_err_login5'] = 'Nome utente esiste già. Attenzione : il campo è insensibile alle maiuscole/minuscole.'; 34 33 $lang['reg_err_login6'] = 'Nome utente non deve contenere in caratteri seguenti: '; 35 34 $lang['reg_err_login7'] = 'Il tuo provider di posta usa dominio d\'Email proibito. I domini preibiti sono i seguenti: '; … … 57 56 $lang['Mail_without_key'] = 'Email di rilancio senza chiave'; 58 57 $lang['Mail_with_key'] = 'Email di rilancio con chiave'; 59 $lang['Force_Validation'] = 'Convalida forzata';60 58 61 59 … … 142 140 $lang['UAM_MailInfo_Text'] = ' Personalizzare il testo dell\'Email:'; 143 141 $lang['UAM_Confirm_Mail'] = 'Conferma dell\'iscrizione:'; 144 $lang['UAM_Confirm_Mail_true'] = ' Attivare';145 142 $lang['UAM_Confirm_Mail_false'] = ' Disattivare (di default)'; 146 143 $lang['UAM_ConfirmMail_Text'] = ' Personalizzare il testo dell\'Email di conferma:'; … … 264 261 Disponibile anche, il bugtracker del progetto: <a href="http://piwigo.org/bugs/" onclick="window.open(this.href);return false;">http://piwigo.org/bugs/</a>'; 265 262 // --------- End: New or revised $lang ---- from version 2.15.1 263 264 265 // --------- Starting below: New or revised $lang ---- from version 2.15.4 266 /*TODO*/$lang['Force_Validation'] = 'Manual validation'; 267 /*TODO*/$lang['UAM_Confirm_Mail_true'] = ' Enable - Validation by user'; 268 /*TODO*/$lang['UAM_Confirm_Mail_local'] = ' Enable - Validation by admin (no validation key sent)'; 269 /*TODO*/$lang['UAM_RedirToProfile'] = 'Redirect to "Customization" page'; 270 $lang['UAM_RedirToProfile_false'] = ' Disattivare (di default)'; 271 $lang['UAM_RedirToProfile_true'] = ' Attivare'; 272 // --------- End: New or revised $lang ---- from version 2.15.4 266 273 ?> -
extensions/NBC_UserAdvManager/branches/2.15/main.inc.php
r6256 r6776 2 2 /* 3 3 Plugin Name: UserAdvManager 4 Version: 2.15. 34 Version: 2.15.4 5 5 Description: Renforcer la gestion des utilisateurs - Enforce users management 6 6 Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=216 … … 13 13 /* 14 14 ***** TODO List ***** 15 ++ Adding ASC and DESC ordering for user's lists tables (Ghost Tracker, UserList and Unvalidated) ?16 17 15 ++ No validation needed for admins users comments (new trigger needed in comments.php ?) 18 16 … … 80 78 if (!is_admin() and !is_a_guest()) 81 79 { 82 if ((isset($conf_UAM[1 7]) and $conf_UAM[17] == 'true') or (isset($conf_UAM[20]) and $conf_UAM[20] == 'true'))80 if ((isset($conf_UAM[16]) and $conf_UAM[16] == 'true') or (isset($conf_UAM[19]) and $conf_UAM[19] == 'true')) 83 81 { 84 82 … … 128 126 $conf_UAM = unserialize($conf['UserAdvManager']); 129 127 130 /* Sending registration confirmation by email */ 131 if ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true') or (isset($conf_UAM[2]) and $conf_UAM[2] == 'true')) 132 { 133 if (is_admin() and isset($conf_UAM[21]) and $conf_UAM[21] == 'true') 134 { 135 $passwd = (isset($_POST['password'])) ? $_POST['password'] : ''; 136 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true); 137 } 138 elseif (is_admin() and isset($conf_UAM[21]) and $conf_UAM[21] == 'false') 139 { 128 if ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'local')) 129 { 130 /* This is to send an information email and set user to "waiting" group or status until admin validation */ 140 131 $passwd = (isset($_POST['password'])) ? $_POST['password'] : ''; 141 132 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], false); 133 setgroup($register_user['id']);// Set to "waiting" group or status until admin validation 134 } 135 elseif ((isset($conf_UAM[0]) and $conf_UAM[0] == 'false') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'local')) 136 { 137 /* This is to set user to "wainting" group or status until admin validation */ 138 setgroup($register_user['id']);// Set to "waiting" group or status until admin validation 139 } 140 elseif ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'false')) 141 { 142 /* This is to send an information email without validation key */ 143 $passwd = (isset($_POST['password'])) ? $_POST['password'] : ''; 144 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], false); 145 } 146 /* Sending registration confirmation by email */ 147 elseif ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'true')) 148 { 149 if (is_admin() and isset($conf_UAM[20]) and $conf_UAM[20] == 'true') 150 { 151 $passwd = (isset($_POST['password'])) ? $_POST['password'] : ''; 152 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true); 153 } 154 elseif (is_admin() and isset($conf_UAM[20]) and $conf_UAM[20] == 'false') 155 { 156 $passwd = (isset($_POST['password'])) ? $_POST['password'] : ''; 157 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], false); 142 158 } 143 159 elseif (!is_admin()) 144 160 { 145 $passwd = (isset($_POST['password'])) ? $_POST['password'] : '';146 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true);161 $passwd = (isset($_POST['password'])) ? $_POST['password'] : ''; 162 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true); 147 163 } 148 164 } … … 159 175 /* Cleanup for LastVisit table */ 160 176 DeleteLastVisit($user_id); 177 /* Cleanup Redirection settings */ 178 DeleteRedir($user_id); 161 179 } 162 180 … … 253 271 254 272 /* Password enforcement control */ 255 if (isset($conf_UAM[1 4]) and $conf_UAM[14] == 'true' and !empty($conf_UAM[15]))273 if (isset($conf_UAM[13]) and $conf_UAM[13] == 'true' and !empty($conf_UAM[14])) 256 274 { 257 275 if (!empty($user['password']) and !is_admin()) … … 259 277 $PasswordCheck = testpassword($user['password']); 260 278 261 if ($PasswordCheck < $conf_UAM[1 5])279 if ($PasswordCheck < $conf_UAM[14]) 262 280 { 263 281 $message = get_l10n_args('reg_err_login4_%s', $PasswordCheck); 264 return($lang['reg_err_pass'] = l10n_args($message).$conf_UAM[1 5]);265 } 266 } 267 else if (!empty($user['password']) and is_admin() and isset($conf_UAM[1 6]) and $conf_UAM[16] == 'true')282 return($lang['reg_err_pass'] = l10n_args($message).$conf_UAM[14]); 283 } 284 } 285 else if (!empty($user['password']) and is_admin() and isset($conf_UAM[15]) and $conf_UAM[15] == 'true') 268 286 { 269 287 $PasswordCheck = testpassword($user['password']); 270 288 271 if ($PasswordCheck < $conf_UAM[1 5])289 if ($PasswordCheck < $conf_UAM[14]) 272 290 { 273 291 $message = get_l10n_args('reg_err_login4_%s', $PasswordCheck); 274 return($lang['reg_err_pass'] = l10n_args($message).$conf_UAM[15]); 275 } 276 } 277 } 278 279 /* Username non case sensitive */ 280 if (isset($conf_UAM[1]) and $conf_UAM[1] == 'true' and NotSensibleSearchUsername($_POST['login'])) 281 { 282 return($lang['reg_err_login5'] = l10n('reg_err_login5')); 292 return($lang['reg_err_pass'] = l10n_args($message).$conf_UAM[14]); 293 } 294 } 283 295 } 284 296 285 297 /* Username without forbidden keys */ 286 if (isset($conf_UAM[ 7]) and $conf_UAM[7] == 'true' and !empty($_POST['login']) and ValidateUsername($_POST['login']) and !is_admin())298 if (isset($conf_UAM[6]) and $conf_UAM[6] == 'true' and !empty($_POST['login']) and ValidateUsername($_POST['login']) and !is_admin()) 287 299 { 288 300 $_POST['login'] = ''; 289 return($lang['reg_err_login1'] = l10n('reg_err_login6')."'".$conf_UAM[ 8]."'");301 return($lang['reg_err_login1'] = l10n('reg_err_login6')."'".$conf_UAM[7]."'"); 290 302 } 291 303 292 304 /* Email without forbidden domains */ 293 if (isset($conf_UAM[1 2]) and $conf_UAM[12] == 'true' and !empty($_POST['mail_address']) and ValidateEmailProvider($_POST['mail_address']) and !is_admin())305 if (isset($conf_UAM[11]) and $conf_UAM[11] == 'true' and !empty($_POST['mail_address']) and ValidateEmailProvider($_POST['mail_address']) and !is_admin()) 294 306 { 295 307 $_POST['mail_address'] = ''; 296 return($lang['reg_err_login1'] = l10n('reg_err_login7')."'".$conf_UAM[1 3]."'");308 return($lang['reg_err_login1'] = l10n('reg_err_login7')."'".$conf_UAM[12]."'"); 297 309 } 298 310 } … … 309 321 $conf_UAM = unserialize($conf['UserAdvManager']); 310 322 323 if ((isset($conf_UAM[21]) and $conf_UAM[21] == 'true')) 324 { 325 $user_idsOK = array(); 326 if (!check_consult($user['id'], $user_idsOK)) 327 { 328 $user_idsOK[] = $user['id']; 329 330 $query = " 331 UPDATE ".CONFIG_TABLE." 332 SET value = \"".implode(',', $user_idsOK)."\" 333 WHERE param = 'UserAdvManager_Redir';"; 334 335 pwg_query($query); 336 } 337 } 338 311 339 if (isset($_POST['validate']) and !is_admin()) 312 340 { 313 341 /* Email without forbidden domains */ 314 if (isset($conf_UAM[1 2]) and $conf_UAM[12] == 'true' and !empty($_POST['mail_address']))342 if (isset($conf_UAM[11]) and $conf_UAM[11] == 'true' and !empty($_POST['mail_address'])) 315 343 { 316 344 if (ValidateEmailProvider($_POST['mail_address'])) 317 345 { 318 $template->append('errors', l10n('reg_err_login7')."'".$conf_UAM[1 3]."'");346 $template->append('errors', l10n('reg_err_login7')."'".$conf_UAM[12]."'"); 319 347 unset($_POST['validate']); 320 348 } … … 328 356 329 357 /* Password enforcement control */ 330 if (isset($conf_UAM[1 4]) and $conf_UAM[14] == 'true' and !empty($conf_UAM[15]))358 if (isset($conf_UAM[13]) and $conf_UAM[13] == 'true' and !empty($conf_UAM[14])) 331 359 { 332 360 $PasswordCheck = testpassword($_POST['use_new_pwd']); 333 361 334 if ($PasswordCheck < $conf_UAM[1 5])362 if ($PasswordCheck < $conf_UAM[14]) 335 363 { 336 364 $message = get_l10n_args('reg_err_login4_%s', $PasswordCheck); 337 $template->append('errors', l10n_args($message).$conf_UAM[1 5]);365 $template->append('errors', l10n_args($message).$conf_UAM[14]); 338 366 unset($_POST['use_new_pwd']); 339 367 unset($_POST['validate']); … … 343 371 344 372 /* Sending registration confirmation by email */ 345 if ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true') or (isset($conf_UAM[ 2]) and $conf_UAM[2] == 'true'))373 if ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true') or (isset($conf_UAM[1]) and $conf_UAM[1] == 'true') or (isset($conf_UAM[1]) and $conf_UAM[1] == 'local')) 346 374 { 347 375 $confirm_mail_need = false; … … 356 384 357 385 list($current_email) = pwg_db_fetch_row(pwg_query($query)); 358 359 if ($_POST['mail_address'] != $current_email and ( isset($conf_UAM[2]) and $conf_UAM[2] == 'true')) 386 387 /* This is to send a new validation key */ 388 if ($_POST['mail_address'] != $current_email and (isset($conf_UAM[1]) and $conf_UAM[1] == 'true')) 360 389 361 390 $confirm_mail_need = true; 391 392 /* This is to set the user to "waiting" group or status until admin validation */ 393 if ($_POST['mail_address'] != $current_email and (isset($conf_UAM[1]) and $conf_UAM[1] == 'local')) 394 395 setgroup($register_user['id']);// Set to "waiting" group or status until admin validation 396 $confirm_mail_need = false; 362 397 } 363 398 … … 380 415 381 416 417 // RedirectToProfile - Thx to LucMorizur 418 // redirects a visitor (not generic (forbidden) neither admin) to his 419 // profile.php page 420 // 421 // no variable, no return 422 add_event_handler('login_success', 'RedirectToProfile'); 423 424 function RedirectToProfile() 425 { 426 global $conf, $user; 427 428 $conf_UAM = unserialize($conf['UserAdvManager']); 429 430 if ((isset($conf_UAM[21]) and $conf_UAM[21] == 'true')) 431 { 432 $user_idsOK = array(); 433 if (!check_consult($user['id'], $user_idsOK)) 434 redirect(PHPWG_ROOT_PATH.'profile.php'); 435 } 436 } 437 438 382 439 add_event_handler('init', 'UAM_InitPage'); 383 440 /* *** Important ! This is necessary to make email exclusion work in admin's users management panel *** */ … … 395 452 { 396 453 /* Email without forbidden domains */ 397 if (isset($conf_UAM[1 2]) and $conf_UAM[12] == 'true' and !empty($_POST['email']) and ValidateEmailProvider($_POST['email']))398 { 399 $template->append('errors', l10n('reg_err_login7')."'".$conf_UAM[1 3]."'");454 if (isset($conf_UAM[11]) and $conf_UAM[11] == 'true' and !empty($_POST['email']) and ValidateEmailProvider($_POST['email'])) 455 { 456 $template->append('errors', l10n('reg_err_login7')."'".$conf_UAM[12]."'"); 400 457 unset($_POST['submit_add']); 401 458 } … … 415 472 416 473 /* User creation OR update */ 417 if (isset($conf_UAM[ 6]) and $conf_UAM[6] == 'true' and $conf['comments_forall'] == 'true' and $comm['author'] == 'guest')474 if (isset($conf_UAM[5]) and $conf_UAM[5] == 'true' and $conf['comments_forall'] == 'true' and $comm['author'] == 'guest') 418 475 { 419 476 $comment_action = 'reject'; -
extensions/NBC_UserAdvManager/branches/2.15/maintain.inc.php
r6256 r6776 18 18 global $conf; 19 19 20 $default1 = array('false','false', 'false',-1,-1,-1,'false','false','',-1,'','','false','','false',100,'false','false',10,'Hello.20 $default1 = array('false','false',-1,-1,-1,'false','false','',-1,'','','false','','false',100,'false','false',10,'Hello. 21 21 22 22 This is a reminder because a very long time passed since your last visit on our gallery. If you do not want anymore to use your access account, please let us know by replying to this email. Your account will be deleted. … … 48 48 INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 49 49 VALUES ("UserAdvManager_ConfirmMail","'.addslashes(serialize($default2)).'","UAM ConfirmMail parameters") 50 ;'; 51 pwg_query($q); 52 53 $q = ' 54 INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 55 VALUES ("UserAdvManager_Redir","0","UAM Redirections") 50 56 ;'; 51 57 pwg_query($q); … … 160 166 } 161 167 162 /* Check if old version is > 2.15 */ 163 /* ****************************** */ 164 // In preparation of next releases 165 /* $query = ' 168 /* Old version is > 2.15 */ 169 /* ********************* */ 170 $query = ' 166 171 SELECT param 167 172 FROM '.CONFIG_TABLE.' 168 WHERE param LIKE "UserAdvManager%"173 WHERE param = "UserAdvManager_Redir" 169 174 ;'; 170 175 $count = pwg_db_num_rows(pwg_query($query)); 171 176 172 if ($count == 2)173 { 174 upgrade_215 1_2152();175 } 176 */ 177 if ($count == 0) 178 { 179 upgrade_2153_2154(); 180 } 181 177 182 load_conf_from_db('param like \'UserAdvManager\\_%\''); 178 183 }
Note: See TracChangeset
for help on using the changeset viewer.