Index: /extensions/Register_FluxBB/tags/2.4.2/admin.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/admin.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/admin.php (revision 9985)
@@ -0,0 +1,3 @@
+
Index: /extensions/Register_FluxBB/tags/2.4.2/admin/admin.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/admin/admin.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/admin/admin.php (revision 9985)
@@ -0,0 +1,1119 @@
+add('info',
+ l10n('Tab_Info'),
+ $my_base_url.'&tab=info');
+$tabsheet->add('manage',
+ l10n('Tab_Manage'),
+ $my_base_url.'&tab=manage');
+$tabsheet->add('Migration',
+ l10n('Tab_Migration'),
+ $my_base_url.'&tab=Migration');
+$tabsheet->add('Synchro',
+ l10n('Tab_Synchro'),
+ $my_base_url.'&tab=Synchro');
+$tabsheet->select($page['tab']);
+$tabsheet->assign();
+
+
+$page['infos'] = array();
+$error = array();
+
+// +-----------------------------------------------------------------------+
+// | Getting plugin version |
+// +-----------------------------------------------------------------------+
+$plugin = RegFluxBB_Infos(REGFLUXBB_PATH);
+$version = $plugin['version'] ;
+
+// +-----------------------------------------------------------------------+
+// | Functions
+// +-----------------------------------------------------------------------+
+function Audit_PWG_FluxBB()
+{
+ global $page, $conf, $errors;
+
+ $conf_Register_FluxBB = isset($conf['Register_FluxBB']) ? explode(";" , $conf['Register_FluxBB']) : array();
+
+ $page_Register_FluxBB_admin = get_admin_plugin_menu_link(__FILE__);
+
+
+
+ $msg_error_PWG_Dup = '';
+ $msg_error_FluxBB_Dup = '';
+ $msg_error_Link_Break = '';
+ $msg_error_Link_Bad = '';
+ $msg_error_Synchro = '';
+ $msg_ok_Synchro = '';
+ $msg_error_PWG2FluxBB = '';
+ $msg_error_FluxBB2PWG = '';
+
+
+
+ $query = "
+SELECT COUNT(*) AS nbr_dup, id, username
+FROM ".USERS_TABLE."
+GROUP BY BINARY username
+HAVING COUNT(*) > 1
+;";
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ $msg_error_PWG_Dup .= '
'.l10n('Error_PWG_Dup').$row['nbr_dup'].' x '.stripslashes($row['username']);
+
+ if ($msg_error_PWG_Dup == '')
+ array_push($page['infos'], l10n('Audit_PWG_Dup').'
'.l10n('Audit_OK'));
+ else
+ $msg_error_PWG_Dup = l10n('Audit_PWG_Dup').$msg_error_PWG_Dup.'
'.l10n('Advise_PWG_Dup');
+
+
+
+ $query = "
+SELECT COUNT(*) AS nbr_dup, username
+FROM ".FluxBB_USERS_TABLE."
+GROUP BY BINARY username
+HAVING COUNT(*) > 1
+;";
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ $msg_error_FluxBB_Dup .= '
'.l10n('Error_FluxBB_Dup').$row['nbr_dup'].' x '.stripslashes($row['username']);
+
+ $subquery = "
+SELECT id, username, email
+FROM ".FluxBB_USERS_TABLE."
+WHERE BINARY username = BINARY '".$row['username']."'
+;";
+ $subresult = pwg_query($subquery);
+
+ while($subrow = pwg_db_fetch_assoc($subresult))
+ {
+ $msg_error_FluxBB_Dup .= '
id:'.$subrow['id'].'='.stripslashes($subrow['username']).' ('.$subrow['email'].')';
+
+ $msg_error_FluxBB_Dup .= ' ';
+ }
+ }
+
+ if ($msg_error_FluxBB_Dup == '')
+ array_push($page['infos'], l10n('Audit_FluxBB_Dup').'
'.l10n('Audit_OK'));
+ else
+ $msg_error_FluxBB_Dup = l10n('Audit_FluxBB_Dup').$msg_error_FluxBB_Dup.'
'.l10n('Advise_FluxBB_Dup');
+
+
+
+ $query = "
+SELECT pwg.id as pwg_id, bb.id as bb_id, pwg.username as pwg_user, pwg.mail_address as pwg_mail
+FROM ".FluxBB_USERS_TABLE." AS bb, ".USERS_TABLE." as pwg
+WHERE bb.id NOT in (
+ SELECT id_user_FluxBB
+ FROM ".Register_FluxBB_ID_TABLE."
+ )
+AND pwg.id NOT in (
+ SELECT id_user_pwg
+ FROM ".Register_FluxBB_ID_TABLE."
+ )
+AND pwg.username = bb.username
+AND pwg.mail_address = bb.email
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ $msg_error_Link_Break .= '
'.l10n('Error_Link_Break').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')';
+
+ $msg_error_Link_Break .= ' ';
+ }
+
+ if ($msg_error_Link_Break == '')
+ array_push($page['infos'], l10n('Audit_Link_Break').'
'.l10n('Audit_OK'));
+ else
+ $msg_error_Link_Break = l10n('Audit_Link_Break').$msg_error_Link_Break;
+
+
+
+ $query = "
+SELECT pwg.username as pwg_user, pwg.id as pwg_id, pwg.mail_address as pwg_mail, bb.id as bb_id, bb.username as bb_user, bb.email as bb_mail
+FROM ".FluxBB_USERS_TABLE." AS bb
+INNER JOIN ".Register_FluxBB_ID_TABLE." AS link ON link.id_user_FluxBB = bb.id
+INNER JOIN ".USERS_TABLE." as pwg ON link.id_user_pwg = pwg.id
+WHERE pwg.username <> bb.username
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ $msg_error_Link_Bad .= '
'.l10n('Error_Link_Del').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')'.' -- '.stripslashes($row['bb_user']).' ('.$row['bb_mail'].')';
+
+ $msg_error_Link_Bad .= ' ';
+
+ $msg_error_Link_Bad .= ' -- ';
+ }
+
+
+ $query = "
+SELECT COUNT(*) as nbr_dead
+FROM ".Register_FluxBB_ID_TABLE." AS Link
+WHERE id_user_FluxBB NOT IN (
+ SELECT id
+ FROM ".FluxBB_USERS_TABLE."
+ )
+OR id_user_pwg NOT IN (
+ SELECT id
+ FROM ".USERS_TABLE."
+ )
+;";
+
+ $Compteur = pwg_db_fetch_assoc(pwg_query($query));
+
+ if (!empty($Compteur) and $Compteur['nbr_dead'] > 0)
+ {
+ $msg_error_Link_Bad .= '
'.l10n('Error_Link_Dead').$Compteur['nbr_dead'];
+
+ $msg_error_Link_Bad .= ' ';
+ }
+
+ $query = "
+SELECT COUNT(*) AS nbr_dup, pwg.id AS pwg_id, pwg.username AS pwg_user, bb.username AS bb_user, bb.id AS bb_id
+FROM ".FluxBB_USERS_TABLE." AS bb
+INNER JOIN ".Register_FluxBB_ID_TABLE." AS link ON link.id_user_FluxBB = bb.id
+INNER JOIN ".USERS_TABLE." as pwg ON link.id_user_pwg = pwg.id
+GROUP BY link.id_user_pwg, link.id_user_FluxBB
+HAVING COUNT(*) > 1
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ $msg_error_Link_Bad .= '
'.l10n('Error_Link_Dup').$row['nbr_dup'].' = '.stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).')';
+
+ $msg_error_Link_Bad .= ' ';
+ }
+
+ if ($msg_error_Link_Bad == '')
+ array_push($page['infos'], l10n('Audit_Link_Bad').'
'.l10n('Audit_OK'));
+ else
+ $msg_error_Link_Bad = l10n('Audit_Link_Bad').$msg_error_Link_Bad;
+
+
+
+ $query = "
+SELECT pwg.username as username, pwg.password as pwg_pwd, pwg.mail_address as pwg_eml, FluxBB.password as bb_pwd, FluxBB.email as bb_eml
+FROM ".FluxBB_USERS_TABLE." AS FluxBB
+INNER JOIN ".Register_FluxBB_ID_TABLE." AS link ON link.id_user_FluxBB = FluxBB.id
+INNER JOIN ".USERS_TABLE." as pwg ON link.id_user_pwg = pwg.id
+AND BINARY pwg.username = BINARY FluxBB.username
+ORDER BY LOWER(pwg.username)
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ if ( ($row['pwg_pwd'] != $row['bb_pwd']) or ($row['pwg_eml'] != $row['bb_eml']) )
+ {
+ $msg_error_Synchro .= '
'.l10n('Error_Synchro').stripslashes($row['username']);
+
+ $msg_error_Synchro .= ' ';
+
+ if ($row['pwg_pwd'] != $row['bb_pwd'])
+ $msg_error_Synchro .= '
'.l10n('Error_Synchro_Pswd');
+
+ if ($row['pwg_eml'] != $row['bb_eml'])
+ $msg_error_Synchro .= '
'.l10n('Error_Synchro_Mail').'
-- PWG = '.$row['pwg_eml'].'
-- FluxBB = '.$row['bb_eml'];
+ }
+ else if ($conf_Register_FluxBB[5] == 'true')
+ $msg_ok_Synchro .= '
- '.stripslashes($row['username']).' ('.$row['pwg_eml'].')'.l10n('Audit_Synchro_OK');
+ }
+
+ if ($msg_error_Synchro <> '')
+ $msg_error_Synchro = l10n('Audit_Synchro').$msg_error_Synchro;
+
+ if ($msg_ok_Synchro <> '')
+ if ($msg_error_Synchro <> '')
+ array_push($page['infos'], l10n('Audit_Synchro').$msg_ok_Synchro.'
');
+ else
+ array_push($page['infos'], l10n('Audit_Synchro').$msg_ok_Synchro.'
'.l10n('Audit_OK'));
+
+
+ $query = "
+SELECT username, mail_address FROM ".USERS_TABLE."
+WHERE BINARY username <> BINARY 'guest'
+AND id not in (
+ SELECT id_user_pwg FROM ".Register_FluxBB_ID_TABLE."
+ )
+AND BINARY username not in (
+ SELECT username FROM ".FluxBB_USERS_TABLE."
+ )
+ORDER BY LOWER(username)
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ $msg_error_PWG2FluxBB .= '
'.l10n('Error_PWG2FluxBB').stripslashes($row['username']).' ('.$row['mail_address'].')';
+
+ $msg_error_PWG2FluxBB .= ' ';
+ }
+
+ if ($msg_error_PWG2FluxBB == '')
+ array_push($page['infos'], l10n('Audit_PWG2FluxBB').'
'.l10n('Audit_OK'));
+ else
+ $msg_error_PWG2FluxBB = l10n('Audit_PWG2FluxBB').$msg_error_PWG2FluxBB;
+
+
+
+ $query = "
+SELECT id, username, email FROM ".FluxBB_USERS_TABLE."
+WHERE BINARY username <> BINARY '".$conf_Register_FluxBB[2]."'
+AND id not in (
+ SELECT id_user_FluxBB FROM ".Register_FluxBB_ID_TABLE."
+ )
+AND BINARY username not in (
+ SELECT username FROM ".USERS_TABLE."
+ )
+ORDER BY LOWER(username)
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ $msg_error_FluxBB2PWG .= '
'.l10n('Error_FluxBB2PWG').stripslashes($row['username']).' ('.$row['email'].')';
+
+ $msg_error_FluxBB2PWG .= ' ';
+ }
+
+ if ($msg_error_FluxBB2PWG == '')
+ array_push($page['infos'], l10n('Audit_FluxBB2PWG').'
'.l10n('Audit_OK'));
+ else
+ $msg_error_FluxBB2PWG = l10n('Audit_FluxBB2PWG').$msg_error_FluxBB2PWG;
+
+
+
+ if ($msg_error_PWG_Dup <> '')
+ $errors[] = $msg_error_PWG_Dup . ( ($msg_error_FluxBB_Dup == '' and $msg_error_Link_Break == '' and $msg_error_Link_Bad == '' and $msg_error_Synchro == '' and $msg_error_PWG2FluxBB == '' and $msg_error_FluxBB2PWG == '') ? '' : '
' );
+
+ if ($msg_error_FluxBB_Dup <> '')
+ $errors[] = $msg_error_FluxBB_Dup . ( ($msg_error_Link_Break == '' and $msg_error_Link_Bad == '' and $msg_error_Synchro == '' and $msg_error_PWG2FluxBB == '' and $msg_error_FluxBB2PWG == '') ? '' : '
' );
+
+ if ($msg_error_Link_Break <> '')
+ $errors[] = $msg_error_Link_Break . ( ($msg_error_Link_Bad == '' and $msg_error_Synchro == '' and $msg_error_PWG2FluxBB == '' and $msg_error_FluxBB2PWG == '') ? '' : '
' );
+
+ if ($msg_error_Link_Bad <> '')
+ $errors[] = $msg_error_Link_Bad . ( ($msg_error_Synchro == '' and $msg_error_PWG2FluxBB == '' and $msg_error_FluxBB2PWG == '') ? '' : '
' );
+
+ if ($msg_error_Synchro <> '')
+ $errors[] = $msg_error_Synchro . ( ($msg_error_PWG2FluxBB == '' and $msg_error_FluxBB2PWG == '') ? '' : '
' );
+
+ if ($msg_error_PWG2FluxBB <> '')
+ $errors[] = $msg_error_PWG2FluxBB . ( ($msg_error_FluxBB2PWG == '') ? '' : '
' );
+
+ if ($msg_error_FluxBB2PWG <> '')
+ $errors[] = $msg_error_FluxBB2PWG;
+}
+
+
+
+
+// +-----------------------------------------------------------------------+
+// | Actions process
+// +-----------------------------------------------------------------------+
+
+if (isset($_GET['action']) and ($_GET['action']=='link_dead'))
+{
+ $query = "
+DELETE FROM ".Register_FluxBB_ID_TABLE."
+WHERE id_user_FluxBB NOT IN (
+ SELECT id
+ FROM ".FluxBB_USERS_TABLE."
+ )
+OR id_user_pwg NOT IN (
+ SELECT id
+ FROM ".USERS_TABLE."
+ )
+;";
+
+ $result = pwg_query($query);
+
+ Audit_PWG_FluxBB();
+}
+else if (isset($_GET['action']) and ($_GET['action']=='link_del') and isset($_GET['pwg_id']) and isset($_GET['bb_id']))
+{
+ $query = "
+DELETE FROM ".Register_FluxBB_ID_TABLE."
+WHERE id_user_pwg = ".$_GET['pwg_id']."
+AND id_user_FluxBB = ".$_GET['bb_id']."
+;";
+
+ $result = pwg_query($query);
+
+ Audit_PWG_FluxBB();
+}
+else if (isset($_GET['action']) and ($_GET['action']=='new_link') and isset($_GET['pwg_id']) and isset($_GET['bb_id']))
+{
+ FluxBB_Linkuser($_GET['pwg_id'], $_GET['bb_id']);
+
+ Audit_PWG_FluxBB();
+}
+else if (isset($_GET['action']) and ($_GET['action']=='sync_user') and isset($_GET['username']))
+{
+ $query = "
+SELECT id AS id_pwg, username, password, mail_address
+FROM ".USERS_TABLE."
+WHERE BINARY username = BINARY '".pwg_db_real_escape_string($_GET['username'])."'
+LIMIT 1
+;";
+
+ $data = pwg_db_fetch_assoc(pwg_query($query));
+
+ if (!empty($data))
+ {
+ FluxBB_Updateuser($data['id_pwg'], stripslashes($data['username']), $data['password'], $data['mail_address']);
+ }
+
+ Audit_PWG_FluxBB();
+}
+else if (isset($_GET['action']) and ($_GET['action']=='add_user') and isset($_GET['username']))
+{
+ $query = "
+SELECT id, username, password, mail_address
+FROM ".USERS_TABLE."
+WHERE BINARY username = BINARY '".pwg_db_real_escape_string($_GET['username'])."'
+LIMIT 1
+;";
+
+ $data = pwg_db_fetch_assoc(pwg_query($query));
+
+ if (!empty($data))
+ FluxBB_Adduser($data['id'], stripslashes($data['username']), $data['password'], $data['mail_address']);
+
+ Audit_PWG_FluxBB();
+}
+else if (isset($_GET['action']) and ($_GET['action']=='del_user') and isset($_GET['id']))
+{
+ FluxBB_Deluser( $_GET['id'], true );
+
+ Audit_PWG_FluxBB();
+}
+
+
+// +-----------------------------------------------------------------------+
+// | Tabssheet select |
+// +-----------------------------------------------------------------------+
+
+switch ($page['tab'])
+{
+ case 'info':
+
+ $template->assign(
+ array(
+ 'REGFLUXBB_PATH' => REGFLUXBB_PATH,
+ 'REGFLUXBB_VERSION' => $version,
+ )
+ );
+
+ $template->set_filename('plugin_admin_content', dirname(__FILE__).'/template/info.tpl');
+ $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
+
+ break;
+
+ case 'manage':
+
+ if (isset($_POST['submit']) and isset($_POST['FluxBB_prefix']) and isset($_POST['FluxBB_admin']) and isset($_POST['FluxBB_guest']) and isset($_POST['FluxBB_del_pt']) and isset($_POST['FluxBB_confirm']) and isset($_POST['FluxBB_details']))
+ {
+
+/* Configuration controls */
+// Piwigo's admin username control
+ $query1 = "
+SELECT username, id
+FROM ".USERS_TABLE."
+WHERE id = ".$conf['webmaster_id']."
+;";
+
+ $pwgadmin = pwg_db_fetch_assoc(pwg_query($query1));
+
+// FluxBB's admin username control
+ $query2 = "
+SELECT username, id
+FROM ".FluxBB_USERS_TABLE."
+WHERE id = 2
+;";
+
+ $fbbadmin = pwg_db_fetch_assoc(pwg_query($query2));
+
+// FluxBB's Guest username control
+ $query3 = "
+SELECT username, id
+FROM ".FluxBB_USERS_TABLE."
+WHERE id = 1
+;";
+
+ $fbbguest = pwg_db_fetch_assoc(pwg_query($query3));
+
+// Compute configuration errors
+ if (stripslashes($pwgadmin['username']) != stripslashes($_POST['FluxBB_admin']))
+ {
+ array_push($page['errors'], l10n('error_config_admin1'));
+ }
+ if (stripslashes($pwgadmin['username']) != stripslashes($fbbadmin['username']))
+ {
+ array_push($page['errors'], l10n('error_config_admin2'));
+ }
+ if (stripslashes($fbbguest['username']) != stripslashes($_POST['FluxBB_guest']))
+ {
+ array_push($page['errors'], l10n('error_config_guest'));
+ }
+ elseif (count($page['errors']) == 0)
+ {
+ if (!function_exists('FindAvailableConfirmMailID'))
+ {
+ $conf['Register_FluxBB'] = $_POST['FluxBB_prefix'].';'.addslashes($_POST['FluxBB_admin']).';'.addslashes($_POST['FluxBB_guest']).';'.$_POST['FluxBB_del_pt'].';'.$_POST['FluxBB_confirm'].';'.$_POST['FluxBB_details'].';false;0';
+ }
+ elseif (function_exists('FindAvailableConfirmMailID'))
+ {
+ $conf_UAM = unserialize($conf['UserAdvManager']);
+
+ 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')
+ {
+ $conf['Register_FluxBB'] = $_POST['FluxBB_prefix'].';'.addslashes($_POST['FluxBB_admin']).';'.addslashes($_POST['FluxBB_guest']).';'.$_POST['FluxBB_del_pt'].';'.$_POST['FluxBB_confirm'].';'.$_POST['FluxBB_details'].';'.$_POST['FluxBB_UAM'].';'.$_POST['FluxBB_group'];
+ }
+ else
+ {
+ $conf['Register_FluxBB'] = $_POST['FluxBB_prefix'].';'.addslashes($_POST['FluxBB_admin']).';'.addslashes($_POST['FluxBB_guest']).';'.$_POST['FluxBB_del_pt'].';'.$_POST['FluxBB_confirm'].';'.$_POST['FluxBB_details'].';false;0';
+ }
+ }
+
+ $query = '
+UPDATE '.CONFIG_TABLE.'
+SET value="'.$conf['Register_FluxBB'].'"
+WHERE param="Register_FluxBB"
+LIMIT 1
+;';
+
+ pwg_query($query);
+
+ array_push($page['infos'], l10n('save_config'));
+ }
+ }
+
+ $conf_Register_FluxBB = isset($conf['Register_FluxBB']) ? explode(";" , $conf['Register_FluxBB']) : array();
+
+ $template->assign(
+ array
+ (
+ 'REGFLUXBB_PATH' => REGFLUXBB_PATH,
+ 'REGFLUXBB_VERSION' => $version,
+ 'FluxBB_PREFIX' => $conf_Register_FluxBB[0],
+ 'FluxBB_ADMIN' => stripslashes($conf_Register_FluxBB[1]),
+ 'FluxBB_GUEST' => stripslashes($conf_Register_FluxBB[2]),
+ 'FluxBB_DEL_PT_TRUE' => (isset($conf_Register_FluxBB[3]) and $conf_Register_FluxBB[3] == 'true') ? 'checked="checked"' : '',
+ 'FluxBB_DEL_PT_FALSE' => (isset($conf_Register_FluxBB[3]) and $conf_Register_FluxBB[3] == 'false') ? 'checked="checked"' : '',
+ 'FluxBB_CONFIRM_TRUE' => (isset($conf_Register_FluxBB[4]) and $conf_Register_FluxBB[4] == 'true') ? 'checked="checked"' : '',
+ 'FluxBB_CONFIRM_FALSE' => (isset($conf_Register_FluxBB[4]) and $conf_Register_FluxBB[4] == 'false') ? 'checked="checked"' : '',
+ 'FluxBB_DETAILS_TRUE' => (isset($conf_Register_FluxBB[5]) and $conf_Register_FluxBB[5] == 'true') ? 'checked="checked"' : '',
+ 'FluxBB_DETAILS_FALSE' => (isset($conf_Register_FluxBB[5]) and $conf_Register_FluxBB[5] == 'false') ? 'checked="checked"' : '',
+ )
+ );
+
+// If UAM exists and if UAM ConfirmMail is set, we can set this feature
+ if (function_exists('FindAvailableConfirmMailID'))
+ {
+ $conf_UAM = unserialize($conf['UserAdvManager']);
+ $UAM_bridge = false;
+
+ 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')
+ {
+ $UAM_bridge = true;
+ }
+
+ $template->assign(
+ array
+ (
+ 'UAM_BRIDGE' => $UAM_bridge,
+ 'FluxBB_UAM_LINK_TRUE' => (isset($conf_Register_FluxBB[6]) and $conf_Register_FluxBB[6] == 'true') ? 'checked="checked"' : '',
+ 'FluxBB_UAM_LINK_FALSE' => (isset($conf_Register_FluxBB[6]) and $conf_Register_FluxBB[6] == 'false') ? 'checked="checked"' : '',
+ 'FluxBB_GROUP' => $conf_Register_FluxBB[7],
+ )
+ );
+ }
+
+ $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/template/manage.tpl');
+ $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
+
+ break;
+
+ case 'Migration':
+
+ $conf_Register_FluxBB = isset($conf['Register_FluxBB']) ? explode(";" , $conf['Register_FluxBB']) : array();
+
+ if (isset($_POST['Migration']))
+ {
+ array_push($page['infos'], l10n('Mig_Start').'
');
+
+ array_push($page['infos'], l10n('Mig_Del_Link').'
');
+
+ $query = "TRUNCATE ".Register_FluxBB_ID_TABLE.";";
+ $result = pwg_query($query);
+
+
+ $msg_Mig_Del_AllUsers = '';
+
+ $query = "
+SELECT username, id
+FROM ".FluxBB_USERS_TABLE."
+;";
+
+ $result = pwg_query($query);
+
+ while ($row = pwg_db_fetch_assoc($result))
+ {
+ if((stripslashes($row['username']) != stripslashes($conf_Register_FluxBB[2])) and (stripslashes($row['username']) != stripslashes($conf_Register_FluxBB[1])))
+ {
+ $msg_Mig_Del_AllUsers .= '
- '.l10n('Mig_Del_User').stripslashes($row['username']);
+
+ FluxBB_Deluser($row['id'], false);
+ }
+ }
+
+ array_push($page['infos'], l10n('Mig_Del_AllUsers').$msg_Mig_Del_AllUsers.'
');
+
+
+ $query = "
+SELECT id, username, password, mail_address
+FROM ".USERS_TABLE."
+;";
+
+ $result = pwg_query($query);
+
+ $registred = time();
+ $registred_ip = $_SERVER['REMOTE_ADDR'];
+
+ $msg_Mig_Add_AllUsers = '';
+
+ while ($row = pwg_db_fetch_assoc($result))
+ {
+ if((stripslashes($row['username']) != 'guest') and (stripslashes($row['username']) != stripslashes($conf_Register_FluxBB[1])))
+ {
+ $msg_Mig_Add_AllUsers .= '
- '.l10n('Mig_Add_User').stripslashes($row['username']);
+
+ FluxBB_Adduser($row['id'], stripslashes($row['username']), $row['password'], $row['mail_address']);
+ }
+ }
+
+ array_push($page['infos'], l10n('Mig_Add_AllUsers').$msg_Mig_Add_AllUsers.'
');
+
+
+ $query = "
+SELECT id, username, password, mail_address
+FROM ".USERS_TABLE."
+WHERE username = '".$conf_Register_FluxBB[1]."'
+;";
+
+ $row = pwg_db_fetch_assoc(pwg_query($query));
+
+ if (!empty($row))
+ {
+ array_push($page['infos'], l10n('Sync_User').stripslashes($row['username']).'
');
+
+ FluxBB_Updateuser($row['id'], stripslashes($row['username']), $row['password'], $row['mail_address']);
+ }
+
+ array_push($page['infos'], l10n('Mig_End'));
+ }
+ else if ( isset($_POST['Audit']))
+ {
+ Audit_PWG_FluxBB();
+ }
+
+ $template->assign(
+ array
+ (
+ 'REGFLUXBB_PATH' => REGFLUXBB_PATH,
+ 'REGFLUXBB_VERSION' => $version,
+ )
+ );
+
+ $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/template/migration.tpl');
+ $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
+
+ break;
+
+ case 'Synchro':
+
+ if ( isset($_POST['Synchro']))
+ {
+ global $page,$conf, $errors;
+
+ $conf_Register_FluxBB = isset($conf['Register_FluxBB']) ? explode(";" , $conf['Register_FluxBB']) : array();
+
+ $page_Register_FluxBB_admin = get_admin_plugin_menu_link(__FILE__);
+
+
+ $msg_error_PWG_Dup = '';
+ $msg_error_FluxBB_Dup = '';
+ $msg_error_Link_Break = '';
+ $msg_error_Link_Bad = '';
+ $msg_error_Synchro = '';
+ $msg_ok_Synchro = '';
+ $msg_error_FluxBB2PWG = '';
+ $msg_error_PWG2FluxBB = '';
+
+
+ $query = "
+SELECT COUNT(*) AS nbr_dup, id, username
+FROM ".USERS_TABLE."
+GROUP BY BINARY username
+HAVING COUNT(*) > 1
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ $msg_error_PWG_Dup .= '
'.l10n('Error_PWG_Dup').$row['nbr_dup'].' x '.stripslashes($row['username']);
+
+ if ($msg_error_PWG_Dup <> '')
+ $msg_error_PWG_Dup = l10n('Audit_PWG_Dup').$msg_error_PWG_Dup.'
'.l10n('Advise_PWG_Dup');
+
+
+ $query = "
+SELECT COUNT(*) AS nbr_dup, username
+FROM ".FluxBB_USERS_TABLE."
+GROUP BY BINARY username
+HAVING COUNT(*) > 1
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ $msg_error_FluxBB_Dup .= '
'.l10n('Error_FluxBB_Dup').$row['nbr_dup'].' x '.stripslashes($row['username']);
+
+ $subquery = "
+SELECT id, username, email
+FROM ".FluxBB_USERS_TABLE."
+WHERE BINARY username = BINARY '".$row['username']."'
+;";
+
+ $subresult = pwg_query($subquery);
+
+ while($subrow = pwg_db_fetch_assoc($subresult))
+ {
+ $msg_error_FluxBB_Dup .= '
id:'.$subrow['id'].'='.stripslashes($subrow['username']).' ('.$subrow['email'].')';
+
+ $msg_error_FluxBB_Dup .= ' ';
+ }
+ }
+
+ if ($msg_error_FluxBB_Dup <> '')
+ $msg_error_FluxBB_Dup = l10n('Sync_Check_Dup').$msg_error_FluxBB_Dup.'
'.l10n('Advise_FluxBB_Dup');
+
+
+ if ($msg_error_FluxBB_Dup == '' and $msg_error_PWG_Dup == '')
+ {
+ $query = "
+SELECT pwg.id as pwg_id, bb.id as bb_id, pwg.username as pwg_user, pwg.mail_address as pwg_mail
+FROM ".FluxBB_USERS_TABLE." AS bb, ".USERS_TABLE." as pwg
+WHERE bb.id NOT in (
+ SELECT id_user_FluxBB
+ FROM ".Register_FluxBB_ID_TABLE."
+ )
+AND pwg.id NOT in (
+ SELECT id_user_pwg
+ FROM ".Register_FluxBB_ID_TABLE."
+ )
+AND pwg.username = bb.username
+AND pwg.mail_address = bb.email
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ $msg_error_Link_Break .= '
'.l10n('New_Link').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')';
+
+ FluxBB_Linkuser($row['pwg_id'], $row['bb_id']);
+ }
+
+ if ($msg_error_Link_Break == '')
+ array_push($page['infos'], l10n('Sync_Link_Break').'
'.l10n('Sync_OK'));
+ else
+ $msg_error_Link_Break = l10n('Sync_Link_Break').$msg_error_Link_Break;
+
+
+ $query = "
+SELECT pwg.username as pwg_user, pwg.id as pwg_id, pwg.mail_address as pwg_mail, bb.id as bb_id, bb.username as bb_user, bb.email as bb_mail
+FROM ".FluxBB_USERS_TABLE." AS bb
+INNER JOIN ".Register_FluxBB_ID_TABLE." AS link ON link.id_user_FluxBB = bb.id
+INNER JOIN ".USERS_TABLE." as pwg ON link.id_user_pwg = pwg.id
+WHERE BINARY pwg.username <> BINARY bb.username
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ $msg_error_Link_Bad .= '
'.l10n('Link_Del').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')'.' -- '.stripslashes($row['bb_user']).' ('.$row['bb_mail'].')';
+
+ $subquery = "
+DELETE FROM ".Register_FluxBB_ID_TABLE."
+WHERE id_user_pwg = ".$row['pwg_id']."
+AND id_user_FluxBB = ".$row['bb_id']."
+;";
+
+ $subresult = pwg_query($subquery);
+ }
+
+
+ $query = "
+SELECT COUNT(*) as nbr_dead
+FROM ".Register_FluxBB_ID_TABLE." AS Link
+WHERE id_user_FluxBB NOT IN (
+ SELECT id
+ FROM ".FluxBB_USERS_TABLE."
+ )
+OR id_user_pwg NOT IN (
+ SELECT id
+ FROM ".USERS_TABLE."
+ )
+;";
+
+ $Compteur = pwg_db_fetch_assoc(pwg_query($query));
+
+ if ( !empty($Compteur) and $Compteur['nbr_dead'] > 0)
+ {
+ $msg_error_Link_Bad .= '
'.l10n('Link_Dead').$Compteur['nbr_dead'];
+
+ $query = "
+DELETE FROM ".Register_FluxBB_ID_TABLE."
+WHERE id_user_FluxBB NOT IN (
+ SELECT id
+ FROM ".FluxBB_USERS_TABLE."
+ )
+OR id_user_pwg NOT IN (
+ SELECT id
+ FROM ".USERS_TABLE."
+ )
+;";
+
+ $result = pwg_query($query);
+ }
+
+
+ $query = "
+SELECT COUNT(*) AS nbr_dup, pwg.id AS pwg_id, pwg.username AS pwg_user, bb.username AS bb_user, bb.id AS bb_id
+FROM ".FluxBB_USERS_TABLE." AS bb
+INNER JOIN ".Register_FluxBB_ID_TABLE." AS link ON link.id_user_FluxBB = bb.id
+INNER JOIN ".USERS_TABLE." as pwg ON link.id_user_pwg = pwg.id
+GROUP BY link.id_user_pwg, link.id_user_FluxBB
+HAVING COUNT(*) > 1
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ $msg_error_Link_Bad .= '
'.l10n('Link_Dup').$row['nbr_dup'].' = '.stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).')';
+
+ FluxBB_Linkuser($row['pwg_id'], $row['bb_id']);
+ }
+
+ if ($msg_error_Link_Bad == '')
+ array_push($page['infos'], l10n('Sync_Link_Bad').'
'.l10n('Sync_OK'));
+ else
+ $msg_error_Link_Bad = l10n('Sync_Link_Bad').$msg_error_Link_Bad;
+
+
+ $query = "
+SELECT pwg.id as pwg_id, pwg.username as username, pwg.password as pwg_pwd, pwg.mail_address as pwg_eml, FluxBB.id as bb_id, FluxBB.password as bb_pwd, FluxBB.email as bb_eml
+FROM ".FluxBB_USERS_TABLE." AS FluxBB
+INNER JOIN ".Register_FluxBB_ID_TABLE." AS link ON link.id_user_FluxBB = FluxBB.id
+INNER JOIN ".USERS_TABLE." as pwg ON link.id_user_pwg = pwg.id
+AND BINARY pwg.username = BINARY FluxBB.username
+ORDER BY LOWER(pwg.username)
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ if ( ($row['pwg_pwd'] != $row['bb_pwd']) or ($row['pwg_eml'] != $row['bb_eml']) )
+ {
+ $msg_error_Synchro .= '
'.l10n('Sync_User').stripslashes($row['username']);
+
+ $query = "
+SELECT id, username, password, mail_address
+FROM ".USERS_TABLE."
+WHERE BINARY id = '".$row['pwg_id']."'
+;";
+
+ $data = pwg_db_fetch_assoc(pwg_query($query));
+
+ if (!empty($data))
+ FluxBB_Updateuser($data['id'], stripslashes($data['username']), $data['password'], $data['mail_address']);
+ }
+ }
+
+ if ($msg_error_Synchro == '')
+ array_push($page['infos'], l10n('Sync_DataUser').'
'.l10n('Sync_OK'));
+ else
+ $msg_error_Synchro = l10n('Sync_DataUser').$msg_error_Synchro;
+
+
+ $query = "
+SELECT username, mail_address FROM ".USERS_TABLE."
+WHERE BINARY username <> BINARY 'guest'
+AND id not in (
+ SELECT id_user_pwg FROM ".Register_FluxBB_ID_TABLE."
+ )
+AND BINARY username not in (
+ SELECT username FROM ".FluxBB_USERS_TABLE."
+ )
+ORDER BY LOWER(username)
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ $msg_error_PWG2FluxBB .= '
'.l10n('Add_User').stripslashes($row['username']).' ('.$row['mail_address'].')';
+
+ $query = "
+SELECT id, username, password, mail_address
+FROM ".USERS_TABLE."
+WHERE BINARY username = BINARY '".$row['username']."'
+LIMIT 1
+;";
+
+ $data = pwg_db_fetch_assoc(pwg_query($query));
+
+ if (!empty($data))
+ FluxBB_Adduser($data['id'], stripslashes($data['username']), $data['password'], $data['mail_address']);
+ }
+
+ if ($msg_error_PWG2FluxBB == '')
+ array_push($page['infos'], l10n('Sync_PWG2FluxBB').'
'.l10n('Sync_OK'));
+ else
+ $msg_error_PWG2FluxBB = l10n('Sync_PWG2FluxBB').$msg_error_PWG2FluxBB;
+
+
+ $query = "
+SELECT id, username, email FROM ".FluxBB_USERS_TABLE."
+WHERE BINARY username <> BINARY '".$conf_Register_FluxBB[2]."'
+AND id not in (
+ SELECT id_user_FluxBB FROM ".Register_FluxBB_ID_TABLE."
+ )
+AND BINARY username not in (
+ SELECT username FROM ".USERS_TABLE."
+ )
+ORDER BY LOWER(username)
+;";
+
+ $result = pwg_query($query);
+
+ while($row = pwg_db_fetch_assoc($result))
+ {
+ $msg_error_FluxBB2PWG .= '
'.l10n('Error_FluxBB2PWG').stripslashes($row['username']).' ('.$row['email'].')';
+
+ $msg_error_FluxBB2PWG .= ' ';
+ }
+
+ if ($msg_error_FluxBB2PWG == '')
+ array_push($page['infos'], l10n('Sync_FluxBB2PWG').'
'.l10n('Sync_OK'));
+ else
+ $msg_error_FluxBB2PWG = l10n('Sync_FluxBB2PWG').$msg_error_FluxBB2PWG;
+ }
+ else
+ $errors[] = l10n('Advise_Check_Dup');
+
+
+ if ($msg_error_PWG_Dup <> '')
+ $errors[] = $msg_error_PWG_Dup . ( ($msg_error_FluxBB_Dup == '' and $msg_error_Link_Break == '' and $msg_error_Link_Bad == '' and $msg_error_Synchro == '' and $msg_error_PWG2FluxBB == '' and $msg_error_FluxBB2PWG == '') ? '' : '
' );
+
+ if ($msg_error_FluxBB_Dup <> '')
+ $errors[] = $msg_error_FluxBB_Dup . ( ($msg_error_Link_Break == '' and $msg_error_Link_Bad == '' and $msg_error_Synchro == '' and $msg_error_PWG2FluxBB == '' and $msg_error_FluxBB2PWG == '') ? '' : '
' );
+
+ if ($msg_error_Link_Break <> '')
+ $errors[] = $msg_error_Link_Break . ( ($msg_error_Link_Bad == '' and $msg_error_Synchro == '' and $msg_error_PWG2FluxBB == '' and $msg_error_FluxBB2PWG == '') ? '' : '
' );
+
+ if ($msg_error_Link_Bad <> '')
+ $errors[] = $msg_error_Link_Bad . ( ($msg_error_Synchro == '' and $msg_error_PWG2FluxBB == '' and $msg_error_FluxBB2PWG == '') ? '' : '
' );
+
+ if ($msg_error_Synchro <> '')
+ $errors[] = $msg_error_Synchro . ( ($msg_error_PWG2FluxBB == '' and $msg_error_FluxBB2PWG == '') ? '' : '
' );
+
+ if ($msg_error_PWG2FluxBB <> '')
+ $errors[] = $msg_error_PWG2FluxBB . ( ($msg_error_FluxBB2PWG == '') ? '' : '
' );
+
+ if ($msg_error_FluxBB2PWG <> '')
+ $errors[] = $msg_error_FluxBB2PWG;
+ }
+ else if ( isset($_POST['Audit']))
+ {
+ Audit_PWG_FluxBB();
+ }
+
+ $template->assign(
+ array
+ (
+ 'REGFLUXBB_PATH' => REGFLUXBB_PATH,
+ 'REGFLUXBB_VERSION' => $version,
+ )
+ );
+
+ $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/template/synchro.tpl');
+ $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
+
+ break;
+}
+?>
Index: /extensions/Register_FluxBB/tags/2.4.2/admin/index.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/admin/index.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/admin/index.php (revision 9985)
@@ -0,0 +1,33 @@
+
Index: /extensions/Register_FluxBB/tags/2.4.2/admin/template/icon/index.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/admin/template/icon/index.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/admin/template/icon/index.php (revision 9985)
@@ -0,0 +1,33 @@
+
Index: /extensions/Register_FluxBB/tags/2.4.2/admin/template/index.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/admin/template/index.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/admin/template/index.php (revision 9985)
@@ -0,0 +1,33 @@
+
Index: /extensions/Register_FluxBB/tags/2.4.2/admin/template/info.tpl
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/admin/template/info.tpl (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/admin/template/info.tpl (revision 9985)
@@ -0,0 +1,7 @@
+{combine_css path= $REGFLUXBB_PATH|@cat:'admin/template/register_fluxbb.css'}
+
+
+
{'Title_Tab'|@translate} {$REGFLUXBB_VERSION}
{'Tab_Info'|@translate}
+
+
+{'Disclaimer'|@translate}
Index: /extensions/Register_FluxBB/tags/2.4.2/admin/template/manage.tpl
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/admin/template/manage.tpl (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/admin/template/manage.tpl (revision 9985)
@@ -0,0 +1,105 @@
+{combine_css path= $REGFLUXBB_PATH|@cat:'admin/template/register_fluxbb.css'}
+
+
+
+
+
{'Title_Tab'|@translate} {$REGFLUXBB_VERSION}
{'Tab_Manage'|@translate}
+
+
+
Index: /extensions/Register_FluxBB/tags/2.4.2/admin/template/migration.tpl
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/admin/template/migration.tpl (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/admin/template/migration.tpl (revision 9985)
@@ -0,0 +1,16 @@
+{combine_css path= $REGFLUXBB_PATH|@cat:'admin/template/register_fluxbb.css'}
+
+
+
{'Title_Tab'|@translate} {$REGFLUXBB_VERSION}
{'Tab_Migration'|@translate}
+
+
+
Index: /extensions/Register_FluxBB/tags/2.4.2/admin/template/register_fluxbb.css
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/admin/template/register_fluxbb.css (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/admin/template/register_fluxbb.css (revision 9985)
@@ -0,0 +1,82 @@
+/**
+ * Informations box in administration
+ */
+.warning, .info{
+ margin: 5px;
+ padding: 50px 50px 10px 10px;
+ font-weight:bold;
+ background-repeat: no-repeat;
+ background-position: 5px 5px;
+ padding:15px 60px 0pt 60px;
+ min-height: 54px;
+}
+
+.warning {
+ color: #f22;
+ background-color: #ffd5dc;
+ background-image: url(icon/warning.png);
+}
+
+.info{
+ margin: 5px;
+ padding: 50px 50px 10px 10px;
+ font-weight:bold;
+ background-repeat: no-repeat;
+ background-position: 5px 5px;
+ padding: 5px 60px 0pt 60px;
+ min-height: 20px;
+}
+
+.info {
+ color: #0a0;
+ background-color:#c2f5c2;
+}
+
+.mod{
+ margin: 5px;
+ padding: 50px 50px 10px 10px;
+ font-weight:bold;
+ background-repeat: no-repeat;
+ background-position: 5px 5px;
+ padding: 5px 60px 0pt 60px;
+ min-height: 20px;
+}
+
+.mod {
+ color: #f22;
+ background-color: #ffd5dc;
+}
+
+/* Bloc expand-collapse instructions */
+.instructionBlockHeaderCollapsed, .instructionBlockHeaderExpanded
+{
+ background-color:#111;
+ background-position:15px center;
+ background-repeat:no-repeat;
+ color:#ff3363;
+ cursor:pointer;
+ font-size:110%;
+ overflow:hidden;
+ padding:8px 41px;
+ text-align: left;
+}
+
+.instructionBlockHeaderCollapsed span, .instructionBlockHeaderExpanded span
+{
+ border-bottom: none;
+}
+
+.instructionBlockHeaderCollapsed
+{
+ background-image: url(./icon/expand.gif);
+}
+
+.instructionBlockHeaderExpanded
+{
+ background-image: url(./icon/collapse.gif);
+}
+
+.instructionBlockContent
+{
+ padding:0 15px 15px;
+}
Index: /extensions/Register_FluxBB/tags/2.4.2/admin/template/synchro.tpl
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/admin/template/synchro.tpl (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/admin/template/synchro.tpl (revision 9985)
@@ -0,0 +1,14 @@
+{combine_css path= $REGFLUXBB_PATH|@cat:'admin/template/register_fluxbb.css'}
+
+
+
{'Title_Tab'|@translate} {$REGFLUXBB_VERSION}
{'Tab_Synchro'|@translate}
+
+
+
Index: /extensions/Register_FluxBB/tags/2.4.2/include/constants.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/include/constants.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/include/constants.php (revision 9985)
@@ -0,0 +1,17 @@
+
Index: /extensions/Register_FluxBB/tags/2.4.2/include/functions.inc.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/include/functions.inc.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/include/functions.inc.php (revision 9985)
@@ -0,0 +1,494 @@
+ 'Register FluxBB',
+ 'URL' => get_root_url().'admin.php?page=plugin-'.basename(REGFLUXBB_PATH)
+ )
+ );
+ return $menu;
+}
+
+
+function Register_FluxBB_Adduser($register_user)
+{
+ global $errors, $conf;
+
+ // Exclusion of Adult_Content users
+ if ($register_user['username'] != "16" and $register_user['username'] != "18")
+ {
+ // Warning : FluxBB uses Sha1 hash instead of md5 for Piwigo!
+ FluxBB_Adduser($register_user['id'], $register_user['username'], sha1($_POST['password']), $register_user['email']);
+ }
+}
+
+
+function Register_FluxBB_Deluser($user_id)
+{
+ FluxBB_Deluser(FluxBB_Searchuser($user_id), true);
+}
+
+
+function Register_FluxBB_InitPage()
+{
+ global $conf, $user;
+
+ if (isset($_POST['validate']) and !is_admin())
+ {
+ if (!empty($_POST['use_new_pwd']))
+ {
+ $query = '
+SELECT '.$conf['user_fields']['username'].' AS username
+FROM '.USERS_TABLE.'
+WHERE '.$conf['user_fields']['id'].' = \''.$user['id'].'\'
+;';
+
+ list($username) = pwg_db_fetch_row(pwg_query($query));
+
+ FluxBB_Updateuser($user['id'], stripslashes($username), sha1($_POST['use_new_pwd']), $_POST['mail_address']);
+ }
+ }
+}
+
+
+function UAM_Bridge()
+{
+ global $conf, $user;
+
+ $conf_Register_FluxBB = isset($conf['Register_FluxBB']) ? explode(";" , $conf['Register_FluxBB']) : array();
+
+ // Check if UAM is installed and if bridge is set - Exception for admins and webmasters
+ $query ='
+SELECT user_id, status
+FROM '.USER_INFOS_TABLE.'
+WHERE user_id = '.$user['id'].'
+;';
+ $data = pwg_db_fetch_assoc(pwg_query($query));
+
+ if ($data['status'] <> "admin" and $data['status'] <> "webmaster")
+ {
+ if (function_exists('FindAvailableConfirmMailID') and isset($conf_Register_FluxBB[6]) and $conf_Register_FluxBB[6] == 'true')
+ {
+ $conf_UAM = unserialize($conf['UserAdvManager']);
+
+ // Getting unvalidated users group else Piwigo's default group
+ if (isset($conf_UAM[2]) and $conf_UAM[2] != '-1')
+ {
+ $Waitingroup = $conf_UAM[2];
+ }
+ else
+ {
+ $query = '
+SELECT id
+FROM '.GROUPS_TABLE.'
+WHERE is_default = "true"
+LIMIT 1
+;';
+ $data = pwg_db_fetch_assoc(pwg_query($query));
+ $Waitingroup = $data['id'];
+ }
+
+ // check if logged in user is in a Piwigo's validated or unvalidated users group
+ $query = '
+SELECT *
+FROM '.USER_GROUP_TABLE.'
+WHERE user_id = '.$user['id'].'
+AND group_id = '.$Waitingroup.'
+;';
+ $count = pwg_db_num_rows(pwg_query($query));
+
+ // Check if logged in user is in a FluxBB's unvalidated group
+ $query = "
+SELECT group_id
+FROM ".FluxBB_USERS_TABLE."
+WHERE id = ".FluxBB_Searchuser($user['id'])."
+;";
+
+ $data = pwg_db_fetch_assoc(pwg_query($query));
+
+ // Logged in user switch to the default FluxBB's group if he'is validated
+ if ($count == 0 and $data['group_id'] = $conf_Register_FluxBB[7])
+ {
+ $query = "
+SELECT conf_value
+FROM ".FluxBB_CONFIG_TABLE."
+WHERE conf_name = 'o_default_user_group'
+;";
+
+ $o_default_user_group = pwg_db_fetch_assoc(pwg_query($query));
+
+ $query = "
+UPDATE ".FluxBB_USERS_TABLE."
+SET group_id = ".$o_default_user_group['conf_value']."
+WHERE id = ".FluxBB_Searchuser($user['id'])."
+;";
+ pwg_query($query);
+ }
+ }
+ }
+}
+
+
+function Register_FluxBB_RegistrationCheck($errors, $user)
+{
+ global $conf;
+
+ //Because FluxBB is case insensitive on login name, we have to check if a similar login already exists in FluxBB's user table
+ // If "test" user already exists, "TEST" or "Test" (and so on...) can't register
+ $query = "
+SELECT username
+ FROM ".FluxBB_USERS_TABLE."
+WHERE LOWER(".stripslashes('username').") = '".strtolower($user['username'])."'
+;";
+
+ $count = pwg_db_num_rows(pwg_query($query));
+
+ if ($count > 0)
+ {
+ array_push($errors, l10n('this login is already used'));
+ }
+ return $errors;
+}
+
+
+function FluxBB_Linkuser($pwg_id, $bb_id)
+{
+ $query = "
+SELECT pwg.id as pwg_id, bb.id as bb_id
+FROM ".USERS_TABLE." pwg, ".FluxBB_USERS_TABLE." bb
+WHERE pwg.id = ".$pwg_id."
+AND bb.id = ".$bb_id."
+AND pwg.username = bb.username
+;";
+
+ $data = pwg_db_fetch_row(pwg_query($query));
+
+ if (!empty($data))
+ {
+ $subquery = "
+DELETE FROM ".Register_FluxBB_ID_TABLE."
+WHERE id_user_pwg = '".$pwg_id."'
+OR id_user_FluxBB = '".$bb_id."'
+;";
+
+ $subresult = pwg_query($subquery);
+
+ $subquery = "
+INSERT INTO ".Register_FluxBB_ID_TABLE."
+ (id_user_pwg, id_user_FluxBB)
+VALUES (".$pwg_id.", ".$bb_id.")
+;";
+
+ $subresult = pwg_query($subquery);
+ }
+}
+
+
+
+function FluxBB_Unlinkuser($bb_id)
+{
+ $query = "
+DELETE FROM ".Register_FluxBB_ID_TABLE."
+WHERE id_user_FluxBB = ".$bb_id."
+;";
+
+ $result = pwg_query($query);
+}
+
+
+
+function FluxBB_Adduser($pwg_id, $login, $password, $adresse_mail)
+{
+ global $errors, $conf;
+
+ $conf_Register_FluxBB = isset($conf['Register_FluxBB']) ? explode(";" , $conf['Register_FluxBB']) : array();
+
+ $registred = time();
+ $registred_ip = $_SERVER['REMOTE_ADDR'];
+
+ // Check if UAM is installed and if bridge is set - Exception for admins and webmasters
+ if (function_exists('FindAvailableConfirmMailID') and isset($conf_Register_FluxBB[6]) and $conf_Register_FluxBB[6] == 'true')
+ {
+ $o_default_user_group = $conf_Register_FluxBB[7];
+ }
+ else
+ {
+ $query = "
+SELECT conf_value
+FROM ".FluxBB_CONFIG_TABLE."
+WHERE conf_name = 'o_default_user_group'
+;";
+
+ $o_default_user_group = pwg_db_fetch_assoc(pwg_query($query));
+ }
+
+// Check for FluxBB version 1.4.x and get the correct value
+ $query1 = "
+SELECT conf_value
+FROM ".FluxBB_CONFIG_TABLE."
+WHERE conf_name = 'o_default_timezone'
+;";
+
+ $count1 = pwg_db_num_rows(pwg_query($query1));
+
+// Check for FluxBB version 1.2.x and get the correct value
+ $query2 = "
+SELECT conf_value
+FROM ".FluxBB_CONFIG_TABLE."
+WHERE conf_name = 'o_server_timezone'
+;";
+
+ $count2 = pwg_db_num_rows(pwg_query($query2));
+
+ if ($count1 == 1 and $count2 == 0)
+ {
+ $o_default_timezone = pwg_db_fetch_assoc(pwg_query($query1));
+ }
+ else if ($count1 == 0 and $count2 == 1)
+ {
+ $o_default_timezone = pwg_db_fetch_assoc(pwg_query($query2));
+ }
+
+
+ $query = "
+SELECT conf_value
+FROM ".FluxBB_CONFIG_TABLE."
+WHERE conf_name = 'o_default_lang'
+;";
+
+ $o_default_lang = pwg_db_fetch_assoc(pwg_query($query));
+
+ $query = "
+SELECT conf_value
+FROM ".FluxBB_CONFIG_TABLE."
+WHERE conf_name = 'o_default_style'
+;";
+
+ $o_default_style = pwg_db_fetch_assoc(pwg_query($query));
+
+ $query = "
+INSERT INTO ".FluxBB_USERS_TABLE." (
+ username,
+ ". ( isset($o_default_user_group['conf_value']) ? 'group_id' : '' ) .",
+ password,
+ email,
+ ". ( isset($o_default_timezone['conf_value']) ? 'timezone' : '' ) .",
+ ". ( isset($o_default_lang['conf_value']) ? 'language' : '' ) .",
+ ". ( isset($o_default_style['conf_value']) ? 'style' : '' ) .",
+ registered,
+ registration_ip,
+ last_visit
+ )
+VALUES(
+ '".pwg_db_real_escape_string($login)."',
+ ". ( isset($o_default_user_group['conf_value']) ? "'".$o_default_user_group['conf_value']."'" : '' ) .",
+ '".$password."',
+ '".$adresse_mail."',
+ ". ( isset($o_default_timezone['conf_value']) ? "'".$o_default_timezone['conf_value']."'" : '' ) .",
+ ". ( isset($o_default_lang['conf_value']) ? "'".$o_default_lang['conf_value']."'" : '' ) .",
+ ". ( isset($o_default_style['conf_value']) ? "'".$o_default_style['conf_value']."'" : '' ) .",
+ '".$registred."',
+ '".$registred_ip."',
+ '".$registred."'
+ )
+;";
+
+ $result = pwg_query($query);
+
+ $bb_id = pwg_db_insert_id();
+
+ FluxBB_Linkuser($pwg_id, $bb_id);
+}
+
+
+
+function FluxBB_Searchuser($id_user_pwg)
+{
+ $query = "
+SELECT id_user_FluxBB, id_user_pwg FROM ".Register_FluxBB_ID_TABLE."
+WHERE id_user_pwg = ".$id_user_pwg."
+LIMIT 1
+;";
+
+ $data = pwg_db_fetch_assoc(pwg_query($query));
+
+ if (!empty($data))
+ return $data['id_user_FluxBB'];
+ else
+ return '0';
+}
+
+
+
+function FluxBB_Deluser($id_user_FluxBB, $SuppTopicsPosts)
+{
+ global $conf;
+
+ $conf_Register_FluxBB = isset($conf['Register_FluxBB']) ? explode(";" , $conf['Register_FluxBB']) : array();
+
+ $query0 = "
+SELECT username, id FROM ".FluxBB_USERS_TABLE."
+WHERE id = ".$id_user_FluxBB."
+LIMIT 1
+;";
+
+ $data0 = pwg_db_fetch_assoc(pwg_query($query0));
+
+ // If True, delete related topics and posts
+ if ($SuppTopicsPosts and $conf_Register_FluxBB[3])
+ {
+ // Delete posts and topics of this user
+ $subquery = "
+DELETE FROM ".FluxBB_POSTS_TABLE."
+WHERE poster_id = ".$id_user_FluxBB."
+;";
+
+ $subresult = pwg_query($subquery);
+
+ // Delete topics of this user
+ $subquery = "
+DELETE FROM ".FluxBB_TOPICS_TABLE."
+WHERE BINARY poster = BINARY '".pwg_db_real_escape_string($data0['username'])."'
+;";
+
+ $subresult = pwg_query($subquery);
+ }
+
+ // Delete user's subscriptions
+ $subquery = "
+DELETE FROM ".FluxBB_SUBSCRIPTIONS_TABLE."
+WHERE user_id = ".$id_user_FluxBB."
+;";
+
+ $subresult = pwg_query($subquery);
+
+ // Delete user's account
+ $subquery = "
+DELETE FROM ".FluxBB_USERS_TABLE."
+WHERE id = ".$id_user_FluxBB."
+;";
+
+ $subresult = pwg_query($subquery);
+
+ FluxBB_Unlinkuser($id_user_FluxBB);
+}
+
+
+
+function FluxBB_Updateuser($pwg_id, $username, $password, $adresse_mail)
+{
+ include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
+
+ $query = "
+SELECT id_user_FluxBB as FluxBB_id
+FROM ".Register_FluxBB_ID_TABLE."
+WHERE id_user_pwg = ".$pwg_id."
+;";
+
+ $row = pwg_db_fetch_assoc(pwg_query($query));
+
+ if (!empty($row))
+ {
+ $query = "
+UPDATE ".FluxBB_USERS_TABLE."
+SET username = '".pwg_db_real_escape_string($username)."', email = '".$adresse_mail."', password = '".$password."'
+WHERE id = ".$row['FluxBB_id']."
+;";
+
+ $result = pwg_query($query);
+
+ FluxBB_Linkuser($pwg_id, $row['FluxBB_id']);
+ }
+ else
+ {
+ $query = "
+SELECT id as FluxBB_id
+FROM ".FluxBB_USERS_TABLE."
+WHERE BINARY username = BINARY '".pwg_db_real_escape_string($username)."'
+;";
+
+ $row = pwg_db_fetch_assoc(pwg_query($query));
+
+ if (!empty($row))
+ {
+ $query = "
+UPDATE ".FluxBB_USERS_TABLE."
+SET username = '".pwg_db_real_escape_string($username)."', email = '".$adresse_mail."', password = '".$password."'
+WHERE id = ".$row['FluxBB_id']."
+;";
+
+ $result = pwg_query($query);
+
+ FluxBB_Linkuser($pwg_id, $row['FluxBB_id']);
+ }
+ }
+}
+
+
+function RegFluxBB_Infos($dir)
+{
+ $path = $dir;
+
+ $plg_data = implode( '', file($path.'main.inc.php') );
+ if ( preg_match("|Plugin Name: (.*)|", $plg_data, $val) )
+ {
+ $plugin['name'] = trim( $val[1] );
+ }
+ if (preg_match("|Version: (.*)|", $plg_data, $val))
+ {
+ $plugin['version'] = trim($val[1]);
+ }
+ if ( preg_match("|Plugin URI: (.*)|", $plg_data, $val) )
+ {
+ $plugin['uri'] = trim($val[1]);
+ }
+ if ($desc = load_language('description.txt', $path.'/', array('return' => true)))
+ {
+ $plugin['description'] = trim($desc);
+ }
+ elseif ( preg_match("|Description: (.*)|", $plg_data, $val) )
+ {
+ $plugin['description'] = trim($val[1]);
+ }
+ if ( preg_match("|Author: (.*)|", $plg_data, $val) )
+ {
+ $plugin['author'] = trim($val[1]);
+ }
+ if ( preg_match("|Author URI: (.*)|", $plg_data, $val) )
+ {
+ $plugin['author uri'] = trim($val[1]);
+ }
+ if (!empty($plugin['uri']) and strpos($plugin['uri'] , 'extension_view.php?eid='))
+ {
+ list( , $extension) = explode('extension_view.php?eid=', $plugin['uri']);
+ if (is_numeric($extension)) $plugin['extension'] = $extension;
+ }
+// IMPORTANT SECURITY !
+ $plugin = array_map('htmlspecialchars', $plugin);
+
+ return $plugin ;
+}
+
+function regfluxbb_obsolete_files()
+{
+ if (file_exists(REGFLUXBB_PATH.'obsolete.list')
+ and $old_files = file(REGFLUXBB_PATH.'obsolete.list', FILE_IGNORE_NEW_LINES)
+ and !empty($old_files))
+ {
+ array_push($old_files, 'obsolete.list');
+ foreach($old_files as $old_file)
+ {
+ $path = REGFLUXBB_PATH.$old_file;
+ if (is_file($path))
+ {
+ @unlink($path);
+ }
+ }
+ }
+}
+?>
Index: /extensions/Register_FluxBB/tags/2.4.2/include/index.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/include/index.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/include/index.php (revision 9985)
@@ -0,0 +1,33 @@
+
Index: /extensions/Register_FluxBB/tags/2.4.2/index.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/index.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/index.php (revision 9985)
@@ -0,0 +1,33 @@
+
Index: /extensions/Register_FluxBB/tags/2.4.2/language/de_DE/index.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/language/de_DE/index.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/language/de_DE/index.php (revision 9985)
@@ -0,0 +1,33 @@
+
Index: /extensions/Register_FluxBB/tags/2.4.2/language/de_DE/plugin.lang.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/language/de_DE/plugin.lang.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/language/de_DE/plugin.lang.php (revision 9985)
@@ -0,0 +1,172 @@
+
+ Passen Sie das Verhalten des Plugins nach Ihren Wünschen an.';
+$lang['Prefix'] = 'FluxBB Tabellenpräfix :';
+$lang['Guest'] = 'Benutzername des FluxBB Gast-benutzers.';
+$lang['Details'] = 'Detailgrad der generierten Reports.';
+$lang['Details_true'] = ' --> Alle Ergebnisdetails anzeigen.';
+$lang['Details_false'] = ' --> Nur die wichtigsten Details der Ergebnisse anzeigen';
+$lang['Del_Pt'] = 'Löschen von Themen und Beiträgen, wenn ein Benutzer gelöscht wird.';
+$lang['Del_Pt_true'] = ' --> Alle Löschen';
+$lang['Del_Pt_false'] = ' --> Themen und Beiträge nicht löschen';
+$lang['Confirm'] = 'Bestätigung zum Löschen im Audit durch einen Administrator.';
+$lang['Confirm_true'] = ' --> Bestätigung unterdrücken';
+$lang['Confirm_false'] = ' --> Bestätigung erforderlich bevor Aktionen im Audit durchgeführt werden';
+
+$lang['save_config'] ='Einstellungen gespeichert';
+
+$lang['Audit_Btn'] = 'Audit';
+$lang['Sync_Btn'] = 'Synchronisierung';
+$lang['Sync_Title'] = 'Kontensynchronisierung von Piwigo nach FluxBB';
+$lang['Sync_Text'] = '
+ Sie haben diesen Plugin bereits benutzt, um Piwigo mit FluxBB zu verbinden und/oder Ihr FluxBB Forum besitzt bereits Benutzerkonten!
+
-> Das bedeutet, dass in Ihrem Forum bereits Benutzerkonten angelegt sind.
+ - Die Synchronisierung extrahiert die Daten durch Vergleichen der Benutzernamen und deren Passwörter (verschlüsselt) und e-mail Adressen in den beiden Tabellen [PrefixPWG]_user and [PrefixFluxBB]_user.
+ - Anschliessend müssen Sie diese Daten fuer jedes Benutzerkonto von Piwigo nach FluxBB in die entsprechende Tabelle übertragen (außer für die Benutzer Piwigo Gast und FluxBB Anonym).
+ - Danach müssen Sie die Benutzerkonten finden, die nur in einer der beiden ###_user Tabellen vorhanden sind.
+
+ Abschliessend starten Sie einen Audit und suchen nach doppelt vorhandenen Benutzerkonten in FluxBB. Sollten Sie einen ausfindig machen, dann löschen Sie den Ältesten, indemSie die FluxBB Benutzerkonten nach dem Datum der Registrierung sortieren.
';
+$lang['Sync_Check_Dup'] = 'Analyse der Tabellen für Benutzerkonten von Piwigo und FluxBB, um Duplikate ausfindig zu machen.';
+$lang['Advise_Check_Dup'] = 'Die Synchronisierung kann nicht fortgesetzt werden, wenn Sie doppelt vorhanden Benutzerkonten in Piwigo und FluxBB haben.
';
+$lang['Sync_Link_Break'] = 'Analyse von reparierbaren Links von Benutzerkonten in Piwigo und FluxBB';
+$lang['Sync_Link_Bad'] = 'Analyse von falschen Beziehungen von Benutzerkonten in Piwigo und FluxBB';
+$lang['Sync_DataUser'] = 'Analyse von Passwörtern und e-mail Adressen von Benutzerkonten in Piwigo und FluxBB';
+$lang['Sync_PWG2FluxBB'] = 'Analyse von bestehenden Benutzerkonten in Piwigo und fehlenden Benutzerkonten in FluxBB';
+$lang['Sync_FluxBB2PWG'] = 'Analyse von bestehenden Benutzerkonten in FluxBB und fehlenden Benutzerkonten in Piwogo';
+$lang['Sync_OK'] = 'Synchronisierung OK
';
+
+$lang['Audit_PWG_Dup'] = 'Audit der Kontentabelle von Piwigo';
+$lang['Error_PWG_Dup'] = 'Fehler in Piwigos Kontentabelle - Duplikate gefunden: ';
+$lang['Advise_PWG_Dup'] = 'WARNUNG! Sie müssen diese Änderungen in Piwigo vornehmen bevor sie fortfahren
Benutzen Sie Piwigos Benutzerverwaltung, um das Problem zu beheben.';
+
+$lang['Audit_FluxBB_Dup'] = 'Audit der Kontentabelle von FluxBB';
+$lang['Error_FluxBB_Dup'] = 'Fehler in FluxBBs Kontentabelle - Duplikate gefunden: ';
+$lang['Advise_FluxBB_Dup'] = 'WARNUNG! Sie müssen diese Änderungen in FluxBB vornehmen bevor sie fortfahren
Benutzen Sie die Icons, um die Benutzerkonten in FluxBB zu löschen und damit das Problem zu beheben.';
+
+$lang['Audit_Link_Break'] = 'Audit von reparierbaren Links von Benutzerkonten in Piwigo und FluxBB';
+$lang['Error_Link_Break'] = 'Fehlerhafter Link von Benutzerkonten in Piwigo und FluxBB: ';
+$lang['New_Link'] = 'Verbundene Benutzerkonten: ';
+
+$lang['Audit_Link_Bad'] = 'Audit von fehlerhaften Links von Benutzerkonten in Piwigo und FluxBB';
+$lang['Error_Link_Del'] = 'Fehler in der Linktabelle zwischen zwei Benutzerkonten: ';
+$lang['Link_Del'] = 'Link löschen: ';
+$lang['Error_Link_Dead'] = 'Fehler in der Linktabelle, tote Links: ';
+$lang['Link_Dead'] = 'Tote Links löschen ';
+$lang['Error_Link_Dup'] = 'Fehler in der Linktabelle, Duplikate gefunden: ';
+$lang['Link_Dup'] = 'Duplikate löschen ';
+
+$lang['Audit_Synchro'] = 'Audit der Synchronisierung von Passwörtern und e-mail Adressen von Benutzerkonten in Piwigo und FluxBB';
+$lang['Error_Synchro'] = 'Fehlerhafte Synchronisierung des Benutzerkontos: ';
+$lang['Error_Synchro_Pswd'] = 'mit dem Passwort';
+$lang['Error_Synchro_Mail'] = 'mit der e-mail Adresse';
+$lang['Audit_Synchro_OK'] = ' : Datensynchronisierung OK';
+$lang['Sync_User'] = 'Kontensynchronisierung : ';
+
+$lang['Audit_PWG2FluxBB'] = 'Audit von vorhandenen Benutzerkonten in Piwigo und fehlenden Benutzerkonten in FluxBB';
+$lang['Error_PWG2FluxBB'] = 'In FluxBB nicht vorhandene Piwigo Benutzerkonten: ';
+$lang['Add_User'] = 'Benutzerkonto in FluxBB hinzufügen: ';
+
+$lang['Audit_FluxBB2PWG'] = 'Audit von vorhandenen Benutzerkonten in FluxBB und fehlenden Benutzerkonten in Piwigo';
+$lang['Error_FluxBB2PWG'] = 'In Piwigo nicht vorhandene FluxBB Benutzerkonten: ';
+$lang['Del_User'] = 'Benutzerkonto in FluxBB löschen: ';
+
+$lang['Audit_OK'] = 'Audit OK
';
+
+$lang['Mig_Btn'] = 'Migration';
+$lang['Mig_Title'] = 'Migration von Benutzerkonten von Piwigo nach FluxBB';
+$lang['Mig_Text'] = '
+ NUR BENUTZEN wenn Sie diesen Plugin noch nie benutzt haben, um Piwigo mit FluxBB zu verbinden UND wenn es in Ihrem Forum keine Benutzerkonten gibt !!!
+ --> In diesem Fall dürfen in der Tabelle [PrefixFluxBB]_user von FluxBB keine Benutzerkonten außer Gast und Administrator vorhanden sein.
+ - Die Migration wird als Erstes alle Links zwischen Benutzerkonten in Piwigo und FluxBB entfernen.
+ - Dann WERDEN ALL FluxBB BENUTZERKONTEN GELÖSCHT (mit Ausnahme der Konten Gast und Administrator).
+
+ WARNUNG SOLLTEN SIE SPEZIELLE BENUTZERKONTEN IN FluxBB HABEN == BENUTZEN SIE AUF KEINEN FALL DIESE FUNKTION !!!
+ - Abschließend werden alle Piwigo Benutzerkonten bis auf Gast in FluxBB angelegt.
+
+ Sollten Fehler auftreten müssen Sie die Ursachen beheben und die Migration erneut starten.
';
+$lang['Mig_Disclaimer'] = ' FÜHREN SIE NIEMALS EINE MIGRATION ALS UPDATE DURCH !!!
';
+$lang['Mig_Start'] = 'Migration von Benutzerkonten von Piwigo nach FluxBB';
+$lang['Mig_Del_Link'] = 'Links zwischen Benutzerkonten von Piwigo und FluxBB löschen';
+$lang['Mig_Del_AllUsers'] = 'FluxBB Benutzerkonten löschen';
+$lang['Mig_Del_User'] = 'Benutzerkonto löschen: ';
+$lang['Mig_Add_AllUsers'] = 'Benutzerkonten von Piwigo werden übertragen';
+$lang['Mig_Add_User'] = 'Übertragenes Benutzerkonto: ';
+$lang['Mig_End'] = 'Migration abgeschlossen !';
+$lang['Title_Tab'] = 'Register_FluxBB - Version: ';
+
+// --------- Starting below: New or revised $lang ---- from version 2.3.0
+/*TODO*/$lang['No_Reg_advise'] = '
+ For better integration, it is advisable to make the following changes to your FluxBB forum (Warning: These changes will disappear when updating the forum):
+
+ * In FluxBB\'s administration panel, change "Allow new registrations" to NO (in: Options - Registration)
+
+ * Modify the file : [FluxBBRoot]/lang/English/register.php by replacing the following line:
+ \'No new regs\' => \'This forum is not accepting new users.\'
+ with :
+ \'No new regs\' => \'<a href="http://[YourPiwigoRoot]/register.php" > Go here to register </a><br/><br/>\'
+
+ Of course you should also make the same change for other languages of your FluxBB forum.
+
+ * Modify the file : [FluxBBRoot]/login.php by replacing the line 69:
+ message($lang_login[\'Wrong user/pass\'].\'<a href="login.php?action=forget">
+ with :
+ message($lang_login[\'Wrong user/pass\'].\'<a href="../[PiwigoRoot]/password.php">
+
+ and at line 216:
+ <a href="login.php?action=forget" tabindex="5">
+ with :
+ <a href="../[PiwigoRoot]/password.php" tabindex="5">
+
';
+/*TODO*/$lang['About_Reg'] = 'About the registration of users on the forum FluxBB';
+/*TODO*/$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). Access validation to the forum via UserAdvManager (UAM) plugin: Turn the bridge on between the two plugins that will allow you to prohibit the access to your FluxBB forum until the user has not validated its registration in the gallery (the function must be active on UAM).';
+/*TODO*/$lang['Bridge_UAM_true'] = ' --> Enable bridge Register_FluxBB / UAM';
+/*TODO*/$lang['Bridge_UAM_false'] = ' --> Disable bridge Register_FluxBB / UAM (default)';
+/*TODO*/$lang['FluxBB_Group'] = 'Précisez ici l\'ID du groupe FluxBB dans lequel les utilisateurs non validé doivent se trouver (à créer au préalable dans FluxBB). Pour être efficace, ce groupe ne doit avoir aucune permission sur le forum (voir à la fin de cette page pour les détails d\'utilisation de cette option).Specify the ID of FluxBB\' group in which non validated users must be (to be created in advance in FluxBB). To be effective, this group should have no permission on the forum (see the end of this page for details on using this option).';
+/*TODO*/$lang['About_Bridge'] = 'About Register_FluxBB / UAM bridge';
+/*TODO*/$lang['UAM_Bridge_advice'] = 'The UserAdvManager plugin allows forcing new registrants to confirm their registration before allowing them to access the entire gallery. The joint use of this plugin with Register_FluxBB can do the same on the forum linked: Registrants can not post until they have validated their registration in the gallery.
+Here is the general procedure to apply:
+
+- In the administration of your FluxBB forum, set at least 2 groups of users (for example: "validated" and "no_validated").
+- Give the first group ("validated") access permissions you want on your forum and set it as the default group.
+- Remove the second group ("no_validated") all permissions on your forum (the members of this group can only read public posts).
+- Locate the ID of the second group "no_validated".
+- Enter this ID in Register_FluxBB plugin, activate the bridge and save the settings.
+
+Important notes:
+
+If you already use an earlier version of Register_FluxBB, Piwigo\'s accounts linked between your gallery and your FluxBB forum will not be impacted by the effects of the bridge. Only new registers will be impacted after activation of the bridge.Accounts resynchronization function will be void.
+Similarly, if you\'ve never used Register_FluxBB, the Piwigo\'s accounts migration phase from your gallery to your FluxBB forum will disregard the state validated or not for the accounts at the launch of the migration phase.';
+// --------- End: New or revised $lang ---- from version 2.3.0
+
+// --------- Starting below: New or revised $lang ---- from version 2.3.3
+/*TODO*/$lang['Admin'] = 'Piwigo\'s administrator username. The username of FluxBB\'s administrator account has to be the same!';
+/*TODO*/$lang['error_config_admin1'] = 'ERROR : Piwigo\'s admin username is wrong!';
+/*TODO*/$lang['error_config_admin2'] = 'ERROR : The name of the FluxBB\'s administrator account is different from that of Piwigo ! Check the configuration of your FluxBB forum and rename the administrator account in the same name as that of Piwigo.';
+/*TODO*/$lang['error_config_guest'] = 'ERROR : The name of the FluxBB\'s guest account is wrong!';
+// --------- End: New or revised $lang ---- from version 2.3.3
+
+// --------- Starting below: New or revised $lang ---- from version 2.3.5
+$lang['Disclaimer'] = '
+ *** Befolgen Sie bitte die folgenden zwei Schritte, um zu beginnen ***
+ Step 1 : Konfigurieren Sie den Plugin für den Zugriff auf FluxBB.
+ Step 2 : Migrieren Sie die Benutzerkonten von Piwigo nach FluxBB.
+ Wenn dies erfolgt ist arbeitet der Plugin voll funktionstüchtig und Sie müssen diese Seiten nicht mehr aufsuchen.
+ *** Für die Wartung bereits bestehender Verbindungen ***
+ Wartung: : Tabellensynchronisation (im Fall des Hinzufügens, Aktualisierens oder Löschens eines Users) erlaubt Ihnen, Passwörter und e-mail Adressen auf den neuesten Stand zu bringen und unerwünschte User zu erkennen (Dies sollten Sie jedoch im Normalfall nicht benötigen).
+ Warnung !! Aus Sicherheitsgründen sollten Sie ein Backup Ihrer Datenbank anfertigen (Speziell die ###_user Tabellen).
+
+ Wichtig zu wissen:
+ Standardmäßig ist FluxBB Fall unempfindlich für Benutzernamen. Das heißt, wenn ein Benutzer namens "test" ist bereits registriert, andere Einträge wie "Test" oder "TEST" oder "TEst" (etc. ..) werden abgelehnt.
+ Standardmäßig ist Piwigo arbeitet in umgekehrter und ist daher bei Fall empfindlich für Logins ("test" wird ein anderer Benutzer von "TEST" oder "TEst", etc. ...) werden
+ Um Probleme zu vermeiden (auch wenn Piwigo Verhalten leicht verändert werden kann - siehe Konfigurationsmöglichkeiten), wird Register_FluxBB Verknüpfung der beiden Anwendungen als FluxBB: Fall unempfindlich für Logins.
';
+// --------- End: New or revised $lang ---- from version 2.3.5
+?>
Index: /extensions/Register_FluxBB/tags/2.4.2/language/en_UK/index.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/language/en_UK/index.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/language/en_UK/index.php (revision 9985)
@@ -0,0 +1,33 @@
+
Index: /extensions/Register_FluxBB/tags/2.4.2/language/en_UK/plugin.lang.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/language/en_UK/plugin.lang.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/language/en_UK/plugin.lang.php (revision 9985)
@@ -0,0 +1,172 @@
+
+ Change, if any, the behavior of the plugin at your convenience.';
+$lang['Prefix'] = 'FluxBB Prefix tables :';
+$lang['Guest'] = 'Username of the FluxBB Guest user.';
+$lang['Details'] = 'Level of detail in reports of operations.';
+$lang['Details_true'] = ' --> View all details of the results of operations.';
+$lang['Details_false'] = ' --> Shows that most of the results of operations';
+$lang['Del_Pt'] = 'Removal of topics and posts when the user is deleted.';
+$lang['Del_Pt_true'] = ' --> Delete all';
+$lang['Del_Pt_false'] = ' --> Don\'t delete topics and posts';
+$lang['Confirm'] = 'Delete confirmation on the administration actions in the audit.';
+$lang['Confirm_true'] = ' --> Delete confirmation';
+$lang['Confirm_false'] = ' --> Confirmation mandatory before actions in audit';
+
+$lang['save_config'] ='Settings saved';
+
+$lang['Audit_Btn'] = 'Audit';
+$lang['Sync_Btn'] = 'Synchronization';
+$lang['Sync_Title'] = 'Synchronize accounts from Piwigo to FluxBB';
+$lang['Sync_Text'] = '
+ You\'ve already used the plugin to link your Piwigo (plugin update) and / or your FluxBB forum is not empty of users!
+
-> This means that your forum owns users.
+ - Synchronization detect the data by comparing the usernames, passwords (encrypted) and their email address in both tables [PrefixPWG]_user and [PrefixFluxBB]_user.
+ - Then update the table of correspondence as well as password and email address for each account from Piwigo to FluxBB except Piwigo Guest and FluxBB Anonymous.
+ - Finally indicate mislead orphaned accounts that exist only in one of the 2 ###_user tables.
+
+ At the end of the operation, launch an audit and check for possible duplicates users in FluxBB. If so, delete the oldest (sorting FluxBB users according to their date of registration).
';
+$lang['Sync_Check_Dup'] = 'Analyzing tables of user accounts of Piwigo and FluxBB to control duplicates';
+$lang['Advise_Check_Dup'] = 'Impossible to continue the synchronization if you have duplicates in the User Account of Piwigo or FluxBB.
';
+$lang['Sync_Link_Break'] = 'Analysis of repairable links between accounts in Piwigo and FluxBB';
+$lang['Sync_Link_Bad'] = 'Analysis of bad relationships between accounts in Piwigo and FluxBB';
+$lang['Sync_DataUser'] = 'Analysis of passwords and email addresses between accounts in Piwigo and FluxBB';
+$lang['Sync_PWG2FluxBB'] = 'Analysis of existing accounts in Piwigo and missing in FluxBB';
+$lang['Sync_FluxBB2PWG'] = 'Analysis of existing accounts in FluxBB and missing in Piwigo';
+$lang['Sync_OK'] = 'Synchronization OK
';
+
+$lang['Audit_PWG_Dup'] = 'Audit of Piwigo\'s accounts table';
+$lang['Error_PWG_Dup'] = 'Error in Piwigo\'s accounts table, there are duplicates: ';
+$lang['Advise_PWG_Dup'] = 'WARNING! You must make these corrections in Piwigo before continuing
use Piwigo\'s user manager to resolve the problem.';
+
+$lang['Audit_FluxBB_Dup'] = 'Audit of FluxBB\'s accounts table';
+$lang['Error_FluxBB_Dup'] = 'Error in FluxBB\'s accounts table, there are duplicates: ';
+$lang['Advise_FluxBB_Dup'] = 'WARNING! You must make these corrections in FluxBB before continuing
use the icons to delete users from FluxBB and resolve the problem.';
+
+$lang['Audit_Link_Break'] = 'Audit of repairable links between Piwigo and FluxBB accounts';
+$lang['Error_Link_Break'] = 'Broken link between Piwigo and FluxBB accounts: ';
+$lang['New_Link'] = 'Account linked: ';
+
+$lang['Audit_Link_Bad'] = 'Audit of bad links between Piwigo and FluxBB accounts';
+$lang['Error_Link_Del'] = 'Error in the link table between 2 users: ';
+$lang['Link_Del'] = 'Remove of link: ';
+$lang['Error_Link_Dead'] = 'Error in the link table, dead links: ';
+$lang['Link_Dead'] = 'Remove of dead links ';
+$lang['Error_Link_Dup'] = 'Error in the link table, there are duplicates: ';
+$lang['Link_Dup'] = 'Remove of duplicates ';
+
+$lang['Audit_Synchro'] = 'Audit of the synchronization of passwords and email addresses between Piwigo and FluxBB accounts';
+$lang['Error_Synchro'] = 'Bad synchronization of account: ';
+$lang['Error_Synchro_Pswd'] = 'on password';
+$lang['Error_Synchro_Mail'] = 'on email address';
+$lang['Audit_Synchro_OK'] = ' : Data synchronization OK';
+$lang['Sync_User'] = 'Account synchronization : ';
+
+$lang['Audit_PWG2FluxBB'] = 'Audit of the existing accounts in Piwigo and missing in FluxBB';
+$lang['Error_PWG2FluxBB'] = 'The Piwigo account not in FluxBB: ';
+$lang['Add_User'] = 'Adding in FluxBB of account: ';
+
+$lang['Audit_FluxBB2PWG'] = 'Audit of the existing accounts in FluxBB and missing in Piwigo';
+$lang['Error_FluxBB2PWG'] = 'The FluxBB account not in Piwigo: ';
+$lang['Del_User'] = 'Removal from FluxBB of account : ';
+
+$lang['Audit_OK'] = 'Audit OK
';
+
+$lang['Mig_Btn'] = 'Migration';
+$lang['Mig_Title'] = 'Migration of accounts from Piwigo to FluxBB';
+$lang['Mig_Text'] = '
+ USE ONLY IF you have never used the plugin to link Piwigo to FluxBB AND IF your forum is empty of users !!!
+ --> In this case, your table [PrefixFluxBB]_user of FluxBB must be empty of any account except the 2 accounts guest and administrator.
+ - The migration will first remove the links between accounts of Piwigo and FluxBB.
+ - Then WILL DELETE ALL FluxBB ACCOUNTS except the 2 accounts guest and administrator.
+
+ WARNING IF YOU HAVE ANY SPECIAL ACCOUNTS IN FluxBB == DO NOT USE THIS FUNCTION !!!
+ - Finally, the migration will create all Piwigo\'s accounts in FluxBB, except the guest.
+
+ If errors occur during operation, correct the cause of the problem and retry the operation of migration (at the time only you can renew the migration).
';
+$lang['Mig_Disclaimer'] = ' NEVER PERFORM MIGRATION FOR UPDATING !!!
';
+$lang['Mig_Start'] = 'Migration of accounts from Piwigo to FluxBB';
+$lang['Mig_Del_Link'] = 'Deleting links between accounts of Piwigo and FluxBB';
+$lang['Mig_Del_AllUsers'] = 'Deleting FluxBB accounts';
+$lang['Mig_Del_User'] = 'Deletion of the account: ';
+$lang['Mig_Add_AllUsers'] = 'Transferring Piwigo accounts';
+$lang['Mig_Add_User'] = 'Transfer of account: ';
+$lang['Mig_End'] = 'Migration done !';
+$lang['Title_Tab'] = 'Register_FluxBB - Version: ';
+
+// --------- Starting below: New or revised $lang ---- from version 2.3.0
+$lang['No_Reg_advise'] = '
+ For better integration, it is advisable to make the following changes to your FluxBB forum (Warning: These changes will disappear when updating the forum):
+
+ * In FluxBB\'s administration panel, change "Allow new registrations" to NO (in: Options - Registration)
+
+ * Modify the file : [FluxBBRoot]/lang/English/register.php by replacing the following line:
+ \'No new regs\' => \'This forum is not accepting new users.\'
+ with :
+ \'No new regs\' => \'<a href="http://[YourPiwigoRoot]/register.php" > Go here to register </a><br/><br/>\'
+
+ Of course you should also make the same change for other languages of your FluxBB forum.
+
+ * Modify the file : [FluxBBRoot]/login.php by replacing the line 69:
+ message($lang_login[\'Wrong user/pass\'].\'<a href="login.php?action=forget">
+ with :
+ message($lang_login[\'Wrong user/pass\'].\'<a href="../[PiwigoRoot]/password.php">
+
+ and at line 216:
+ <a href="login.php?action=forget" tabindex="5">
+ with :
+ <a href="../[PiwigoRoot]/password.php" tabindex="5">
+
';
+$lang['About_Reg'] = 'About the registration of users on the forum FluxBB';
+$lang['Bridge_UAM'] = 'Access validation to the forum via UserAdvManager (UAM) plugin: Turn the bridge on between the two plugins that will allow you to prohibit the access to your FluxBB forum until the user has not validated its registration in the gallery (the function must be active on UAM).';
+$lang['Bridge_UAM_true'] = ' --> Enable bridge Register_FluxBB / UAM';
+$lang['Bridge_UAM_false'] = ' --> Disable bridge Register_FluxBB / UAM (default)';
+$lang['FluxBB_Group'] = 'Specify the ID of FluxBB\' group in which non validated users must be (to be created in advance in FluxBB). To be effective, this group should have no permission on the forum (see the end of this page for details on using this option).';
+$lang['About_Bridge'] = 'About Register_FluxBB / UAM bridge';
+$lang['UAM_Bridge_advice'] = 'The UserAdvManager plugin allows forcing new registrants to confirm their registration before allowing them to access the entire gallery. The joint use of this plugin with Register_FluxBB can do the same on the linked forum: Registrants can not post until they have validated their registration in the gallery.
+Here is the general procedure to apply:
+
+- In the administration of your FluxBB forum, set at least 2 groups of users (for example: "validated" and "no_validated").
+- Give the first group ("validated") access permissions you want on your forum and set it as the default group.
+- Remove the second group ("no_validated") all permissions on your forum (the members of this group can only read public posts).
+- Locate the ID of the second group "no_validated".
+- Enter this ID in Register_FluxBB plugin, activate the bridge and save the settings.
+
+Important notes:
+
+If you already use an earlier version of Register_FluxBB, Piwigo\'s accounts linked between your gallery and your FluxBB forum will not be impacted by the effects of the bridge. Only new registers will be impacted after activation of the bridge.Accounts resynchronization function will be void.
+Similarly, if you\'ve never used Register_FluxBB, the Piwigo\'s accounts migration phase from your gallery to your FluxBB forum will disregard the state validated or not for the accounts at the launch of the migration phase.';
+// --------- End: New or revised $lang ---- from version 2.3.0
+
+// --------- Starting below: New or revised $lang ---- from version 2.3.3
+$lang['Admin'] = 'Piwigo\'s administrator username. The username of FluxBB\'s administrator account has to be the same!';
+$lang['error_config_admin1'] = 'ERROR : Piwigo\'s admin username is wrong!';
+$lang['error_config_admin2'] = 'ERROR : The name of the FluxBB\'s administrator account is different from that of Piwigo ! Check the configuration of your FluxBB forum and rename the administrator account in the same name as that of Piwigo.';
+$lang['error_config_guest'] = 'ERROR : The name of the FluxBB\'s guest account is wrong!';
+// --------- End: New or revised $lang ---- from version 2.3.3
+
+// --------- Starting below: New or revised $lang ---- from version 2.3.5
+$lang['Disclaimer'] = '
+ *** To begin, follow this 2 steps ***
+ Step 1 : Set plugin with the parameters of FluxBB.
+ Step 2 : Migrate user accounts from Piwigo to FluxBB.
+ After these 2 main steps, the plugin is fully functional and you will not have to return to this pages.
+ *** For the maintenance of already active connections ***
+ Maintenance : Synchronize tables (in case an addition, an update or a user deletion mismatched) allows to update passwords and email addresses and see users intruder (But you should not need to use ).
+ WARNING !! For safety, consider making a backup of your database, especially ###_user tables before any action.
+
+ Important to know:
+ By default, FluxBB is case insensitive on usernames. That is, if a user called "test" is already registered, other entries like "Test" or "TEST" or "TEst" (etc. ..) will be rejected.
+ By default, Piwigo works in reverse and is therefore case sensitive on logins ("test" will be a different user of "Test" or "TEST", etc. ...).
+ To avoid problems (even if Piwigo\'s behavior can be easily changed - See configuration options), Register_FluxBB will link the two applications as FluxBB: Being case insensitive for logins.
';
+// --------- End: New or revised $lang ---- from version 2.3.5
+?>
Index: /extensions/Register_FluxBB/tags/2.4.2/language/fr_FR/index.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/language/fr_FR/index.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/language/fr_FR/index.php (revision 9985)
@@ -0,0 +1,33 @@
+
Index: /extensions/Register_FluxBB/tags/2.4.2/language/fr_FR/plugin.lang.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/language/fr_FR/plugin.lang.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/language/fr_FR/plugin.lang.php (revision 9985)
@@ -0,0 +1,173 @@
+
+ Modifiez, le cas échéant, le comportement du plugin à votre convenance.';
+$lang['Prefix'] = 'Préfixe des tables de FluxBB :';
+$lang['Guest'] = 'Nom d\'utilisateur de l\'invité de FluxBB.';
+$lang['Details'] = 'Niveau de détails dans les rapports d\'opérations.';
+$lang['Details_true'] = ' --> Afficher tous les détails des résultats sur les opérations.';
+$lang['Details_false'] = ' --> N\'affiche que l\'essentiel des résultats sur les opérations';
+$lang['Del_Pt'] = 'Suppression des topics et posts de l\'utilisateur lorsqu\'il est supprimé.';
+$lang['Del_Pt_true'] = ' --> Supprime tout';
+$lang['Del_Pt_false'] = ' --> Ne supprime pas les posts et les topics';
+$lang['Confirm'] = 'Suppression des confirmations sur les actions d\'administration dans l\'audit.';
+$lang['Confirm_true'] = ' --> Supprime les confirmations';
+$lang['Confirm_false'] = ' --> Confirmation obligatoire avant action dans l\'audit';
+
+$lang['save_config'] ='Configuration enregistrée.';
+
+$lang['Audit_Btn'] = 'Audit';
+$lang['Sync_Btn'] = 'Synchronisation';
+$lang['Sync_Title'] = 'Synchronisation des comptes Piwigo vers FluxBB';
+$lang['Sync_Text'] = '
+ Vous avez déjà utilisé le plugin pour lier votre Piwigo (mise à jour du plugin) et/ou votre forum FluxBB n\'est pas vide d\'utilisateurs !!!
+
-> Ceci signifie que votre forum posséde des utilisateurs.
+ - La synchronisation détectera les données présentes en comparant les noms des utilisateurs, leur mot de passe (crypté) et leur adresse email dans les deux tables [PrefixPWG]_users et [PrefixFluxBB]_users.
+ - Puis mettra à jour cette table de correspondance ainsi que le mot de passe et l\'adresse email de chaque compte depuis Piwigo vers FluxBB sauf Piwigo Guest et FluxBB Anonymous.
+ - Enfin indiquera en erreur les comptes orphelins qui n\'existent que dans l\'une des 2 tables ###_USERS.
+
+ A l\'issue de l\'opération lancez un AUDIT et veuillez vérifier la présence de doublons éventuels dans les utilisateurs de FluxBB, si c\'est le cas, il faut supprimer les plus anciens (tri des utilisateurs FluxBB selon leur date d\'incription).
';
+$lang['Sync_Check_Dup'] = 'Analyse des tables des comptes utilisateurs de Piwigo et FluxBB pour contrôler les doublons';
+$lang['Advise_Check_Dup'] = 'IMPOSSIBLE de continuer la synchronisation si vous avez des doublons dans les comptes utilisateurs de Piwigo ou FluxBB.
';
+$lang['Sync_Link_Break'] = 'Analyse des liens réparables entre les comptes Piwigo et FluxBB';
+$lang['Sync_Link_Bad'] = 'Analyse des mauvais liens entre les comptes Piwigo et FluxBB';
+$lang['Sync_DataUser'] = 'Analyse des mots de passe et des adresses emails entre les comptes Piwigo et FluxBB';
+$lang['Sync_PWG2FluxBB'] = 'Analyse des comptes existants dans Piwigo et manquants dans FluxBB';
+$lang['Sync_FluxBB2PWG'] = 'Analyse des comptes existants dans FluxBB et manquants dans Piwigo';
+$lang['Sync_OK'] = 'Synchronisation OK
';
+
+$lang['Audit_PWG_Dup'] = 'Audit de la table des comptes de Piwigo';
+$lang['Error_PWG_Dup'] = 'Erreur dans la table des comptes Piwigo, il y a des doublons : ';
+$lang['Advise_PWG_Dup'] = 'ATTENTION ! Vous devez faire ces corrections dans Piwigo avant de continuer
utilisez le gestionnaires d\'utilisateurs de Piwigo pour régler le problème.';
+
+$lang['Audit_FluxBB_Dup'] = 'Audit de la table des comptes FluxBB';
+$lang['Error_FluxBB_Dup'] = 'Erreur dans la table des comptes FluxBB, il y a des doublons : ';
+$lang['Advise_FluxBB_Dup'] = 'ATTENTION Vous devez faire ces corrections dans FluxBB avant de continuer
utilisez les icones pour supprimer les utilisateurs de FluxBB et régler le problème.';
+
+$lang['Audit_Link_Break'] = 'Audit des liens réparables entre les comptes Piwigo et FluxBB';
+$lang['Error_Link_Break'] = 'Lien brisé entre les comptes Piwigo et FluxBB : ';
+$lang['New_Link'] = 'Liaison du compte : ';
+
+$lang['Audit_Link_Bad'] = 'Audit des mauvais liens entre les comptes Piwigo et FluxBB';
+$lang['Error_Link_Del'] = 'Erreur dans la table de lien entre les 2 utilisateurs : ';
+$lang['Link_Del'] = 'Suppression du lien : ';
+$lang['Error_Link_Dead'] = 'Erreur dans la table de lien, des liens morts existent : ';
+$lang['Link_Dead'] = 'Suppression du liens morts ';
+$lang['Error_Link_Dup'] = 'Erreur dans la table de lien, il y a des doublons : ';
+$lang['Link_Dup'] = 'Suppression des liens dupliqués ';
+
+$lang['Audit_Synchro'] = 'Audit de la synchronisation des mots de passe et des adresses emails entre les comptes Piwigo et FluxBB';
+$lang['Error_Synchro'] = 'Mauvaise synchronisation du compte : ';
+$lang['Error_Synchro_Pswd'] = 'pour le mot de passe';
+$lang['Error_Synchro_Mail'] = 'pour l\'adresse email';
+$lang['Audit_Synchro_OK'] = ' : Synchro des données OK';
+$lang['Sync_User'] = 'Synchronisation du compte : ';
+
+$lang['Audit_PWG2FluxBB'] = 'Audit des comptes existants dans Piwigo et manquants dans FluxBB';
+$lang['Error_PWG2FluxBB'] = 'Le compte Piwigo n\'existe pas dans FluxBB : ';
+$lang['Add_User'] = 'Ajout dans FluxBB du compte : ';
+
+$lang['Audit_FluxBB2PWG'] = 'Audit des comptes existants dans FluxBB et manquants dans Piwigo';
+$lang['Error_FluxBB2PWG'] = 'Le compte FluxBB n\'existe pas dans Piwigo : ';
+$lang['Del_User'] = 'Suppression de FluxBB du compte : ';
+
+$lang['Audit_OK'] = 'Audit OK
';
+
+$lang['Mig_Btn'] = 'Migration';
+$lang['Mig_Title'] = 'Migration des comptes de Piwigo vers FluxBB';
+$lang['Mig_Text'] = '
+ A N\'UTILISER QUE SI vous n\'avez jamais utilisé le plugin pour lier Piwigo à FluxBB ET SI votre forum est vide d\'utilisateurs !!!
+ --> Dans ce cas, votre table [PrefixFluxBB]_users de FluxBB doit être vide de tout compte sauf les 2 comptes d\'invité et d\'administrateur.
+ - La migration va d\'abord supprimer les liens des comptes entre Piwigo et FluxBB.
+ - Puis SUPPRIMERA TOUS LES COMPTES FluxBB sauf les 2 comptes d\'invité et d\'administrateur.
+
+ ATTENTION SI VOUS AVEZ DES COMPTES PARTICULIERS DANS FluxBB == NE SURTOUT PAS UTILISER CETTE FONCTION !!!
+ - Enfin la migration va créer tout les comptes de Piwigo dans FluxBB sauf l\'invité.
+
+ Si des erreurs se produisent pendant l\'opération, corrigez la cause du problème et recommencez l\'opération de migration (à ce moment là seulement vous pouvez renouveller la migration).
';
+$lang['Mig_Disclaimer'] = ' NE JAMAIS EFFECTUER DE MIGRATION POUR METTRE A JOUR !!!
';
+$lang['Mig_Start'] = 'Migration des comptes Piwigo vers FluxBB';
+$lang['Mig_Del_Link'] = 'Suppression des liens entre les comptes Piwigo et FluxBB';
+$lang['Mig_Del_AllUsers'] = 'Suppression des comptes FluxBB';
+$lang['Mig_Del_User'] = 'Suppression du compte : ';
+$lang['Mig_Add_AllUsers'] = 'Transfert des comptes Piwigo';
+$lang['Mig_Add_User'] = 'Transfert du compte : ';
+$lang['Mig_End'] = 'Migration finie !';
+$lang['Title_Tab'] = 'Register_FluxBB - Version: ';
+
+
+// --------- Starting below: New or revised $lang ---- from version 2.3.0
+$lang['No_Reg_advise'] = '
+ Pour une meilleur intégration, il est conseillé d\'apporter les modifications suivantes à votre forum FluxBB (Attention! Ces modifications disparaitront en cas de mise à jour du forum):
+
+ * Modifier dans l\'interface d\'administration de FluxBB l\'option "Autoriser les nouvelles inscriptions" à NON ( dans : Options - Inscriptions )
+
+ * Modifier le fichier : [RacineDeFluxBB]/lang/French/register.php en remplacant la ligne suivante:
+ \'No new regs\' => \'Ce forum n\\\'accepte pas de nouveaux utilisateurs.\'
+ par :
+ \'No new regs\' => \'<a href="http://[VotreRacineDePiwigo]/register.php" > Cliquez ici pour vous inscrire </a><br/><br/>\'
+
+ Et reporter cette modification pour toutes les langues gérées sur votre forum.
+
+ * Modifier le fichier : [RacineDeFluxBB]/login.php en remplacant à la ligne 69:
+ message($lang_login[\'Wrong user/pass\'].\'<a href="login.php?action=forget">
+ par :
+ message($lang_login[\'Wrong user/pass\'].\'<a href="../[VotreRacineDePiwigo]/password.php">
+
+ à la ligne 216:
+ <a href="login.php?action=forget" tabindex="5"><?php echo $lang_login[\'Forgotten pass\']</a>
+ par :
+ <a href="../[VotreRacineDePiwigo]/password.php" tabindex="5"><?php echo $lang_login[\'Forgotten pass\']</a>
+
';
+$lang['About_Reg'] = 'A propos de l\'enregistrement d\'utilisateur sur le forum FluxBB';
+$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).';
+$lang['Bridge_UAM_true'] = ' --> Pont Register_FluxBB / UAM activé';
+$lang['Bridge_UAM_false'] = ' --> Pont Register_FluxBB / UAM désactivé (par défaut)';
+$lang['FluxBB_Group'] = 'Précisez ici l\'ID du groupe FluxBB dans lequel les utilisateurs non validé doivent se trouver (à créer au préalable dans FluxBB). Pour être efficace, ce groupe ne doit avoir aucune permission sur le forum (voir à la fin de cette page pour les détails d\'utilisation de cette option).';
+$lang['About_Bridge'] = 'A propos du pont Register_FluxBB / UAM';
+$lang['UAM_Bridge_advice'] = 'Le plugin UserAdvManager permet de forcer les nouveaux inscrits à valider leur inscription avant de leur permettre d\'accéder à la totalité de la galerie. L\'utilisation conjointe de ce plugin avec Register_FluxBB permet de faire de même sur le forum lié: Ils ne pourront pas poster tant qu\'ils n\'auront pas validé leur inscription à la galerie.
+Voici la procédure générale à appliquer:
+
+- Dans la partie d\'administration de votre forum FluxBB, établissez au minimum 2 groupes d\'utilisateurs (par exemple: "validés" et "non_validés").
+- Attribuez au premier groupe ("validés") les permissions d\'accès souhaitées sur votre forum et définissez le comme groupe par défaut.
+- Retirez au second groupe ("non_validés") toutes les permissions sur votre forum (les membres de ce groupe ne pourront que lire les posts publics).
+- Repérez l\'ID du second groupe "non_validés".
+- Notez l\'ID dans le plugin Register_FluxBB, activez le pont et sauvegardez les paramètres.
+
+Notes importantes:
+
+Si vous utilisiez déjà Register_FluxBB dans une version antérieur, les comptes liés entre votre galerie Piwigo et votre forum FluxBB ne seront pas impactés par les effets du pont. Seuls les nouveaux inscrits après l\'activation du pont y seront soumis.La fonction de resynchronisation des comptes sera sans effet.
+De même, si vous n\'avez jamais utilisé Register_FluxBB, la phase de migration des comptes de votre galerie Piwigo vers votre forum FluxBB ne tiendra pas compte de l\'état validé ou non de vos inscrits au moment du lancement de la phase de migration.';
+// --------- End: New or revised $lang ---- from version 2.3.0
+
+// --------- Starting below: New or revised $lang ---- from version 2.3.3
+$lang['Admin'] = 'Nom d\'utilisateur de l\'administrateur de Piwigo. Le nom de l\'administrateur de FluxBB doit être identique !';
+$lang['error_config_admin1'] = 'ERREUR : Le nom du compte administrateur de Piwigo est incorrect !';
+$lang['error_config_admin2'] = 'ERREUR : Le nom du compte administrateur de FluxBB est différent de celui de Piwigo ! Vérifiez la configuration de votre forum FluxBB et nommez le compte administrateur de la même manière que celui de Piwigo.';
+$lang['error_config_guest'] = 'ERREUR : Le nom du compte visiteur (guest) de FluxBB est incorrect !';
+// --------- End: New or revised $lang ---- from version 2.3.3
+
+// --------- Starting below: New or revised $lang ---- from version 2.3.5
+$lang['Disclaimer'] = '
+ *** Pour débuter, 2 étapes à suivre ***
+ 1ère étape : Configurer les paramètres du plugin avec les paramètres de FluxBB.
+ 2ème étape : Migrer les comptes utilisateurs de Piwigo vers FluxBB.
+ A l\'issue des 2 étapes principales, le plugin sera pleinement fonctionnel et vous n\'aurez plus à revenir sur cette page.
+ *** Pour maintenir les liaisons déjà actives ***
+ Maintenance : Synchroniser les tables (dans le cas où un ajout, une mise à jour ou une suppression d\'utilisateur s\'est mal déroulée) permet de remettre à jour mots de passe et adresses email et voir les utilisateurs intrus (Mais vous ne devriez pas avoir à l\'utiliser).
+ Pensez faire une sauvegarde de votre base et spécialement de vos tables ###_USERS avant toutes actions par mesure de sécurité.
+
+ A savoir :
+ Par défaut, FluxBB est insensible à la casse sur les noms d\'utilisateurs. C\'est à dire que si un utilisateur "test" est déjà inscrit, d\'autres inscriptions avec, par exemple, "Test" ou "TEST" ou "TEst" (etc...) seront refusées.
+ Par défaut, Piwigo fonctionne de manière inverse et est donc sensible à la casse sur les logins ("test" sera un utilisateur différent de "Test" etc...).
+ Afin d\'éviter des erreurs (même si le comportement de Piwigo peut-être facilement changé - Voir les options de configuration), Register_FluxBB fera le lien entre les deux applications à la manière de FluxBB : En étant insensible à la casse pour les logins.
';
+// --------- End: New or revised $lang ---- from version 2.3.5
+?>
Index: /extensions/Register_FluxBB/tags/2.4.2/language/index.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/language/index.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/language/index.php (revision 9985)
@@ -0,0 +1,33 @@
+
Index: /extensions/Register_FluxBB/tags/2.4.2/language/lv_LV/description.txt
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/language/lv_LV/description.txt (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/language/lv_LV/description.txt (revision 9985)
@@ -0,0 +1,1 @@
+Sasaista Piwigo lietotāju reģistrāciju ar FluxBB forumu (reģistrācija, paroļu maiņa, dzēšana)
Index: /extensions/Register_FluxBB/tags/2.4.2/language/lv_LV/index.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/language/lv_LV/index.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/language/lv_LV/index.php (revision 9985)
@@ -0,0 +1,33 @@
+
Index: /extensions/Register_FluxBB/tags/2.4.2/language/lv_LV/plugin.lang.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/language/lv_LV/plugin.lang.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/language/lv_LV/plugin.lang.php (revision 9985)
@@ -0,0 +1,168 @@
+
+ Ja vajadzīgs, izmainiet spraudņa darbību pēc saviem ieskatiem.';
+$lang['Prefix'] = 'FluxBB Prefiksa tabulas :';
+$lang['Guest'] = 'FluxBB Vieslietotāja lietotājvārds.';
+$lang['Details'] = 'Detalizācijas līmenis ziņojumos par veiktajām darbībām.';
+$lang['Details_true'] = ' --> Skatīt visas darbību rezultātu detaļas.';
+$lang['Details_false'] = ' --> Rāda tik daudz darbību rezultātu detaļas';
+$lang['Del_Pt'] = 'Tēmu un ziņojumu dzēšana, lietotāja dzēšanas gadījumā.';
+$lang['Del_Pt_true'] = ' --> Dzēst visu';
+$lang['Del_Pt_false'] = ' --> Nedzēst tēmas un ziņojumus';
+$lang['Confirm'] = 'Dzēst apstiprinājumu par administrācijas darbību pārbaudi.';
+$lang['Confirm_true'] = ' --> Dzēst apstiprinājumu';
+$lang['Confirm_false'] = ' --> Pirms pārbaudes darbībām apstiprinājums obligāts';
+
+$lang['save_config'] ='Iestatījumi saglabāti';
+
+$lang['Audit_Btn'] = 'Pārbaude';
+$lang['Sync_Btn'] = 'Sinhronizācija';
+$lang['Sync_Title'] = 'Sinhronizēt Piwigo un FluxBB kontus';
+$lang['Sync_Text'] = '
+ Jūs jau lietojāt spraudni, lai saistītu Jūsu Piwigo (spraudņa jauninājums) un/vai Jūsu FluxBB forums nav bez lietotājiem!
+
- Tas nozīmē, ka lietotāji pieder jūsu forumam.
+ - Sinhronizācija, salīdzinot lietotājvārdus, paroles (šifrētas) un viņu e-pasta adrešu abas tabulas [PrefixPWG]_user un [PrefixFluxBB]_user, konstatēja datu esamību.
+ - Tad jāatjaunina atbilstību tabula, kā arī katra konta (Piwigo un FluxBB) paroli un e-pasta adreses, izņemot Piwigo Viesa un FluxBB Anonīmo kontu.
+ - Visbeidzot jānosaka pamestie konti, kas eksiste tikai vienā no 2 ###_user tables (lietotājtabulām).
+
+ Operācijas beigās veic pārbaudi vai FluxBB nav dubultu lietotāju. Ja tā ir, dzeš vecāko (sakārto FluxBB lietotājus pēc to reģistrēšanas datuma).
';
+$lang['Sync_Check_Dup'] = 'Analizē Piwigo un FluxBB lietotāju kontu tabulas, lai kontrolētu dubultnieku esamību';
+$lang['Advise_Check_Dup'] = 'Neiespējami turpināt sinhronizāciju, ja Piwigo vai FluxBB lietotāju kontos ir dubultnieki.';
+$lang['Sync_Link_Break'] = 'Analizē, vai pastāv labojamas saites starp Piwigo un FluxBB kontiem';
+$lang['Sync_Link_Bad'] = 'Sliktas sadarbības starp Piwigo un FluxBB kontiem analīze';
+$lang['Sync_DataUser'] = 'Piwigo un FluxBB kontu savstarpējo paroļu un e-pasta adrešu analīze';
+$lang['Sync_PWG2FluxBB'] = 'Piwigo eksistējošo un FluxBB neeksistējošo kontu analīze';
+$lang['Sync_FluxBB2PWG'] = 'FluxBB eksistējošo un Piwigo neeksistējošo kontu analīze';
+$lang['Sync_OK'] = 'Sinhronizācija OK
';
+
+$lang['Audit_PWG_Dup'] = 'Piwigo kontu tabulas pārbaude';
+$lang['Error_PWG_Dup'] = 'Kļūda Piwigo kontu tabulā, tur ir dublikāti: ';
+$lang['Advise_PWG_Dup'] = 'UZMANĪBU! Pirms turpināt, Jums nepieciešams veikt šīs korekcijas Piwigo,
lietojiet Piwigo lietotāju pārvaldnieku, lai atrisinātu šo problēmu.';
+
+$lang['Audit_FluxBB_Dup'] = 'FluxBB kontu tabulas pārbaude';
+$lang['Error_FluxBB_Dup'] = 'Kļūda FluxBB kontu tabulā, tur ir dublikāti: ';
+$lang['Advise_FluxBB_Dup'] = 'UZMANĪBU! Pirms turpināt, Jums nepieciešams veikt šīs korekcijas FluxBB
, izmantojiet ikonas, lai izdzēstu lietotājus no FluxBB un atrisinātu problēmu.';
+
+$lang['Audit_Link_Break'] = 'Saišu starp Piwigo un FluxBB kontiem pārbaude';
+$lang['Error_Link_Break'] = 'Bojāta saite starp Piwigo un FluxBB kontiem: ';
+$lang['New_Link'] = 'Konts sasaistīts: ';
+
+$lang['Audit_Link_Bad'] = 'Bojātu saišu starp Piwigo un FluxBB kontiem pārbaude';
+$lang['Error_Link_Del'] = 'Kļūda saišu tabulā starp 2 lietotājiem: ';
+$lang['Link_Del'] = 'Saites dzēšana: ';
+$lang['Error_Link_Dead'] = 'Kļūda saišu tabulā, neesošas saites: ';
+$lang['Link_Dead'] = 'Neesošo saišu dzēšana ';
+$lang['Error_Link_Dup'] = 'Kļūda saišu tabulā, eksistē dublikāti: ';
+$lang['Link_Dup'] = 'Dublikātu dzēšana ';
+
+$lang['Audit_Synchro'] = 'Piwigo un FluxBB kontu paroļu un e-pasta adrešu savstarpējās sinhronizācijas pārbaude';
+$lang['Error_Synchro'] = 'Nekorekta konta sinhronizācija: ';
+$lang['Error_Synchro_Pswd'] = 'pēc paroles';
+$lang['Error_Synchro_Mail'] = 'pēc e-pasta adreses';
+$lang['Audit_Synchro_OK'] = ' : Datu sinhronizācija OK';
+$lang['Sync_User'] = 'Konta sinhronizācija : ';
+
+$lang['Audit_PWG2FluxBB'] = 'Piwigo eksistējošo un FluxBB iztrūkstošo kontu pārbaude';
+$lang['Error_PWG2FluxBB'] = 'Piwigo konts neeksistē FluxBB: ';
+$lang['Add_User'] = 'Konta pievienošana FluxBB: ';
+
+$lang['Audit_FluxBB2PWG'] = 'FluxBB eksistējošo un Piwigo iztrūkstošo kontu pārbaude';
+$lang['Error_FluxBB2PWG'] = 'FluxBB konts neeksistē Piwigo: ';
+$lang['Del_User'] = 'Konta dzēšana no FluxBB: ';
+
+$lang['Audit_OK'] = 'Pārbaude OK
';
+
+$lang['Mig_Btn'] = 'Pārvietošana';
+$lang['Mig_Title'] = 'Kontu pārvietošana no Piwigo uz FluxBB';
+$lang['Mig_Text'] = '
+ LIETOT TIKAI TAD, JA nekad neesat lietojis spraudni, lai sajūgtu Piwigo ar FluxBB UN JA jūsu forumā nav lietotāju !!!
+ --> Šajā gadījumā jūsu FluxBB tabulai [PrefixFluxBB]_user jābūt tukšai bez kontiem, izņemot viesa un administratora kontus.
+ - Pārvietošanas operācija vispirms dzēsīs saites starp Piwigo un FluxBB kontiem.
+ - Tad NODZĒSĪS VISUS FluxBB KONTUS, izņemot viesa un administratora kontus.
+
+ BRĪDINĀJUMS, JA JUMS IR JEBKĀDI SPECIĀLIE KONTI fluxBB == NELIETOJIET ŠO FUNKCIJU !!!
+ - Visbeidzot, pārvietošanas operācija izveidos visus Piwigo kontus FluxBB, izņemot viesa kontu.
+
+ Ja procesa laikā rodas kļūdas, novēršiet problēmu un atkārtojiet pārvietošanas (migrācijas) operāciju (šai brīdī varat atjaunot tikai pārvietošanas procesu).
';
+$lang['Mig_Disclaimer'] = ' NEKAD NEVEICIET PĀRVIETOŠANU LAI VEIKTU ATJAUNINĀŠANU !!!
';
+$lang['Mig_Start'] = 'Kontu pārvietošana no Piwigo uz FluxBB';
+$lang['Mig_Del_Link'] = 'Saišu dzēšana starp Piwigo un FluxBB kontiem';
+$lang['Mig_Del_AllUsers'] = 'FluxBB kontu dzēšana';
+$lang['Mig_Del_User'] = 'Konta dzēšana: ';
+$lang['Mig_Add_AllUsers'] = 'Piwigo kontu pārvietošana';
+$lang['Mig_Add_User'] = 'Konta pārvietošana: ';
+$lang['Mig_End'] = 'Pārvietošana pabeigta !';
+$lang['Title_Tab'] = 'Register_FluxBB - Versija: ';
+
+// --------- Starting below: New or revised $lang ---- from version 2.3.0
+$lang['No_Reg_advise'] = '
+ Labākai integrācijai, jūsu FluxBB forumam iespējamas sekojošas izmaiņas (Brīdinājums: Šīs izmaiņas izzudīs pēc foruma atjaunināšanas):
+
+ * FluxBB administrēšanas panelī, izmainiet (Atļaut jaunu reģistrēšanos) "Allow new registrations" uz (NĒ) NO (iekš:Options - Registration)
+
+* Modificējiet failu : [FluxBBRoot]/lang/English/register.php, samainot sekojošu rindiņu:
+ \'No new regs\' => \'Šis forums neakceptē jaunus lietotājus.\'
+
with : \'No new regs\' => \'<a href="http://[YourPiwigoRoot]/register.php" > Iet šeit, lai reģistrētos </a><br/><br/>\'
+
Protams jums jāveic tās pašas izmaiņas arī jūsu FluxBB foruma citām valodām.
* Modificējiet failu : [FluxBBRoot]/login.php aizvietojot rindiņu 69:
+ message($lang_login[\'Wrong user/pass\'].\'<a href="login.php?action=forget">
+ ar : message($lang_login[\'Wrong user/pass\'].\'<a href="../[PiwigoRoot]/password.php">
+
un 216 rindiņā: <a href="login.php?action=forget" tabindex="5">
+
ar : <a href="../[PiwigoRoot]/password.php" tabindex="5">
';
+
+
+
+
+
+
+
+
+
+$lang['About_Reg'] = 'Par lietotāju reģistrāciju FluxBB forumā';
+$lang['Bridge_UAM'] = 'Piekļuves validācija forumam, izmantojot UserAdvManager (UAM) spraudni: Ieslēgt tiltu starp diviem spraudņiem, kas ļaus jums aizliegt piekļuvi jūsu FluxBB forumam, kamēr lietotājs nav validējis savu reģistrāciju gelerijā (funkcijai jābūt aktivētai UAM).';
+$lang['Bridge_UAM_true'] = ' --> Iespējot tiltu Register_FluxBB / UAM';
+$lang['Bridge_UAM_false'] = ' --> Atspējot tiltu Register_FluxBB / UAM (noklusējums)';
+$lang['FluxBB_Group'] = 'Norādiet FluxBB grupas ID, kurā jāatrodas nevalidētiem lietotājiem (tikuši iepriekš izveidoti FluxBB). Lai efektīvi darbotos, šai grupai nevajadzētu atļauju forumam (skat. šīs lapas beigās detaļas, kā lietot šo iespēju).';
+$lang['About_Bridge'] = 'Par Register_FluxBB / UAM tiltu';
+$lang['UAM_Bridge_advice'] = 'Spraudnis UserAdvManager dod iespēju jaunajiem reģistrantiem apstiprināt savu reģistrēšanos pirms atļaujas piekļūt visai galerijai.
+ Šī spraudņa kopīga lietošana ar Register_FluxBB var paveikt to pašu saistītos forumos: Reģistranti nevar nosūtīt savus ziņojumus, kamēr nav apstiprināta to reģistrācija galerijā.
+
Šeit ir vispārējā procedūra, kas būtu jāveic:
- Sava FluxBB foruma administrēšanas daļā, nosakiet vismaz 2 lietotāju grupas (piemēram: "validētā" un "nevalidētā").
+
- Piešķiriet pirmajai grupai ("validētā") tādas piekļuves tiesības jūsu forumā, kādas vēlaties, un iestatiet to kā noklusējuma grupu.
- Atņemiet otrajai grupai ("nevalidētā")
+ visas atļaujas jūsu forumā (šīs grupas biedri var lasīt tikai publiskās ziņas).
+
- Atrodiet otrās grupas "nevalidētā" ID.
- Ievadiet šo ID Register_FluxBB spraudnī, aktivējiet tiltu un saglabājiet iestatījumus.
+
Svarīgi:
Ja jūs jau lietojat Register_FluxBB kādu no iepriekšējām versijām , ar FluxBB forumu saistīto Piwigo kontu tilta radītie procesi neiespaidos.
+ Pēc tilta aktivēšanas tiks iespaidoti tikai jaunie reģistri. Konta atkārtotas sinhronizācijas funkcija tiks anulēta.
+ Līdzīgi, ja nekad nav lietots Register_FluxBB, Piwigo konta pārvietošanas posms no jūsu galerijas uz jūsu FluxBB forumu ignorēs validācijas statusu vai ignorēs tiem kontiem, kas piedalās migrācijas posmā.';
+ // --------- End: New or revised $lang ---- from version 2.3.0
+
+ // --------- Starting below: New or revised $lang ---- from version 2.3.3
+$lang['Admin'] = 'Piwigo administratora lietotājvārds. FluxBB administratora konta lietotājvārdam jābūt tādam pašam!';
+$lang['error_config_admin1'] = 'KĻŪDA : Piwigo administratora lietotājvārds ir nepareizs!';
+$lang['error_config_admin2'] = 'KĻŪDA : FluxBB administratora konta vārds atšķiras no Piwigo ! Pārbaudiet jūsu FluxBB foruma konfigurāciju un pārsauciet administratora kontu tādā pašā vārdā kā Piwigo.';
+$lang['error_config_guest'] = 'KĻŪDA : FluxBB viesa konta vārds ir nepareizs!';
+
+// --------- End: New or revised $lang ---- from version 2.3.3 // --------- Starting below: New or revised $lang ---- from version 2.3.5
+$lang['Disclaimer'] = ' *** Lai sāktu, veiciet šos 2 soļus ***
+ Step 1 : Iestatiet spraudni ar FluxBB parametriem.
+ Step 2 : Pārvietojiet lietotājkontus no Piwigo uz FluxBB.
+ Veicot šos divus soļus, spraudnis ir pilnībā darboties spējīgs un jums nav jāatgriežas šajā lapā.
+ *** Jau aktivēto savienojumu profilaksei ***
+ Profilakse : Tabulu sinhronizācija (papildinājumu, jauninājumu gadījumā vai lietotāju nekorektas dzēšanas gadījumā) ļauj atjaunināt paroles un e-pasta adreses un konstatēt lietotāju ielaušanos (Bet nemaz nav nepieciešams lietot ).
+ BRĪDINĀJUMS !! Drošības nolūkos, apsveriet iespēju izveidot jūsu datu bāzes kopiju, īpaši ###_user tabulām pirms jebkādas darbības.
+
Svarīgi zināt:
+ Pēc noklusēšanas, FluxBB ir reģistrnejutīgs lietotājvārdiem. Tas nozīmē, ja lietotājs saukts "test" jau ir reģistrējies, citi mēģinājumi reģistrēties kā "Test" vai "TEST" vai "TEst" (utt. ..) tiks noraidīti.
+ Pēc noklusēšanas, Piwigo darbojas pretēji un tāpēc ir reģistrjutīgs uz ielogošanos ("test" ir atšķirīgs lietotājs no "Test" vai "TEST", utt. ...).
+ Lai izvairītos no problēmām (pat, ja Piwigo uzvedību viegli var izmanīt - Skatīt konfigurācijas iespējas), Register_FluxBB savienos divas aplikācijas FluxBB: kas irreģistrnejutīga loginiem.
+
';
+// --------- End: New or revised $lang ---- from version 2.3.5 -----------------------------------------
+
+
+?>
Index: /extensions/Register_FluxBB/tags/2.4.2/main.inc.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/main.inc.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/main.inc.php (revision 9985)
@@ -0,0 +1,122 @@
+
Index: /extensions/Register_FluxBB/tags/2.4.2/maintain.inc.php
===================================================================
--- /extensions/Register_FluxBB/tags/2.4.2/maintain.inc.php (revision 9985)
+++ /extensions/Register_FluxBB/tags/2.4.2/maintain.inc.php (revision 9985)
@@ -0,0 +1,79 @@
+