mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-10 07:58:45 +00:00
12 lines
247 B
PHP
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']));
|
|
?>
|