Wanted An Flags Script N Coding
Started on the old forum in January 2009 · view the original in the archive · old links redirect here
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... _______…
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... _______…
sub 4 view users subno at profile how code can I use???
if like my post click:
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... _______…
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
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... _______…
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
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... _______…
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
I have add this:
echo " Subno: ".getenv('HTTP_MSISDN')." ";
on users profile details 4 admin but is empty :o why??
if like my post click:
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... _______…
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:
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... _______…
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... _______…
QUOTE (subzero @ Jan 14 2009, 11:22 AM) <{POST_SNAPBACK}>
im lookin for u
thansk subzero i wil wait 4 it
Learner lolz
Here you can use ori code or any other also the script is there to download
http://www.2wap.org/forums/index.php?s=&am...ost&p=36158
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... _______…