Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.
Forgot Password?
Navigation

Script error when loading website

Last updated on 4 years ago
D
dev723Newbie
Posted 4 years ago
Loading error in line 7 $current_userXXXXXXXXXXXXXXXXXX

// Main language detection procedure
static $current_user_language = [];
if (iMEMBER && valid_language($userdata['user_language'])) {
$current_user_language = $userdata['user_language'];
} else {
$langData = dbarray(dbquery('SELECT * FROM '.DB_LANGUAGE_SESSIONS.' WHERE user_ip=:ip', [':ip' => USER_IP]));
$current_user_language = ($langData['user_language'] ?: fusion_get_settings('locale'wink);
}
$language_opts = fusion_get_enabled_languages();
$enabled_languages = array_keys($language_opts);

// If language change is initiated and if the selected language is valid
if (isset($_GET['lang']) && isset($_GET['lang']) != "" && file_exists(LOCALE.$_GET['lang']."/global.php"wink && in_array($_GET['lang'], $enabled_languages)) {
$current_user_language = stripinput($_GET['lang']);
set_language($current_user_language);
} else {
if (count($enabled_languages) > 1) {
require __DIR__.'/includes/core_mlang_hub_include.php';
}
}

if (!defined('LANGUAGE'wink)
define('LANGUAGE', $current_user_language);
if (!defined('LOCALESET'wink)
define('LOCALESET', $current_user_language.'/'wink;

Thanks for your assistance
Dennis
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
You cannot set up a bounty in this discussion thread.
Moderator: Support Team
Users who participated in discussion: dev723