X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_points.php;h=8930f895b5eeb5a6a9ccafdb078c1ce9286f37c4;hp=a0171fc02d059f69d9e5f57bdbbe6fe204055b0b;hb=60494e212a67fe360bfbb481eb4928480a6f379b;hpb=c99c15da4f0f45ea20be40a1320112e7af83af90 diff --git a/inc/modules/admin/what-config_points.php b/inc/modules/admin/what-config_points.php index a0171fc02d..8930f895b5 100644 --- a/inc/modules/admin/what-config_points.php +++ b/inc/modules/admin/what-config_points.php @@ -129,13 +129,13 @@ WHERE config='0' LIMIT 1", $_POST['reg_points_mode'], $REF ); - if (($CONFIG['ref_payout'] == 0) && ($_POST['ref_payout'] > 0)) + if (($_CONFIG['ref_payout'] == 0) && ($_POST['ref_payout'] > 0)) { // Update account's ref_payout for "must-confirm" $SQL[] = sprintf("UPDATE "._MYSQL_PREFIX."_user_data SET ref_payout=(%d - mails_confirmed) WHERE mails_confirmed < %d", $REF, $REF); } - elseif (($CONFIG['ref_payout'] > 0) && ($_POST['ref_payout'] == 0)) + elseif (($_CONFIG['ref_payout'] > 0) && ($_POST['ref_payout'] == 0)) { // Update account's ref_payout for "not-must-confirm" $SQL[] = "UPDATE "._MYSQL_PREFIX."_user_data SET ref_payout=0 WHERE ref_payout > 0"; @@ -185,7 +185,7 @@ WHERE mails_confirmed < %d", $REF, $REF); { // Setup some settings like direct pay and so on // Including new add-mode for one-time referral bonus - switch ($CONFIG['allow_direct_pay']) + switch ($_CONFIG['allow_direct_pay']) { case 'Y': define('__DIRECT_Y', " checked"); @@ -199,14 +199,14 @@ WHERE mails_confirmed < %d", $REF, $REF); } // One-time referral bonus add-mode - switch ($CONFIG['reg_points_mode']) + switch ($_CONFIG['reg_points_mode']) { case "ref" : define('__MODE_REF', " checked"); define('__MODE_DIRECT', ""); break; case "direct": define('__MODE_REF', ""); define('__MODE_DIRECT', " checked"); break; } // Referral payout value - define('__REF_PAYOUT', round($CONFIG['ref_payout'])); + define('__REF_PAYOUT', round($_CONFIG['ref_payout'])); // Load template LOAD_TEMPLATE("admin_config_point_settings"); @@ -309,8 +309,8 @@ WHERE mails_confirmed < %d", $REF, $REF); elseif ($_GET['sub'] == "points") { // First points for registration and other fixed points including new add-mode for one-time referral bonus... - define('P_REG_VALUE', $CONFIG['points_register']); - define('P_REF_VALUE', $CONFIG['points_ref']); + define('P_REG_VALUE', $_CONFIG['points_register']); + define('P_REF_VALUE', $_CONFIG['points_ref']); // Load templates LOAD_TEMPLATE("admin_config_sub_points");