$user_lang['id'] = (int) $item; if ($user_lang['id'] == 0) { continue; } if (is_array($_POST['lang-q'])) { $user_lang['quality'] = (int) $_POST['lang-q'][$key] > 0 ? (int) $_POST['lang-q'][$key] : 2; } $user_langs[$user_lang['id']] = $user_lang; } } if (!$error_flag && $resume->size == 0 && strlen($resume->tmp_name) != 0) { $error_flag = 1; $alert[4] = 'Файл не удовлетворяет условиям загрузки'; } if (!$error_flag) { user_langs::updateUserLangs($_SESSION['uid'], $user_langs); $error .= $frl->UpdateInform($uid, $resume, $del_resume, $file_error); // Доступ пользователя к функциям сайта require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/registration.php'; $reg = new registration(); $reg->checkUserAccess($uid, true); $selected = $_POST['id']; require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/teams.php'; //var_dump($selected); $error .= teams::teamsDelFavoritesExcept($uid, $selected); if ($file_error) { $error_flag = 1; $alert[4] = 'Файл не удовлетворяет условиям загрузки'; } } if (!$error && !$error_flag) {
$user_lang["id"] = (int) $item; if ($user_lang["id"] == 0) { continue; } if (is_array($_POST["lang-q"])) { $user_lang["quality"] = (int) $_POST["lang-q"][$key] > 0 ? (int) $_POST["lang-q"][$key] : 2; } $user_langs[$user_lang["id"]] = $user_lang; } } if (!$error_flag && $resume->size == 0 && strlen($resume->tmp_name) != 0) { $error_flag = 1; $alert[4] = "Файл не удовлетворяет условиям загрузки"; } if (!$error_flag) { user_langs::updateUserLangs($_SESSION["uid"], $user_langs); $error .= $frl->UpdateInform($uid, $resume, $del_resume, $file_error); // Доступ пользователя к функциям сайта require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/registration.php"; $reg = new registration(); $reg->checkUserAccess($uid, true); $selected = $_POST['id']; require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/teams.php"; //var_dump($selected); $error .= teams::teamsDelFavoritesExcept($uid, $selected); if ($file_error) { $error_flag = 1; $alert[4] = "Файл не удовлетворяет условиям загрузки"; } } if (!$error && !$error_flag) {
} elseif ($error_flag) { $mnth = trim($_POST['datem']); $day = trim($_POST['dated']); $year = trim($_POST['datey']); $frl->login = $user->login; $user = $frl; } if ($user->birthday == "1910-01-01") { $mnth = 01; $day = ""; $year = ""; } $cities = city::GetCities($user->country); $info_for_reg = @unserialize($user->info_for_reg); $languages = users::getUserLangs($user->uid); $lang_list = user_langs::getLanguages(); if (count($languages) > 0) { foreach ($lang_list as $key => $lang) { $lang_list[$key] = "<option value=\"{$lang['id']}\">{$lang['name']}</option>"; } } $lang_list = "<option value=\"0\">Выбрать язык</option>" . join('', $lang_list); if ($_SESSION['uid']) { $note = notes::GetNotes($_SESSION['uid'], null, $error); if (count($note) > 0) { foreach ($note as $key => $value) { $notes[$value['to_id']] = $value; } } } // require_once($_SERVER['DOCUMENT_ROOT'] . "/xajax/commune.common.php");