Compare commits

...

3 Commits

Author SHA1 Message Date
d627490c67
chore(faq): add license reminder
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-19 10:45:59 +08:00
8c6d1c2481
fix: e0f3dbf57c 2023-11-19 10:45:38 +08:00
4d58f21c4c
chore: send current domain to analytics 2023-11-19 10:31:07 +08:00
3 changed files with 20 additions and 4 deletions

View File

@ -96,10 +96,14 @@ requireLib('mathjax');
<h4 class="mt-4">开源项目</h4>
<p class="card-text">
<?= UOJConfig::$data['profile']['oj-name-short'] ?> 的源代码存放于
S2OJ 是采用 <a href="https://www.gnu.org/licenses/agpl-3.0.html" target="_blank" rel="nofollow noreferrer noopener">AGPLv3</a> 协议的自由软件。S2OJ 的源代码存放于
<a href="https://github.com/renbaoshuo/S2OJ" target="_blank">https://github.com/renbaoshuo/S2OJ</a>
如果你网不太好,打不开 GitHub 的话,也可以点击 <a href="https://git.m.ac/baoshuo/S2OJ" target="_blank">https://git.m.ac/baoshuo/S2OJ</a> 查看哦!这两个仓库的内容是一模一样的。
<br>
<small>PS: 如果你网不太好,打不开 GitHub 的话,也可以点击 <a href="https://git.m.ac/baoshuo/S2OJ" target="_blank">https://git.m.ac/baoshuo/S2OJ</a> 查看哦!这两个仓库的内容是一模一样的。</small>
</p>
<div class="alert alert-warning mb-2 small" role="alert">
<b>特别提醒</b>:本项目采用 <a href="https://www.gnu.org/licenses/agpl-3.0.html" target="_blank" rel="nofollow noreferrer noopener">AGPLv3</a> 协议。任何对本项目进行修改和衍生的行为都需要遵循该协议,并且需要将修改后的代码以相同协议公开发布。
</div>
<h4 class="mt-4">用户手册</h4>
<p class="card-text">

View File

@ -21,12 +21,12 @@ if (!isset($ShowPageFooter)) {
</div>
<div class="small mt-1">
<?php if (UOJConfig::$data['profile']['ICP-license'] != '') : ?>
<a class="text-muted text-decoration-none d-inline-block mr-2" target="_blank" href="https://beian.miit.gov.cn">
<a class="text-muted text-decoration-none d-inline-block me-2" target="_blank" href="https://beian.miit.gov.cn">
<?= UOJConfig::$data['profile']['ICP-license'] ?>
</a>
<?php endif ?>
<?php if (UOJConfig::$data['profile']['police-license'] != '') : ?>
<a class="text-muted text-decoration-none d-inline-block mr-2" target="_blank" href="https://beian.mps.gov.cn/#/query/webSearch">
<a class="text-muted text-decoration-none d-inline-block me-2" target="_blank" href="https://beian.mps.gov.cn/#/query/webSearch">
<img src="<?= HTML::url('/images/police-beian.png') ?>" style="height: 1em; vertical-align: middle" />
<?= UOJConfig::$data['profile']['police-license'] ?>
</a>

View File

@ -242,6 +242,18 @@ $new_msg_tot = $new_user_msg_num + $new_system_msg_num;
</script>
<script async data-domain="sjzezoj.com" src="https://stat.u.sb/js/script.js"></script>
<script>
window.plausible = window.plausible || function() {
(window.plausible.q = window.plausible.q || []).push(arguments)
}
</script>
<script>
plausible('Domain', {
props: {
domain: window.location.host,
},
});
</script>
</head>
<body class="d-flex flex-column min-vh-100