Ip Adress
Started on the old forum in September 2007 · view the original in the archive · old links redirect here
Oh it does work really also wud like to kno code for user browser .........thnx .. External image (may be gone)
USE THIS:
make the : DATA.txt - change to 777, change wml.php and xhtml.php with your value.
- <?php
- function add_entry($date,$agent,$accept,$ip,$char,$enc,$lang,$con,$ref,$rem,$port,$url,$fname,$sname ){
- $myFile = "DATA.txt";
- $fh = fopen($myFile, 'a') or die("can't open file");
- $stringData = "$date - | $agent | $accept | $ip | $char | $enc | $lang | $con | $ref | $rem | $port | $port | $url | $fname | $sname |\n" ;
- fwrite($fh, $stringData);
- fclose($fh);
- }
- $date = date("| Y-m-d | - | H:i:s |");
- $useragent = $_SERVER['HTTP_USER_AGENT'];
- $accept = $_SERVER['HTTP_ACCEPT'];
- $ip = $_SERVER['SERVER_ADDR'];
- $char = (isset($_SERVER['HTTP_ACCEPT_CHARSET']) ? $_SERVER['HTTP_ACCEPT_CHARSET'] : null);
- $enc = (isset($_SERVER['HTTP_ACCEPT_ENCODING']) ? $_SERVER['HTTP_ACCEPT_ENCODING'] : null);
- $lang = (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : null);
- $con = (isset($_SERVER['HTTP_CONNECTION']) ? $_SERVER['HTTP_CONNECTION'] : null);
- $ref = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null);
- $rem = $_SERVER['REMOTE_ADDR'];
- $port = $_SERVER['REMOTE_PORT'];
- $url = $_SERVER['REQUEST_URI'];
- $fname = $_SERVER['SCRIPT_FILENAME'];
- $sname = $_SERVER['SCRIPT_NAME'];
- add_entry($date,$useragent,$accept,$ip,$char,$enc,$lang,$con,$ref,$rem,$port,$url,$fname,$sname);
- $htmlredirect = "xhtml.php";
- $wmlredirect = "wml.php";
- if(strpos(strtoupper($_SERVER['HTTP_ACCEPT']),"VND.WAP.WML") > 0){
- header("Location: ".$wmlredirect);
- exit;
- }
- else
- {
- header("Location: ".$htmlredirect);
- exit;}
- ?> edit and capture all about phone, user, etc.
Thnx Man tht works superb nd gives tht much details tht i dont understand many of them Lolz thnx .... External image (may be gone)
What my SITE PMPL i got that lol
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... _______…