S2OJ/web/app/controllers/blog_show.php

7 lines
214 B
PHP
Raw Permalink Normal View History

2016-07-18 16:39:37 +00:00
<?php
2022-03-17 04:00:03 +00:00
2022-11-06 02:26:21 +00:00
Auth::check() || redirectToLogin();
UOJBlog::init(UOJRequest::get('id')) || UOJResponse::page404();
2022-04-03 10:18:17 +00:00
2022-11-06 02:26:21 +00:00
redirectTo(HTML::blog_url(UOJBlog::info('poster'), '/post/' . UOJBlog::info('id'), ['escape' => false]));