setPostsPerPage(10);
$blog->setCommentsPerPage(10);
if(@$_GET['id'] != "")
$blog->showPost($_GET['id'],1);
else if(@$_GET['category'] != "")
$blog->showCategory($_GET['category']);
else if(@$_GET['tag'] != "")
$blog->showTag($_GET['tag']);
else if(@$_GET['month'] != "")
$blog->showMonth($_GET['month']);
else if(@$_GET['search'] != "")
$blog->showSearch($_GET['search']);
else
$blog->showLast(10);
?>