S2OJ/web/app/controllers/blog_show.php
2022-03-17 12:00:03 +08:00

12 lines
247 B
PHP

<?php
if (!Auth::check()) {
becomeMsgPage(UOJLocale::get('need login'));
}
if (!validateUInt($_GET['id']) || !($blog = queryBlog($_GET['id']))) {
become404Page();
}
redirectTo(HTML::blog_url($blog['poster'], '/post/'.$_GET['id']));
?>