views:

62

answers:

0

Getting Mobile phone number or Device ID for usage with CitySearch ad tracking.

Blockquote function get_citysearch_muid_for_tracking() { if (isset ($_SERVER ['HTTP_X_NETWORK_INFO'])) { $str1 = $_SERVER['HTTP_X_NETWORK_INFO']; $getstr1 = preg_replace('/(.,)( 11 [d ])(,.)/ i','',$str1); return md5($getstr1); } elseif (isset ($_SERVER['HTTP_X_UP_CALLING_LINE_ID'])) { $getstr2 = $_SERVER['HTTP_X_UP_CALLING_LINE_ID']; return md5($getstr2); } elseif (isset ($_SERVER['HTTP_X_NX_CLID'])) { $get4 = $_SERVER['HTTP_X_NX_CLID']; return md5($get4); } elseif (isset($_SERVER[ 'HTTP_X_UP_SUBNO'])) { $str3 = $_SERVER[ 'HTTP_X_UP_SUBNO']; $getstr3 = preg_replace ('/(.)( 11 [d ])(.)/ i','',$str3); return md5($getstr3); } elseif (isset($_SERVER['DEVICEID'])) { return md5($_SERVER['DEVICEID']); } else { $output = 'Not phone or device ID detected.'; return md5($output); } }

Blockquote

Above code is correct?