2016-07-19 00:39:37 +08:00
|
|
|
<?php
|
|
|
|
requirePHPLib('form');
|
2022-03-17 12:00:03 +08:00
|
|
|
|
2022-10-08 14:10:14 +08:00
|
|
|
if (!Auth::check() && UOJConfig::$data['switch']['force-login']) {
|
2022-10-06 20:28:43 +08:00
|
|
|
redirectToLogin();
|
2022-03-17 12:00:03 +08:00
|
|
|
}
|
2022-10-08 14:10:14 +08:00
|
|
|
|
|
|
|
if (!isNormalUser($myUser) && UOJConfig::$data['switch']['force-login']) {
|
|
|
|
become403Page();
|
|
|
|
}
|
2016-07-19 00:39:37 +08: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 12:58:35 +08:00
|
|
|
?>
|