// When URL is empty nothing bad happend here
if (empty($URL)) {
// Is the auto-send mechanism active or inactive?
- if ($_CONFIG['autosend_active'] == "Y") {
+ if (getConfig('autosend_active') == "Y") {
// Auto-send is active
define('ADMIN_AUTOSEND', COMPILE_CODE(ADMIN_AUTOSEND_ACTIVE));
define('MEMBER_AUTOSEND', COMPILE_CODE(MEMBER_AUTOSEND_ACTIVE));
// Update used points
$ADD = "";
- if ($_CONFIG['order_max_full'] == "ORDER") $ADD = ", mail_orders=mail_orders+1";
+ if (getConfig('order_max_full') == "ORDER") $ADD = ", mail_orders=mail_orders+1";
SUB_POINTS("order", $GLOBALS['userid'], $USED);
// Prepare content
$content = array(
- 'blocks' => $_CONFIG['max_send'],
+ 'blocks' => getConfig('max_send'),
'subject' => $DATA[0],
'text' => $DATA[1],
'payment' => GET_PAYMENT($DATA[3]),