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

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

if ($dostup != '1') {
    echo "ПАШШШШШШШОЛНАХУЙ";
    exit;
} else {
    $name = htmlspecialchars(stripslashes($name));
    $skin = htmlspecialchars(stripslashes($skin));
    $bookkol = htmlspecialchars(stripslashes($bookkol));
    $forumpostkol = htmlspecialchars(stripslashes($forumpostkol));
    $forumkol = htmlspecialchars(stripslashes($forumkol));
    $pic_counts = htmlspecialchars(stripslashes($pic_counts));
    $bookkol = (int)$bookkol;
    $forumpostkol = (int)$forumpostkol;
    $forumkol = (int)$forumkol;
    $downkol = (int)$downkol;
    $count = (int)$count;
    $gzip = (int)$gzip;
    $innewses = (int)$innewses;
    $news_in_indexes = (int)$news_in_indexes;
    // echo $name;
    $query = 'UPDATE ' . $pref . 'config SET nos="' . $name . '", theme="' . $skin . '", kolbook=' . $bookkol . ', kolforum_thema=' . $forumpostkol . ', kolforum_post=' . $forumkol . ', indown=' . $downkol . ', innews=' . $innewses . ', news_in_index=' . $news_in_indexes . ', count=' . $count . ', pic_count="' . $pic_counts . '", gzip=' . $gzip . ' WHERE nomer=1';
    mysql_query($query) or die ('ERROR');
    header("Location: setting.php");

    exit;
} 

?>