]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-beg.php
LOAD_CONFIGURED_URL() added, bug #66 resolved
[mailer.git] / inc / modules / member / what-beg.php
index e9a2d6404b8a234815156f8acbc0fceeab6d2d58..bf048dcac099f0ce4f530969feba1555fcc0792b 100644 (file)
@@ -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));