feat: 公安备案
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Baoshuo Ren 2023-11-18 22:07:13 +08:00
parent b23313bd4f
commit e0f3dbf57c
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
4 changed files with 12 additions and 2 deletions

View File

@ -7,6 +7,7 @@ return [
'admin-email' => 'admin@sjzezoj.com',
'QQ-group' => '',
'ICP-license' => '冀ICP备2020028886号',
'police-license' => '冀公网安备13010502002309号',
],
'database' => [
'database' => 'app_uoj233',

View File

@ -6,7 +6,8 @@ return [
'administrator' => 'root',
'admin-email' => 'admin@sjzezoj.com',
'QQ-group' => '',
'ICP-license' => '冀ICP备2020028886号',
'ICP-license' => '',
'police-license' => '',
's2oj-version' => 'dev'
],
'database' => [

View File

@ -18,11 +18,19 @@ if (!isset($ShowPageFooter)) {
&copy; <?= date('Y') ?>
<a class="text-decoration-none" href="<?= HTML::url('/') ?>">S2OJ</a>
(build: <a class="text-decoration-none" href="https://github.com/renbaoshuo/S2OJ<?= UOJConfig::$data['profile']['s2oj-version'] == "dev" ? '' : '/tree/' . UOJConfig::$data['profile']['s2oj-version'] ?>"><?= UOJConfig::$data['profile']['s2oj-version'] ?></a>)
</div>
<div class="small mt-1">
<?php if (UOJConfig::$data['profile']['ICP-license'] != '') : ?>
| <a class="text-muted text-decoration-none" target="_blank" href="https://beian.miit.gov.cn">
<a class="text-muted text-decoration-none d-inline-block mr-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">
<img src="<?= HTML::url('/images/police-beian.png') ?>" style="height: 1em; vertical-align: middle" />
<?= UOJConfig::$data['profile']['police-license'] ?>
</a>
<?php endif ?>
</div>
<div class="small mt-1">
<?= UOJLocale::get('server time') ?>: <?= UOJTime::$time_now_str ?>

BIN
web/images/police-beian.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB