Skip to content

Instantly share code, notes, and snippets.

@frydaykg
Created February 19, 2015 21:32
Show Gist options
  • Select an option

  • Save frydaykg/36e79172ad419b19bd59 to your computer and use it in GitHub Desktop.

Select an option

Save frydaykg/36e79172ad419b19bd59 to your computer and use it in GitHub Desktop.
cs cart unsubscribe key generation
$_data = array(
'subscriber_id' => $subscriber_id,
'list_id' => $list_id,
'activation_key' => md5(uniqid(rand())),
'unsubscribe_key' => md5(uniqid(rand())),
'email' => $subscriber['email'],
'timestamp' => TIME,
'lang_code' => $lang_code,
'confirmed' => ($_confirmed == NULL) ? (!empty($lists[$list_id]['register_autoresponder']) ? 0 : 1) : ($_confirmed ? 1 : 0),
'format' => intval($format)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment