0) { header('Location: /fbattle.php'); die(); } if($_POST['sewe']) { $name = htmlspecialchars($_POST['name'], NULL, 'cp1251'); $diviz = htmlspecialchars($_POST['motto'], NULL, 'cp1251'); $color = htmlspecialchars($_POST['color'], NULL, 'cp1251'); $icq = htmlspecialchars($_POST['icq'], NULL, 'cp1251'); $homePage = htmlspecialchars($_POST['homePage'], NULL, 'cp1251'); $city = htmlspecialchars($_POST['city'], NULL, 'cp1251'); $hobbie = str_replace("\\n", "
", $_POST['hobbie']); $hobbie = str_replace("\\r", "", $_POST['hobbie']); $hobbie = str_replace("<br />", "
", $_POST['hobbie']); $simbolcount = strlen($hobbie); if(isset($color) && $user['align'] != '2.99' && !($color == "black" || $color == "blue" || $color == "fuchsia" || $color == "gray" || $color == "green" || $color == "maroon" || $color == "navy" || $color == "olive" || $color == "purple" || $color == "teal" || $color == "orange" || $color == "chocolate" || $color == "darkKhaki" || $color == "sandyBrown")) { $error = "Возможно использовать цвета указанные только в меню анкеты!"; $color = "Black"; } elseif($user['align'] != '2.99' && $simbolcount > 1500) { $error = "Максимальная длинна поля Хобби: 1500 символов ..."; } else { mysql_query('UPDATE `users` SET `realname` = "'.mysql_real_escape_string($name).'", `lozung` = "'.mysql_real_escape_string($diviz).'", `color` = "'.mysql_real_escape_string($color).'", `icq` = "'.mysql_real_escape_string($icq).'", `http` = "'.mysql_real_escape_string($homePage).'", `city` = "'.mysql_real_escape_string($city).'", `info` = "'.mysql_real_escape_string($hobbie).'" WHERE `id` = "'.$user['id'].'" LIMIT 1'); echo mysql_error(); $user['realname'] = $name; $user['lozung'] = $diviz; $user['color'] = $color; $user['icq'] = $icq; $user['http'] = $homePage; $user['city'] = $city; $user['info'] = $hobbie; $error = 'Изменения вступили в силу ...'; } } ?> 404
Анкета персонажа
Реальное имя:
Девиз:
Цвет сообщений:
ICQ:
Домашняя страничка:
Город:
Увлечения / хобби:

'.$error.''; } ?>