Ignore:
Timestamp:
2007/05/24 19:45:43 (15 years ago)
Author:
naka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/test/naka/test.php

    r13350 r13371  
    11<?php 
    22 
    3 function gfIsMobileMailAddress($address) { 
    4     $arrMobileMailDomains = array('docomo.ne.jp', 'ezweb.ne.jp', 'softbank.ne.jp', 'vodafone.ne.jp', 'pdx.ne.jp'); 
     3require_once("../../require.php"); 
    54 
    6     if (defined('MOBILE_ADDITIONAL_MAIL_DOMAINS')) { 
    7         $arrMobileMailDomains = array_merge($arrMobileMailDomains, split('[ ,]+', MOBILE_ADDITIONAL_MAIL_DOMAINS)); 
    8     } 
    9  
    10     foreach ($arrMobileMailDomains as $domain) { 
    11         $domain = str_replace('.', '\\.', $domain); 
    12         if (preg_match("/@([^@]+\\.)?$domain\$/", $address)) { 
    13             return true; 
    14         } 
    15     } 
    16  
    17     return false; 
    18 } 
    19  
    20  
    21 print(gfIsMobileMailAddress('tatsuyadake-aisitel@dk.pdxa.ne.jp')); 
     5gfDebugLog($_GET); 
    226 
    237?> 
Note: See TracChangeset for help on using the changeset viewer.