]> 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 03aea0c1922cc4cdb376a4dd7fe2544f5be911be..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
 {
@@ -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++)
        {