Ignore:
Timestamp:
Oct 19, 2009, 6:23:40 PM (11 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.