fix static

pull/141/head
= 2022-02-07 06:20:07 +08:00
parent b149750873
commit af0832f110
2 changed files with 6 additions and 5 deletions

View File

@ -125,7 +125,7 @@ if (isset($_GET['login'])) {
</div>
</div>
</form>
<script src="<?php static_cdn(); ?>/public/static/md5.min.js"></script>
<script src="<?php static_cdn(); ?>/public/static/md5/md5.min.js"></script>
<script>
function md5_post() {
var password = document.getElementById('password');

View File

@ -36,13 +36,14 @@ if (isset($_POST['del_install'])) {
}
}
// 删除多余文件
// 删除多余文件.whitesource
if (isset($_POST['del_extra_files'])) {
if ($_POST['del_extra_files'] == "del") {
@unlink(APP_ROOT . '/CODE_OF_CONDUCT.md');
if ($_POST['del_extra_files'] == "del") {
@unlink(APP_ROOT . '/LICENSE');
@unlink(APP_ROOT . '/README.md');
@unlink(APP_ROOT . '/config/EasyIamge.lock');
@unlink(APP_ROOT . '/.whitesource');
@unlink(APP_ROOT . '/CODE_OF_CONDUCT.md');
@unlink(APP_ROOT . '/config/EasyIamge.lock');
@deldir(APP_ROOT . "/.github");
@deldir(APP_ROOT . "/.git");
}