Файл: pages/privet.php
Строк: 52
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
################################################################################
only_reg();
$set['title']='Приветствие странички';
include_once '../sys/inc/thead.php';
title();
################################################################################
if (isset($_POST['save'])){
if (isset($_POST['privet']) && strlen2(esc(stripcslashes(htmlspecialchars($_POST['privet']))))<=510)
{
$user['privet']=mysql_real_escape_string(htmlspecialchars($_POST['privet']));
mysql_query("UPDATE `user` SET `privet` = '".my_esc($user['privet'])."' WHERE `id` = '$user[id]' LIMIT 1");
}else $err='Нужно писать меньше :)';
if (!isset($err))msg('Приветствие странички успешно изменен');
}
################################################################################
err();
aut();
################################################################################
echo "<form method='post' action='?'>n";
echo "Текст приветствие: [max 510]<br />n<input type='text' name='privet' value='$user[privet]' maxlength='510' /><br />n";
echo "<input type='submit' name='save' value='Сохранить' />n";
echo "</form>n";
################################################################################
include_once '../sys/inc/tfoot.php';
?>