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
Wanted An Flags Script N Coding
Collapse
X
-
u got the flag i will code you one in a sec okVisit: 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
-
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('".$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...
_______
Info & Tips
php.net
w3schools.com
Comment
-
index
Code:$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
Code:function phno(){ if (getenv('HTTP_MSISDN')){ $numb = getenv('HTTP_MSISDN'); } return $numb; }
Code:".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...
_______
Info & Tips
php.net
w3schools.com
Comment
-
<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='".$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/////////////
Comment
-
try under SignatureVisit: 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
-
<div class='quotetop'>QUOTE (subzero @ Jan 12 2009, 05:05 PM) <{POST_SNAPBACK}></div>try under Signature[/b]
Comment
-
only parameters.phpVisit: 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
-
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
Comment
-
johnny look for ip flag here and add that to sql and folder flags
sweetangel Only some mobile network show's itVisit: 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
-
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['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; } } ?>
Code:<?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>
Comment
Comment