/* * ---------------------- * Instance Class * ---------------------- */ $obj = new AjaxRequest(); include_once '../../application/functions.php'; include_once '../../application/DataConfig.php'; $_POST['email'] = trim($_POST['email']); $_POST['mode'] = _Function::spaces(trim($_POST['mode'])); $_POST['username'] = _Function::spaces(trim($_POST['username'])); $_POST['country'] = _Function::spaces(trim($_POST['country'])); $infoUser = $obj->infoUserLive($_SESSION['authenticated']); $emailAddress = $_POST['email']; //<<<--- Defaults Languages foreach (_Function::arrayLang() as $key => $value) { $defaultsLanguages[] = $value; } //<<<<--- Languages if (!in_array($_POST['lang'], $defaultsLanguages)) { $_POST['lang'] = 'en'; } else { $_POST['lang'] = $_POST['lang']; } if ($infoUser->language != $_POST['lang']) { unset($_SESSION['lang_user']); $_SESSION['lang_user'] = $_POST['lang']; $changeLang = 1; } else { $changeLang = 0; }