]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_other.php
footer stats are configurable now
[mailer.git] / inc / modules / admin / what-config_other.php
index 9f00f402f812ef5fe34dfe2091c7bfa3255c9465..eb64e61a1b8a1f385c105df4e9213a7de46d54df 100644 (file)
@@ -80,7 +80,7 @@ OPEN_TABLE("100%", "admin_content admin_content_align", "");
 if (isset($_POST['ok']))
 {
        // Update stamps directly
-       ADMIN_SAVE_SETTINGS($_POST, "_config", "config='0'");
+       ADMIN_SAVE_SETTINGS($_POST);
 }
  else
 {
@@ -112,7 +112,7 @@ if (isset($_POST['ok']))
                define('_CFG_PROF_REUPDATE' , "<INPUT type=\"text\" name=\"resend_profile_update\" class=\"admin_normal\" size=\"6\"  maxlength=\"255\" value=\"".$CONFIG['resend_profile_update'] ."\"> <FONT class=\"tiny\">(".SECS.")</FONT>");
        }
 
-       if ($CONFIG['test_text'] == "N")
+       if ($CONFIG['test_text'] == 'N')
        {
                define('_CFG_TEST_TEXT_N', " checked");
                define('_CFG_TEST_TEXT_Y', "");
@@ -122,7 +122,7 @@ if (isset($_POST['ok']))
                define('_CFG_TEST_TEXT_N', "");
                define('_CFG_TEST_TEXT_Y', " checked");
        }
-       if ($CONFIG['test_subj'] == "N")
+       if ($CONFIG['test_subj'] == 'N')
        {
                define('_CFG_TEST_SUBJ_N', " checked");
                define('_CFG_TEST_SUBJ_Y', "");
@@ -132,7 +132,7 @@ if (isset($_POST['ok']))
                define('_CFG_TEST_SUBJ_N', "");
                define('_CFG_TEST_SUBJ_Y', " checked");
        }
-       if ($CONFIG['url_blacklist'] == "N")
+       if ($CONFIG['url_blacklist'] == 'N')
        {
                define('_CFG_URL_BLIST_N', " checked");
                define('_CFG_URL_BLIST_Y', "");
@@ -142,7 +142,7 @@ if (isset($_POST['ok']))
                define('_CFG_URL_BLIST_N', "");
                define('_CFG_URL_BLIST_Y', " checked");
        }
-       if ($CONFIG['order_multi_page'] == "N")
+       if ($CONFIG['order_multi_page'] == 'N')
        {
                define('_CFG_ORDER_MULTI_N', " checked");
                define('_CFG_ORDER_MULTI_Y', "");
@@ -152,7 +152,7 @@ if (isset($_POST['ok']))
                define('_CFG_ORDER_MULTI_N', "");
                define('_CFG_ORDER_MULTI_Y', " checked");
        }
-       if ($CONFIG['autosend_active'] == "N")
+       if ($CONFIG['autosend_active'] == 'N')
        {
                define('_CFG_AUTOSEND_ACTIVE_N', " checked");
                define('_CFG_AUTOSEND_ACTIVE_Y', "");
@@ -162,7 +162,7 @@ if (isset($_POST['ok']))
                define('_CFG_AUTOSEND_ACTIVE_N', "");
                define('_CFG_AUTOSEND_ACTIVE_Y', " checked");
        }
-       if ($CONFIG['send_prof_update'] == "N")
+       if ($CONFIG['send_prof_update'] == 'N')
        {
                define('_CFG_SEND_UPDATE_N', " checked");
                define('_CFG_SEND_UPDATE_Y', "");
@@ -172,7 +172,7 @@ if (isset($_POST['ok']))
                define('_CFG_SEND_UPDATE_N', "");
                define('_CFG_SEND_UPDATE_Y', " checked");
        }
-       if ($CONFIG['admin_notify'] == "N")
+       if ($CONFIG['admin_notify'] == 'N')
        {
                define('_CFG_ADMIN_NOTIFY_N', " checked");
                define('_CFG_ADMIN_NOTIFY_Y', "");
@@ -192,36 +192,34 @@ if (isset($_POST['ok']))
                define('_CFG_CSS_PHP_DIRECT', "");
                define('_CFG_CSS_PHP_FILE', " checked");
        }
-       if ($CONFIG['guest_menu'] == "Y")
-       {
+       if ($CONFIG['guest_menu'] == 'Y') {
                define('_CFG_GUEST_MENU_ACTIVE', " checked");
                define('_CFG_GUEST_MENU_INACTIVE', "");
-       }
-        else
-       {
+       } else {
                define('_CFG_GUEST_MENU_ACTIVE', "");
                define('_CFG_GUEST_MENU_INACTIVE', " checked");
        }
-       if ($CONFIG['member_menu'] == "Y")
-       {
+       if ($CONFIG['member_menu'] == 'Y') {
                define('_CFG_MEMBER_MENU_ACTIVE', " checked");
                define('_CFG_MEMBER_MENU_INACTIVE', "");
-       }
-        else
-       {
+       } else {
                define('_CFG_MEMBER_MENU_ACTIVE', "");
                define('_CFG_MEMBER_MENU_INACTIVE', " checked");
        }
-       if ($CONFIG['youre_here'] == "Y")
-       {
+       if ($CONFIG['youre_here'] == 'Y') {
                define('_CFG_YOURE_HERE_ACTIVE', " checked");
                define('_CFG_YOURE_HERE_INACTIVE', "");
-       }
-        else
-       {
+       } else {
                define('_CFG_YOURE_HERE_ACTIVE', "");
                define('_CFG_YOURE_HERE_INACTIVE', " checked");
        }
+       if ($CONFIG['show_timings'] == 'Y') {
+               define('_CFG_FOOTER_STATS_Y', " checked");
+               define('_CFG_FOOTER_STATS_N', "");
+       } else {
+               define('_CFG_FOOTER_STATS_Y', "");
+               define('_CFG_FOOTER_STATS_N', " checked");
+       }
 
        for ($i = 0; $i <= 5; $i++)
        {