footer stats are configurable now
[mailer.git] / inc / modules / admin / what-config_other.php
index 5ba2b844e8c656847fc1aa13b2eb77b3cf51b377..eb64e61a1b8a1f385c105df4e9213a7de46d54df 100644 (file)
@@ -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++)
        {