Changeset 4062 for extensions/NBC_UserAdvManager/branches/2.11/include/functions_UserAdvManager.inc.php
- Timestamp:
- Oct 19, 2009, 6:23:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/branches/2.11/include/functions_UserAdvManager.inc.php
r3983 r4062 535 535 536 536 /* 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 //} 553 553 554 554 … … 577 577 /* Obsolete function - Check for no forbidden email provider */ 578 578 /* 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 else594 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 //} 598 598 599 599
Note: See TracChangeset
for help on using the changeset viewer.