X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmysql-connect.php;h=20d19f4b365de63b4a3f94801aa4fa46b7cfa14d;hp=0e0bd8068eae71a3828573864a15f2e5fa603b54;hb=4ccc02299e123d24c043c917fb16208d0338f300;hpb=b8bb07ca2993ae80746a809853fdd46f5cde14e3 diff --git a/inc/mysql-connect.php b/inc/mysql-connect.php index 0e0bd8068e..20d19f4b36 100644 --- a/inc/mysql-connect.php +++ b/inc/mysql-connect.php @@ -158,7 +158,7 @@ if ((!isInstalling()) && (isInstalled())) { // Is the extension sql_patches installed and at least 0.3.6? if (GET_EXT_VERSION('sql_patches') >= '0.3.6') { // Generate random number - define('RAND_NUMBER', generateRandomCodde(10, mt_rand(10000,32766), getUserId(), '')); + define('RAND_NUMBER', generateRandomCode(10, mt_rand(10000,32766), getUserId(), '')); } else { // Generate weak (!!!) code define('RAND_NUMBER', mt_rand(1000000, 9999999)); @@ -226,6 +226,9 @@ if ((!isInstalling()) && (isInstalled())) { // Load extension 'sql_patches' LOAD_EXTENSION('sql_patches'); + + // Load configuration file(s) here + loadIncludeOnce('inc/load_config.php'); } if ((getTotalFatalErrors() > 0) && (isInstalled()) && (!isInstalling()) && ($GLOBALS['output_mode'] != '1')) {