check isdn

Started on the old forum in June 2011 · view the original in the archive · old links redirect here

5 replies · 1,411 views · started 15 years ago · 1 min read

6 participants
Anshul Senior · 296 posts #1

Check ISDN Retrieve of number of a phone accessing a WAP site

<?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;
   }
}
?> 
nonani Developer · 64 posts #3

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

vinix Junior · 10 posts #4

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close