From 7910357113158d5e7c0179b74f577cc6134f34ea Mon Sep 17 00:00:00 2001 From: icret Date: Thu, 20 Jun 2019 01:23:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E7=AE=A1=E7=90=86=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E6=96=B9=E5=BC=8F=EF=BC=8C=E6=9B=B4=E7=AE=80=E5=8D=95?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/EasyImages2.0.iml | 8 + .idea/codeStyles/Project.xml | 7 + .idea/codeStyles/codeStyleConfig.xml | 5 + .idea/misc.xml | 6 + .idea/modules.xml | 8 + .idea/php.xml | 8 + .idea/vcs.xml | 6 + .idea/workspace.xml | 301 +++++++++++++++++++++++++++ README.md | 2 +- check.php | 17 +- config.php | 6 +- tinyfilemanager.php | 2 +- 12 files changed, 356 insertions(+), 20 deletions(-) create mode 100644 .idea/EasyImages2.0.iml create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/php.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/EasyImages2.0.iml b/.idea/EasyImages2.0.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/EasyImages2.0.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..b3295c5 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..28a804d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..ad7b1b6 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..344530d --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..95b3898 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,301 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .js + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
新加密密码:'.password_hash($_POST['psw'],PASSWORD_DEFAULT).''; - echo '
请将新密码全部复制并覆盖tinyfilemanager.php第28行中替换相应的字符'; - echo '
登录密码为:'.$_POST['psw'].''; -} - echo '
当前PHP版本:'.phpversion(); if(extension_loaded('gd')){ echo '
GD已安装:'.gd_info()['GD Version']; diff --git a/config.php b/config.php index 326e29f..bc21642 100644 --- a/config.php +++ b/config.php @@ -35,9 +35,9 @@ $config = array( 'maxSize' => 5242880, // 是否开启登录上传 开启:true 关闭false 'mustLogin' => false, - // 登录密码 此密码非管理密码 - 'password' => '7080', - // 开启管理 开启后务必修改密码 修改方式请见read.php + // 登录和管理密码 + 'password' => 'admin', + // 是否开启管理 'tinyfilemanager' => true, // 是否开启API上传 'apiStatus' => false, diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 0c37a4f..5756ee8 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -25,7 +25,7 @@ $use_auth = true; // Users: array('Username' => 'Password', 'Username2' => 'Password2', ...) // Generate secure password hash - https://tinyfilemanager.github.io/docs/pwd.html $auth_users = array( - 'admin' => '$2y$10$USj7ZngZnv3/q5TdZGaKFOgieEA15SIr0eEPcsQxf6aIulR.DgwTW', //请将加密的密码覆盖,默认密码easyimage + 'admin' => password_hash($config['password'], PASSWORD_DEFAULT), // 登录密码 ); // Readonly users (username array)