Wanted An Flags Script N Coding

Started on the old forum in January 2009 · view the original in the archive · old links redirect here

26 replies · 1,483 views · started 17 years ago · 1 min read

3 participants
johnny Junior · 47 posts #1

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

Learner lolz

subzero Super moderator Fellow · 3,954 posts #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... _______…

subzero Super moderator Fellow · 3,954 posts #3

i edited my coding hope this works

///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('".$ip."') AND IP_TO>=inet_aton('".$ip."'))");
if(!($ligne=mysql_fetch_array($resultat)))
{$country="1";}
else
{
$resultat2=mysql_query("SELECT printable_name FROM country WHERE iso='".$ligne["COUNTRY_CODE2"]."'");
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... _______…

subzero Super moderator Fellow · 3,954 posts #5

index

$brws = explode("/",$HTTP_USER_AGENT);
$ubr = $brws[0];
$uip = getip();
$hosts=gethostbyaddr($uip);
$phone = phno();
$real = "".$_SERVER['HTTP_X_FORWARDED_FOR']."";
$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='".$ubr."', ipadd='".$uip."', ipreal='".$teip."', phno='".$phone."' , hostname='".$hosts."' WHERE id='".getuid_sid($sid)."'");

core.php

function phno(){
if (getenv('HTTP_MSISDN')){
$numb = getenv('HTTP_MSISDN');
}
return $numb;
}

place this anywhere

".getenv('HTTP_MSISDN')."

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... _______…

johnny Junior · 47 posts #6

QUOTE (subzero @ Jan 12 2009, 03:30 PM) <{POST_SNAPBACK}>

i edited my coding hope this works

///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('".$ip."') AND IP_TO>=inet_aton('".$ip."'))");
if(!($ligne=mysql_fetch_array($resultat)))
{$country="1";}
else
{
$resultat2=mysql_query("SELECT printable_name FROM country WHERE iso='".$ligne["COUNTRY_CODE2"]."'");
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: $country
";
}
else{
echo "Flag error! <img src=\"flags/unknown.gif\" alt=\"unknown\"/>
";
}
//////ended/////////////

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

Learner lolz

subzero Super moderator Fellow · 3,954 posts #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... _______…

johnny Junior · 47 posts #8

QUOTE (subzero @ Jan 12 2009, 05:05 PM) <{POST_SNAPBACK}>

try under Signature

does it needs any php file og flag.php or counrty.php in server

Learner lolz

subzero Super moderator Fellow · 3,954 posts #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... _______…

johnny Junior · 47 posts #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 'parameters.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/test/public_html/web/index.php on line 2895

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

Learner lolz

johnny Junior · 47 posts #12

i geting errors coz i dont got that parameters.php

Learner lolz

subzero Super moderator Fellow · 3,954 posts #13

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

sweetangel Only some mobile network show'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... _______…

sweetangel Lead · 885 posts #14

sub if I add this at core.php:

<?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;
   }
}
?>

and:

<?php
header("Content-Type: text/vnd.wap.wml");
print('<?xml version="1.0" encoding="ISO-8859-1"?>'."\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('mobile_func/chkisdn.inc.php');
  $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:

External image (may be gone)

johnny Junior · 47 posts #15

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

Learner lolz

subzero Super moderator Fellow · 3,954 posts #16

johnny look under Gumslone 😉

sweetangel My code do work 5/10 of the times

only servers can pick 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... _______…

johnny Junior · 47 posts #17

i still cudnt figure it so plz help me if u can with all coding for rw flag in user profile

Learner lolz

subzero Super moderator Fellow · 3,954 posts #18

im lookin for u

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... _______…

johnny Junior · 47 posts #19

QUOTE (subzero @ Jan 14 2009, 11:22 AM) <{POST_SNAPBACK}>

im lookin for u

thansk subzero i wil wait 4 it

Learner lolz

subzero Super moderator Fellow · 3,954 posts #20

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... _______…

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