GetID() == 0) { Ctrl::Redirect("/blog/"); } # Define headers $sTitle = "#%meta_title_blog%#"; if ($objBlog->GetID()) { $sTitle .= " - ".$objBlog->GetTitle(); } $html->SetHead($sTitle, "#%meta_description_blog%#", $objBlog->GetKeywords()); # Set menu $html->SetMenu("blog", $player->GetLogin()); # Set content $html->SetContent($objBlog->GetID() ? $objBlog->PrintPost() : $objBlog->PrintList()); # Set bottom $html->SetBottom(); # Print all content $html->PrintPage(); # Close db connection $db->Disconnect(); ?>