Ejemplo n.º 1
0
<?php

error_reporting(E_ALL & ~E_NOTICE);
if ($_GET['case'] == 'file') {
    echo "<script>window.location.href='" . str_replace('/bbs', '', $_SERVER['REQUEST_URI']) . "';</script>";
}
require_once 'bbs_public.php';
$category = db_bbs_category::getInstance();
$category_data = $category->getAll('order by listorder asc');
$archive = db_bbs_archive::getInstance();
$label = db_bbs_label::getInstance();
$lable_data = $label->getAll();
$lable_data_arr = action_public::formatToIndex('lid', $lable_data);
include 'header.php';
?>
<div class="main">

<?php 
foreach ($category_data as $v) {
    $archive_arr = $archive->getDataLimit('aid,cid,lid,title,username,replynum,click,addtime', "cid='{$v['cid']}' AND isstop='0' order by aid desc limit 10 ");
    ?>






<div class="title">
<h3>
<a href="category-display.php?cid=<?php 
    echo $v['cid'];