修改*.lock文件位置

* 2023-02-01 v2.7.0 dev
- 增加上传历史记录
- 增加粘贴上传状态
- 增加广场非图片图标
- 增加前端显示缩略图链接
- 增加每日获取Bing图片背景
- 增加图片详细信息管理登录后显示更多信息
- 增加解析上传IP地址 (使用方法参考提示信息)
- 修复图片详细信息中随机图片排版混乱
- 替换访问生成缩略图代码
- 更新一些组件
- 调整前端显示
- 优化代码
This commit is contained in:
icret
2023-02-01 12:40:37 +08:00
parent ae21b70a13
commit 22b75d89c7
10 changed files with 18 additions and 36 deletions

View File

@@ -1,7 +1,7 @@
<?php
require_once __DIR__ . '/../application/function.php';
if (file_exists(APP_ROOT . '/install/install.lock')) {
if (file_exists(APP_ROOT . '/config/install.lock')) {
exit(header("Location:/../index.php"));
}
@@ -27,7 +27,7 @@ if (isset($_POST['imgurl'])) {
$config_file = APP_ROOT . '/config/config.php';
cache_write($config_file, $config);
file_put_contents(APP_ROOT . '/install/install.lock', '安装程序锁定文件。'); // 创建安装程序锁
file_put_contents(APP_ROOT . '/config/install.lock', '安装程序锁定文件。'); // 创建安装程序锁
// 删除安装目录
if (isset($_POST['del_install'])) {

View File

@@ -2,7 +2,7 @@
require_once __DIR__ . '/../application/function.php';
clearstatcache();
// 存在程序锁则跳转主页
if (file_exists(APP_ROOT . '/install/install.lock')) {
if (file_exists(APP_ROOT . '/config/install.lock')) {
exit(header("Location:/../index.php"));
}
$phpEnv = (PHP_VERSION >= 5.6) ? true : false;

View File

@@ -1,7 +1,7 @@
<?php
require_once __DIR__ . '/../application/function.php';
// 存在程序锁则跳转主页
if (file_exists(APP_ROOT . '/install/install.lock')) {
if (file_exists(APP_ROOT . '/config/install.lock')) {
exit(header("Location:/../index.php"));
}