- } elseif ($_CONFIG['beg_pay_mode'] != "NONE") {
- // Other pay-mode active!
- define('__BEG_MSG', LOAD_TEMPLATE("beg_pay_mode_".strtolower($_CONFIG['beg_pay_mode']), true));
+ } elseif (getConfig('beg_pay_mode') != "NONE") { // Other pay-mode active!
+ // Prepare content for template
+ $content = array(
+ 'clicks' => constant('__BEG_CLICKS'),
+ 'points' => constant('__BEG_POINTS'),
+ 'uid' => constant('__BEG_UID')
+ );
+
+ // Load message template depending on pay-mode
+ define('__BEG_MSG', LOAD_TEMPLATE("beg_pay_mode_".strtolower(getConfig('beg_pay_mode')), true, $content));
+ $pay = true;