You are here

function _simplenews_statistics_encode_parameter in Simplenews Statistics 6.3

Same name and namespace in other branches
  1. 6.2 simplenews_statistics.module \_simplenews_statistics_encode_parameter()

Encode parameter so clicks and opens can not be faked

2 calls to _simplenews_statistics_encode_parameter()
_simplenews_statistics_image_tag in ./simplenews_statistics.module
Add hidden image for view statistics.
_simplenews_statistics_replace_url in ./simplenews_statistics.module
Alter link to go through statistics.

File

./simplenews_statistics.module, line 278
Main simplenews statistics file.

Code

function _simplenews_statistics_encode_parameter($par) {
  return strtr(base64_encode(addslashes(gzcompress(serialize($par), 9))), '+/=', '-_,');
}