X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmysql-connect.php;h=9cd96c8fa492f27b5bdde675b4488abe42986120;hb=7d153f020b4a27f2349eef9161ee4224980baa35;hp=cdde847e5d1f4f67b4fceb07ef058115d10f2535;hpb=034d1df34b15827f7014343095a3572c1f581eef;p=mailer.git
diff --git a/inc/mysql-connect.php b/inc/mysql-connect.php
index cdde847e5d..9cd96c8fa4 100644
--- a/inc/mysql-connect.php
+++ b/inc/mysql-connect.php
@@ -40,6 +40,10 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
// CFG: DEBUG-SQL (if enabled and DEBUG_MODE is enabled all SQL queries will be logged to debug.log)
define('DEBUG_SQL', false);
+// Default is not a frameset
+global $isFrameset;
+$isFrameset = false;
+
// Load library
require_once(PATH."inc/db/lib.php");
@@ -48,9 +52,6 @@ require_once(PATH."inc/functions.php"); // Non-database functions
require_once(PATH."inc/extensions.php");
require_once(PATH."inc/language.php");
-// Load "databases" aka static arrays
-require_once(PATH."inc/databases.php"); // Several hard-coded databases (arrays, constants)
-
// Check if the user setups his MySQL stuff...
if ((empty($MySQL['login'])) && (!isBooleanConstantAndTrue('mxchange_installing')) && (!isset($_GET['installing'])) && (isBooleanConstantAndTrue('mxchange_installed'))) {
// No login entered and outside installation mode
@@ -67,11 +68,6 @@ if ((empty($MySQL['login'])) && (!isBooleanConstantAndTrue('mxchange_installing'
echo "".LANG_WARNING.": ".WARN_NULL_PASSWORD;
}
-// Init configuration arrays
-$_CONFIG = array(
- 'code_length' => 0
-);
-
// Check if this file is writeable or read-only and warn the user
if ((!isBooleanConstantAndTrue('mxchange_installing')) && (isBooleanConstantAndTrue('mxchange_installed'))) {
// Check for write-permission for config.php and inc directory
@@ -121,14 +117,14 @@ LIMIT 1", __FILE__, __LINE__);
// Run daily reset
if ((date("d", $_CONFIG['last_update']) != date("d", time()) || ((isBooleanConstantAndTrue('DEBUG_MODE')))) && (!isBooleanConstantAndTrue('mxchange_installing')) && (isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered')) && (!isset($_GET['register'])) && ($CSS != 1)) {
// Do daily things in external PHP file but only when script is completely setup
- $INC_POOL[] = PATH."inc/reset/reset_daily.php";
+ $INC_POOL[] = sprintf("%sinc/reset/reset_daily.php", PATH);
// Daily reset was run!
define('__DAILY_RESET', "1");
}
- // Load all extensions
- require_once(PATH."inc/load_extensions.php");
+ // Load "databases" aka static arrays
+ require_once(PATH."inc/databases.php");
// Loading patching system is required here...
require_once(PATH."inc/patch-system.php"); // Initialize patch system
@@ -136,9 +132,6 @@ LIMIT 1", __FILE__, __LINE__);
// Functions which are related to themes
require_once(PATH."inc/theme-manager.php");
- // Initialize session management
- require_once(PATH."inc/session.php");
-
// Load admin include file if he is admin
if (IS_ADMIN()) {
// Administrative functions
@@ -163,7 +156,7 @@ LIMIT 1", __FILE__, __LINE__);
UPDATE_ONLINE_LIST(get_session('PHPSESSID'), $GLOBALS['module'], $GLOBALS['action'], $GLOBALS['what']);
// Load theme name
- $CurrTheme = GET_CURR_THEME();
+ $currTheme = GET_CURR_THEME();
// Set default 'what' value
//* DEBUG */ echo "-".$GLOBALS['module']."/".$GLOBALS['what']."-
\n";
@@ -241,8 +234,6 @@ LIMIT 1", __FILE__, __LINE__);
// Include required files
require_once(PATH."inc/databases.php");
require_once(PATH."inc/theme-manager.php");
- require_once(PATH."inc/load_extensions.php");
- require_once(PATH."inc/session.php");
// Check if we are in installation routine
$installPhp = basename($_SERVER['PHP_SELF']);