<?php
include "testban.php";

include "bblog/config.php";

if(is_numeric(@$_GET['postid'])) {
    if($_COOKIE['bBcomment']){
        $cdata = unserialize(base64_decode($_COOKIE['bBcomment']));
        $bBlog->assign('cdata',$cdata);
    }
    $bBlog->assign('postid',$_GET['postid']);
    $bBlog->show_post = $_GET['postid'];
    $bBlog->display('post.html');
    die;
}

if(is_numeric(@$_GET['sectionid'])) {
    $bBlog->assign('sectionid',$_GET['sectionid']);
    $bBlog->assign('sectionname',$bBlog->sect_by_name[$_GET['sectionid']]);
    $bBlog->show_section = $_GET['sectionid'];
}

$bBlog->display('index.html');
?>
