Skip to content

Commit

Permalink
feat: 公安备案
Browse files Browse the repository at this point in the history
  • Loading branch information
renbaoshuo committed Nov 18, 2023
1 parent b23313b commit e0f3dbf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
'admin-email' => 'admin@sjzezoj.com',
'QQ-group' => '',
'ICP-license' => '冀ICP备2020028886号',
'police-license' => '冀公网安备13010502002309号',
],
'database' => [
'database' => 'app_uoj233',
Expand Down
3 changes: 2 additions & 1 deletion web/app/.default-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
'administrator' => 'root',
'admin-email' => 'admin@sjzezoj.com',
'QQ-group' => '',
'ICP-license' => '冀ICP备2020028886号',
'ICP-license' => '',
'police-license' => '',
's2oj-version' => 'dev'
],
'database' => [
Expand Down
10 changes: 9 additions & 1 deletion web/app/views/page-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@
&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 ?>
Expand Down
Binary file added web/images/police-beian.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e0f3dbf

Please sign in to comment.