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

Размер файла: 850B
<?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 (!isset($act)) {
        $idmsg = (int)$idmsg;
        if ($idmsg == 0) {
            echo'ПАШШШШШШШШШШШОЛ НАХХУЙ';
            include_once "../themes/$theme/foot.php";
            exit;
        } 

        $query = 'DELETE FROM ' . $pref . 'news WHERE id=' . $idmsg;
        $result = mysql_query($query);
    } 

    if ($act == 'all') {
        $query = 'TRUNCATE TABLE `' . $pref . 'news`';
        $result = mysql_query($query);
    } 

    header("Location: news.php");
} 
// include_once "../themes/$theme/foot.php";
?>