check isdn

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    check isdn

    Check ISDN
    Retrieve of number of a phone accessing a WAP site
    PHP Code:
    <?php
    class check_isdn()
    {
       
    //Non standard class
       
    function _get_mobile_number()
       {
        global 
    $_SERVER;
        if(isset(
    $_SERVER['HTTP_X_UP_CALLING_LINE_ID']))
        {
          
    //Mostly this Server Vars Attribute all mobile phones
          
    $hpnum trim($_SERVER['HTTP_X_UP_CALLING_LINE_ID']);
        } 
        else if(isset(
    $_SERVER['HTTP_X_HTS_CLID'])) 
        {
          
    //Mostly this Server Vars Attribute is for Nokia and SonyEricsson
          
    $hpnum trim($_SERVER['HTTP_X_HTS_CLID']);
        } 
        else if(isset(
    $_SERVER['HTTP_MSISDN']))
        {
          
    //Mostly this Server Vars Attribute is for Motorola and Siemens
         
    $hpnum trim($_SERVER['HTTP_MSISDN']);
        }
        return 
    $hpnum;
       }

       function 
    _validate_isdn($hp=NULL)
       {
          
    $blnvalid false;
          
    //Set your preferences here
          
    if(preg_match("/6738/i",$hp)) 
          {
           
    $blnvalid true;
          } 
          return 
    $blnvalid;
       }
    }
    ?>

    #2
    Wondering if 1 can code this into a banning script instead of using IP ban u can ban cellular number
    My site: http://mimobifunclub.tk
    sigpic

    Comment


      #3
      How to use this snipplet?
      I copy and paste the code exactly...seems got errors....any idea?

      Comment


        #4
        of course you an use this for ban a cel phone number

        Comment


          #5
          This code is not working and is not usefull, by the way Check ISDN for HTTP - free PHP Wap, Wml, Mobile, Phone Script No other comments
          www.inbuzunar.mobi - Your mobile portal pocket

          Comment


            #6
            Originally posted by kiss View Post
            This code is not working and is not usefull, by the way Check ISDN for HTTP - free PHP Wap, Wml, Mobile, Phone Script No other comments
            this is useless too
            PHP Code:
            class check_isdn()

            lolz!!!

            Comment

            Working...
            X