Просмотр файла adm/addnews.php

Размер файла: 981B
<?php
include_once "../config.php";
include_once "../inc/inc.php";
include_once "../inc/func.php";
include_once "../inc/user.php";

if ($dostup != '1') {
    echo "ПАШШШШШШШОЛНАХУЙ";
    include_once "../themes/$theme/foot.php";
    exit;
} else {
    if ($kto == 'user') {
        $login = htmlspecialchars(stripslashes($login));
        $msg = htmlspecialchars(stripslashes($msg));
        if (strlen($msg) <= 2) {
            header("Location: news.php");
            exit;
        } 
        if (strlen($msg) >= 1025) {
            header("Location: news.php");
            exit;
        } 

        $zapros2 = 'INSERT INTO ' . $pref . 'news (id_user, data, vrem, dataunix, login, msg) VALUES (' . (int)$usdata['id'] . ', "' . data() . '", "' . vrem() . '", ' . time() . ', "' . $login . '", "' . $msg . '");';
        mysql_query($zapros2);

        header("Location: news.php");
    } else {
        header("Location: news.php");
    } 
} 

?>