View Single Post
Old 02-04-2008, 06:31 PM  
masterwebmonkey
Registered User
 
masterwebmonkey's Avatar
 
Join Date: Feb 2004
Posts: 93
function get_nats_info($decode){
$chars = strlen($decode);
$add = 4 - ($chars % 4);
if ($add < 4) while($add--) $decode .= '=';
list($campaignid, $programid, $siteid) = explode(':', base64_decode($decode));
return $campaignid . ' : '.$programid.' : '. $siteid;
}

the "26" in your example is the defualt campain id for that webmaster account

if the site uses "un-encoded" nats codes look for that ...

the format is USERNAME;26:SITE_SHORT_NAME:PROGRAM_SHORTNAME
__________________
Programmer looking for work you can hit me here -> Master Web Monkey or ICQ 281945544
PHP mySQL Flash ActionScript3 html javascitpt PERL::MECINIZE expect NATS MPA3 Responsys Interact
masterwebmonkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote