* Kurzbeschreibung : Gibt nur dann HTML-Code fuer den Kopf-Bereich *
* aus, wenn Frameset nicht aktiv ist *
* -------------------------------------------------------------------- *
- * *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * Needs to be in all Files and every File needs "svn propset *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2008 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
// Add title decorations? (left)
if (!defined('__PAGE_TITLE')) {
// Config and database connection valid?
- if ((isset($_CONFIG)) && (is_array($_CONFIG)) && (count($_CONFIG) > 1) && (SQL_IS_LINK_UP())) {
+ if ((isConfigLoaded()) && (SQL_IS_LINK_UP())) {
// Title decoration enabled?
if ((getConfig('enable_title_deco') == "Y") && (getConfig('title_left') != "")) $TITLE .= trim(getConfig('title_left'))." ";
// Remember title in constant for the template
define('__PAGE_TITLE', $TITLE);
- } elseif ((!isBooleanConstantAndTrue('mxchange_installed')) || (!isBooleanConstantAndTrue('admin_registered'))) {
+ } elseif ((!isInstalled()) || (!isAdminRegistered())) {
// Installation mode
- define('__PAGE_TITLE', getMessage('INSTALLATION_OF_MXCHANGE'));
+ define('__PAGE_TITLE', sprintf(getMessage('INSTALLATION_OF_MXCHANGE'), constant('MAIN_TITLE')));
} else {
// Configuration not found!
define('__PAGE_TITLE', getMessage('NO_CONFIG_FOUND_TITLE'));
// Do not add the fatal message in installation mode
- if (basename($_SERVER['PHP_SELF']) != "install.php") addFatalMessage(getMessage('NO_CONFIG_FOUND'));
+ if (!isInstalling()) addFatalMessage(__FILE__, __LINE__, getMessage('NO_CONFIG_FOUND'));
}
} // END - if
LOAD_TEMPLATE("metadata");
// Add meta description to header
- if ((isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered')) && (SQL_IS_LINK_UP())) {
+ if ((isInstalled()) && (isAdminRegistered()) && (SQL_IS_LINK_UP())) {
// Add meta description not in admin and login module and when the script is installed
META_DESCRIPTION($GLOBALS['module'], $GLOBALS['what']);
} // END - if