X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-beg.php;h=408b0fead1ae23352ddd8754d30fd81d5a57f0c7;hb=8f14df8c3232a31917df0ac57363dbd6e975c147;hp=1ce4e5e2f845e8628ed44522e89d2ba5e06d11ae;hpb=7b0f17cd637e388049d2167811e4332cec1e979b;p=mailer.git diff --git a/inc/modules/guest/what-beg.php b/inc/modules/guest/what-beg.php index 1ce4e5e2f8..408b0fead1 100644 --- a/inc/modules/guest/what-beg.php +++ b/inc/modules/guest/what-beg.php @@ -1,7 +1,7 @@ 0) { - // Take referal ID from URL/Cookie - define('__BEG_UID' , $GLOBALS['refid']); -} else { - // Take default referal ID - define('__BEG_UID' , getConfig('def_refid')); -} +$content['points'] = translateComma(getConfig('beg_points')); +$content['points_max'] = translateComma(getConfig('beg_points_max')); +$content['userid'] = determineReferalId(); // Selection boxes are now the default -define('__BEG_TIMEOUT' , createFancyTime(getConfig('beg_timeout'))); -define('__BEG_UID_TIMEOUT', createFancyTime(getConfig('beg_uid_timeout'))); +$content['timeout'] = createFancyTime(getConfig('beg_timeout')); +// @TODO No more needed? define('__BEG_UID_TIMEOUT', createFancyTime(getConfig('beg_userid_timeout'))); // Load final template -LOAD_TEMPLATE("guest_".substr(basename(__FILE__), 5, -4)); +loadTemplate('guest_beg', false, $content); -// +// [EOF] ?>