X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmysql-connect.php;h=d3c8afd80de9953d1bb5d211368738cba41b7527;hp=b79794bea0a486c1d1a9e5cfa2d364c17d849188;hb=48affba7561e342c1f5691793dd96edadf4085d4;hpb=cd7d344ea7007cfa20413acd3e03e50f0ab86d86 diff --git a/inc/mysql-connect.php b/inc/mysql-connect.php index b79794bea0..d3c8afd80d 100644 --- a/inc/mysql-connect.php +++ b/inc/mysql-connect.php @@ -10,11 +10,6 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Verbindet zu Ihrer Datenbank * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * @@ -58,7 +53,6 @@ foreach ( array( 'sql', 'expression', 'filter', - 'revision', 'extensions') as $lib) { // Add it @@ -97,14 +91,11 @@ if (!isset($GLOBALS['__header_sent'])) { // Init fatal messages initFatalMessages(); -// Init repository data sub-system -initRepositoryData(); - // Enable HTML templates by default enableTemplateHtml(); // Are we in installation phase? -if ((!isInstalling()) && (!isInstallationPhase())) { +if ((!isInstaller()) && (isInstalled())) { // Load configuration file(s) here loadIncludeOnce('inc/load_config.php'); @@ -119,6 +110,9 @@ if ((!isInstalling()) && (!isInstallationPhase())) { // Initialize SQL link initSqlLink(); + + // Init session + initSession(); } else { // Default output is 'direct' for HTML output setConfigEntry('OUTPUT_MODE', 'direct'); @@ -130,7 +124,7 @@ if ((!isInstalling()) && (!isInstallationPhase())) { } // END - if // CFG: DATABASE-TYPE - setConfigEntry('_DB_TYPE', 'mysql3'); + setConfigEntry('_DB_TYPE', 'mysql'); // Set link as down unsetSqlLinkUp(__FILE__, __LINE__); @@ -141,9 +135,12 @@ if ((!isInstalling()) && (!isInstallationPhase())) { // Init message system initMessages(); + // Init session + initSession(); + // Include more - foreach (array('databases', 'session', 'versions', 'install-functions', 'load_config', 'load_cache') as $inc) { - // Load the include + foreach (array('databases', 'install-functions', 'load_config', 'load_cache') as $inc) { + // Load include file loadIncludeOnce('inc/' . $inc . '.php'); } // END - foreach