]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_beg.php
query masking rewritten in more SQLs, several cleanups and fix on beg link
[mailer.git] / inc / modules / admin / what-config_beg.php
index 20470c43c423e0c215ee87df920dcd377bc41fd2..df66f24230f047ced32cee3d23c64b89e123e227 100644 (file)
@@ -49,7 +49,7 @@ if (isset($_POST['ok']))
        $_POST['beg_notify_bonus'] = str_replace(",", ".", $_POST['beg_notify_bonus']);
 
        // Save settings
-       ADMIN_SAVE_SETTINGS($_POST, "_config", "config='0'");
+       ADMIN_SAVE_SETTINGS($_POST);
 
        // Remember new settings
        $CONFIG['beg_rallye']        = $_POST['beg_rallye'];
@@ -57,7 +57,7 @@ if (isset($_POST['ok']))
        $CONFIG['beg_ral_di_notify'] = $_POST['beg_ral_di_notify'];
 
        // Include sending out mails
-       if ((($CONFIG['beg_rallye'] == "Y") && ($CONFIG['beg_ral_en_notify'] == "Y")) || (($CONFIG['beg_rallye'] == "N") && ($CONFIG['beg_ral_di_notify'] == "Y")))
+       if ((($CONFIG['beg_rallye'] == 'Y') && ($CONFIG['beg_ral_en_notify'] == 'Y')) || (($CONFIG['beg_rallye'] == 'N') && ($CONFIG['beg_ral_di_notify'] == 'Y')))
        {
                include(PATH."inc/mails/beg_mails.php");
        }
@@ -77,24 +77,24 @@ if (isset($_POST['ok']))
        // Activate / Deactivate beg rallye (Y/N)
        switch ($CONFIG['beg_rallye'])
        {
-       case "Y":
+       case 'Y':
                define('__BEG_RALLYE_Y', " checked");
                define('__BEG_RALLYE_N', "");
                break;
 
-       case "N":
+       case 'N':
                define('__BEG_RALLYE_Y', "");
                define('__BEG_RALLYE_N', " checked");
                break;
        }
        switch ($CONFIG['beg_active'])
        {
-       case "Y":
+       case 'Y':
                define('__BEG_ACTIVE_Y', " checked");
                define('__BEG_ACTIVE_N', "");
                break;
 
-       case "N":
+       case 'N':
                define('__BEG_ACTIVE_Y', "");
                define('__BEG_ACTIVE_N', " checked");
                break;
@@ -113,48 +113,48 @@ if (isset($_POST['ok']))
        }
        switch ($CONFIG['beg_ral_en_notify'])
        {
-       case "Y":
+       case 'Y':
                define('__BEG_RAL_EN_NOTIFY_Y', " checked");
                define('__BEG_RAL_EN_NOTIFY_N', "");
                break;
 
-       case "N":
+       case 'N':
                define('__BEG_RAL_EN_NOTIFY_Y', "");
                define('__BEG_RAL_EN_NOTIFY_N', " checked");
                break;
        }
        switch ($CONFIG['beg_ral_di_notify'])
        {
-       case "Y":
+       case 'Y':
                define('__BEG_RAL_DI_NOTIFY_Y', " checked");
                define('__BEG_RAL_DI_NOTIFY_N', "");
                break;
 
-       case "N":
+       case 'N':
                define('__BEG_RAL_DI_NOTIFY_Y', "");
                define('__BEG_RAL_DI_NOTIFY_N', " checked");
                break;
        }
        switch ($CONFIG['beg_new_mem_notify'])
        {
-       case "Y":
+       case 'Y':
                define('__BEG_NEW_MEMBER_NOTIFY_Y', " checked");
                define('__BEG_NEW_MEMBER_NOTIFY_N', "");
                break;
 
-       case "N":
+       case 'N':
                define('__BEG_NEW_MEMBER_NOTIFY_Y', "");
                define('__BEG_NEW_MEMBER_NOTIFY_N', " checked");
                break;
        }
        switch ($CONFIG['beg_include_own'])
        {
-       case "Y":
+       case 'Y':
                define('__BEG_INCLUDE_OWN_Y', " checked");
                define('__BEG_INCLUDE_OWN_N', "");
                break;
 
-       case "N":
+       case 'N':
                define('__BEG_INCLUDE_OWN_Y', "");
                define('__BEG_INCLUDE_OWN_N', " checked");
                break;