feat(courseware): add protected PPTX viewer

This commit is contained in:
2026-09-03 18:06:03 +08:00
parent fd53bab639
commit 7495d40d4d
28 changed files with 1823 additions and 4117 deletions
+5
View File
@@ -192,6 +192,9 @@ a.label:hover {
console.log('\n %c Theme By %c Baoshuo ( @renbaoshuo ) %c https://baoshuo.ren %c\n', 'color: #fadfa3; background: #000000; padding:5px 0;', 'background: #fadfa3; padding:5px 0;', 'background: #ffbf33; padding:5px 0;', '');
console.log('\n GitHub Homepage: https://github.com/zhblue/hustoj \n Document: https://zhblue.github.io/hustoj \n Bug report URL: https://github.com/zhblue/hustoj/issues \n \n%c ★ Please give us a star on GitHub! ★ %c \n', 'color: red;', '')
</script>
<?php if (!empty($OJ_COURSEWARE_PAGE)) { ?>
<script src="<?php echo $path_fix."template/$OJ_TEMPLATE"?>/css/Chart.min.js"></script>
<?php } ?>
</head>
<?php
@@ -216,6 +219,8 @@ a.label:hover {
<!-- 问题 -->
<a class="item <?php if ($url=="problemset.php") echo "active";?>"
href="<?php echo $path_fix?>problemset.php"><i class="list icon"></i><?php echo $MSG_PROBLEMS?> </a>
<a class="item <?php if ($url=="courseware.php") echo "active";?>"
href="<?php echo $path_fix?>courseware.php"><i class="clone icon"></i><?php echo $MSG_COURSEWARE; ?></a>
<!-- 竞赛/作业 -->
<a class="item <?php if ($url=="contest.php") echo "active";?>" href="<?php echo $path_fix?>contest.php<?php if(isset($_SESSION[$OJ_NAME."_user_id"])) echo "?my" ?>" ><i
class="trophy icon"></i> <?php echo $MSG_CONTEST?></a>