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
}
$EXT_CSS_FILES = array();
- // Load "databases" aka static arrays
- require_once(PATH."inc/databases.php"); // Several hard-coded databases (arrays, constants)
-
if ((!empty($MySQL['host'])) && (!empty($MySQL['login'])) && (!empty($MySQL['password'])) && (!empty($MySQL['dbase']))) {
// Connect to DB
global $link;
// Free memory
SQL_FREERESULT($result);
+
+ // Generate random number
+ if (isset($GLOBALS['userid'])) {
+ define('RAND_NUMBER', GEN_RANDOM_CODE(10, mt_rand(10000,32766), $GLOBALS['userid'], ""));
+ } else {
+ define('RAND_NUMBER', GEN_RANDOM_CODE(10, mt_rand(10000,32766), 0, ""));
+ }
} else {
// Wrong database?
ADD_FATAL(WRONG_DB_SELECTED);