X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmysql-connect.php;h=f6c1a1f1264f56d8ae6884cbda82cae2c53da8bf;hb=8dc09e2333cff56caa7719bf1089d068cd21b7c3;hp=e0914d2dd293524b5298152799fe49863cecdae6;hpb=c2e17d983fcbc0c3bd1dd37908d87c678f0367df;p=mailer.git diff --git a/inc/mysql-connect.php b/inc/mysql-connect.php index e0914d2dd2..f6c1a1f126 100644 --- a/inc/mysql-connect.php +++ b/inc/mysql-connect.php @@ -69,10 +69,7 @@ initFatalMessages(); initMessages(); // Check if this file is writeable or read-only and warn the user -if ((!isInstalling()) && (!isInstallationPhase())) { - // Load "databases" aka static arrays - loadIncludeOnce('inc/databases.php'); - +if (!isInstalling()) { // Load database layer here loadIncludeOnce('inc/db/lib.php'); @@ -115,9 +112,6 @@ if ((!isInstalling()) && (!isInstallationPhase())) { // Check module for permissions $checkModule = checkModulePermissions(); - // Cound module here - countModuleHit(getModule()); - // Admin module should be accessable by guests to login if ((getModule() == 'admin') && ($checkModule == 'admin_only')) { // This is fine and can be ignored @@ -158,7 +152,7 @@ if ((!isInstalling()) && (!isInstallationPhase())) { if (!isOutputModeSet()) setOutputMode(0); // Include more - foreach (array('inc/databases.php','inc/db/lib.php','inc/session.php','inc/versions.php','inc/install-functions.php','inc/load_config.php') as $inc) { + foreach (array('inc/databases.php','inc/versions.php','inc/db/lib.php','inc/session.php','inc/install-functions.php','inc/load_config.php') as $inc) { // Load the include loadIncludeOnce($inc); } // END - foreach @@ -183,7 +177,7 @@ if ((!isInstalling()) && (!isInstallationPhase())) { } // Handle fatal errors -handleFatalErrors(); +runFilterChain('handle_fatal_errors'); // [EOF] ?>