View file adm/editnews.php

File size: 874B
<?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 {
    $idmsg = (int)$idmsg;
    if ($idmsg == 0) {
        echo'ПАШШШШШШШШШШШОЛ НАХХУЙ';
        include_once "../themes/$theme/foot.php";
        exit;
    } 

    $soob = htmlspecialchars(stripslashes($soob));
    $data = htmlspecialchars(stripslashes($data));
    $vrem = htmlspecialchars(stripslashes($vrem));

    $query = 'UPDATE ' . $pref . 'news SET data="' . $data . '", vrem="' . $vrem . '", msg = "' . $soob . '" WHERE id=' . $idmsg;
    $result = mysql_query($query);
    header("Location: news.php");
} 
// include_once "../themes/$theme/foot.php";
?>