X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_points.php;h=436b12720262f23299d645d83099ceecc7a58468;hp=d5a7b23b927889e9c53a44f2d15a69cf82e27fd2;hb=6586600d8020147192e5f28ca2a3a0153f774d3c;hpb=dbeb4ef1dc2e59d0c6bfab9d9666cdfa515f58e7 diff --git a/inc/modules/admin/what-config_points.php b/inc/modules/admin/what-config_points.php index d5a7b23b92..436b127202 100644 --- a/inc/modules/admin/what-config_points.php +++ b/inc/modules/admin/what-config_points.php @@ -38,7 +38,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { } // Add description as navigation point -ADD_DESCR("admin", basename(__FILE__)); +ADD_DESCR("admin", __FILE__); if (!empty($_GET['sub'])) { switch ($_GET['sub']) @@ -103,7 +103,7 @@ if (isset($_POST['ok'])) { // Update cache file if (GET_EXT_VERSION("cache") >= "0.1.2") { - if ($cacheInstance->cache_file("refdepths", true)) $cacheInstance->cache_destroy(); + if ($cacheInstance->loadCacheFile("refdepths")) $cacheInstance->destroyCacheFile(); } break; @@ -169,7 +169,7 @@ WHERE mails_confirmed < %s", $REF, $REF); elseif ($_GET['sub'] == "settings") { // Setup some settings like direct pay and so on - // Including new add-mode for one-time referral bonus + // Including new add-mode for one-time referal bonus switch ($_CONFIG['allow_direct_pay']) { case 'Y': @@ -183,14 +183,14 @@ WHERE mails_confirmed < %s", $REF, $REF); break; } - // One-time referral bonus add-mode + // One-time referal bonus add-mode switch ($_CONFIG['reg_points_mode']) { case "ref" : define('__MODE_REF', " checked=\"checked\""); define('__MODE_DIRECT', ""); break; case "direct": define('__MODE_REF', ""); define('__MODE_DIRECT', " checked=\"checked\""); break; } - // Referral payout value + // Referal payout value define('__REF_PAYOUT', round($_CONFIG['ref_payout'])); // Load template @@ -256,11 +256,11 @@ WHERE mails_confirmed < %s", $REF, $REF); } else { - // Referral levels + // Referal levels $result = SQL_QUERY("SELECT id, level, percents FROM "._MYSQL_PREFIX."_refdepths ORDER BY level", __FILE__, __LINE__); if (SQL_NUMROWS($result) > 0) { - // Make referral levels editable and deletable + // Make referal levels editable and deletable $SW = 2; $OUT = ""; // List already existing categories for editing @@ -287,13 +287,13 @@ WHERE mails_confirmed < %s", $REF, $REF); LOAD_TEMPLATE("admin_points"); } - // Form for adding new referral levels + // Form for adding new referal levels LOAD_TEMPLATE("admin_add_reflvl"); } } elseif ($_GET['sub'] == "points") { - // First points for registration and other fixed points including new add-mode for one-time referral bonus... + // First points for registration and other fixed points including new add-mode for one-time referal bonus... define('P_REG_VALUE', $_CONFIG['points_register']); define('P_REF_VALUE', $_CONFIG['points_ref']);