1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-01-13 18:51:54 +00:00
S2OJ/web/app/controllers/blog_show.php

7 lines
214 B
PHP

<?php
Auth::check() || redirectToLogin();
UOJBlog::init(UOJRequest::get('id')) || UOJResponse::page404();
redirectTo(HTML::blog_url(UOJBlog::info('poster'), '/post/' . UOJBlog::info('id'), ['escape' => false]));