Файл: rayb.me/cforum_all.php
Строк: 16
<?php
require_once ('system/func.php');
auth();
antihack();
switch(text($_GET['mod'])){
default:
break;
case 'id_f':
$title = 'Форум';
require_once ('system/header.php');
$k_post = mysqli_num_rows(DB::Query("SELECT * FROM `cforum_sub` WHERE `id_clan` = '".text($_GET['id'])."'"));
$q = DB::Query("SELECT * FROM `cforum_sub` WHERE `id_clan` = '".text($_GET['id'])."' and `gb` = '1' ORDER BY `id` ASC");
if($k_post == 0){echo "<div class='feedback'>Нет разделов...</div>";
require_once ('system/footer.php');
exit();
}
while ($post = mysqli_fetch_assoc($q)){
echo "<a class='btnl mt4' href='/corp/forum/".$post['id']."' class='btn'>".$post['name']."</a>";
}
echo "</div>";
echo "<a class='btnl mt4' href='/corp/".text($_GET['id'])."/' class='btn'> Вернуться назад</a>";
break;
}
require_once ('system/footer.php');
?>