S2OJ/web/app/controllers/blog_show.php

8 lines
176 B
PHP
Raw Normal View History

2016-07-18 16:39:37 +00:00
<?php
if (!validateUInt($_GET['id']) || !($blog = queryBlog($_GET['id']))) {
become404Page();
}
redirectTo(HTML::blog_url($blog['poster'], $_SERVER["REQUEST_URI"]));
?>