} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
} elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) {
- ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "beg");
+ addFatalMessage(EXTENSION_PROBLEM_EXT_INACTIVE, "beg");
return;
}
// 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