X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-beg.php;h=bf048dcac099f0ce4f530969feba1555fcc0792b;hb=f6ccb87413901e0352319385471134dd2d4ba966;hp=e9a2d6404b8a234815156f8acbc0fceeab6d2d58;hpb=3daede4c904e23905c3e48dd6749019deca0a0e0;p=mailer.git diff --git a/inc/modules/member/what-beg.php b/inc/modules/member/what-beg.php index e9a2d6404b..bf048dcac0 100644 --- a/inc/modules/member/what-beg.php +++ b/inc/modules/member/what-beg.php @@ -70,21 +70,12 @@ $nickname = true; if (empty($uid)) { $uid = $GLOBALS['userid']; $nickname = false; } // Prepare constants -define('__BEG_UID' , $uid); -define('__BEG_CLICKS' , $clicks); -define('__BEG_POINTS' , TRANSLATE_COMMA(getConfig('beg_points'))); -define('__BEG_POINTS_MAX', TRANSLATE_COMMA(getConfig('beg_points_max'))); - -if (function_exists('CREATE_FANCY_TIME')) -{ - define('__BEG_TIMEOUT' , CREATE_FANCY_TIME(getConfig('beg_timeout'))); - define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME(getConfig('beg_uid_timeout'))); -} - else -{ - define('__BEG_TIMEOUT ' , round(getConfig('beg_timeout') / 60)." ".MINUTES); - define('__BEG_UID_TIMEOUT', round(getConfig('beg_uid_timeout') / 60)." ".MINUTES); -} +define('__BEG_UID' , $uid); +define('__BEG_CLICKS' , $clicks); +define('__BEG_POINTS' , TRANSLATE_COMMA(getConfig('beg_points'))); +define('__BEG_POINTS_MAX' , TRANSLATE_COMMA(getConfig('beg_points_max'))); +define('__BEG_TIMEOUT' , CREATE_FANCY_TIME(getConfig('beg_timeout'))); +define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME(getConfig('beg_uid_timeout'))); // Load template LOAD_TEMPLATE("member_".substr(basename(__FILE__), 5, -4));