function _referral_hex_seed in User Referral 7
Same name and namespace in other branches
- 5 referral.module \_referral_hex_seed()
- 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;
}