- // Shall we display the copyright notice?
- if ((empty($frame)) && (basename($_SERVER['PHP_SELF']) != "mailid_top.php") && (WRITE_FOOTER == true)) {
- LOAD_TEMPLATE("copyright");
- }
+// Footer disabled (e.g. CSS/AJAX/image output) or already sent?
+// 1234 5 54 45 5 5 543 3 443 3 443 3 44321
+if ((((!isset($GLOBALS['__footer_sent'])) || (($GLOBALS['__footer_sent'] != 1) && ($GLOBALS['__footer_sent'] != 2))) && (!isCssOutputMode()) && (!isAjaxOutputMode()) && (!isImageOutputMode()))) {
+ // Run the filter, sweet huh?
+ runFilterChain('page_footer');