|
As of NATS v3 this is a nats code:
list($data, $tourid, $subid1, $subid2, $adid) = explode(',', $natscode);
$chars = strlen($data);
$add = 4 - ($chars % 4);
if ($add < 4) while($add--) $data .= '=';
list($campaignid, $programid, $siteid) = explode(':', base64_decode($data));
__________________
"Think about it a little more and you'll agree with me, because you're smart and I'm right."
- Charlie Munger
|