]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-beg.php
Missing URL blacklist tabled (re-)added
[mailer.git] / inc / modules / member / what-beg.php
index a48cd88338d5e74631fc0cf9bb37e7c4b3147162..3c52da348780ffd313ba80d635f568a5b28411f6 100644 (file)
@@ -72,18 +72,18 @@ if (empty($uid)) { $uid = $GLOBALS['userid']; $nickname = false; }
 // Prepare constants
 define('__BEG_UID'       , $uid);
 define('__BEG_CLICKS'    , $clicks);
-define('__BEG_POINTS'    , TRANSLATE_COMMA($_CONFIG['beg_points']));
-define('__BEG_POINTS_MAX', TRANSLATE_COMMA($_CONFIG['beg_points_max']));
+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($_CONFIG['beg_timeout']));
-       define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME($_CONFIG['beg_uid_timeout']));
+       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($_CONFIG['beg_timeout']     / 60)." ".MINUTES);
-       define('__BEG_UID_TIMEOUT', round($_CONFIG['beg_uid_timeout'] / 60)." ".MINUTES);
+       define('__BEG_TIMEOUT '   , round(getConfig('beg_timeout')     / 60)." ".MINUTES);
+       define('__BEG_UID_TIMEOUT', round(getConfig('beg_uid_timeout') / 60)." ".MINUTES);
 }
 
 // Load template