You are here

function _referral_hex_seed in User Referral 7

Same name and namespace in other branches
  1. 5 referral.module \_referral_hex_seed()
  2. 6 referral.module \_referral_hex_seed()

Helper function for _referral_ref2uid() and _referral_uid2ref()

2 calls to _referral_hex_seed()
_referral_ref2uid in ./referral.module
Decode and convert back a referral reference code to UID
_referral_uid2ref in ./referral.module
Convert a UID to a referral reference code

File

./referral.module, line 790
The referral module.

Code

function _referral_hex_seed() {
  global $base_url;
  $seed = hexdec(_referral_asc2hex(substr($base_url, REFERRAL_HEX_START, REFERRAL_HEX_LENGTH)));
  return $seed;
}