Файл: liwar.ru/forum/razd_up.php
Строк: 16
<?php
include_once 'Yadro/PDO_connect.php';
$set = DB::$dbs->queryFetch("SELECT * FROM `set_modul`");
if($set['forum']==0){header('location:../');}
if(!isset($cms->us['id'])){header('location:/error.php?user');}
$razd = DB::$dbs->queryFetch("SELECT * FROM `forum_razd` where `id` = ? limit 1",array(abs(intval($_GET['id']))));
if($razd == 0){header('location:/forum');}
if($cms->us['level'] < 8){header('location:/forum/thema'.$thema['id']); exit;}
verh('Раздел '.$razd['name']);
include 'Yadro/Functions.php';
DB::$dbs->query("UPDATE `forum_razd` set `pos` = `pos`+1 where `id` = ? limit 1",array($razd['id']));
header('location:/forum/');
niz();
?>