]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_order.php
Ticket resolved, code rewrites and caching:
[mailer.git] / inc / modules / admin / what-config_order.php
index e048a100663dc492747381143b0aa92126a51b25..dbf9e3075aa86b23f96297f297b69dc4a721b346 100644 (file)
@@ -38,14 +38,14 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
 if (isset($_POST['ok'])) {
        // Save data
        ADMIN_SAVE_SETTINGS($_POST);
 } else {
        // Prepare constants for the template
-       switch ($_CONFIG['order_max_full'])
+       switch (getConfig('order_max_full'))
        {
        case "ORDER":
                define('__ORDER_DEFAULT', " checked=\"checked\"");
@@ -59,10 +59,10 @@ if (isset($_POST['ok'])) {
        }
 
        // Minimum mails / order
-       define('__MIN_VALUE', $_CONFIG['order_min']);
+       define('__MIN_VALUE', getConfig('order_min'));
 
        // Sorting mode (ascending / descending)
-       switch ($_CONFIG['order_mode'])
+       switch (getConfig('order_mode'))
        {
        case "ASC":
                define('__ASC_DEFAULT' , " selected=\"selected\"");
@@ -76,10 +76,10 @@ if (isset($_POST['ok'])) {
        }
 
        // Transfer other config data into constants for the template (DO NOT set $_CONFIG as global in LOAD_TEMPLATE!!!)
-       define('_CFG_UNCONFIRMED'   , $_CONFIG['unconfirmed']);
-       define('_CFG_MAX_TLENGTH'   , $_CONFIG['max_tlength']);
+       define('_CFG_UNCONFIRMED'   , getConfig('unconfirmed'));
+       define('_CFG_MAX_TLENGTH'   , getConfig('max_tlength'));
 
-       if ($_CONFIG['test_text'] == "N") {
+       if (getConfig('test_text') != "Y") {
                define('_CFG_TEST_TEXT_N', " checked=\"checked\"");
                define('_CFG_TEST_TEXT_Y', "");
        } else {
@@ -87,7 +87,7 @@ if (isset($_POST['ok'])) {
                define('_CFG_TEST_TEXT_Y', " checked=\"checked\"");
        }
 
-       switch ($_CONFIG['repay_deleted_mails']) {
+       switch (getConfig('repay_deleted_mails')) {
                case "REPAY":
                        define('_CFG_REPAY_POINTS_REPAY'  , " selected=\"selected\"");
                        define('_CFG_REPAY_POINTS_JACKPOT', "");
@@ -107,7 +107,7 @@ if (isset($_POST['ok'])) {
                        break;
        }
 
-       if ($_CONFIG['test_subj'] == "N") {
+       if (getConfig('test_subj') != "Y") {
                define('_CFG_TEST_SUBJ_N', " checked=\"checked\"");
                define('_CFG_TEST_SUBJ_Y', "");
        } else {
@@ -115,7 +115,7 @@ if (isset($_POST['ok'])) {
                define('_CFG_TEST_SUBJ_Y', " checked=\"checked\"");
        }
 
-       if ($_CONFIG['url_blacklist'] == "N") {
+       if (getConfig('url_blacklist') != "Y") {
                define('_CFG_URL_BLIST_N', " checked=\"checked\"");
                define('_CFG_URL_BLIST_Y', "");
        } else {
@@ -124,7 +124,7 @@ if (isset($_POST['ok'])) {
        }
 
        // Selection list
-       define('__ORDER_SELECT', ORDER_SELECT_OPTION_LIST($_CONFIG['order_select']));
+       define('__ORDER_SELECT', ORDER_SELECT_OPTION_LIST(getConfig('order_select')));
 
        // Load template
        LOAD_TEMPLATE("admin_config_order");