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)