S2OJ/uoj/1/app/controllers/blog_show.php
2018-09-20 17:21:40 +08:00

8 lines
176 B
PHP

<?php
if (!validateUInt($_GET['id']) || !($blog = queryBlog($_GET['id']))) {
become404Page();
}
redirectTo(HTML::blog_url($blog['poster'], $_SERVER["REQUEST_URI"]));
?>