Changeset 14918 for extensions/Register_FluxBB
- Timestamp:
- May 12, 2012, 2:54:33 PM (13 years ago)
- Location:
- extensions/Register_FluxBB/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Register_FluxBB/trunk/admin/admin.php
r10977 r14918 621 621 $conf_Register_FluxBB = isset($conf['Register_FluxBB']) ? explode(";" , $conf['Register_FluxBB']) : array(); 622 622 623 // If UAM exists and if UAM ConfirmMail is set, we can set this feature 624 if (function_exists('FindAvailableConfirmMailID')) 625 { 626 $conf_UAM = unserialize($conf['UserAdvManager']); 627 628 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')) 629 { 630 $UAM_bridge = true; 631 } 632 else $UAM_bridge = false; 633 } 634 623 635 $template->assign( 624 636 array … … 635 647 'FluxBB_DETAILS_TRUE' => (isset($conf_Register_FluxBB[5]) and $conf_Register_FluxBB[5] == 'true') ? 'checked="checked"' : '', 636 648 'FluxBB_DETAILS_FALSE' => (isset($conf_Register_FluxBB[5]) and $conf_Register_FluxBB[5] == 'false') ? 'checked="checked"' : '', 649 'UAM_BRIDGE' => $UAM_bridge, 650 'FluxBB_UAM_LINK_TRUE' => (isset($conf_Register_FluxBB[6]) and $conf_Register_FluxBB[6] == 'true') ? 'checked="checked"' : '', 651 'FluxBB_UAM_LINK_FALSE'=> (isset($conf_Register_FluxBB[6]) and $conf_Register_FluxBB[6] == 'false') ? 'checked="checked"' : '', 652 'FluxBB_GROUP' => $conf_Register_FluxBB[7], 637 653 ) 638 654 ); 639 655 640 // If UAM exists and if UAM ConfirmMail is set, we can set this feature641 if (function_exists('FindAvailableConfirmMailID'))642 {643 $conf_UAM = unserialize($conf['UserAdvManager']);644 $UAM_bridge = false;645 646 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')647 {648 $UAM_bridge = true;649 }650 651 $template->assign(652 array653 (654 'UAM_BRIDGE' => $UAM_bridge,655 'FluxBB_UAM_LINK_TRUE' => (isset($conf_Register_FluxBB[6]) and $conf_Register_FluxBB[6] == 'true') ? 'checked="checked"' : '',656 'FluxBB_UAM_LINK_FALSE' => (isset($conf_Register_FluxBB[6]) and $conf_Register_FluxBB[6] == 'false') ? 'checked="checked"' : '',657 'FluxBB_GROUP' => $conf_Register_FluxBB[7],658 )659 );660 }661 662 656 $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/template/manage.tpl'); 663 657 $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); -
extensions/Register_FluxBB/trunk/include/functions.inc.php
r9885 r14918 121 121 ;"; 122 122 123 $o_ default_user_group = pwg_db_fetch_assoc(pwg_query($query));123 $o_user_group = pwg_db_fetch_assoc(pwg_query($query)); 124 124 125 125 $query = " 126 126 UPDATE ".FluxBB_USERS_TABLE." 127 SET group_id = ".$o_ default_user_group['conf_value']."127 SET group_id = ".$o_user_group['conf_value']." 128 128 WHERE id = ".FluxBB_Searchuser($user['id'])." 129 129 ;"; … … 311 311 { 312 312 $query = " 313 SELECT id_user_FluxBB, id_user_pwg FROM ".Register_FluxBB_ID_TABLE." 313 SELECT id_user_FluxBB, id_user_pwg 314 FROM ".Register_FluxBB_ID_TABLE." 314 315 WHERE id_user_pwg = ".$id_user_pwg." 315 316 LIMIT 1 -
extensions/Register_FluxBB/trunk/language/fr_FR/plugin.lang.php
r7982 r14918 129 129 <br>'; 130 130 $lang['About_Reg'] = 'A propos de l\'enregistrement d\'utilisateur sur le forum FluxBB'; 131 $lang['Bridge_UAM'] = 'Validation d\'accès au forum via le plugin UserAdvManager (UAM): Activez ici le pont entre les deux plugins qui vous permettra d\'interdir l\'accès à votre forum FluxBB tant que l\'utilisateur n\'a pas validé son inscription à la galerie (la fonction correspondante doit être active sur UAM).';131 $lang['Bridge_UAM'] = 'Validation d\'accès au forum via le plugin UserAdvManager (UAM): Activez ici le pont entre les deux plugins qui vous permettra d\'interdire l\'accès à votre forum FluxBB tant que l\'utilisateur n\'a pas validé son inscription à la galerie (la fonction correspondante doit être active sur UAM).'; 132 132 $lang['Bridge_UAM_true'] = ' --> Pont Register_FluxBB / UAM activé'; 133 133 $lang['Bridge_UAM_false'] = ' --> Pont Register_FluxBB / UAM désactivé (par défaut)'; -
extensions/Register_FluxBB/trunk/main.inc.php
r10626 r14918 2 2 /* 3 3 Plugin Name: Register FluxBB 4 Version: 2.4. 34 Version: 2.4.4 5 5 Description: Link user registration from Piwigo to FluxBB forum (registration, password changing, deletion) - Original Nicco's NBC_LinkUser2PunBB plugin upgraded to Piwigo / Liez l'inscription des utilisateurs de Piwigo avec votre forum FluxBB - Portage du plugin NBC_LinkUser2PunBB de Nicco vers Piwigo 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=252 … … 81 81 82 82 2.4.3 - 26/04/11 - Small CSS bug fixed 83 84 2.4.4 - 11/05/12 - Small code refactory 85 Compatibility with Piwigo 2.4 and FluxBB 1.5 verifyed 83 86 -------------------------------------------------------------------------------- 84 87 */
Note: See TracChangeset
for help on using the changeset viewer.