X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-beg.php;h=ee5d8063c60cf3ce3a31d4270536a169567ae87c;hb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60;hp=413f0240099e178ee6802f371abb726003f986b8;hpb=a090e351c49fe021fb3064325694da03402332e0;p=mailer.git diff --git a/inc/modules/guest/what-beg.php b/inc/modules/guest/what-beg.php index 413f024009..ee5d8063c6 100644 --- a/inc/modules/guest/what-beg.php +++ b/inc/modules/guest/what-beg.php @@ -1,6 +1,6 @@ 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' , CREATE_FANCY_TIME(getConfig('beg_timeout'))); -define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME(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] ?>