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

Размер файла: 1.11Kb
<?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));
    $otv = htmlspecialchars(stripslashes($otv));

    $query = 'UPDATE ' . $pref . 'book SET msg = "' . $soob . '", otvet = "' . $otv . '" WHERE id=' . $idmsg;
    $result = mysql_query($query);

    $b = $d;
    $b = explode('|', $b);
    $a = $b[0];
    for($i = 1; $i < (count($b)-1); $i++) {
        $a = $a . '|' . $b[$i];
    } 
    if ($d != '') {
        if ($a === $d) {
            header("Location: down.php?d=");
        } else {
            header("Location: down.php?d=" . $a);
        } 
    } 
    // header("Location: book.php");
} 
// include_once "../themes/$theme/foot.php";
?>