Changeset 4062 for extensions


Ignore:
Timestamp:
Oct 19, 2009, 6:23:40 PM (15 years ago)
Author:
Eric
Message:

[NBC_UserAdvManager] 4061 merged from trunk to branch 2.11

  • Bug 1195 fixed : Registration page displays now the good title
Location:
extensions/NBC_UserAdvManager/branches/2.11
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/branches/2.11/admin/usermanager.tpl

    r3921 r4062  
    1818                        <td>{'Email address'|@translate}</td>
    1919                        <td>{'Groups'|@translate}</td>
    20                         <td>{'Registration'|@translate}</td>
     20                        <td>{'Registration_Date'|@translate}</td>
    2121                        </tr>
    2222                        </thead>
  • extensions/NBC_UserAdvManager/branches/2.11/include/functions_UserAdvManager.inc.php

    r3983 r4062  
    535535
    536536/* Obsolete function - Check for single email in database */
    537 function SearchMail($email)
    538 {
    539   global $conf, $lang;
    540  
    541   if (isset($email))
    542   {
    543     $query = "
    544       SELECT COUNT(*)
    545       FROM ".USERS_TABLE."
    546       WHERE ".$conf['user_fields']['email']." = '".$email."'
    547     ;";
    548     list($nbr_mail) = mysql_fetch_row(pwg_query($query));
    549  
    550     return isset($nbr_mail) ? $nbr_mail : 0;
    551   }
    552 }
     537//function SearchMail($email)
     538//{
     539//  global $conf, $lang;
     540// 
     541//  if (isset($email))
     542//  {
     543//    $query = "
     544//      SELECT COUNT(*)
     545//      FROM ".USERS_TABLE."
     546//      WHERE ".$conf['user_fields']['email']." = '".$email."'
     547//    ;";
     548//    list($nbr_mail) = mysql_fetch_row(pwg_query($query));
     549// 
     550//    return isset($nbr_mail) ? $nbr_mail : 0;
     551//  }
     552//}
    553553
    554554
     
    577577/* Obsolete function - Check for no forbidden email provider */
    578578/* This don't work on function call */
    579 function ValidateEmailProvider($email)
    580 {
    581   global $conf;
    582 
    583         $conf_nbc_UserAdvManager = isset($conf['nbc_UserAdvManager']) ? explode(";" , $conf['nbc_UserAdvManager']) : array();
    584         if (isset($conf_nbc_UserAdvManager[12]))
    585         {
    586                 $ncsemail = strtolower($email);
    587                 $conf_nbc_MailExclusion = preg_split('/,/',$conf_nbc_UserAdvManager[13]);
    588                 for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
    589                 {
    590                         $pattern = '/'.$conf_nbc_MailExclusion[$i].'/';
    591                         if (preg_match($pattern, $ncsemail))
    592                         return false;
    593                 else
    594                         return true;
    595                 }
    596         }
    597 }
     579//function ValidateEmailProvider($email)
     580//{
     581//  global $conf;
     582//
     583//      $conf_nbc_UserAdvManager = isset($conf['nbc_UserAdvManager']) ? explode(";" , $conf['nbc_UserAdvManager']) : array();
     584//      if (isset($conf_nbc_UserAdvManager[12]))
     585//      {
     586//              $ncsemail = strtolower($email);
     587//              $conf_nbc_MailExclusion = preg_split('/,/',$conf_nbc_UserAdvManager[13]);
     588//              for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
     589//              {
     590//                      $pattern = '/'.$conf_nbc_MailExclusion[$i].'/';
     591//                      if (preg_match($pattern, $ncsemail))
     592//                      return false;
     593//              else
     594//                              return true;
     595//              }
     596//      }
     597//}
    598598
    599599
  • extensions/NBC_UserAdvManager/branches/2.11/language/en_UK/plugin.lang.php

    r3983 r4062  
    7474- Submit a registration awaiting validation manually even if the expiry date has passed <b>(forcing validation)</b>.
    7575<br>';
    76 $lang['Registration'] = 'Registration date';
     76$lang['Registration_Date'] = 'Registration date';
    7777
    7878
  • extensions/NBC_UserAdvManager/branches/2.11/language/fr_FR/plugin.lang.php

    r3983 r4062  
    7474- Valider manuellement une inscription en attente de validation même si la date d\'expiration est révolue <b>(forçage de la validation)</b>.
    7575<br>';
    76 $lang['Registration'] = 'Date d\'enregistrement';
     76$lang['Registration_Date'] = 'Date d\'enregistrement';
    7777
    7878
  • extensions/NBC_UserAdvManager/branches/2.11/main.inc.php

    r3983 r4062  
    22/*
    33Plugin Name: NBC UserAdvManager
    4 Version: 2.11.4
     4Version: 2.11.5
    55Description: Permet de renforcer les possibilités de gestion des utilisateurs - Enforce users management
    66Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=216
     
    6767                                                Bug 1179 fixed : Adding a notice in plugin inline documentation for use of validation groups and status. A default group must be set in Piwigo's groups settings and the "Guest" (or another user) must be set as default for status values.
    6868                                                Bug 1182 fixed : Language tag missing in confirmation email generation
     69
     70-- 2.11.5 : Bug 1195 fixed : Registration displays the good title
    6971
    7072*/
Note: See TracChangeset for help on using the changeset viewer.