Changeset 9253


Ignore:
Timestamp:
Feb 16, 2011, 7:28:44 PM (9 years ago)
Author:
Eric
Message:

Bug 2192 fixed
Bug 2045 improvement

Location:
extensions/NBC_UserAdvManager/trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/ConfirmMail.php

    r9197 r9253  
    6868      // Management of Extension flags ([username], [mygallery], [myurl])
    6969      $patterns[] = '#\[username\]#i';
    70       $replacements[] = $username;
     70      $replacements[] = $result['username'];
    7171      $patterns[] = '#\[mygallery\]#i';
    7272      $replacements[] = $conf['gallery_title'];
     
    100100      // Management of Extension flags ([username], [mygallery], [myurl])
    101101      $patterns[] = '#\[username\]#i';
    102       $replacements[] = $username;
     102      $replacements[] = $result['username'];
    103103      $patterns[] = '#\[mygallery\]#i';
    104104      $replacements[] = $conf['gallery_title'];
  • extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php

    r9177 r9253  
    105105  case 'global':
    106106
    107         if (isset($_POST['submit']) and isset($_POST['UAM_Mail_Info']) and isset($_POST['UAM_Username_Char']) and isset($_POST['UAM_Confirm_Mail']) and isset($_POST['UAM_No_Comment_Anonymous']) and isset($_POST['UAM_Password_Enforced']) and isset($_POST['UAM_AdminPassword_Enforced']) and isset($_POST['UAM_GhostUser_Tracker']) and isset($_POST['UAM_Admin_ConfMail']) and isset($_POST['UAM_RedirToProfile']) and isset($_POST['UAM_GTAuto']) and isset($_POST['UAM_CustomPasswRetr']))
     107        if (isset($_POST['submit']) and isset($_POST['UAM_Mail_Info']) and isset($_POST['UAM_Username_Char']) and isset($_POST['UAM_Confirm_Mail']) and isset($_POST['UAM_No_Comment_Anonymous']) and isset($_POST['UAM_Password_Enforced']) and isset($_POST['UAM_AdminPassword_Enforced']) and isset($_POST['UAM_GhostUser_Tracker']) and isset($_POST['UAM_Admin_ConfMail']) and isset($_POST['UAM_RedirToProfile']) and isset($_POST['UAM_GTAuto']) and isset($_POST['UAM_GTAutoMail']) and isset($_POST['UAM_CustomPasswRetr']) and isset($_POST['UAM_USRAuto']) and isset($_POST['UAM_USRAutoMail']))
    108108  {
    109109
     
    551551                }
    552552
    553     // Avoid jquery accordeon menu bug when there is no users to display
    554     if (empty($visible_user_list))
     553    // Avoid jquery accordion menu bug when there is no users to display
     554    // Pending because it causes php warnings when no users are listed (when $visible_user_list[] is empty)
     555    /*if (empty($visible_user_list))
    555556    {
    556557      $visible_user_list[] = null;
    557     }
     558    }*/
    558559
    559560                foreach ($visible_user_list as $local_user)
     
    10291030
    10301031    // Avoid jquery accordeon menu bug when there is no users to display
    1031     if (empty($visible_user_list))
     1032    // Pending because it causes php warnings when no users are listed (when $visible_user_list[] is empty)
     1033    /*if (empty($visible_user_list))
    10321034    {
    10331035      $visible_user_list[] = null;
    1034     }
     1036    }*/
    10351037
    10361038                foreach ($visible_user_list as $local_user)
     
    13531355                }
    13541356   
    1355     if (isset($_POST['GhostTracker_Init']))
    1356     {
    1357       //Reset is only allowed for admins !
    1358       if (is_admin())
    1359       {
    1360         $query1 = '
     1357    if (isset($_POST['GhostTracker_Init']) and is_admin()) //Reset is only allowed for admins !
     1358    {
     1359      $query1 = '
    13611360SELECT *
    13621361  FROM '.USER_LASTVISIT_TABLE.';';
    13631362
    1364         $count = pwg_db_num_rows(pwg_query($query1));
    1365 
    1366         if ($count <> 0)
    1367         {
    1368           $query = '
     1363      $count = pwg_db_num_rows(pwg_query($query1));
     1364
     1365      if ($count <> 0)
     1366      {
     1367        $query = '
    13691368SELECT DISTINCT u.id,
    13701369                ui.status AS status
     
    13791378;';
    13801379
    1381           $result = pwg_query($query);
     1380        $result = pwg_query($query);
    13821381         
    1383           while ($row = pwg_db_fetch_assoc($result))
    1384           {
    1385             list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
     1382        while ($row = pwg_db_fetch_assoc($result))
     1383        {
     1384          list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
    13861385           
    1387             $query = "
     1386          $query = "
    13881387INSERT INTO ".USER_LASTVISIT_TABLE." (user_id, lastvisit, reminder)
    13891388VALUES ('".$row['id']."','".$dbnow."','false')
    13901389;";
    1391             pwg_query($query);
    1392           }
     1390          pwg_query($query);
    13931391        }
    1394         else if ($count == 0)
    1395         {
    1396           $query = '
     1392      }
     1393      else if ($count == 0)
     1394      {
     1395        $query = '
    13971396SELECT DISTINCT u.id,
    13981397                ui.status AS status
     
    14061405;';
    14071406
    1408           $result = pwg_query($query);
     1407        $result = pwg_query($query);
    14091408         
    1410           while($row = pwg_db_fetch_assoc($result))
    1411           {
    1412             list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
     1409        while($row = pwg_db_fetch_assoc($result))
     1410        {
     1411          list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
    14131412           
    1414             $query = "
     1413          $query = "
    14151414INSERT INTO ".USER_LASTVISIT_TABLE." (user_id, lastvisit, reminder)
    14161415VALUES ('".$row['id']."','".$dbnow."','false')
    14171416;";
    1418             pwg_query($query);
    1419           }
     1417          pwg_query($query);
    14201418        }
     1419      }
    14211420       
    1422         array_push($page['infos'], l10n('UAM_GhostTracker_Init_OK'));
    1423       }
     1421      array_push($page['infos'], l10n('UAM_GhostTracker_Init_OK'));
    14241422    }
    14251423
  • extensions/NBC_UserAdvManager/trunk/changelog.txt.php

    r9197 r9253  
    229229            Bug 2186 fixed - JQuery accordion menu when no users are listed in UAM tables
    230230            Bug 2188 fixed - Avoid translation flags conflicts
     231            Bug 2192 fixed - GT Automated tasks improvement and refactory
    231232
    232233*/
  • extensions/NBC_UserAdvManager/trunk/del_account.php

    r9197 r9253  
    44
    55include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
    6 include_once( PHPWG_ROOT_PATH.'include/functions_mail.inc.php' );
    76
    87include_once (UAM_PATH.'include/constants.php');
     
    1716
    1817
    19   global $user, $lang, $conf, $errors;
     18global $user, $lang, $conf, $errors;
    2019 
    2120
    22   $conf_UAM = unserialize($conf['UserAdvManager']);
     21$conf_UAM = unserialize($conf['UserAdvManager']);
    2322
    24   if (isset($conf_UAM[24]) and $conf_UAM[24] <> '')
     23if (isset($conf_UAM[24]) and $conf_UAM[24] <> '')
     24{
     25  // Management of Extension flags ([mygallery], [myurl]) - [username] flag can't be used here
     26  $patterns[] = '#\[mygallery\]#i';
     27  $replacements[] = $conf['gallery_title'];
     28  $patterns[] = '#\[myurl\]#i';
     29  $replacements[] = $conf['gallery_url'];
     30
     31  if (function_exists('get_user_language_desc'))
    2532  {
    26     // Management of Extension flags ([username], [mygallery], [myurl])
    27     $patterns[] = '#\[username\]#i';
    28     $replacements[] = $username;
    29     $patterns[] = '#\[mygallery\]#i';
    30     $replacements[] = $conf['gallery_title'];
    31     $patterns[] = '#\[myurl\]#i';
    32     $replacements[] = $conf['gallery_url'];
    33      
    34     if (function_exists('get_user_language_desc'))
    35     {
    36       $custom_text = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[24]));
    37     }
    38     else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[24]));
     33    $custom_text = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[24]));
    3934  }
     35  else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[24]));
     36}
    4037   
    41   $template->assign(
    42     array(
    43       'GALLERY_URL'          => make_index_url(),
    44                         'CUSTOM_REDIR_MSG'     => $custom_text,
    45                 )
    46   );
     38$template->assign(
     39  array(
     40    'GALLERY_URL'          => make_index_url(),
     41        'CUSTOM_REDIR_MSG'     => $custom_text,
     42  )
     43);
    4744
    4845if (isset($lang['Theme: '.$user['theme']]))
  • extensions/NBC_UserAdvManager/trunk/include/functions.inc.php

    r9197 r9253  
    322322  $conf_UAM = unserialize($conf['UserAdvManager']);
    323323 
    324   // Performing scheduled tasks
     324  // Performing GhostTracker scheduled tasks
    325325  if ((isset($conf_UAM[22]) and $conf_UAM[22] == 'true'))
    326326  {
    327     UAM_ScheduledTasks();
     327    UAM_GT_ScheduledTasks();
    328328  }
    329329
     
    350350 * Triggered on UAM_LoginTasks()
    351351 *
    352  * Executes optional post-login tasks
    353  *
    354  */
    355 function UAM_ScheduledTasks()
     352 * Executes optional post-login tasks for Ghost users
     353 *
     354 */
     355function UAM_GT_ScheduledTasks()
    356356{
    357357  global $conf, $user, $page;
    358  
     358
     359  if (!defined('PHPWG_ROOT_PATH'))
     360  {
     361    die('Hacking attempt!');
     362  }
     363         
     364  include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     365
    359366  $conf_UAM = unserialize($conf['UserAdvManager']);
    360367 
     
    377384      if (in_array($user['id'], $collection))
    378385        {
    379         foreach ($collection as $user_id)
    380         {
    381           // Check lastvisit reminder state
    382           $query = '
     386        // Check lastvisit reminder state
     387        $query = '
    383388SELECT reminder
    384389FROM '.USER_LASTVISIT_TABLE.'
    385 WHERE user_id = '.$user_id.';';
    386 
    387           $result = pwg_db_fetch_assoc(pwg_query($query));
    388 
    389           if (isset($result['reminder']) and $result['reminder'] == 'true')
    390           {
    391             $reminder = true;
    392           }
    393           else
    394           {
    395             $reminder = false;
    396           }
    397 
    398           // If never reminded before, set reminder True
    399           if (!$reminder)
    400           {
    401             // Reset of lastvisit date
    402             list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
    403 
    404                         $query = "
    405 UPDATE ".USER_LASTVISIT_TABLE."
    406 SET lastvisit='".$dbnow."'
    407 WHERE user_id = '".$user_id."'
    408 ;";
    409             pwg_query($query);
    410 
    411           // Auto change group and / or status
    412             // Delete user from all groups
    413             $query = "
    414 DELETE FROM ".USER_GROUP_TABLE."
    415 WHERE user_id = '".$user_id."'
    416   AND (
    417     group_id = '".$conf_UAM[2]."'
    418   OR
    419     group_id = '".$conf_UAM[3]."'
    420   )
    421 ;";
    422 
    423             pwg_query($query);
    424 
    425             // Change user status
    426             if ($conf_UAM[27] <> -1)
    427             {
    428               $query = "
    429 UPDATE ".USER_INFOS_TABLE."
    430 SET status = '".$conf_UAM[27]."'
    431 WHERE user_id = '".$user_id."'
    432 ;";
    433               pwg_query($query);
    434             }
    435 
    436             // Change user group
    437             if ($conf_UAM[26] <> -1)
    438             {
    439               $query = "
    440 INSERT INTO ".USER_GROUP_TABLE."
    441   (user_id, group_id)
    442 VALUES
    443   ('".$user_id."', '".$conf_UAM[26]."')
    444 ;";
    445               pwg_query($query);
    446             }
    447          
    448             // Auto send email notification on group / status downgrade only if never reminded before
    449             if (isset($conf_UAM[23]) and $conf_UAM[23] == 'true')
    450             {
    451               // Set reminder true
    452               $query = "
    453 UPDATE ".USER_LASTVISIT_TABLE."
    454 SET reminder = 'true'
    455 WHERE user_id = '".$user_id."'
    456 ;";
    457               pwg_query($query);
    458 
    459               // Reset confirmed user date_check
    460               $query = '
    461 UPDATE '.USER_CONFIRM_MAIL_TABLE.'
    462 SET date_check = NULL
    463 WHERE user_id = "'.$user_id.'"
    464 ;';
    465                                                   pwg_query($query);
    466 
    467               // Get users information for email notification
    468                                                   $query = '
    469 SELECT username, mail_address
    470 FROM '.USERS_TABLE.'
    471 WHERE id = '.$user_id.'
    472 ;';
    473                                                   $data = pwg_db_fetch_assoc(pwg_query($query));
    474            
    475               demotion_mail($user_id, $data['username'], $data['mail_address']);
    476             }
    477           }
    478           elseif ($reminder) // If user already reminded for ghost account
    479           {
    480             // delete account
    481             delete_user($user_id);
    482           }
     390WHERE user_id = '.$user['id'].';';
     391
     392        $result = pwg_db_fetch_assoc(pwg_query($query));
     393
     394        if (isset($result['reminder']) and $result['reminder'] == 'true')
     395        {
     396          $reminder = true;
    483397        }
    484 
    485         if (!$reminder) // If user never reminded for ghost account
     398        else
    486399        {
    487           // Logged-in user cleanup
     400          $reminder = false;
     401        }
     402
     403        // If never reminded before, set reminder True
     404        if ($reminder) // If user already reminded for ghost account
     405        {
     406          // delete account
     407          delete_user($user['id']);
     408
     409          // Logged-in user cleanup, session destruction and redirected to custom page
    488410          invalidate_user_cache();
    489           log_user($user['id'], false);
    490           redirect(make_index_url());
    491         }
    492         elseif ($reminder) // If user already reminded for ghost account
    493         {
    494           // Logged-in user cleanup
    495           invalidate_user_cache();
    496           log_user($user['id'], false);
     411          logout_user();
    497412          redirect(UAM_PATH.'del_account.php');
    498413        }
     
    10971012    // Management of Extension flags ([username], [mygallery], [myurl])
    10981013    $patterns[] = '#\[username\]#i';
    1099     $replacements[] = $username;
     1014    $replacements[] = stripslashes($username);
    11001015    $patterns[] = '#\[mygallery\]#i';
    11011016    $replacements[] = $conf['gallery_title'];
     
    11221037  );
    11231038
     1039  resetlastvisit($id);
    11241040
    11251041// Sending the email with subject and contents
     
    11961112    // Management of Extension flags ([username], [mygallery], [myurl])
    11971113    $patterns[] = '#\[username\]#i';
    1198     $replacements[] = $username;
     1114    $replacements[] = $result['username'];
    11991115    $patterns[] = '#\[mygallery\]#i';
    12001116    $replacements[] = $conf['gallery_title'];
     
    21972113  $score = $step1 * $step2;
    21982114
    2199   // Multiplication du résultat par la longueur de la chaîne - Multiplying the result by the length of the chain
     2115  // Multiplication du resultat par la longueur de la chaine - Multiplying the result by the length of the string
    22002116  $finalscore = $score * $length;
    22012117
  • extensions/NBC_UserAdvManager/trunk/include/upgradedb.inc.php

    r9135 r9253  
    336336  $Newconf_UAM[29] = 'false';
    337337  $Newconf_UAM[30] = 'You have requested a password reset on our gallery. Please, find below your new connection settings.';
     338  $Newconf_UAM[31] = 'false';
     339  $Newconf_UAM[32] = 'Sorry [username], your account has been deleted because you have not validated your registration in requested time. Please, try registration with a valid and non blocked email account.';
     340  $Newconf_UAM[33] = 'false';
    338341 
    339342  $update_conf = serialize($Newconf_UAM);
  • extensions/NBC_UserAdvManager/trunk/language/de_DE/help/plugin.lang.php

    r9197 r9253  
    220220/*TODO*/$lang['UAM_GTAutoDelTitle_d'] = 'Dies ist nur gültig, wenn der Benutzer, dessen Konto ist abgelaufen selbst löst die Streichung Mechanismus (selten, aber möglich). Er ist dann der Galerie getrennt und umgeleitet auf eine Seite mit der Löschung seines Accounts und gegebenenfalls die Gründe für die Streichung dieses Absatzes.
    221221<br><br>
    222 Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[username]</b> to automatically insert the name of the destination user of the email. Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. Use <b style=&quot;color: red;&quot;>[myurl]</b> to insert your gallery URL if set in Piwigo\'s configuration options.
     222Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. Use <b style=&quot;color: red;&quot;>[myurl]</b> to insert your gallery URL if set in Piwigo\'s configuration options. <b style=&quot;color: red;&quot;>[username]</b> is not available here because concerned user has been deleted.
    223223<br><br>
    224224Custom Text für die Weiterleitungsseite können in dieses Feld eingegeben werden dass ist kompatibel mit den FCK-Editor und, um mehrere Sprachen zu benutzen, können Sie die Extended description Plugin-Tags verwenden, wenn er aktiv ist.';
  • extensions/NBC_UserAdvManager/trunk/language/en_UK/help/plugin.lang.php

    r9197 r9253  
    220220$lang['UAM_GTAutoDelTitle_d'] = 'This is only valid when the user whose account has expired itself triggers the deletion mechanism (rare but possible). he\'s then disconnected of the gallery and redirected to a page showing the deletion of his account and, possibly, the reasons for this deletion.
    221221<br><br>
    222 Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[username]</b> to automatically insert the name of the destination user of the email. Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. Use <b style=&quot;color: red;&quot;>[myurl]</b> to insert your gallery URL if set in Piwigo\'s configuration options.
     222Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. Use <b style=&quot;color: red;&quot;>[myurl]</b> to insert your gallery URL if set in Piwigo\'s configuration options. <b style=&quot;color: red;&quot;>[username]</b> is not available here because concerned user has been deleted.
    223223<br><br>
    224224Custom text for the redirect page can be entered in this field that is compatible with the FCK Editor and, for multi-languages, you can use the tags [lang] of the plugin Extended description if it\'s active.';
  • extensions/NBC_UserAdvManager/trunk/language/es_ES/help/plugin.lang.php

    r9197 r9253  
    216216/*TODO*/$lang['UAM_GTAutoDelTitle_d'] = 'This is only valid when the user whose account has expired itself triggers the deletion mechanism (rare but possible). he\'s then disconnected of the gallery and redirected to a page showing the deletion of his account and, possibly, the reasons for this deletion.
    217217<br><br>
    218 Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[username]</b> to automatically insert the name of the destination user of the email. Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. Use <b style=&quot;color: red;&quot;>[myurl]</b> to insert your gallery URL if set in Piwigo\'s configuration options.
     218Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. Use <b style=&quot;color: red;&quot;>[myurl]</b> to insert your gallery URL if set in Piwigo\'s configuration options. <b style=&quot;color: red;&quot;>[username]</b> is not available here because concerned user has been deleted.
    219219<br><br>
    220220Custom text for the redirect page can be entered in this field that is compatible with the FCK Editor and, for multi-languages, you can use the tags [lang] of the plugin Extended description if it\'s active.';
  • extensions/NBC_UserAdvManager/trunk/language/fr_FR/help/plugin.lang.php

    r9197 r9253  
    4343Cette option n\'est utilisable qu\'une fois l\'option &quot;Confirmation d\'inscription&quot; activée';
    4444$lang['UAM_remailTitle'] = 'Mail de rappel aux inscrits non validés';
    45 $lang['UAM_remailTitle_d'] = 'Cette option permet d\'envoyer un email de rappel aux utilisateurs n\'ayant pas validé leur inscription dans les temps. Elle n\'a d\'effet qu\'une fois l\'option &quot;Confirmation d\'inscription&quot; activée.<br><br>
    46 2 types d\'email peuvent être envoyés : Avec ou sans régénération de la clef de validation. En fonction du cas, le contenu  des emails peut être personnalisé.<br><br>
    47 Reportez-vous à l\'onglet &quot;Suivi des validations&quot;.';
    4845$lang['UAM_remailtxt1Title'] = 'Message de rappel avec regénération de clé';
    4946$lang['UAM_remailtxt2Title'] = 'Message de rappel sans regénération de clé';
     
    217214$lang['UAM_GTAutoDelTitle_d'] = 'Ceci n\'est valable que lorsque l\'utilisateur dont le compte a expiré déclenche lui même le mécanisme de suppression (cas rare mais possible). Il est alors déconnecté de force de la galerie et redirigé vers une page indiquant la suppression de son compte et, éventuellement, les raisons de cette suppression.
    218215<br><br>
    219 Personnalisez encore plus le contenu avec les balises d\'insertion spéciales : Utilisez la balise <b style=&quot;color: red;&quot;>[username]</b> pour insérer automatiquement le nom de l\'utilisateur destinataire de l\'email. Utilisez la balise <b style=&quot;color: red;&quot;>[mygallery]</b> pour insérer le titre de votre galerie. Utilisez la balise <b style=&quot;color: red;&quot;>[myurl]</b> pour insérer l\'URL de votre galerie si renseigné dans les options de configuration de Piwigo.
     216Personnalisez encore plus le contenu avec les balises d\'insertion spéciales : Utilisez la balise <b style=&quot;color: red;&quot;>[mygallery]</b> pour insérer le titre de votre galerie. Utilisez la balise <b style=&quot;color: red;&quot;>[myurl]</b> pour insérer l\'URL de votre galerie si renseigné dans les options de configuration de Piwigo. La balise <b style=&quot;color: red;&quot;>[username]</b> n\'est pas disponible ici puisque l\'utilisateur en question a été supprimé (CQFD !).
    220217<br><br>
    221218Un texte personnalisé pour cette page de redirection peut être saisi dans le champ ci-dessous qui est compatible avec l\'extension FCK Editor. Pour une utilisation multi-langues, vous pouvez utiliser les balises [lang] du plugin Extended Description si celui-ci est actif.';
     
    238235<br><br>
    239236Pour une utilisation multi-langues, vous pouvez utiliser les balises [lang] du plugin Extended Description si celui-ci est actif.';
     237$lang['UAM_validationlimitTitle_d'] = 'Cette option permet de limiter le nombre de jours pendant lequel un nouvel utilisateur peut valider son inscription. Une fois ce délai expiré, le lien de validation sera invalide, et ne pourra plus être employé.
     238<br><br>
     239Cette option n\'est utilisable qu\'une fois l\'option &quot;Confirmation d\'inscription&quot; activée.
     240<br><br>
     241Si cette option et l\'option &quot;Mail de rappel aux inscrits non validés&quot; sont activées, de nouvelles options apparaitront plus bas dans cette section pour permettre l\'automatisation de la gestion des visiteurs non validés.';
     242$lang['UAM_remailTitle_d'] = 'Cette option permet d\'envoyer un email de rappel aux utilisateurs n\'ayant pas validé leur inscription dans les temps. Elle n\'a d\'effet qu\'une fois l\'option &quot;Confirmation d\'inscription&quot; activée.<br><br>
     2432 types d\'email peuvent être envoyés : Avec ou sans régénération de la clef de validation. En fonction du cas, le contenu  des emails peut être personnalisé.<br><br>
     244Reportez-vous à l\'onglet &quot;Suivi des validations&quot;.
     245<br><br>
     246Si cette option et l\'option &quot;Mail de rappel aux inscrits non validés&quot; sont activées, de nouvelles options apparaitront plus bas dans cette section pour permettre l\'automatisation de la gestion des visiteurs non validés.';
     247$lang['UAM_USRAutoTitle'] = 'Gestion automatique des visiteurs non validés';
     248$lang['UAM_USRAutoTitle_d'] = 'La gestion automatique des visiteurs non validés est déclenchée à chaque connexion à la galerie et fonctionne ainsi :
     249<br><br>
     250- Suppression automatique des comptes non validés dans le temps imparti sans envoi automatique de mail de relance -> &quot;Limitation du délai de validation d\'inscription&quot; <b><u>est actif</u></b> et &quot;Mail de rappel aux inscrits non validés&quot; <b><u>est inactif</u></b>.
     251<br><br>
     252- Envoi automatique d\'un message de rappel avec génération d\'une nouvelle clé de validation puis suppression automatique des comptes non validés dans le temps imparti après l\'envoi de la relance -> &quot;Limitation du délai de validation d\'inscription&quot; <b><u>est actif</u></b> et &quot;Mail de rappel aux inscrits non validés&quot; <b><u>est actif</u></b>.';
     253$lang['UAM_USRAutoDelTitle'] = 'Message à la suppressions automatiques des comptes';
     254$lang['UAM_USRAutoDelTitle_d'] = 'Ceci n\'est valable que lorsque l\'utilisateur dont le compte est à supprimer déclenche lui même le mécanisme de suppression (cas rare mais possible). Il est alors déconnecté de force de la galerie et redirigé vers une page indiquant la suppression de son compte et, éventuellement, les raisons de cette suppression.
     255<br><br>
     256Un texte pour cette page de redirection est donné à titre d\'exemple, ci-dessous, et peut être personnalisé. Ce champ est compatible avec le plugin FCK Editor. Pour une utilisation multi-langues, vous pouvez utiliser les balises [lang] du plugin Extended Description si celui-ci est actif.
     257<br><br>
     258Personnalisez encore plus le contenu avec les balises d\'insertion spéciales : Utilisez la balise <b style=&quot;color: red;&quot;>[username]</b> pour insérer automatiquement le nom de l\'utilisateur destinataire de l\'email. Utilisez la balise <b style=&quot;color: red;&quot;>[mygallery]</b> pour insérer le titre de votre galerie. Utilisez la balise <b style=&quot;color: red;&quot;>[myurl]</b> pour insérer l\'URL de votre galerie si renseigné dans les options de configuration de Piwigo.';
     259$lang['UAM_USRAutoMailTitle'] = 'Message de rappel automatique';
     260$lang['UAM_USRAutoMailTitle_d'] = 'Lorsque activée, cette fonction enverra automatiquement le contenu personnalisé dans &quot;Message de rappel avec regénération de clé&quot; aux visiteurs répondant au critère.';
    240261// --------- End: New or revised $lang ---- from version 2.20.0
    241262?>
  • extensions/NBC_UserAdvManager/trunk/language/fr_FR/plugin.lang.php

    r9177 r9253  
    289289$lang['UAM_CustomPasswRetr_false'] = ' Désactiver (valeur par défaut)';
    290290$lang['UAM_CustomPasswRetr_true'] = ' Activer';
     291$lang['UAM_USRAuto'] = 'Gestion automatique des visiteurs non validés';
     292$lang['UAM_USRAuto_false'] = ' Désactiver (valeur par défaut)';
     293$lang['UAM_USRAuto_true'] = ' Activer';
     294$lang['UAM_USRAutoDel'] = 'Message à la suppressions automatiques des comptes';
     295$lang['UAM_USRAutoMail'] = 'Message de rappel automatique';
     296$lang['UAM_USRAutoMail_false'] = ' Désactiver (valeur par défaut)';
     297$lang['UAM_USRAutoMail_true'] = ' Activer';
    291298// --------- End: New or revised $lang ---- from version 2.20.0
    292299?>
  • extensions/NBC_UserAdvManager/trunk/language/it_IT/help/plugin.lang.php

    r9197 r9253  
    207207/* TODO */$lang['UAM_GTAutoDelTitle_d'] = 'This is only valid when the user whose account has expired itself triggers the deletion mechanism (rare but possible). he\'s then disconnected of the gallery and redirected to a page showing the deletion of his account and, possibly, the reasons for this deletion.
    208208<br><br>
    209 Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[username]</b> to automatically insert the name of the destination user of the email. Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. Use <b style=&quot;color: red;&quot;>[myurl]</b> to insert your gallery URL if set in Piwigo\'s configuration options.
     209Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. Use <b style=&quot;color: red;&quot;>[myurl]</b> to insert your gallery URL if set in Piwigo\'s configuration options. <b style=&quot;color: red;&quot;>[username]</b> is not available here because concerned user has been deleted.
    210210<br><br>
    211211Custom text for the redirect page can be entered in this field that is compatible with the FCK Editor and, for multi-languages, you can use the tags [lang] of the plugin Extended description if it\'s active.';
  • extensions/NBC_UserAdvManager/trunk/language/lv_LV/help/plugin.lang.php

    r9197 r9253  
    241241/* TODO */$lang['UAM_GTAutoDelTitle_d'] = 'Šis variants ir iespējams tikai tad, ja lietotājs, kura konta derīguma termiņš ir beidzies, pats ieslēdz dzēšanas mehānismu (rets, bet iespējams gadījums). Tad viņš tiek atslēgts no galerijas un novirzīts uz lapu, kas atspoguļo viņa konta dzēšanas faktu un iespējamo šīs dzēšanas iemeslu.
    242242<br><br>
    243 Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[username]</b> to automatically insert the name of the destination user of the email. Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. Use <b style=&quot;color: red;&quot;>[myurl]</b> to insert your gallery URL if set in Piwigo\'s configuration options.
     243Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. Use <b style=&quot;color: red;&quot;>[myurl]</b> to insert your gallery URL if set in Piwigo\'s configuration options. <b style=&quot;color: red;&quot;>[username]</b> is not available here because concerned user has been deleted.
    244244<br><br>
    245245Pāradresācijas lapai paredzēto pielāgoto tekstu var ievadīt šajā laukā, savietojams ar FCK Redaktora standartu, lai izmantotu multi-valodu režīmu, lietojiet spraudņa paplašinātais apraksts Extended description iezīmes [lang], tikai gadījumā, ja spraudnis aktīvs.';
  • extensions/NBC_UserAdvManager/trunk/maintain.inc.php

    r9197 r9253  
    2626Best regards,
    2727
    28 The admin of the gallery.','false','false','false','false','false','Sorry [username], your account has been deleted due to a too long time passed since your last visit at [mygallery].','Sorry [username], your account has been deprecated due to a too long time passed since your last visit at [mygallery]. Please, use the following link to revalidate your account.',-1,-1,'Thank you for registering at [mygallery]. Your account has been manually validated by _admin_. You may now log in at _link_to_site_ and make any appropriate changes to your profile. Welcome to _name_of_site_!','false','You have requested a password reset on our gallery. Please, find below your new connection settings.');
     28The admin of the gallery.','false','false','false','false','false','Sorry [username], your account has been deleted due to a too long time passed since your last visit at [mygallery].','Sorry [username], your account has been deprecated due to a too long time passed since your last visit at [mygallery]. Please, use the following link to revalidate your account.',-1,-1,'Thank you for registering at [mygallery]. Your account has been manually validated by _admin_. You may now log in at _link_to_site_ and make any appropriate changes to your profile. Welcome to _name_of_site_!','false','You have requested a password reset on our gallery. Please, find below your new connection settings.','false','Sorry, your account has been deleted because you have not validated your registration in requested time. Please, try registration with a valid and non blocked email account.','false');
    2929
    3030  $q = '
Note: See TracChangeset for help on using the changeset viewer.