<?
$set['title']='Настройки - Приветствие'; // заголовок страницы


if (isset($_GET['set']))
{
if (isset($_POST['privet']) && strlen2(esc(stripcslashes(htmlspecialchars($_POST['privet']))))<=84)
{
$user['privet']=$_POST['privet'];
mysql_query("UPDATE `user` SET `privet` = '$user[privet]' WHERE `id` = '$user[id]' LIMIT 1");
}
else $err='Нужно писать меньше :)';
if (!isset($err))msg('Приветствие странички успешно изменен');
}
err();
aut();


echo "<form method='post' action='?p=privet&amp;set'>\n";
echo "<input type='text' name='privet' value='$user[privet]' maxlength='83' />\n";
echo "<input type='submit' name='save' value='Изменить' />\n";
echo "</form>\n";

?>
