S2OJ/web/app/controllers/subdomain/blog/slide.php

20 lines
554 B
PHP
Raw Normal View History

2016-07-18 16:39:37 +00:00
<?php
requirePHPLib('form');
2022-03-17 04:00:03 +00:00
if (!Auth::check()) {
2022-04-02 10:01:26 +00:00
become403Page(UOJLocale::get('need login'));
2022-03-17 04:00:03 +00:00
}
2016-07-18 16:39:37 +00:00
if (!isset($_GET['id']) || !validateUInt($_GET['id']) || !($blog = queryBlog($_GET['id'])) || !UOJContext::isHisSlide($blog)) {
become404Page();
}
if ($blog['is_hidden'] && !UOJContext::hasBlogPermission()) {
become403Page();
}
$page_config = UOJContext::pageConfig();
$page_config['PageTitle'] = HTML::stripTags($blog['title']) . ' - 幻灯片';
$page_config['content'] = $blog['content'];
uojIncludeView('slide', $page_config);
2022-09-18 04:58:35 +00:00
?>