Файл: liwar.ru/forum/podrazd_down.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');}
$podrazd = DB::$dbs->queryFetch("SELECT * FROM `forum_podrazd` where `id` = ? limit 1",array(abs(intval($_GET['id']))));
if($podrazd == 0){header('location:/forum');}
if($cms->us['level'] < 8){header('location:/forum/thema'.$thema['id']); exit;}
verh('Подраздел '.$podrazd['name'].'');
include 'Yadro/Functions.php';
DB::$dbs->query("UPDATE `forum_podrazd` set `pos` = `pos`-1 where `id` = ? limit 1",array($podrazd['id']));
header('location:/forum/');
niz();
?>