diff --git a/application/check.php b/application/check.php index 1ab6eaa..174f390 100755 --- a/application/check.php +++ b/application/check.php @@ -46,22 +46,22 @@ file_put_contents(APP_ROOT . '/config/EasyIamge.lock', '安装环境检测锁定 } } // 文件权限检测 - $quanxian = substr(base_convert(fileperms("file.php"), 10, 8), 3); + $quanxian = substr(base_convert(fileperms("./application/upload.php"), 10, 8), 3); if (IS_WIN) { echo ' -

file.php 文件可执行

+

upload.php 文件可执行

/i 目录可读写

'; } if (!IS_WIN) { if ($quanxian !== '755' and !is_writable(APP_ROOT . '/i/')) { echo ' -

file.php 文件不可执行> +

upload.php 文件不可执行>

/i 目录可读写> '; } else { echo ' -

file.php 文件可执行

+

upload.php 文件可执行

/i 目录可读写

'; } diff --git a/index.php b/index.php index dee9bdf..38dbc97 100755 --- a/index.php +++ b/index.php @@ -50,28 +50,28 @@ mustLogin();
- - + +
- - + +
- - + +
- - + +
- - + +
diff --git a/install/index.php b/install/index.php index 7e3de25..32d69f4 100755 --- a/install/index.php +++ b/install/index.php @@ -1,5 +1,6 @@ - file.php + upload.php 0755可执行权限 | 非windows系统 diff --git a/public/static/EasyImage.js b/public/static/EasyImage.js index 2da86ba..4e06260 100755 --- a/public/static/EasyImage.js +++ b/public/static/EasyImage.js @@ -216,7 +216,7 @@ $('#btndel').on('click', function () { xhr.onerror = function () { alert('上传失败3'); }; - xhr.open('POST', './file.php', true); + xhr.open('POST', './application/upload.php', true); xhr.send(formData); }); })();