// Remember title in constant for the template
define('__PAGE_TITLE', html_entity_decode($TITLE));
- } elseif ((!defined('mxchange_installed')) || (!defined('admin_registered'))) {
+ } elseif ((!isBooleanConstantAndTrue('mxchange_installed')) || (!isBooleanConstantAndTrue('admin_registered'))) {
// Load language file because it was missing in installation finalizer step... *sigh*
require_once(sprintf("%sinc/language/install_%s.php",
PATH,
// Output page header code
LOAD_TEMPLATE("page_header");
- // Include meta data here
- LOAD_TEMPLATE("metadata");
+ // Include meta data in "guest" module
+ if ($GLOBALS['module'] == "index") {
+ LOAD_TEMPLATE("metadata");
- // Add meta description to header
- if ((isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered')) && ($GLOBALS['module'] != "admin") && ($GLOBALS['module'] != "login") && (isset($db)) && (isset($link))) {
- // Add meta description not in admin and login module and when the script is installed
- META_DESCRIPTION($GLOBALS['module'], $GLOBALS['what']);
+ // Add meta description to header
+ if ((isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered')) && (isset($db)) && (is_resource($link))) {
+ // Add meta description not in admin and login module and when the script is installed
+ META_DESCRIPTION($GLOBALS['module'], $GLOBALS['what']);
+ } // END - if
} // END - if
// Include more header data here