View file adm/delbook.php

File size: 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 . 'book WHERE id=' . $idmsg;
        $result = mysql_query($query);
    } 

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

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