Changeset 11019
- Timestamp:
- May 23, 2011, 7:08:25 PM (14 years ago)
- Location:
- extensions/UserAdvManager/branches/2.20
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/branches/2.20/GT_del_account.php
r9925 r11019 21 21 $conf_UAM = unserialize($conf['UserAdvManager']); 22 22 23 if (isset($conf_UAM[2 4]) and $conf_UAM[24] <> '')23 if (isset($conf_UAM[23]) and $conf_UAM[23] <> '') 24 24 { 25 25 // Management of Extension flags ([mygallery], [myurl]) - [username] flag can't be used here … … 31 31 if (function_exists('get_user_language_desc')) 32 32 { 33 $custom_text = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[2 4]));33 $custom_text = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[23])); 34 34 } 35 else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[2 4]));35 else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[23])); 36 36 } 37 37 -
extensions/UserAdvManager/branches/2.20/USR_del_account.php
r9925 r11019 21 21 $conf_UAM = unserialize($conf['UserAdvManager']); 22 22 23 if (isset($conf_UAM[3 2]) and $conf_UAM[32] <> '')23 if (isset($conf_UAM[31]) and $conf_UAM[31] <> '') 24 24 { 25 25 // Management of Extension flags ([mygallery], [myurl]) - [username] flag can't be used here … … 31 31 if (function_exists('get_user_language_desc')) 32 32 { 33 $custom_text = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[3 2]));33 $custom_text = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[31])); 34 34 } 35 else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[3 2]));35 else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[31])); 36 36 } 37 37 -
extensions/UserAdvManager/branches/2.20/admin/UAM_admin.php
r10958 r11019 106 106 case 'global': 107 107 108 if (isset($_POST['submit']) 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']) and isset($_POST['UAM_GTAuto']) and isset($_POST['UAM_GTAutoMail']) and isset($_POST['UAM_CustomPasswRetr']) and isset($_POST['UAM_USRAuto']) and isset($_POST['UAM_USRAutoMail']) and isset($_POST['UAM_Stuffs']) and isset($_POST['UAM_HidePassw']) and isset($_POST['UAM_GroupComm']))108 if (isset($_POST['submit']) and isset($_POST['UAM_Mail_Info']) and isset($_POST['UAM_Username_Char']) and isset($_POST['UAM_Confirm_Mail']) 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']) and isset($_POST['UAM_GTAuto']) and isset($_POST['UAM_GTAutoMail']) and isset($_POST['UAM_CustomPasswRetr']) and isset($_POST['UAM_USRAuto']) and isset($_POST['UAM_USRAutoMail']) and isset($_POST['UAM_Stuffs']) and isset($_POST['UAM_HidePassw'])) 109 109 { 110 110 … … 149 149 (isset($_POST['UAM_Validated_Group'])?$_POST['UAM_Validated_Group']:''), 150 150 (isset($_POST['UAM_Validated_Status'])?$_POST['UAM_Validated_Status']:''), 151 $_POST['UAM_No_Comment_Anonymous'],152 151 $_POST['UAM_Username_Char'], 153 152 $_POST['UAM_Username_List'], … … 180 179 $_POST['UAM_Stuffs'], 181 180 $_POST['UAM_HidePassw'], 182 $_POST['UAM_GroupComm'],183 (isset($_POST['UAM_AllowComm_Group'])?$_POST['UAM_AllowComm_Group']:''),184 181 ); 185 182 186 183 $conf['UserAdvManager'] = serialize($newconf_UAM); 187 184 188 $query = ' 189 UPDATE '.CONFIG_TABLE.' 190 SET value="'.pwg_db_real_escape_string($conf['UserAdvManager']).'" 191 WHERE param="UserAdvManager" 192 LIMIT 1 193 ;'; 194 195 pwg_query($query); 185 conf_update_param('UserAdvManager', pwg_db_real_escape_string($conf['UserAdvManager'])); 196 186 197 187 //Email confirmation settings … … 214 204 215 205 $conf['UserAdvManager_ConfirmMail'] = serialize($newconf_UAM_ConfirmMail); 216 217 $query = ' 218 UPDATE '.CONFIG_TABLE.' 219 SET value="'.pwg_db_real_escape_string($conf['UserAdvManager_ConfirmMail']).'" 220 WHERE param="UserAdvManager_ConfirmMail" 221 LIMIT 1 222 ;'; 223 224 pwg_query($query); 206 207 conf_update_param('UserAdvManager_ConfirmMail', pwg_db_real_escape_string($conf['UserAdvManager_ConfirmMail'])); 225 208 226 209 array_push($page['infos'], l10n('UAM_save_config')); … … 259 242 $Valid = -1; 260 243 $Downgrade = -1; 261 $AllowComm = -1;262 244 263 245 //Check groups list in database … … 284 266 } 285 267 //configuration value for downgrade users 286 if (isset($conf_UAM[2 6]) and $conf_UAM[26] == $row['id'])268 if (isset($conf_UAM[25]) and $conf_UAM[25] == $row['id']) 287 269 { 288 270 $Downgrade = $row['id']; 289 }290 //configuration value for users group allowed to post comments291 if (isset($conf_UAM[37]) and $conf_UAM[37] == $row['id'])292 {293 $AllowComm = $row['id'];294 271 } 295 272 } … … 319 296 ) 320 297 ); 321 //Template initialization for allowed group for comments322 $template->assign(323 'AllowComm_Group',324 array(325 'group_options'=> $groups,326 'group_selected' => $AllowComm327 )328 );329 298 330 299 //Status setting for unvalidated, validated users and downgrade status … … 338 307 { 339 308 $status_options[$status] = l10n('user_status_'.$status); 340 if (isset($conf_UAM[ 8]) and $conf_UAM[8] == $status)309 if (isset($conf_UAM[7]) and $conf_UAM[7] == $status) 341 310 { 342 311 $No_Valid_Status = $status; … … 376 345 { 377 346 $status_options[$status] = l10n('user_status_'.$status); 378 if (isset($conf_UAM[2 7]) and $conf_UAM[27] == $status)347 if (isset($conf_UAM[26]) and $conf_UAM[26] == $status) 379 348 { 380 349 $Downgrade_Status = $status; … … 412 381 'UAM_MAIL_INFO_TRUE' => $conf_UAM[0]=='true' ? 'checked="checked"' : '' , 413 382 'UAM_MAIL_INFO_FALSE' => $conf_UAM[0]=='false' ? 'checked="checked"' : '' , 414 'UAM_MAILINFO_TEXT' => $conf_UAM[ 9],415 'UAM_USERNAME_CHAR_TRUE' => $conf_UAM[ 6]=='true' ? 'checked="checked"' : '' ,416 'UAM_USERNAME_CHAR_FALSE' => $conf_UAM[ 6]=='false' ? 'checked="checked"' : '' ,417 'UAM_USERNAME_CHAR_LIST' => $conf_UAM[ 7],383 'UAM_MAILINFO_TEXT' => $conf_UAM[8], 384 'UAM_USERNAME_CHAR_TRUE' => $conf_UAM[5]=='true' ? 'checked="checked"' : '' , 385 'UAM_USERNAME_CHAR_FALSE' => $conf_UAM[5]=='false' ? 'checked="checked"' : '' , 386 'UAM_USERNAME_CHAR_LIST' => $conf_UAM[6], 418 387 'UAM_CONFIRM_MAIL_TRUE' => $conf_UAM[1]=='true' ? 'checked="checked"' : '' , 419 388 'UAM_CONFIRM_MAIL_FALSE' => $conf_UAM[1]=='false' ? 'checked="checked"' : '' , 420 389 'UAM_CONFIRM_MAIL_LOCAL' => $conf_UAM[1]=='local' ? 'checked="checked"' : '' , 421 'UAM_CONFIRMMAIL_TEXT' => $conf_UAM[ 10],390 'UAM_CONFIRMMAIL_TEXT' => $conf_UAM[9], 422 391 'UAM_No_Confirm_Group' => $conf_UAM[2], 423 392 'UAM_Validated_Group' => $conf_UAM[3], 424 'UAM_No_Confirm_Status' => $conf_UAM[ 8],393 'UAM_No_Confirm_Status' => $conf_UAM[7], 425 394 'UAM_Validated_Status' => $conf_UAM[4], 426 'UAM_NO_COMMENT_ANO_TRUE' => $conf_UAM[5]=='true' ? 'checked="checked"' : '' , 427 'UAM_NO_COMMENT_ANO_FALSE' => $conf_UAM[5]=='false' ? 'checked="checked"' : '' , 428 'UAM_MAILEXCLUSION_TRUE' => $conf_UAM[11]=='true' ? 'checked="checked"' : '' , 429 'UAM_MAILEXCLUSION_FALSE' => $conf_UAM[11]=='false' ? 'checked="checked"' : '' , 430 'UAM_MAILEXCLUSION_LIST' => $conf_UAM[12], 431 'UAM_PASSWORDENF_TRUE' => $conf_UAM[13]=='true' ? 'checked="checked"' : '' , 432 'UAM_PASSWORDENF_FALSE' => $conf_UAM[13]=='false' ? 'checked="checked"' : '' , 433 'UAM_PASSWORD_SCORE' => $conf_UAM[14], 434 'UAM_ADMINPASSWENF_TRUE' => $conf_UAM[15]=='true' ? 'checked="checked"' : '' , 435 'UAM_ADMINPASSWENF_FALSE' => $conf_UAM[15]=='false' ? 'checked="checked"' : '' , 436 'UAM_GHOSTRACKER_TRUE' => $conf_UAM[16]=='true' ? 'checked="checked"' : '' , 437 'UAM_GHOSTRACKER_FALSE' => $conf_UAM[16]=='false' ? 'checked="checked"' : '' , 438 'UAM_GHOSTRACKER_DAYLIMIT' => $conf_UAM[17], 439 'UAM_GHOSTRACKER_REMINDERTEXT' => $conf_UAM[18], 440 'UAM_ADDLASTVISIT_TRUE' => $conf_UAM[19]=='true' ? 'checked="checked"' : '' , 441 'UAM_ADDLASTVISIT_FALSE' => $conf_UAM[19]=='false' ? 'checked="checked"' : '' , 442 'UAM_ADMINCONFMAIL_TRUE' => $conf_UAM[20]=='true' ? 'checked="checked"' : '' , 443 'UAM_ADMINCONFMAIL_FALSE' => $conf_UAM[20]=='false' ? 'checked="checked"' : '' , 444 'UAM_REDIRTOPROFILE_TRUE' => $conf_UAM[21]=='true' ? 'checked="checked"' : '' , 445 'UAM_REDIRTOPROFILE_FALSE' => $conf_UAM[21]=='false' ? 'checked="checked"' : '' , 446 'UAM_GTAUTO_TRUE' => $conf_UAM[22]=='true' ? 'checked="checked"' : '' , 447 'UAM_GTAUTO_FALSE' => $conf_UAM[22]=='false' ? 'checked="checked"' : '' , 448 'UAM_GTAUTOMAIL_TRUE' => $conf_UAM[23]=='true' ? 'checked="checked"' : '' , 449 'UAM_GTAUTOMAIL_FALSE' => $conf_UAM[23]=='false' ? 'checked="checked"' : '' , 450 'UAM_GTAUTODEL_TEXT' => $conf_UAM[24], 451 'UAM_GTAUTOMAILTEXT' => $conf_UAM[25], 452 'UAM_Downgrade_Group' => $conf_UAM[26], 453 'UAM_Downgrade_Status' => $conf_UAM[27], 454 'UAM_ADMINVALIDATIONMAIL_TEXT' => $conf_UAM[28], 455 'UAM_CUSTOMPASSWRETR_TRUE' => $conf_UAM[29]=='true' ? 'checked="checked"' : '' , 456 'UAM_CUSTOMPASSWRETR_FALSE' => $conf_UAM[29]=='false' ? 'checked="checked"' : '' , 457 'UAM_CUSTOMPASSWRETR_TEXT' => $conf_UAM[30], 458 'UAM_USRAUTO_TRUE' => $conf_UAM[31]=='true' ? 'checked="checked"' : '' , 459 'UAM_USRAUTO_FALSE' => $conf_UAM[31]=='false' ? 'checked="checked"' : '' , 460 'UAM_USRAUTODEL_TEXT' => $conf_UAM[32], 461 'UAM_USRAUTOMAIL_TRUE' => $conf_UAM[33]=='true' ? 'checked="checked"' : '' , 462 'UAM_USRAUTOMAIL_FALSE' => $conf_UAM[33]=='false' ? 'checked="checked"' : '' , 463 'UAM_STUFFS_TRUE' => $conf_UAM[34]=='true' ? 'checked="checked"' : '' , 464 'UAM_STUFFS_FALSE' => $conf_UAM[34]=='false' ? 'checked="checked"' : '' , 465 'UAM_HIDEPASSW_TRUE' => $conf_UAM[35]=='true' ? 'checked="checked"' : '' , 466 'UAM_HIDEPASSW_FALSE' => $conf_UAM[35]=='false' ? 'checked="checked"' : '' , 467 'UAM_GROUPCOMM_TRUE' => $conf_UAM[36]=='true' ? 'checked="checked"' : '' , 468 'UAM_GROUPCOMM_FALSE' => $conf_UAM[36]=='false' ? 'checked="checked"' : '' , 469 'UAM_ALLOWCOMM_GROUP' => $conf_UAM[37], 395 'UAM_MAILEXCLUSION_TRUE' => $conf_UAM[10]=='true' ? 'checked="checked"' : '' , 396 'UAM_MAILEXCLUSION_FALSE' => $conf_UAM[10]=='false' ? 'checked="checked"' : '' , 397 'UAM_MAILEXCLUSION_LIST' => $conf_UAM[11], 398 'UAM_PASSWORDENF_TRUE' => $conf_UAM[12]=='true' ? 'checked="checked"' : '' , 399 'UAM_PASSWORDENF_FALSE' => $conf_UAM[12]=='false' ? 'checked="checked"' : '' , 400 'UAM_PASSWORD_SCORE' => $conf_UAM[13], 401 'UAM_ADMINPASSWENF_TRUE' => $conf_UAM[14]=='true' ? 'checked="checked"' : '' , 402 'UAM_ADMINPASSWENF_FALSE' => $conf_UAM[14]=='false' ? 'checked="checked"' : '' , 403 'UAM_GHOSTRACKER_TRUE' => $conf_UAM[15]=='true' ? 'checked="checked"' : '' , 404 'UAM_GHOSTRACKER_FALSE' => $conf_UAM[15]=='false' ? 'checked="checked"' : '' , 405 'UAM_GHOSTRACKER_DAYLIMIT' => $conf_UAM[16], 406 'UAM_GHOSTRACKER_REMINDERTEXT' => $conf_UAM[17], 407 'UAM_ADDLASTVISIT_TRUE' => $conf_UAM[18]=='true' ? 'checked="checked"' : '' , 408 'UAM_ADDLASTVISIT_FALSE' => $conf_UAM[18]=='false' ? 'checked="checked"' : '' , 409 'UAM_ADMINCONFMAIL_TRUE' => $conf_UAM[19]=='true' ? 'checked="checked"' : '' , 410 'UAM_ADMINCONFMAIL_FALSE' => $conf_UAM[19]=='false' ? 'checked="checked"' : '' , 411 'UAM_REDIRTOPROFILE_TRUE' => $conf_UAM[20]=='true' ? 'checked="checked"' : '' , 412 'UAM_REDIRTOPROFILE_FALSE' => $conf_UAM[20]=='false' ? 'checked="checked"' : '' , 413 'UAM_GTAUTO_TRUE' => $conf_UAM[21]=='true' ? 'checked="checked"' : '' , 414 'UAM_GTAUTO_FALSE' => $conf_UAM[21]=='false' ? 'checked="checked"' : '' , 415 'UAM_GTAUTOMAIL_TRUE' => $conf_UAM[22]=='true' ? 'checked="checked"' : '' , 416 'UAM_GTAUTOMAIL_FALSE' => $conf_UAM[22]=='false' ? 'checked="checked"' : '' , 417 'UAM_GTAUTODEL_TEXT' => $conf_UAM[23], 418 'UAM_GTAUTOMAILTEXT' => $conf_UAM[24], 419 'UAM_Downgrade_Group' => $conf_UAM[25], 420 'UAM_Downgrade_Status' => $conf_UAM[26], 421 'UAM_ADMINVALIDATIONMAIL_TEXT' => $conf_UAM[27], 422 'UAM_CUSTOMPASSWRETR_TRUE' => $conf_UAM[28]=='true' ? 'checked="checked"' : '' , 423 'UAM_CUSTOMPASSWRETR_FALSE' => $conf_UAM[28]=='false' ? 'checked="checked"' : '' , 424 'UAM_CUSTOMPASSWRETR_TEXT' => $conf_UAM[29], 425 'UAM_USRAUTO_TRUE' => $conf_UAM[30]=='true' ? 'checked="checked"' : '' , 426 'UAM_USRAUTO_FALSE' => $conf_UAM[30]=='false' ? 'checked="checked"' : '' , 427 'UAM_USRAUTODEL_TEXT' => $conf_UAM[31], 428 'UAM_USRAUTOMAIL_TRUE' => $conf_UAM[32]=='true' ? 'checked="checked"' : '' , 429 'UAM_USRAUTOMAIL_FALSE' => $conf_UAM[32]=='false' ? 'checked="checked"' : '' , 430 'UAM_STUFFS_TRUE' => $conf_UAM[33]=='true' ? 'checked="checked"' : '' , 431 'UAM_STUFFS_FALSE' => $conf_UAM[33]=='false' ? 'checked="checked"' : '' , 432 'UAM_HIDEPASSW_TRUE' => $conf_UAM[34]=='true' ? 'checked="checked"' : '' , 433 'UAM_HIDEPASSW_FALSE' => $conf_UAM[34]=='false' ? 'checked="checked"' : '' , 470 434 'UAM_PASSWORD_TEST_SCORE' => $UAM_Password_Test_Score, 471 435 'UAM_ERROR_REPORTS4' => $UAM_Exclusionlist_Error, … … 487 451 488 452 //Username without forbidden keys 489 if ( isset($conf_UAM[ 6]) and $conf_UAM[6] == 'true' )453 if ( isset($conf_UAM[5]) and $conf_UAM[5] == 'true' ) 490 454 { 491 455 $query = " … … 506 470 507 471 //Email without forbidden domain 508 if ( isset($conf_UAM[1 1]) and $conf_UAM[11] == 'true' )472 if ( isset($conf_UAM[10]) and $conf_UAM[10] == 'true' ) 509 473 { 510 474 $query = " … … 517 481 while($row = pwg_db_fetch_assoc($result)) 518 482 { 519 $conf_MailExclusion = preg_split("/[\s,]+/",$conf_UAM[1 2]);483 $conf_MailExclusion = preg_split("/[\s,]+/",$conf_UAM[11]); 520 484 for ($i = 0 ; $i < count($conf_MailExclusion) ; $i++) 521 485 { … … 572 536 $conf_UAM = unserialize($conf['UserAdvManager']); 573 537 574 if (isset($conf_UAM[1 9]) and $conf_UAM[19]=='true')538 if (isset($conf_UAM[18]) and $conf_UAM[18]=='true') 575 539 { 576 540 // +-----------------------------------------------------------------------+ … … 621 585 $deltadays = floor($deltasecs / 86400);// Convert result from seconds to days 622 586 623 if (isset($conf_UAM[1 6]) and $conf_UAM[16]=='true' and $conf_UAM[17] <> '')587 if (isset($conf_UAM[15]) and $conf_UAM[15]=='true' and $conf_UAM[16] <> '') 624 588 { 625 if ($deltadays <= ($conf_UAM[1 7]/2))589 if ($deltadays <= ($conf_UAM[16]/2)) 626 590 { 627 591 $display = 'green'; 628 592 } 629 593 630 if (($deltadays > ($conf_UAM[1 7]/2)) and ($deltadays < $conf_UAM[17]))594 if (($deltadays > ($conf_UAM[16]/2)) and ($deltadays < $conf_UAM[16])) 631 595 { 632 596 $display = 'orange'; 633 597 } 634 598 635 if ($deltadays >= $conf_UAM[1 7])599 if ($deltadays >= $conf_UAM[16]) 636 600 { 637 601 $display = 'red'; … … 695 659 $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']); 696 660 697 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')))661 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[7]) and $conf_UAM[7] <> '-1'))) 698 662 { 699 663 // +-----------------------------------------------------------------------+ … … 1209 1173 $conf_UAM = unserialize($conf['UserAdvManager']); 1210 1174 1211 if (isset($conf_UAM[16]) and $conf_UAM[1 6]=='true')1175 if (isset($conf_UAM[16]) and $conf_UAM[15]=='true') 1212 1176 { 1213 1177 // +-----------------------------------------------------------------------+ -
extensions/UserAdvManager/branches/2.20/admin/template/global.tpl
r10958 r11019 666 666 667 667 <li> 668 <label class="cluetip" title="{'UAM_commentTitle'|translate}|{'UAM_commentTitle_d'|translate}">669 {'UAM_No_Comment_Anonymous'|@translate}670 </label>671 <br><br>672 <input type="radio" value="false" {$UAM_NO_COMMENT_ANO_FALSE} name="UAM_No_Comment_Anonymous">673 {'UAM_Disable'|@translate}674 <br>675 <input type="radio" value="true" {$UAM_NO_COMMENT_ANO_TRUE} name="UAM_No_Comment_Anonymous">676 {'UAM_Enable'|@translate}677 <br><br>678 </li>679 680 <li>681 <label class="cluetip" title="{'UAM_GroupCommTitle'|translate}|{'UAM_GroupCommTitle_d'|translate}">682 {'UAM_Group_Comments'|@translate}683 </label>684 <br><br>685 <input type="radio" value="false" {$UAM_GROUPCOMM_FALSE} name="UAM_GroupComm">686 {'UAM_Disable'|@translate}687 <br>688 <input type="radio" value="true" {$UAM_GROUPCOMM_TRUE} name="UAM_GroupComm">689 {'UAM_Enable'|@translate}690 <br><br>691 <ul>692 <li>693 <label>694 {'UAM_AllowedComm_Group'|@translate}695 </label>696 <br><br>697 <div id="uam_leftmargin">698 {html_options name="UAM_AllowComm_Group" options=$AllowComm_Group.group_options selected=$AllowComm_Group.group_selected}699 </div>700 </li>701 </ul>702 <br><br>703 </li>704 705 <li>706 668 <label class="cluetip" title="{'UAM_RedirTitle'|translate}|{'UAM_RedirTitle_d'|translate}"> 707 669 {'UAM_RedirToProfile'|@translate} -
extensions/UserAdvManager/branches/2.20/changelog.txt.php
r10958 r11019 251 251 -- 2.20.7 : Use pwg_db_real_escape_string() instead of addslashes() 252 252 Database upgrade process simplied (using version_compare() and code refactoring) 253 Bug 2253 fixed - New feature to allow comments on pictures only for specific users (who belong to a group) when "comments for all" is set 253 Bug 2253 fixed - New feature to allow comments on pictures only for specific users (who belong to a group) when "comments for all" is disabled 254 255 -- 2.20.8 : Remove all options related to comments because they are processed in new "Comments Access Manager" plugin. 254 256 */ 255 257 ?> -
extensions/UserAdvManager/branches/2.20/include/functions.inc.php
r10958 r11019 42 42 if (!is_admin() and !is_a_guest() and $user['username'] != "16" and $user['username'] != "18") 43 43 { 44 if ((isset($conf_UAM[1 6]) and $conf_UAM[16] == 'true') or (isset($conf_UAM[19]) and $conf_UAM[19] == 'true'))44 if ((isset($conf_UAM[15]) and $conf_UAM[15] == 'true') or (isset($conf_UAM[18]) and $conf_UAM[18] == 'true')) 45 45 { 46 46 … … 116 116 elseif ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true' or $conf_UAM[0] == 'false') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'true')) 117 117 { 118 if (is_admin() and isset($conf_UAM[ 20]) and $conf_UAM[20] == 'true')118 if (is_admin() and isset($conf_UAM[19]) and $conf_UAM[19] == 'true') 119 119 { 120 120 $passwd = (isset($_POST['password'])) ? $_POST['password'] : ''; 121 121 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true); 122 122 } 123 elseif (is_admin() and isset($conf_UAM[ 20]) and $conf_UAM[20] == 'false')123 elseif (is_admin() and isset($conf_UAM[19]) and $conf_UAM[19] == 'false') 124 124 { 125 125 $passwd = (isset($_POST['password'])) ? $_POST['password'] : ''; … … 171 171 172 172 // Password enforcement control 173 if (isset($conf_UAM[1 3]) and $conf_UAM[13] == 'true' and !empty($conf_UAM[14]))173 if (isset($conf_UAM[12]) and $conf_UAM[12] == 'true' and !empty($conf_UAM[13])) 174 174 { 175 175 if (!empty($user['password']) and !is_admin()) … … 177 177 $PasswordCheck = testpassword($user['password']); 178 178 179 if ($PasswordCheck < $conf_UAM[1 4])179 if ($PasswordCheck < $conf_UAM[13]) 180 180 { 181 181 $message = get_l10n_args('UAM_reg_err_login4_%s', $PasswordCheck); 182 $lang['reg_err_pass'] = l10n_args($message).$conf_UAM[1 4];182 $lang['reg_err_pass'] = l10n_args($message).$conf_UAM[13]; 183 183 array_push($errors, $lang['reg_err_pass']); 184 184 } 185 185 } 186 else if (!empty($user['password']) and is_admin() and isset($conf_UAM[1 5]) and $conf_UAM[15] == 'true')186 else if (!empty($user['password']) and is_admin() and isset($conf_UAM[14]) and $conf_UAM[14] == 'true') 187 187 { 188 188 $PasswordCheck = testpassword($user['password']); 189 189 190 if ($PasswordCheck < $conf_UAM[1 4])190 if ($PasswordCheck < $conf_UAM[13]) 191 191 { 192 192 $message = get_l10n_args('UAM_reg_err_login4_%s', $PasswordCheck); 193 $lang['reg_err_pass'] = l10n_args($message).$conf_UAM[1 4];193 $lang['reg_err_pass'] = l10n_args($message).$conf_UAM[13]; 194 194 array_push($errors, $lang['reg_err_pass']); 195 195 } … … 198 198 199 199 // Username without forbidden keys 200 if (isset($conf_UAM[ 6]) and $conf_UAM[6] == 'true' and !empty($user['username']) and ValidateUsername($user['username']) and !is_admin())201 { 202 $lang['reg_err_login1'] = l10n('UAM_reg_err_login2')."'".$conf_UAM[ 7]."'";200 if (isset($conf_UAM[5]) and $conf_UAM[5] == 'true' and !empty($user['username']) and ValidateUsername($user['username']) and !is_admin()) 201 { 202 $lang['reg_err_login1'] = l10n('UAM_reg_err_login2')."'".$conf_UAM[6]."'"; 203 203 array_push($errors, $lang['reg_err_login1']); 204 204 } 205 205 206 206 // Email without forbidden domains 207 if (isset($conf_UAM[1 1]) and $conf_UAM[11] == 'true' and !empty($user['email']) and ValidateEmailProvider($user['email']) and !is_admin())208 { 209 $lang['reg_err_login1'] = l10n('UAM_reg_err_login5')."'".$conf_UAM[1 2]."'";207 if (isset($conf_UAM[10]) and $conf_UAM[10] == 'true' and !empty($user['email']) and ValidateEmailProvider($user['email']) and !is_admin()) 208 { 209 $lang['reg_err_login1'] = l10n('UAM_reg_err_login5')."'".$conf_UAM[11]."'"; 210 210 array_push($errors, $lang['reg_err_login1']); 211 211 } … … 224 224 $conf_UAM = unserialize($conf['UserAdvManager']); 225 225 226 if ((isset($conf_UAM[2 1]) and $conf_UAM[21] == 'true'))226 if ((isset($conf_UAM[20]) and $conf_UAM[20] == 'true')) 227 227 { 228 228 $user_idsOK = array(); … … 243 243 { 244 244 // Email without forbidden domains 245 if (isset($conf_UAM[1 1]) and $conf_UAM[11] == 'true' and !empty($_POST['mail_address']))245 if (isset($conf_UAM[10]) and $conf_UAM[10] == 'true' and !empty($_POST['mail_address'])) 246 246 { 247 247 if (ValidateEmailProvider($_POST['mail_address'])) 248 248 { 249 $template->append('errors', l10n('UAM_reg_err_login5')."'".$conf_UAM[1 2]."'");249 $template->append('errors', l10n('UAM_reg_err_login5')."'".$conf_UAM[11]."'"); 250 250 unset($_POST['validate']); 251 251 } … … 259 259 260 260 // Password enforcement control 261 if (isset($conf_UAM[1 3]) and $conf_UAM[13] == 'true' and !empty($conf_UAM[14]))261 if (isset($conf_UAM[12]) and $conf_UAM[12] == 'true' and !empty($conf_UAM[13])) 262 262 { 263 263 $PasswordCheck = testpassword($_POST['use_new_pwd']); 264 264 265 if ($PasswordCheck < $conf_UAM[1 4])265 if ($PasswordCheck < $conf_UAM[13]) 266 266 { 267 267 $message = get_l10n_args('UAM_reg_err_login4_%s', $PasswordCheck); 268 $template->append('errors', l10n_args($message).$conf_UAM[1 4]);268 $template->append('errors', l10n_args($message).$conf_UAM[13]); 269 269 unset($_POST['use_new_pwd']); 270 270 unset($_POST['validate']); … … 330 330 331 331 // Performing GhostTracker scheduled tasks 332 if ((isset($conf_UAM[2 2]) and $conf_UAM[22] == 'true'))332 if ((isset($conf_UAM[21]) and $conf_UAM[21] == 'true')) 333 333 { 334 334 UAM_GT_ScheduledTasks(); … … 336 336 337 337 // Performing User validation scheduled tasks 338 if ((isset($conf_UAM[3 1]) and $conf_UAM[31] == 'true'))338 if ((isset($conf_UAM[30]) and $conf_UAM[30] == 'true')) 339 339 { 340 340 UAM_USR_ScheduledTasks(); 341 341 } 342 342 343 if ((isset($conf_UAM[2 1]) and $conf_UAM[21] == 'true'))343 if ((isset($conf_UAM[20]) and $conf_UAM[20] == 'true')) 344 344 { 345 345 // Performing redirection … … 408 408 409 409 // Ghost accounts auto group or status downgrade with or without information email sending and autodeletion if user already reminded 410 if ((isset($conf_UAM[2 2]) and $conf_UAM[22] == 'true') and ((isset($conf_UAM[26]) and $conf_UAM[26] <> -1) or (isset($conf_UAM[27]) and $conf_UAM[27] <> -1)))410 if ((isset($conf_UAM[21]) and $conf_UAM[21] == 'true') and ((isset($conf_UAM[25]) and $conf_UAM[25] <> -1) or (isset($conf_UAM[26]) and $conf_UAM[26] <> -1))) 411 411 { 412 412 if (count($collection) > 0) … … 492 492 493 493 // Change user status 494 if ($conf_UAM[2 7] <> -1)494 if ($conf_UAM[26] <> -1) 495 495 { 496 496 $query = " 497 497 UPDATE ".USER_INFOS_TABLE." 498 SET status = '".$conf_UAM[2 7]."'498 SET status = '".$conf_UAM[26]."' 499 499 WHERE user_id = '".$user_id."' 500 500 ;"; … … 503 503 504 504 // Change user group 505 if ($conf_UAM[2 6] <> -1)505 if ($conf_UAM[25] <> -1) 506 506 { 507 507 $query = " … … 509 509 (user_id, group_id) 510 510 VALUES 511 ('".$user_id."', '".$conf_UAM[2 6]."')511 ('".$user_id."', '".$conf_UAM[25]."') 512 512 ;"; 513 513 pwg_query($query); … … 515 515 516 516 // Auto send email notification on group / status downgrade 517 if (isset($conf_UAM[2 3]) and $conf_UAM[23] == 'true')517 if (isset($conf_UAM[22]) and $conf_UAM[22] == 'true') 518 518 { 519 519 // Set reminder true … … 586 586 587 587 // Unvalidated accounts auto email sending and autodeletion if user already reminded 588 if ((isset($conf_UAM[3 1]) and $conf_UAM[31] == 'true'))588 if ((isset($conf_UAM[30]) and $conf_UAM[30] == 'true')) 589 589 { 590 590 if (count($collection) > 0) … … 611 611 612 612 // If never reminded before, send reminder and set reminder True 613 if (!$reminder and isset($conf_UAM[3 3]) and $conf_UAM[33] == 'true')613 if (!$reminder and isset($conf_UAM[32]) and $conf_UAM[32] == 'true') 614 614 { 615 615 $typemail = 1; … … 660 660 661 661 // If never reminded before, send reminder and set reminder True 662 if (!$reminder and isset($conf_UAM[3 3]) and $conf_UAM[33] == 'true')662 if (!$reminder and isset($conf_UAM[32]) and $conf_UAM[32] == 'true') 663 663 { 664 664 $typemail = 1; … … 704 704 { 705 705 // Email without forbidden domains 706 if (isset($conf_UAM[1 1]) and $conf_UAM[11] == 'true' and !empty($_POST['email']) and ValidateEmailProvider($_POST['email']))706 if (isset($conf_UAM[10]) and $conf_UAM[10] == 'true' and !empty($_POST['email']) and ValidateEmailProvider($_POST['email'])) 707 707 { 708 $template->append('errors', l10n('UAM_reg_err_login5')."'".$conf_UAM[1 2]."'");708 $template->append('errors', l10n('UAM_reg_err_login5')."'".$conf_UAM[11]."'"); 709 709 unset($_POST['submit_add']); 710 710 } … … 733 733 $conf_UAM = unserialize($conf['UserAdvManager']); 734 734 735 if (isset($conf_UAM[2 9]) and $conf_UAM[29] == 'true')735 if (isset($conf_UAM[28]) and $conf_UAM[28] == 'true') 736 736 { 737 737 // Management of Extension flags ([mygallery], [myurl]) … … 743 743 $replacements[] = $conf['gallery_url']; 744 744 745 $infos = preg_replace($patterns, $replacements, $conf_UAM[ 30])."\n"."\n".$infos;745 $infos = preg_replace($patterns, $replacements, $conf_UAM[29])."\n"."\n".$infos; 746 746 } 747 747 return $infos; 748 }749 750 751 /**752 * Triggered on user_comment_check753 *754 * checks if author is mandatory and set on comments post when comments for all is set755 *756 * cheks if author is in an allowed group to post comment when comments for all is not set757 *758 * @param : comment action, comment759 *760 * @return : comment action761 *762 */763 function UAM_CheckEmptyCommentAuthor($comment_action, $comm)764 {765 load_language('plugin.lang', UAM_PATH);766 global $infos, $conf, $user;767 768 $conf_UAM = unserialize($conf['UserAdvManager']);769 770 // Does not allow empty author name on comments for all771 if (isset($conf_UAM[5]) and $conf_UAM[5] == 'true' and $comm['author'] == 'guest' and $conf['comments_forall'])772 {773 $comment_action = 'reject';774 775 array_push($infos, l10n('UAM_Empty Author'));776 }777 778 779 // Do not allow comments if user is not in an allowed group780 if (isset($conf_UAM[36]) and $conf_UAM[36] == 'true' and !$conf['comments_forall'])781 {782 if (!UAM_CheckAuthor($comm['author']))783 {784 $comment_action = 'reject';785 786 array_push($infos, l10n('UAM_Not_Allowed_Author'));787 }788 }789 790 return $comment_action;791 748 } 792 749 … … 838 795 $password = $password <> '' ? $password : l10n('UAM_empty_pwd'); 839 796 840 if (isset($conf_UAM[ 9]) and $conf_UAM[9] <> '')797 if (isset($conf_UAM[8]) and $conf_UAM[8] <> '') 841 798 { 842 799 // Management of Extension flags ([username], [mygallery], [myurl]) … … 850 807 if (function_exists('get_user_language_desc')) 851 808 { 852 $infos1_perso = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[ 9]))."\n\n";809 $infos1_perso = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[8]))."\n\n"; 853 810 } 854 else $infos1_perso = l10n(preg_replace($patterns, $replacements, $conf_UAM[ 9]))."\n\n";811 else $infos1_perso = l10n(preg_replace($patterns, $replacements, $conf_UAM[8]))."\n\n"; 855 812 } 856 813 … … 872 829 if (isset($conf_UAM[0]) and $conf_UAM[0] == 'true') 873 830 { 874 if (isset($conf_UAM[3 5]) and $conf_UAM[35] == 'true') // Allow display of clear password in email831 if (isset($conf_UAM[34]) and $conf_UAM[34] == 'true') // Allow display of clear password in email 875 832 { 876 833 $infos1 = array( … … 901 858 ); 902 859 903 if (isset($conf_UAM[ 10]) and $conf_UAM[10] <> '')860 if (isset($conf_UAM[9]) and $conf_UAM[9] <> '') 904 861 { 905 862 // Management of Extension flags ([username], [mygallery], [myurl]) … … 913 870 if (function_exists('get_user_language_desc')) 914 871 { 915 $infos2_perso = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[ 10]))."\n\n";872 $infos2_perso = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[9]))."\n\n"; 916 873 } 917 else $infos2_perso = l10n(preg_replace($patterns, $replacements, $conf_UAM[ 10]))."\n\n";874 else $infos2_perso = l10n(preg_replace($patterns, $replacements, $conf_UAM[9]))."\n\n"; 918 875 } 919 876 } … … 1096 1053 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('UAM_Ghost_reminder_of_%s', $username)); 1097 1054 1098 if (isset($conf_UAM[1 8]) and $conf_UAM[18] <> '' and isset($conf_UAM[16]) and $conf_UAM[16] == 'true')1055 if (isset($conf_UAM[17]) and $conf_UAM[17] <> '' and isset($conf_UAM[15]) and $conf_UAM[15] == 'true') 1099 1056 { 1100 1057 // Management of Extension flags ([username], [mygallery], [myurl]) … … 1108 1065 if (function_exists('get_user_language_desc')) 1109 1066 { 1110 $infos1 = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[1 8]))."\n\n";1067 $infos1 = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[17]))."\n\n"; 1111 1068 } 1112 1069 else 1113 1070 { 1114 $infos1 = l10n(preg_replace($patterns, $replacements, $conf_UAM[1 8]))."\n\n";1071 $infos1 = l10n(preg_replace($patterns, $replacements, $conf_UAM[17]))."\n\n"; 1115 1072 } 1116 1073 … … 1169 1126 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('UAM_Demotion of %s', stripslashes($username))); 1170 1127 1171 if (isset($conf_UAM[2 5]) and $conf_UAM[25] <> '')1128 if (isset($conf_UAM[24]) and $conf_UAM[24] <> '') 1172 1129 { 1173 1130 // Management of Extension flags ([username], [mygallery], [myurl]) … … 1181 1138 if (function_exists('get_user_language_desc')) 1182 1139 { 1183 $custom_txt = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[2 5]))."\n\n";1184 } 1185 else $custom_txt = l10n(preg_replace($patterns, $replacements, $conf_UAM[2 5]))."\n\n";1140 $custom_txt = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[24]))."\n\n"; 1141 } 1142 else $custom_txt = l10n(preg_replace($patterns, $replacements, $conf_UAM[24]))."\n\n"; 1186 1143 } 1187 1144 … … 1260 1217 $subject = '['.$conf['gallery_title'].'] '.l10n_args(get_l10n_args('UAM_Validation of %s', stripslashes($result['username']))); 1261 1218 1262 if (isset($conf_UAM[2 8]) and $conf_UAM[28] <> '')1219 if (isset($conf_UAM[27]) and $conf_UAM[27] <> '') 1263 1220 { 1264 1221 // Management of Extension flags ([username], [mygallery], [myurl]) … … 1272 1229 if (function_exists('get_user_language_desc')) 1273 1230 { 1274 $custom_txt = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[2 8]))."\n\n";1275 } 1276 else $custom_txt = l10n(preg_replace($patterns, $replacements, $conf_UAM[2 8]))."\n\n";1231 $custom_txt = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[27]))."\n\n"; 1232 } 1233 else $custom_txt = l10n(preg_replace($patterns, $replacements, $conf_UAM[27]))."\n\n"; 1277 1234 } 1278 1235 … … 1365 1322 1366 1323 // Set user unvalidated status 1367 if (!is_admin() and $conf_UAM[ 8] <> -1)1324 if (!is_admin() and $conf_UAM[7] <> -1) 1368 1325 { 1369 1326 $query = " 1370 1327 UPDATE ".USER_INFOS_TABLE." 1371 SET status = '".$conf_UAM[ 8]."'1328 SET status = '".$conf_UAM[7]."' 1372 1329 WHERE user_id = '".$user_id."' 1373 1330 ;"; … … 1416 1373 pwg_query($query); 1417 1374 1418 if (!is_admin() and $conf_UAM[ 8] <> -1)1375 if (!is_admin() and $conf_UAM[7] <> -1) 1419 1376 { 1420 1377 $query = " 1421 1378 UPDATE ".USER_INFOS_TABLE." 1422 SET status = '".$conf_UAM[ 8]."'1379 SET status = '".$conf_UAM[7]."' 1423 1380 WHERE user_id = '".$user_id."' 1424 1381 ;"; … … 1852 1809 $conf_UAM = unserialize($conf['UserAdvManager']); 1853 1810 1854 if (isset($login) and isset($conf_UAM[ 7]) and $conf_UAM[7] <> '')1855 { 1856 $conf_CharExclusion = preg_split("/,/",$conf_UAM[ 7]);1811 if (isset($login) and isset($conf_UAM[6]) and $conf_UAM[6] <> '') 1812 { 1813 $conf_CharExclusion = preg_split("/,/",$conf_UAM[6]); 1857 1814 for ($i = 0 ; $i < count($conf_CharExclusion) ; $i++) 1858 1815 { … … 1886 1843 $conf_UAM = unserialize($conf['UserAdvManager']); 1887 1844 1888 if (isset($email) and isset($conf_UAM[1 2]) and $conf_UAM[12] <> '')1845 if (isset($email) and isset($conf_UAM[11]) and $conf_UAM[11] <> '') 1889 1846 { 1890 $conf_MailExclusion = preg_split("/[\s,]+/",$conf_UAM[1 2]);1847 $conf_MailExclusion = preg_split("/[\s,]+/",$conf_UAM[11]); 1891 1848 for ($i = 0 ; $i < count($conf_MailExclusion) ; $i++) 1892 1849 { … … 1940 1897 OR TO_DAYS(NOW()) - TO_DAYS(ui.registration_date) < "'.$conf_UAM_ConfirmMail[1].'")'; 1941 1898 1942 if ($conf_UAM[2] <> '-1' and $conf_UAM[ 8] == '-1')1899 if ($conf_UAM[2] <> '-1' and $conf_UAM[7] == '-1') 1943 1900 { 1944 1901 $query.= ' 1945 1902 AND ug.group_id = '.$conf_UAM[2]; 1946 1903 } 1947 if ($conf_UAM[2] == '-1' and $conf_UAM[ 8] <> '-1')1904 if ($conf_UAM[2] == '-1' and $conf_UAM[7] <> '-1') 1948 1905 { 1949 1906 $query.= ' 1950 AND ui.status = \''.$conf_UAM[ 8]."'";1951 } 1952 if ($conf_UAM[2] <> '-1' and $conf_UAM[ 8] <> '-1')1907 AND ui.status = \''.$conf_UAM[7]."'"; 1908 } 1909 if ($conf_UAM[2] <> '-1' and $conf_UAM[7] <> '-1') 1953 1910 { 1954 1911 $query.= ' … … 2063 2020 INNER JOIN '.USER_LASTVISIT_TABLE.' AS lv 2064 2021 ON u.'.$conf['user_fields']['id'].' = lv.user_id 2065 WHERE (TO_DAYS(NOW()) - TO_DAYS(lv.lastvisit) >= "'.$conf_UAM[1 7].'")2022 WHERE (TO_DAYS(NOW()) - TO_DAYS(lv.lastvisit) >= "'.$conf_UAM[16].'") 2066 2023 ORDER BY lv.lastvisit ASC;'; 2067 2024 … … 2108 2065 INNER JOIN '.USER_LASTVISIT_TABLE.' AS lv 2109 2066 ON u.'.$conf['user_fields']['id'].' = lv.user_id 2110 WHERE (TO_DAYS(NOW()) - TO_DAYS(lv.lastvisit) >= "'.$conf_UAM[1 7].'")2067 WHERE (TO_DAYS(NOW()) - TO_DAYS(lv.lastvisit) >= "'.$conf_UAM[16].'") 2111 2068 ORDER BY lv.lastvisit ASC;'; 2112 2069 … … 2540 2497 2541 2498 /** 2542 * Called from UAM_CheckEmptyCommentAuthor()2543 * Checks if comment's author name is in the allowed group2544 *2545 * @author : author's name2546 *2547 * @returns : Boolean (true is user is allowed to post / false if not allowed)2548 *2549 */2550 function UAM_CheckAuthor($author)2551 {2552 global $conf;2553 2554 // Get UAM configuration2555 $conf_UAM = unserialize($conf['UserAdvManager']);2556 2557 if (isset($conf_UAM[37]) and $conf_UAM[37] <> -1)2558 {2559 $query = '2560 SELECT u.id,2561 u.username,2562 ug.user_id,2563 ug.group_id2564 FROM '.USERS_TABLE.' AS u2565 INNER JOIN '.USER_GROUP_TABLE.' AS ug2566 ON u.id = ug.user_id2567 WHERE u.username LIKE "'.$author.'"2568 AND ug.group_id = '.$conf_UAM[37].'2569 ;';2570 2571 $count = pwg_db_num_rows(pwg_query($query));2572 2573 if (is_null($count) or $count == 0)2574 {2575 return false;2576 }2577 else2578 return true;2579 }2580 }2581 2582 2583 /**2584 2499 * Useful for debugging - 4 vars can be set 2585 2500 * Output result to log.txt file -
extensions/UserAdvManager/branches/2.20/include/upgradedb.inc.php
r10958 r11019 110 110 111 111 The admin of the gallery.'; 112 113 $query = ' 114 UPDATE '.CONFIG_TABLE.' 115 SET value="'.$upgrade_UAM.'" 116 WHERE param="nbc_UserAdvManager" 117 LIMIT 1 118 ;'; 119 pwg_query($query); 112 113 conf_update_param('nbc_UserAdvManager', pwg_db_real_escape_string($upgrade_UAM)); 120 114 } 121 115 … … 155 149 $upgrade_UAM = $conf_UAM[0].';'.$conf_UAM[1].';'.$conf_UAM[2].';'.$conf_UAM[3].';'.$conf_UAM[4].';'.$conf_UAM[5].';'.$conf_UAM[6].';'.$conf_UAM[7].';'.$conf_UAM[8].';'.$conf_UAM[9].';'.$conf_UAM[10].';'.$conf_UAM[11].';'.$conf_UAM[12].';'.$conf_UAM[13].';'.$conf_UAM[14].';'.$conf_UAM[15].';'.$conf_UAM[16].';'.$conf_UAM[17].';'.$conf_UAM[18].';'.$conf_UAM[19].';false'; 156 150 157 $query = ' 158 UPDATE '.CONFIG_TABLE.' 159 SET value="'.$upgrade_UAM.'" 160 WHERE param="nbc_UserAdvManager" 161 LIMIT 1 162 ;'; 163 pwg_query($query); 151 conf_update_param('nbc_UserAdvManager', pwg_db_real_escape_string($upgrade_UAM)); 164 152 165 153 upgrade_213_214(); … … 189 177 $data = explode(';', $conf['nbc_UserAdvManager_ConfirmMail']); 190 178 191 $query = ' 192 UPDATE '.CONFIG_TABLE.' 193 SET value = "'.pwg_db_real_escape_string(serialize($data)).'" 194 WHERE param = "nbc_UserAdvManager_ConfirmMail" 195 ;'; 196 pwg_query($query); 179 conf_update_param('nbc_UserAdvManager_ConfirmMail', pwg_db_real_escape_string(serialize($data))); 197 180 198 181 upgrade_214_215(); … … 238 221 239 222 $update_conf = serialize($conf_ConfirmMail); 240 241 $query = ' 242 UPDATE '.CONFIG_TABLE.' 243 SET value="'.pwg_db_real_escape_string($update_conf).'" 244 WHERE param="UserAdvManager_ConfirmMail" 245 LIMIT 1 246 ;'; 247 248 pwg_query($query); 249 250 upgrade_2153_2154(); 223 224 conf_update_param('UserAdvManager_ConfirmMail', pwg_db_real_escape_string($update_conf)); 225 226 upgrade_2153_2154(); 251 227 } 252 228 … … 294 270 295 271 $update_conf = serialize($Newconf_UAM); 296 297 $query = ' 298 UPDATE '.CONFIG_TABLE.' 299 SET value="'.pwg_db_real_escape_string($update_conf).'" 300 WHERE param="UserAdvManager" 301 LIMIT 1 302 ;'; 303 304 pwg_query($query); 272 273 conf_update_param('UserAdvManager', pwg_db_real_escape_string($update_conf)); 305 274 306 275 $query = ' … … 340 309 341 310 $update_conf = serialize($Newconf_UAM); 342 343 $query = ' 344 UPDATE '.CONFIG_TABLE.' 345 SET value="'.pwg_db_real_escape_string($update_conf).'" 346 WHERE param="UserAdvManager" 347 LIMIT 1 348 ;'; 349 350 pwg_query($query); 311 312 conf_update_param('UserAdvManager', pwg_db_real_escape_string($update_conf)); 351 313 352 314 // Insert a new config entry for futur plugin's version check … … 386 348 387 349 $update_conf = serialize($Newconf_UAM); 388 389 $query = ' 390 UPDATE '.CONFIG_TABLE.' 391 SET value="'.pwg_db_real_escape_string($update_conf).'" 392 WHERE param="UserAdvManager" 393 LIMIT 1 394 ;'; 395 396 pwg_query($query); 350 351 conf_update_param('UserAdvManager', pwg_db_real_escape_string($update_conf)); 397 352 398 353 // Create new UAM entry in plugins table … … 443 398 444 399 $update_conf = serialize($Newconf_UAM); 445 446 $query = ' 447 UPDATE '.CONFIG_TABLE.' 448 SET value="'.pwg_db_real_escape_string($update_conf).'" 449 WHERE param="UserAdvManager" 450 LIMIT 1 451 ;'; 452 453 pwg_query($query); 400 401 conf_update_param('UserAdvManager', pwg_db_real_escape_string($update_conf)); 454 402 } 455 403 … … 476 424 477 425 $update_conf = serialize($Newconf_UAM); 478 479 $query = ' 480 UPDATE '.CONFIG_TABLE.' 481 SET value="'.pwg_db_real_escape_string($update_conf).'" 482 WHERE param="UserAdvManager" 483 LIMIT 1 484 ;'; 485 486 pwg_query($query); 426 427 conf_update_param('UserAdvManager', pwg_db_real_escape_string($update_conf)); 428 } 429 430 /* upgrade from 2.20.7 to 2.20.8 */ 431 /* ***************************** */ 432 function upgrade_2207_2208() 433 { 434 global $conf; 435 436 // Upgrading options 437 $query = ' 438 SELECT value 439 FROM '.CONFIG_TABLE.' 440 WHERE param = "UserAdvManager" 441 ;'; 442 443 $result = pwg_query($query); 444 $conf_UAM = pwg_db_fetch_assoc($result); 445 446 $Newconf_UAM = unserialize($conf_UAM['value']); 447 448 // Refactoring all configuration options 449 $Newconf_UAM[0] = $Newconf_UAM[0]; 450 $Newconf_UAM[1] = $Newconf_UAM[1]; 451 $Newconf_UAM[2] = $Newconf_UAM[2]; 452 $Newconf_UAM[3] = $Newconf_UAM[3]; 453 $Newconf_UAM[4] = $Newconf_UAM[4]; 454 $Newconf_UAM[5] = $Newconf_UAM[6]; //remove osolete anonymus comments option 455 $Newconf_UAM[6] = $Newconf_UAM[7]; 456 $Newconf_UAM[7] = $Newconf_UAM[8]; 457 $Newconf_UAM[8] = $Newconf_UAM[9]; 458 $Newconf_UAM[9] = $Newconf_UAM[10]; 459 $Newconf_UAM[10] = $Newconf_UAM[11]; 460 $Newconf_UAM[11] = $Newconf_UAM[12]; 461 $Newconf_UAM[12] = $Newconf_UAM[13]; 462 $Newconf_UAM[13] = $Newconf_UAM[14]; 463 $Newconf_UAM[14] = $Newconf_UAM[15]; 464 $Newconf_UAM[15] = $Newconf_UAM[16]; 465 $Newconf_UAM[16] = $Newconf_UAM[17]; 466 $Newconf_UAM[17] = $Newconf_UAM[18]; 467 $Newconf_UAM[18] = $Newconf_UAM[19]; 468 $Newconf_UAM[19] = $Newconf_UAM[20]; 469 $Newconf_UAM[20] = $Newconf_UAM[21]; 470 $Newconf_UAM[21] = $Newconf_UAM[22]; 471 $Newconf_UAM[22] = $Newconf_UAM[23]; 472 $Newconf_UAM[23] = $Newconf_UAM[24]; 473 $Newconf_UAM[24] = $Newconf_UAM[25]; 474 $Newconf_UAM[25] = $Newconf_UAM[26]; 475 $Newconf_UAM[26] = $Newconf_UAM[27]; 476 $Newconf_UAM[27] = $Newconf_UAM[28]; 477 $Newconf_UAM[28] = $Newconf_UAM[29]; 478 $Newconf_UAM[29] = $Newconf_UAM[30]; 479 $Newconf_UAM[30] = $Newconf_UAM[31]; 480 $Newconf_UAM[31] = $Newconf_UAM[32]; 481 $Newconf_UAM[32] = $Newconf_UAM[33]; 482 $Newconf_UAM[33] = $Newconf_UAM[34]; 483 $Newconf_UAM[34] = $Newconf_UAM[35]; 484 485 // unset obsolete conf 486 unset ($Newconf_UAM[35]); 487 unset ($Newconf_UAM[36]); 488 unset ($Newconf_UAM[37]); 489 490 $update_conf = serialize($Newconf_UAM); 491 492 conf_update_param('UserAdvManager', pwg_db_real_escape_string($update_conf)); 487 493 } 488 494 ?> -
extensions/UserAdvManager/branches/2.20/language/de_DE/help/plugin.lang.php
r10958 r11019 47 47 $lang['UAM_lastvisitTitle'] = 'Tracking registrierte Benutzer'; 48 48 $lang['UAM_lastvisitTitle_d'] = 'Dies aktiviert einen Tisch in der "Tracking users"-Reiter, die Mitglieder der Galerie aufgeführt sind und zum Zeitpunkt ihres letzten Besuch und verbrachte Zeit (Tage) seit ihrem letzten Besuch. Die Überwachung ist rein informativ für den Administrator der Galerie.'; 49 $lang['UAM_commentTitle'] = 'Nickname obligatorisch für Gäste Kommentare';50 $lang['UAM_commentTitle_d'] = 'Wenn "Kommentare für alle" aktiv ist (Behörde für unregistrierte Besucher Kommentare post), ermöglicht diese Option, um den nicht registrierten Besucher zu zwingen, ein Spitzname, der Kommentar ist willkommen in Kraft.';51 49 $lang['UAM_tipsTitle'] = 'Tipps und Beispiele'; 52 50 $lang['UAM_tipsTitle_d'] = 'Tipps und verschiedene Anwendungsbeispiele'; … … 285 283 /*TODO*/$lang['UAM_HidePasswTitle_d'] = 'Choose here if you want to display the password chosen by the visitor in the information email. If you enable the option, the password will then appear in clear text. If you disable the password will not appear at all.'; 286 284 // --------- End: New or revised $lang ---- from version 2.20.4 287 288 289 // --------- Starting below: New or revised $lang ---- from version 2.20.7290 $lang['UAM_GroupCommTitle'] = 'Kommentare zulassen, um eine Gruppe von Benutzern';291 /*TODO*/$lang['UAM_GroupCommTitle_d'] = 'This option lets you specify a group of users who will allowed to post comments when the gallery is configured to not allow comments for all.292 <br><br>293 By default, when "comments for all" option is disabled, only registered users can post comments. With this option, you can restrict this behavior by specifying a user group. Thus, only registered users and members of this group may post comments.';294 // --------- End: New or revised $lang ---- from version 2.20.7295 285 ?> -
extensions/UserAdvManager/branches/2.20/language/de_DE/plugin.lang.php
r10958 r11019 28 28 $lang['UAM_Err_audit_email_forbidden'] = '<b>Dieses Konto verwendet eine E-Mail-Anbieter sind untersagt:</b> '; 29 29 $lang['UAM_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'; 30 $lang['UAM_Empty Author'] = 'Der Autor Feld müssen ausgefüllt werden um einen Kommentar zu schicken.';31 30 $lang['UAM_reg_err_login2'] = 'Benutzername muss nicht die folgenden Zeichen übereinstimmen: '; 32 31 $lang['UAM_reg_err_login5'] = 'Ihre E-Mail-Anbieter für die Registrierung ist verboten. Gebannten E-Mail-Anbieter sind: '; … … 144 143 $lang['UAM_GhostTracker_ReminderText'] = 'Anpassen der Geist Tracker Erinnerungs-Nachricht'; 145 144 $lang['UAM_LastVisit'] = ' Tracking registrierte Benutzer'; 146 $lang['UAM_No_Comment_Anonymous'] = 'Nickname obligatorisch für Gäste Kommentare';147 145 148 146 $lang['UAM_Tab_UserManager'] = 'Tracking Validierungen'; … … 330 328 $lang['UAM_HidePassw'] = 'Passwort im Klartext in der Informations-E-Mail'; 331 329 // --------- End: New or revised $lang ---- from version 2.20.4 332 333 334 // --------- Starting below: New or revised $lang ---- from version 2.20.7335 $lang['UAM_Group_Comments'] = 'Kommentare zulassen um eine Gruppe von Benutzern';336 $lang['UAM_AllowedComm_Group'] = 'Wählen Sie die Gruppe von Benutzern gestattet Kommentare anzulegen:';337 $lang['UAM_Not_Allowed_Author'] = 'Entschuldigung, Sie sind nicht befugt einen Kommentar abzugeben. Bitte kontaktieren Sie den Administrator der Website.';338 // --------- End: New or revised $lang ---- from version 2.20.7339 330 ?> -
extensions/UserAdvManager/branches/2.20/language/en_UK/help/plugin.lang.php
r10958 r11019 47 47 $lang['UAM_lastvisitTitle'] = 'Tracking registered users'; 48 48 $lang['UAM_lastvisitTitle_d'] = 'This activates a table in the "Tracking users" tab which are registered users listed on the gallery and the date of their last visit and time spent (in days) since their last visit. Monitoring is purely informative for the administrator of the gallery.'; 49 $lang['UAM_commentTitle'] = 'Nickname mandatory for guests comments';50 $lang['UAM_commentTitle_d'] = 'If "Comments for All" is active (authority to unregistered visitors to post comments), this option allows to force the non-registered visitor to enter a nickname that the comment is accepted.';51 49 $lang['UAM_tipsTitle'] = 'Tips and Examples'; 52 50 $lang['UAM_tipsTitle_d'] = 'Tips and various examples of use'; … … 285 283 $lang['UAM_HidePasswTitle_d'] = 'Choose here if you want to display the password chosen by the visitor in the information email. If you enable the option, the password will then appear in clear text. If you disable the password will not appear at all.'; 286 284 // --------- End: New or revised $lang ---- from version 2.20.4 287 288 289 // --------- Starting below: New or revised $lang ---- from version 2.20.7290 $lang['UAM_GroupCommTitle'] = 'Allow comments to a group of users';291 $lang['UAM_GroupCommTitle_d'] = 'This option lets you specify a group of users who will allowed to post comments when the gallery is configured to not allow comments for all.292 <br><br>293 By default, when "comments for all" option is disabled, only registered users can post comments. With this option, you can restrict this behavior by specifying a user group. Thus, only registered users and members of this group may post comments.';294 // --------- End: New or revised $lang ---- from version 2.20.7295 285 ?> -
extensions/UserAdvManager/branches/2.20/language/en_UK/plugin.lang.php
r10958 r11019 27 27 $lang['UAM_Err_audit_email_forbidden'] = '<b>This account uses a forbidden email provider :</b> '; 28 28 $lang['UAM_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'; 29 $lang['UAM_Empty Author'] = 'The author field have to be filled to send a comment.';30 29 $lang['UAM_reg_err_login2'] = 'Username does not have to match the following characters: '; 31 30 $lang['UAM_reg_err_login5'] = 'Your email provider is banned for registration. Banned email providers are: '; … … 143 142 $lang['UAM_GhostTracker_ReminderText'] = 'Customizing Ghost Tracker\'s reminder message'; 144 143 $lang['UAM_LastVisit'] = ' Tracking registered users'; 145 $lang['UAM_No_Comment_Anonymous'] = 'Nickname mandatory for guests comments';146 144 147 145 $lang['UAM_Tab_UserManager'] = 'Tracking validations'; … … 332 330 $lang['UAM_HidePassw'] = 'Password in clear text in the information email'; 333 331 // --------- End: New or revised $lang ---- from version 2.20.4 334 335 336 // --------- Starting below: New or revised $lang ---- from version 2.20.7337 $lang['UAM_Group_Comments'] = 'Allow comments to a group of users';338 $lang['UAM_AllowedComm_Group'] = 'Select the group of users allowed to post comments:';339 $lang['UAM_Not_Allowed_Author'] = 'Sorry, you are not authorized to post a comment. Please contact the site administrator.';340 // --------- End: New or revised $lang ---- from version 2.20.7341 332 ?> -
extensions/UserAdvManager/branches/2.20/language/es_ES/help/plugin.lang.php
r10958 r11019 47 47 $lang['UAM_lastvisitTitle'] = 'Seguimiento de usuarios registrados'; 48 48 $lang['UAM_lastvisitTitle_d'] = 'Esto activa una tabla de "Seguimiento de los usuarios" ficha de matriculación de los usuarios que aparecen en la galería y la fecha de su última visita y el tiempo (en días) desde su última visita. El seguimiento es meramente informativo para el administrador de la galería.'; 49 $lang['UAM_commentTitle'] = 'Nickname obligatorio para los comentarios de los huéspedes';50 $lang['UAM_commentTitle_d'] = 'Si "Comentarios para Todos" está activo (a los visitantes no registrados para enviar comentarios), esta opción permite forzar el visitante no registrado para ingresar un apodo para que se acepta el comentario.';51 49 $lang['UAM_tipsTitle'] = 'Consejos y ejemplos'; 52 50 $lang['UAM_tipsTitle_d'] = 'Consejos y diversos ejemplos de uso de'; … … 281 279 /*TODO*/$lang['UAM_HidePasswTitle_d'] = 'Choose here if you want to display the password chosen by the visitor in the information email. If you enable the option, the password will then appear in clear text. If you disable the password will not appear at all.'; 282 280 // --------- End: New or revised $lang ---- from version 2.20.4 283 284 285 // --------- Starting below: New or revised $lang ---- from version 2.20.7286 /*TODO*/$lang['UAM_GroupCommTitle'] = 'Allow comments to a group of users';287 /*TODO*/$lang['UAM_GroupCommTitle_d'] = 'This option lets you specify a group of users who will allowed to post comments when the gallery is configured to not allow comments for all.288 <br><br>289 By default, when "comments for all" option is disabled, only registered users can post comments. With this option, you can restrict this behavior by specifying a user group. Thus, only registered users and members of this group may post comments.';290 // --------- End: New or revised $lang ---- from version 2.20.7291 281 ?> -
extensions/UserAdvManager/branches/2.20/language/es_ES/plugin.lang.php
r10958 r11019 28 28 $lang['UAM_Err_audit_email_forbidden'] = '<b>Esta cuenta utiliza un proveedor de correo electrónico prohibido:</b> '; 29 29 $lang['UAM_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'; 30 $lang['UAM_Empty Author'] = 'El campo de autor tienen que ser llenados para enviar un comentario.';31 30 $lang['UAM_reg_err_login2'] = 'El nombre de usuario no puede coincidir con los siguientes caracteres: '; 32 31 $lang['UAM_reg_err_login5'] = 'Su proveedor de correo electrónico está prohibido para el registro. Proveedores de correo electrónico en veda son: '; … … 145 144 $lang['UAM_GhostTracker_ReminderText'] = 'Personalización del mensaje recordatorio de Ghost Tracker'; 146 145 $lang['UAM_LastVisit'] = ' Seguimiento de usuarios registrados'; 147 $lang['UAM_No_Comment_Anonymous'] = 'Nickname obligatorio para los comentarios de los huéspedes';148 146 149 147 $lang['UAM_Tab_UserManager'] = 'Seguimiento de las validaciones'; … … 370 368 $lang['UAM_HidePassw'] = 'Contraseña en texto claro en la información del correo electrónico'; 371 369 // --------- End: New or revised $lang ---- from version 2.20.4 372 373 374 // --------- Starting below: New or revised $lang ---- from version 2.20.7375 /*TODO*/$lang['UAM_Group_Comments'] = 'Allow comments to a group of users';376 /*TODO*/$lang['UAM_AllowedComm_Group'] = 'Select the group of users allowed to post comments:';377 /*TODO*/$lang['UAM_Not_Allowed_Author'] = 'Sorry, you are not authorized to post a comment. Please contact the site administrator.';378 // --------- End: New or revised $lang ---- from version 2.20.7379 370 ?> -
extensions/UserAdvManager/branches/2.20/language/fr_FR/help/plugin.lang.php
r10958 r11019 46 46 $lang['UAM_lastvisitTitle'] = 'Suivi des utilisateurs inscrits'; 47 47 $lang['UAM_lastvisitTitle_d'] = 'Cette option active, dans l\'onglet "Suivi des utilisateurs", un tableau recensant les utilisateurs inscrits, la date de leur dernière visite et le nombre de jours écoulés depuis leur dernière visite. Il s\'agit d\'un suivi purement informatif pour l\'administrateur de la galerie.'; 48 $lang['UAM_commentTitle'] = 'Commentaires : pseudo obligatoire pour les non-inscrits.';49 $lang['UAM_commentTitle_d'] = 'Lorsque les visiteurs non inscrits sont autorisés à poster des commentaires ("Commentaires pour tous" actif), cette option oblige le visiteur non inscrit à saisir un pseudo pour que le commentaire soit accepté.';50 48 $lang['UAM_tipsTitle'] = 'Astuces et exemples'; 51 49 $lang['UAM_tipsTitle_d'] = 'Astuces et exemples divers d\'utilisation'; … … 281 279 $lang['UAM_HidePasswTitle_d'] = 'Choisissez ici si vous souhaitez faire afficher le mot de passe choisi par le visiteur dans le mail d\'information. Si vous activez l\'option, le mot de passe apparaitra alors en clair. Si vous la désactivez, le mot de passe n\'apparaitra pas du tout.'; 282 280 // --------- End: New or revised $lang ---- from version 2.20.4 283 284 285 // --------- Starting below: New or revised $lang ---- from version 2.20.7286 $lang['UAM_GroupCommTitle'] = 'Autoriser les commentaires pour un groupe d\'utilisateurs';287 $lang['UAM_GroupCommTitle_d'] = 'Cette option permet de spécifier un groupe d\'utilisateurs qui seront autorisés à poster des commentaires lorsque la galerie est configurée pour ne pas autoriser les commentaires pour tous.288 <br><br>289 Par défaut, lorsque les "commentaires pour tous" sont désactivés, seuls les utilisateurs inscrits peuvent poster des commentaires. Avec cette option, vous pouvez restreindre d\'avantage ce fonctionnement en précisant un groupe d\'utilisateurs. Ainsi, seuls les utilisateurs inscrits et faisant partie de ce groupe pourront poster des commentaires.';290 // --------- End: New or revised $lang ---- from version 2.20.7291 281 ?> -
extensions/UserAdvManager/branches/2.20/language/fr_FR/plugin.lang.php
r10958 r11019 27 27 $lang['UAM_Err_audit_email_forbidden'] = '<b>Ce compte contient des domaines de messagerie interdit :</b> '; 28 28 $lang['UAM_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>'; 29 $lang['UAM_Empty Author'] = 'Le champs auteur doit être rempli pour enregistrer un commentaire.';30 29 $lang['UAM_reg_err_login2'] = 'le nom utilisateur ne doit pas contenir les caractère suivants : '; 31 30 $lang['UAM_reg_err_login5'] = 'L\'adresse email est issue d\'un prestataire interdit. Les prestataires d\'adresses email interdits à l\'inscription sont : '; … … 144 143 $lang['UAM_GhostTracker_ReminderText'] = 'Texte de rappel personnalisé'; 145 144 $lang['UAM_LastVisit'] = ' Suivi des utilisateurs inscrits'; 146 $lang['UAM_No_Comment_Anonymous'] = 'Commentaires : pseudo obligatoire pour les non-inscrits';147 145 148 146 $lang['UAM_Tab_UserManager'] = 'Suivi des validations'; … … 331 329 $lang['UAM_HidePassw'] = 'Mot de passe en clair dans le mail d\'information'; 332 330 // --------- End: New or revised $lang ---- from version 2.20.4 333 334 335 // --------- Starting below: New or revised $lang ---- from version 2.20.7336 $lang['UAM_Group_Comments'] = 'Autoriser les commentaires pour un groupe d\'utilisateurs';337 $lang['UAM_AllowedComm_Group'] = 'Sélectionnez le groupe d\'utilisateurs autorisé à poster des commentaires :';338 $lang['UAM_Not_Allowed_Author'] = 'Désolé, vous n\'êtes pas autorisé à poster un commentaire. Veuillez contacter l\'administrateur du site.';339 // --------- End: New or revised $lang ---- from version 2.20.7340 331 ?> -
extensions/UserAdvManager/branches/2.20/language/it_IT/help/plugin.lang.php
r10958 r11019 47 47 /* TODO */$lang['UAM_lastvisitTitle'] = 'Tracking registered users'; 48 48 /* TODO */$lang['UAM_lastvisitTitle_d'] = 'This activates a table in the "Tracking users" tab which are registered users listed on the gallery and the date of their last visit and time spent (in days) since their last visit. Monitoring is purely informative for the administrator of the gallery.'; 49 /* TODO */$lang['UAM_commentTitle'] = 'Nickname mandatory for guests comments';50 /* TODO */$lang['UAM_commentTitle_d'] = 'If "Comments for All" is active (authority to unregistered visitors to post comments), this option allows to force the non-registered visitor to enter a nickname that the comment is accepted.';51 49 /* TODO */$lang['UAM_tipsTitle'] = 'Tips and Examples'; 52 50 /* TODO */$lang['UAM_tipsTitle_d'] = 'Tips and various examples of use'; … … 272 270 /*TODO*/$lang['UAM_HidePasswTitle_d'] = 'Choose here if you want to display the password chosen by the visitor in the information email. If you enable the option, the password will then appear in clear text. If you disable the password will not appear at all.'; 273 271 // --------- End: New or revised $lang ---- from version 2.20.4 274 275 276 // --------- Starting below: New or revised $lang ---- from version 2.20.7277 /*TODO*/$lang['UAM_GroupCommTitle'] = 'Allow comments to a group of users';278 /*TODO*/$lang['UAM_GroupCommTitle_d'] = 'This option lets you specify a group of users who will allowed to post comments when the gallery is configured to not allow comments for all.279 <br><br>280 By default, when "comments for all" option is disabled, only registered users can post comments. With this option, you can restrict this behavior by specifying a user group. Thus, only registered users and members of this group may post comments.';281 // --------- End: New or revised $lang ---- from version 2.20.7282 272 ?> -
extensions/UserAdvManager/branches/2.20/language/it_IT/plugin.lang.php
r10958 r11019 27 27 $lang['UAM_Err_audit_email_forbidden'] = '<b>Questo conto utente usa un dominio d\'Email proibito:</b> '; 28 28 $lang['UAM_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'; 29 $lang['UAM_Empty Author'] = 'Il campo autore deve essere riempito per potere inviare un commento.';30 29 $lang['UAM_reg_err_login2'] = 'Nome utente non deve contenere in caratteri seguenti: '; 31 30 $lang['UAM_reg_err_login5'] = 'Il tuo provider di posta usa dominio d\'Email proibito. I domini preibiti sono i seguenti: '; … … 145 144 $lang['UAM_GhostTracker_ReminderText'] = 'Testo di rilancio personalizzato'; 146 145 $lang['UAM_LastVisit'] = ' Tracciamento utenti registrati'; 147 $lang['UAM_No_Comment_Anonymous'] = 'Commenti : Pseudo obbligatorio per gli ospiti';148 146 149 147 $lang['UAM_Tab_UserManager'] = 'Tracciamento convalide'; … … 329 327 $lang['UAM_HidePassw'] = 'Password in chiaro nelle informazioni e-mail'; 330 328 // --------- End: New or revised $lang ---- from version 2.20.4 331 332 333 // --------- Starting below: New or revised $lang ---- from version 2.20.7334 /*TODO*/$lang['UAM_Group_Comments'] = 'Allow comments to a group of users';335 /*TODO*/$lang['UAM_AllowedComm_Group'] = 'Select the group of users allowed to post comments:';336 /*TODO*/$lang['UAM_Not_Allowed_Author'] = 'Sorry, you are not authorized to post a comment. Please contact the site administrator.';337 // --------- End: New or revised $lang ---- from version 2.20.7338 329 ?> -
extensions/UserAdvManager/branches/2.20/language/lv_LV/help/plugin.lang.php
r10958 r11019 53 53 $lang['UAM_lastvisitTitle'] = 'Reģistrēto lietotāju izsekošana (Tracking)'; 54 54 $lang['UAM_lastvisitTitle_d'] = 'Šis aktivē tabulu "Tracking users" iezīmē (tabā), kurā reģistrēti galeriju apmeklējušie lietotāji, viņu pēdējā apmeklējuma datums, kā arī galerijā pavadītais laiks (dienās) kopš pēdējā apmeklējuma. Monitoringam ir tīri informatīvs raksturs galerijas administratora vajadzībām.'; 55 $lang['UAM_commentTitle'] = 'Viesa komentāriem obligāts Nickname (segvārds)';56 $lang['UAM_commentTitle_d'] = 'Ja "Comments for All" (komentāri visiem) ir aktīvs (pilnvaras neriģestrētiem lietotājiem pievienot komentārus), šī opcija dod iespēju piespiest nereģistrētos apmeklētājus lietot segvārdu, lai akceptētu savu komentāru.';57 55 $lang['UAM_tipsTitle'] = 'Padomi un Piemēri'; 58 56 $lang['UAM_tipsTitle_d'] = 'Padomi un dažādi izmantošanas piemēri'; … … 307 305 /*TODO*/$lang['UAM_HidePasswTitle_d'] = 'Choose here if you want to display the password chosen by the visitor in the information email. If you enable the option, the password will then appear in clear text. If you disable the password will not appear at all.'; 308 306 // --------- End: New or revised $lang ---- from version 2.20.4 309 310 311 // --------- Starting below: New or revised $lang ---- from version 2.20.7312 /*TODO*/$lang['UAM_GroupCommTitle'] = 'Allow comments to a group of users';313 /*TODO*/$lang['UAM_GroupCommTitle_d'] = 'This option lets you specify a group of users who will allowed to post comments when the gallery is configured to not allow comments for all.314 <br><br>315 By default, when "comments for all" option is disabled, only registered users can post comments. With this option, you can restrict this behavior by specifying a user group. Thus, only registered users and members of this group may post comments.';316 // --------- End: New or revised $lang ---- from version 2.20.7317 307 ?> -
extensions/UserAdvManager/branches/2.20/language/lv_LV/plugin.lang.php
r10958 r11019 27 27 $lang['UAM_Err_audit_email_forbidden'] = '<b>Šinī kontā izmanots neatļauts e-pasta pakalpojuma sniedzējs :</b> '; 28 28 $lang['UAM_Err_audit_advise'] = '<b>Jums ir jāveic korekcijas, lai panāktu atbilstību jaunajiem nosacījumiem, ko esat aktivizējuši.<br> Izmantojiet datu bāzes pārvaldības rīku, lai koriģētu lietotāja kontus tieši tabulā ###_USERS'; 29 $lang['UAM_Empty Author'] = 'Lai nosūtītu komentāru, ir jābūt aizpildītam autora laukam.';30 29 $lang['UAM_reg_err_login2'] = 'Lietotājvārdam nav jāsakrīt ar sekojošām rakstzīmēm: '; 31 30 $lang['UAM_reg_err_login5'] = 'Jūsu e-pasta pakalpojumu sniedzējam aizliegta reģistrācija. Aizniegtie e-pasta pakalpojumu sniedzēji ir: '; … … 143 142 $lang['UAM_GhostTracker_ReminderText'] = 'Ghost Tracker atgadinājuma ziņojuma pielāgošana'; 144 143 $lang['UAM_LastVisit'] = ' Reģistrēto lietotāju izsekošana'; 145 $lang['UAM_No_Comment_Anonymous'] = 'Viesu komentāriem iesauka (Nickname) obligāta';146 144 147 145 $lang['UAM_Tab_UserManager'] = 'Apstiprinājumu izsekošana'; … … 367 365 /*TODO*/$lang['UAM_HidePassw'] = 'Clear password in information email'; 368 366 // --------- End: New or revised $lang ---- from version 2.20.4 369 370 371 // --------- Starting below: New or revised $lang ---- from version 2.20.7372 /*TODO*/$lang['UAM_Group_Comments'] = 'Allow comments to a group of users';373 /*TODO*/$lang['UAM_AllowedComm_Group'] = 'Select the group of users allowed to post comments:';374 /*TODO*/$lang['UAM_Not_Allowed_Author'] = 'Sorry, you are not authorized to post a comment. Please contact the site administrator.';375 // --------- End: New or revised $lang ---- from version 2.20.7376 367 ?> -
extensions/UserAdvManager/branches/2.20/main.inc.php
r10943 r11019 2 2 /* 3 3 Plugin Name: UserAdvManager 4 Version: 2.20. 74 Version: 2.20.8 5 5 Description: Renforcer la gestion des utilisateurs - Enforce users management 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=216 … … 57 57 add_event_handler('init', 'UAM_InitPage'); 58 58 59 // Comment without author60 add_event_handler('user_comment_check', 'UAM_CheckEmptyCommentAuthor', 50, 2);61 62 59 // PWG_Stuffs module 63 if ((isset($conf_UAM[3 4]) and $conf_UAM[34] == 'true'))60 if ((isset($conf_UAM[33]) and $conf_UAM[33] == 'true')) 64 61 { 65 62 add_event_handler('get_stuffs_modules', 'register_UAM_stuffs_module'); -
extensions/UserAdvManager/branches/2.20/maintain.inc.php
r10958 r11019 14 14 global $conf; 15 15 16 $default1 = array('false','false',-1,-1,-1,'false',' false','',-1,'','','false','','false',100,'false','false',10,'Hello [username].16 $default1 = array('false','false',-1,-1,-1,'false','',-1,'','','false','','false',100,'false','false',10,'Hello [username]. 17 17 18 18 This is a reminder because a very long time passed since your last visit on our gallery [mygallery]. 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. … … 259 259 upgrade_2204_2207(); 260 260 } 261 262 if (version_compare($conf['UserAdvManager_Version'], '2.20.8') < 0) 263 { 264 /* upgrade from version 2.20.7 to 2.20.8 */ 265 /* ************************************* */ 266 upgrade_2207_2208(); 267 } 261 268 } 262 269
Note: See TracChangeset
for help on using the changeset viewer.