S2OJ/uoj/1/app/controllers/blog_show.php
2017-04-07 11:15:39 +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"]));
?>