X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-beg.php;h=408b0fead1ae23352ddd8754d30fd81d5a57f0c7;hb=8f14df8c3232a31917df0ac57363dbd6e975c147;hp=347b6f4d3ca43a8e038ebddeb3e34208288120ae;hpb=75ad748a68473ace540251427a74fb781b1145e9;p=mailer.git diff --git a/inc/modules/guest/what-beg.php b/inc/modules/guest/what-beg.php index 347b6f4d3c..408b0fead1 100644 --- a/inc/modules/guest/what-beg.php +++ b/inc/modules/guest/what-beg.php @@ -1,7 +1,7 @@ 0) -{ - // Take referral ID from URL/Cookie - define('__BEG_UID' , $ref); -} - else -{ - // Take default referral ID - define('__BEG_UID' , $CONFIG['def_refid']); -} +$content['points'] = translateComma(getConfig('beg_points')); +$content['points_max'] = translateComma(getConfig('beg_points_max')); +$content['userid'] = determineReferalId(); -if (function_exists('CREATE_FANCY_TIME')) -{ - define('__BEG_TIMEOUT' , CREATE_FANCY_TIME($CONFIG['beg_timeout'])); - define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME($CONFIG['beg_uid_timeout'])); -} - else -{ - define('__BEG_TIMEOUT ' , round($CONFIG['beg_timeout'] / 60)." ".MINUTES); - define('__BEG_UID_TIMEOUT', round($CONFIG['beg_uid_timeout'] / 60)." ".MINUTES); -} +// Selection boxes are now the default +$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] ?>