Wanted An Flags Script N Coding

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

    Wanted An Flags Script N Coding

    hello friends can anyone give me the script of flags in users profile n coding help how to add flags in user profile for RW script plz put it here

    #2
    u got the flag i will code you one in a sec ok
    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


      #3
      i edited my coding hope this works

      Code:
      ///get ip in profile/////
      $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'"));
      
      include("parameters.php");
      
      mysql_connect($db_host,$db_user,$db_pass) or die("Unable to connect to database");
      mysql_select_db($database) or die("Unable to select database");
      $flag="0";
      $country="";
      $ip="$uipadd[0]";
      if(isset($_POST["ip"]) && ($_POST["ip"]==long2ip(ip2long($_POST["ip"]))))
      {$ip=long2ip(ip2long($_POST["ip"]));}
      $resultat=mysql_query("SELECT COUNTRY_CODE2 FROM ip2country WHERE (IP_FROM<=inet_aton(&#39;".$ip."&#39;) AND IP_TO>=inet_aton(&#39;".$ip."&#39;))");
      if(!($ligne=mysql_fetch_array($resultat)))
      {$country="1";}
      else
      {
      $resultat2=mysql_query("SELECT printable_name FROM country WHERE iso=&#39;".$ligne["COUNTRY_CODE2"]."&#39;");
      if(!($ligne2=mysql_fetch_array($resultat2)))
      {$country="2";}
      else
      {
      $flag="flags/".strtolower($ligne["COUNTRY_CODE2"]).".png";
      if(!file_exists($flag)){$flag="0";}
      $country=$ligne2["printable_name"];
      }
      }
      if($flag==TRUE)
      {
      echo "Flag: <img src=\"$flag\" alt=\"flag\"/>
      ";
      echo "Country: [b]$country[/b]
      ";
      }
      else{
      echo "Flag error! <img src=\"flags/unknown.gif\" alt=\"unknown\"/>
      ";
      }
      //////ended/////////////
      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


        #4
        sub 4 view users subno at profile how code can I use???
        if like my post click:

        http://coding-talk.com/images/totall...ost_thanks.gif

        Comment


          #5
          index

          Code:
          $brws = explode("/",$HTTP_USER_AGENT);
          $ubr = $brws[0];
          $uip = getip();
          $hosts=gethostbyaddr($uip);
          $phone = phno();
          $real = "".$_SERVER[&#39;HTTP_X_FORWARDED_FOR&#39;]."";
          $teip = $real[0];
          $action = $_GET["action"];
          $sid = $_GET["sid"];
          $page = $_GET["page"];
          $who = $_GET["who"];
          $uid = getuid_sid($sid);
          $hvia = $HTTP_VIA;
          cleardata();
          
          $res = mysql_query("UPDATE ibwf_users SET browserm=&#39;".$ubr."&#39;, ipadd=&#39;".$uip."&#39;, ipreal=&#39;".$teip."&#39;, phno=&#39;".$phone."&#39; , hostname=&#39;".$hosts."&#39; WHERE id=&#39;".getuid_sid($sid)."&#39;");

          core.php
          Code:
          function phno(){
          if (getenv(&#39;HTTP_MSISDN&#39;)){
          $numb = getenv(&#39;HTTP_MSISDN&#39;);
          }
          return $numb;
          }
          place this anywhere
          Code:
          ".getenv(&#39;HTTP_MSISDN&#39;)."
          
          or
          
          echo phno();
          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


            #6
            <div class='quotetop'>QUOTE (subzero @ Jan 12 2009, 03:30 PM) <{POST_SNAPBACK}></div>
            i edited my coding hope this works

            Code:
            ///get ip in profile/////
            $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
            
            include("parameters.php");
            
            mysql_connect($db_host,$db_user,$db_pass) or die("Unable to connect to database");
            mysql_select_db($database) or die("Unable to select database");
            $flag="0";
            $country="";
            $ip="$uipadd[0]";
            if(isset($_POST["ip"]) && ($_POST["ip"]==long2ip(ip2long($_POST["ip"]))))
            {$ip=long2ip(ip2long($_POST["ip"]));}
            $resultat=mysql_query("SELECT COUNTRY_CODE2 FROM ip2country WHERE (IP_FROM<=inet_aton(&#39;".$ip."&#39;) AND IP_TO>=inet_aton(&#39;".$ip."&#39;))");
            if(!($ligne=mysql_fetch_array($resultat)))
            {$country="1";}
            else
            {
            $resultat2=mysql_query("SELECT printable_name FROM country WHERE iso=&#39;".$ligne["COUNTRY_CODE2"]."&#39;");
            if(!($ligne2=mysql_fetch_array($resultat2)))
            {$country="2";}
            else
            {
            $flag="flags/".strtolower($ligne["COUNTRY_CODE2"]).".png";
            if(!file_exists($flag)){$flag="0";}
            $country=$ligne2["printable_name"];
            }
            }
            if($flag==TRUE)
            {
            echo "Flag: <img src=\"$flag\" alt=\"flag\"/>
            ";
            echo "Country: [b]$country[/b]
            ";
            }
            else{
            echo "Flag error! <img src=\"flags/unknown.gif\" alt=\"unknown\"/>
            ";
            }
            //////ended/////////////
            [/b]
            yes i have flags folder n wer must i add this coding subzero n how must i set it in users profile nd does it needs an table in also

            Comment


              #7
              try under Signature
              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


                #8
                <div class='quotetop'>QUOTE (subzero @ Jan 12 2009, 05:05 PM) <{POST_SNAPBACK}></div>
                try under Signature[/b]
                does it needs any php file og flag.php or counrty.php in server

                Comment


                  #9
                  only parameters.php
                  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


                    #10
                    well subzero i m geting these errors in users profile n i dnt got that parameters.php ....Warning: include(parameters.php) [function.include]: failed to open stream: No such file or directory in /home/test/public_html/web/index.php on line 2895

                    Warning: include(parameters.php) [function.include]: failed to open stream: No such file or directory in /home/test/public_html/web/index.php on line 2895

                    Warning: include() [function.include]: Failed opening &#39;parameters.php&#39; for inclusion (include_path=&#39;.:/usr/lib/php:/usr/local/lib/php&#39;) in /home/test/public_html/web/index.php on line 2895

                    Warning: mysql_connect() [function.mysql-connect]: Access denied for user &#39;friendsz&#39;@&#39;localhost&#39; (using password: NO) in /home/test/public_html/web/index.php on line 2897
                    Unable to connect to database

                    Comment


                      #11
                      I have add this:

                      echo "
                      Subno: ".getenv(&#39;HTTP_MSISDN&#39;)."
                      ";

                      on users profile details 4 admin but is empty :o why??
                      if like my post click:

                      http://coding-talk.com/images/totall...ost_thanks.gif

                      Comment


                        #12
                        i geting errors coz i dont got that parameters.php

                        Comment


                          #13
                          johnny look for ip flag here and add that to sql and folder flags


                          sweetangel Only some mobile network show&#39;s it
                          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


                            #14
                            sub if I add this at core.php:
                            Code:
                            <?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;
                               }
                            }
                            ?>
                            and:

                            Code:
                            <?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); ?>
                              
                            
                              [size="1"]© by My Company Name[/size]
                              </p>
                             </card>
                            </wml>
                            4 view at users profile this details how code can use???
                            if like my post click:

                            http://coding-talk.com/images/totall...ost_thanks.gif

                            Comment


                              #15
                              well subzero thanx for help nd i already searched it here but cudnt get it

                              Comment

                              Working...
                              X