in this troubled times, its refreshing to know that some people still has the capacity to share:
from migs:
The Smart GPRS gateway sends these:
X-Nokia-msisdn: 63918xxxxxxx, 63918xxxxxxx
X-Nokia-ipaddress: 10.155.141.201, 10.155.141.201
X-Nokia-imsi: xxxxxxxxxxxxxxxxxx
X-Nokia-CONNECTION_MODE: CMODE
X-Nokia-BEARER: GPRS
X-Nokia-gateway-id: NWG/4.0/Build64
x-nokia.wia.accept.original:
*/*,text/x-vCard,text/x-vCalendar,image/vnd.wap.wbmp,image/gif
and from mark:
...while globe use cookies :)
if (isset($_COOKIE['User-Identity-Forward-msisdn'])) {
$x = $_COOKIE['User-Identity-Forward-msisdn'];
for($cell='', $i=1; $i<=strlen($x); $i+=2)
$cell .= $x{$i};
}
?>
it seems you can get the msisdn of the browsing phone! sweet! hooray for mailling lists :D
now, the next question would be sun. hmmnn... time to buy a sun prepaid sim...
1 comment:
who gave you this?
my email died a year ago...
anyway, heres a better one for both :) nevermind the hard headed SUN as i gave up asking...
if (isset($_SERVER['Cookie'])
&& strpos($_SERVER['Cookie'],'msisdn=')
&& preg_match('/msisdn=([0-9]{1,24})/',
$_SERVER['Cookie'], $x)) {
for ($i=1;$i<strlen($x[1]);$i+=2)
$cell .= $x[1]{$i};
}
elseif (isset($_SERVER['X-Nokia-msisdn'])) {
$x = preg_split('/[\s,]+/',
$_SERVER['X-Nokia-msisdn']);
$cell = $x[1];
}
mark
Post a Comment