Fix for missing footer
[mailer.git] / inc / footer.php
index 42b4e4315d91a81d1c3137dd3b5bb23e71b95c71..69b37d9c7f3c8e2be93a65836171d469639a1a33 100644 (file)
@@ -48,10 +48,16 @@ if (($footer != "1") && ($footer != "2") && ($CSS != "1")) {
        }
 
        // Shall we display the copyright notice?
-       if ((empty($frame)) && (basename($_SERVER['PHP_SELF']) != "mailid_top.php") && (WRITE_FOOTER == true)) {
+       if ((empty($frame)) && (empty($_GET['frame'])) && (basename($_SERVER['PHP_SELF']) != "mailid_top.php") && (isBooleanConstantAndTrue('WRITE_FOOTER'))) {
                LOAD_TEMPLATE("copyright");
        }
 
+       // Shall we display the parsing time and number of queries?
+       if ((isset($_CONFIG['show_timings'])) && ($_CONFIG['show_timings'] == "Y") && (empty($_GET['frame']))) {
+               // Then display it here
+               DISPLAY_PARSING_TIME_FOOTER();
+       }
+
        // Load page footer
        LOAD_TEMPLATE("page_footer");