- if ((empty($frame)) && (basename($_SERVER['PHP_SELF']) != "mailid_top.php") && (isBooleanConstantAndTrue('WRITE_FOOTER'))) {
- LOAD_TEMPLATE("copyright");
- }
+ if ((!isGetRequestElementSet('frame')) && (basename($_SERVER['PHP_SELF']) != 'mailid_top.php') && ((getConfig('WRITE_FOOTER') == 'Y') || (isInstalling())) && ($GLOBALS['header_sent'] == '2')) {
+ // Backlink enabled?
+ if ((getConfig('ENABLE_BACKLINK') == 'Y') || (isInstalling())) {
+ // Copyright with backlink, thanks! :-)
+ loadTemplate('copyright_backlink');
+ } else {
+ // No backlink in Copyright note
+ loadTemplate('copyright');
+ }
+ } // END - if