mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-10 11:18:42 +00:00
16 lines
276 B
PHP
16 lines
276 B
PHP
<?php
|
|
if (!Auth::check()) {
|
|
redirectToLogin();
|
|
}
|
|
|
|
if (!isNormalUser($myUser)) {
|
|
become403Page();
|
|
}
|
|
|
|
if (!validateUInt($_GET['id']) || !($blog = queryBlog($_GET['id']))) {
|
|
become404Page();
|
|
}
|
|
|
|
redirectTo(HTML::blog_url($blog['poster'], '/post/'.$_GET['id']));
|
|
?>
|