Hmmm

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

    #31
    O i worked on sumthing and so far so good it works for me create a folder called mobile_func and then put this file in it called chkisdn.inc

    Heres the code for that

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php

    class check_isdn()
    {
    //Non standard class
    function _get_mobile_number()
    {
    global $_SERVER;
    if(isset($_SERVER[&#39;HTTP_X_UP_CALLING_LINE_ID&#39;]))
    {
    //Mostly this Server Vars Attribute all mobile phones
    $hpnum = trim($_SERVER[&#39;HTTP_X_UP_CALLING_LINE_ID&#39;]);
    }
    else if(isset($_SERVER[&#39;HTTP_X_HTS_CLID&#39;]))
    {
    //Mostly this Server Vars Attribute is for Nokia and SonyEricsson
    $hpnum = trim($_SERVER[&#39;HTTP_X_HTS_CLID&#39;]);
    }
    else if(isset($_SERVER[&#39;HTTP_MSISDN&#39;]))
    {
    //Mostly this Server Vars Attribute is for Motorola and Siemens
    $hpnum = trim($_SERVER[&#39;HTTP_MSISDN&#39;]);
    }
    return $hpnum;
    }

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

    Ok place this code where you wana display the phone number and viola

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php
    header("Content-Type: text/vnd.wap.wml");
    print(&#39;<?xml version="1.0" encoding="ISO-8859-1"?>&#39;."\n");
    ?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org//DTD//wml_1.1.xml">
    <wml>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <meta http-equiv="cache-control" content="no-cache"/>
    <meta name="MobileOptimized" content="width">
    </head>
    <card title="My Wap Portal">
    <p mode="nowrap">


    <?php
    include(&#39;mobile_func/chkisdn.inc.php&#39;);
    $objisdn=new check_isdn();
    $getmobilenumber=$objisdn->_get_mobile_number();
    ?>
    Your mobile number is <?php print($getmobilenumber); ?>


    © by My Company Name
    </p>
    </card>
    </wml></div>

    Comment


      #32
      Kwl im gona try this code out tanx allot kaibaspoon

      Comment


        #33
        Is need to remove brackets from
        class check_isdn()

        in class correct is
        class check_isdn

        Comment


          #34
          <div class='quotetop'>QUOTE (wolf77ar @ Jan 9 2009, 05:52 PM) <{POST_SNAPBACK}></div>
          Is need to remove brackets from
          class check_isdn()

          in class correct is
          class check_isdn
          [/b]
          code wont work anyway
          It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
          ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
          ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
          キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

          Comment


            #35
            Yes, sems to show .... nothing

            Comment


              #36
              <div class='quotetop'>QUOTE (wolf77ar @ Jan 9 2009, 07:41 PM) <{POST_SNAPBACK}></div>
              Yes, sems to show .... nothing [/b]

              It works read thru the script an edit were i pointed you should edit duh

              Comment


                #37
                so.. if this works... you can tell me my phone number??
                BOLLOX! this will never work
                It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                Comment


                  #38
                  i got a code that works

                  I will infrom you only some network will show it in subno

                  NOT ALL WILL!!
                  Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                  Visit: WapMasterz Coming Back Soon!
                  _______
                  SCRIPTS FOR SALE BY SUBZERO
                  Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                  FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                  _______
                  Info & Tips
                  php.net
                  w3schools.com

                  Comment


                    #39
                    Call this file with phone and see lines for telephone number detections

                    test

                    this is the file contens:
                    Code:
                    <?php
                    echo "1: ".$_SERVER[&#39;HTTP_X_UP_CALLING_LINE_ID&#39;]."
                    ";
                    echo "2: ".$_SERVER[&#39;HTTP_X_HTS_CLID&#39;]."
                    ";
                    echo "3: ".$_SERVER[&#39;HTTP_MSISDN&#39;]."
                    ";
                    echo "4: ".$_SERVER[&#39;HTTP_X_OPERAMINI_FEATURES&#39;]."
                    ";
                    echo "5: ".$_SERVER[&#39;HTTP_X_OPERAMINI_PHONE_UA&#39;]."
                    ";
                    echo "6: ".$_SERVER[&#39;HTTP_X_OPERAMINI_PHONE&#39;]."
                    ";
                    echo "7: ".$_SERVER[&#39;HTTP_APNCONTENT_LENGTH&#39;]."
                    ";
                    echo "8: ".$_SERVER[&#39;HTTP_X_NOKIA_BEARER&#39;]."
                    ";
                    echo "9: ".$_SERVER[&#39;HTTP_X_NOKIA_CONNECTION_MODE&#39;]."
                    ";
                    echo "10: ".$_SERVER[&#39;HTTP_X_NOKIA_GATEWAY_ID&#39;]."
                    ";
                    echo "11: ".$_SERVER[&#39;HTTP_X_NOKIA_WIA_ACCEPT_ORIGINAL&#39;]."
                    ";
                    echo "12: ".$_SERVER[&#39;HTTP_X_NOKIA_IPADDRESS&#39;]."
                    ";
                    echo "13: ".$_SERVER[&#39;HTTP_X_NOKIA_LOCALSOCKET&#39;]."
                    ";
                    echo "14: ".$_SERVER[&#39;HTTP_X_NOKIA_REMOTESOCKET&#39;]."
                    ";
                    echo "15: ".$_SERVER[&#39;HTTP_X_NOKIA_MSISDN&#39;]."
                    ";
                    echo "16: ".$_SERVER[&#39;HTTP_X_NOKIA_PREPAIDIND&#39;]."
                    ";
                    echo "17: ".$_SERVER[&#39;HTTP_X_XXY_CONNECTION&#39;]."
                    ";
                    echo "18: ".$_SERVER[&#39;HTTP_CLIENT_IP&#39;]."
                    ";
                    echo "19: ".$_SERVER[&#39;HTTP_X_WAP_PROFILE_DIFF&#39;]."
                    ";
                    echo "20: ".$_SERVER[&#39;HTTP_WAP_CONNECTION&#39;]."
                    ";
                    echo "21: ".$_SERVER[&#39;HTTP_X_HTS_APN&#39;]."
                    ";
                    echo "22: ".$_SERVER[&#39;HTTP_X_UP_UPLINK&#39;]."
                    ";
                    echo "23: ".$_SERVER[&#39;HTTP_X_WTE_MSISDN&#39;]."
                    ";
                    echo "24: ".$_SERVER[&#39;HTTP_X_WTE_APN&#39;]."
                    ";
                    echo "25: ".$_SERVER[&#39;HTTP_X_WTE_BEARER&#39;]."
                    ";
                    echo "26: ".$_SERVER[&#39;HTTP_X_WAP_TOD_CODED&#39;]."
                    ";
                    echo "27: ".$_SERVER[&#39;HTTP_X_NOKIA_WTLS&#39;]."
                    ";
                    echo "28: ".$_SERVER[&#39;HTTP_USER_IDENTITY_FORWARD_MSISDN&#39;]."
                    ";
                    echo "29: ".$_SERVER[&#39;HTTP_X_NETWORK_TYPE&#39;]."
                    ";
                    echo "30: ".$_SERVER[&#39;HTTP_X_WAP_NETWORK_CLIENT_IP&#39;]."
                    ";
                    echo "31: ".$_SERVER[&#39;HTTP_X_WAP_NETWORK_CLIENT_PORT&#39;]."
                    ";
                    ?>
                    Maybe it works for some countries, for me Orange Romania not show me any number
                    Just proxy and port network on lines 13 - 14

                    Comment


                      #40
                      If you so called have the code show it....
                      I shared mine

                      Comment


                        #41
                        Yes i know
                        but i want to know what code, from what lines is good for differents operators
                        Your codes is in lines 1, 2 and 3

                        Comment


                          #42
                          the code i use has already been posted in this topic lol

                          Comment


                            #43
                            Yes i know :P
                            i copyed from there
                            I say, is for testing, to see the good lines

                            Comment


                              #44
                              guys your codes wouldnt work with most european operators, so they are useless
                              Advertise your mobile site for FREE with AdTwirl

                              Comment


                                #45
                                Thats what iv been saying all along .... it only works on unsecured networks

                                Comment

                                Working...
                                X