diff --git a/install/README/1305032567.png b/install/README/1305032567.png deleted file mode 100644 index b1099dd..0000000 Binary files a/install/README/1305032567.png and /dev/null differ diff --git a/install/README/2657944724.png b/install/README/2657944724.png deleted file mode 100644 index abe2c02..0000000 Binary files a/install/README/2657944724.png and /dev/null differ diff --git a/install/README/3053540273.png b/install/README/3053540273.png deleted file mode 100644 index 0188fb9..0000000 Binary files a/install/README/3053540273.png and /dev/null differ diff --git a/install/README/674074848.png b/install/README/674074848.png deleted file mode 100644 index 699a37d..0000000 Binary files a/install/README/674074848.png and /dev/null differ diff --git a/install/README/chmod.png b/install/README/chmod.png deleted file mode 100644 index 5dc889b..0000000 Binary files a/install/README/chmod.png and /dev/null differ diff --git a/install/README/info.png b/install/README/info.png deleted file mode 100644 index 79d7006..0000000 Binary files a/install/README/info.png and /dev/null differ diff --git a/install/README/log.png b/install/README/log.png deleted file mode 100644 index b43f0ca..0000000 Binary files a/install/README/log.png and /dev/null differ diff --git a/install/contorl.php b/install/contorl.php index 25f88f4..e232b00 100755 --- a/install/contorl.php +++ b/install/contorl.php @@ -6,7 +6,7 @@ if (file_exists(APP_ROOT . '/config/install.lock')) { } if (isset($_POST['password'])) { - if ($_POST['password'] == $_POST['repassword']) { + if ($_POST['password'] === $_POST['repassword']) { $config['password'] = hash('sha256', $_POST['password']); $config['user'] = $_POST['user']; @@ -27,11 +27,12 @@ if (isset($_POST['imgurl'])) { $config_file = APP_ROOT . '/config/config.php'; cache_write($config_file, $config); -file_put_contents(APP_ROOT . '/config/install.lock', '安装程序锁定文件。'); // 创建安装程序锁 +// 创建安装程序锁 +file_put_contents(APP_ROOT . '/config/install.lock', '安装程序锁定文件。'); // 删除安装目录 if (isset($_POST['del_install'])) { - if ($_POST['del_install'] == "del") { + if ($_POST['del_install'] === "del") { try { @deldir(APP_ROOT . "/install"); } catch (Exception $e) { @@ -42,7 +43,7 @@ if (isset($_POST['del_install'])) { // 删除多余文件.whitesource if (isset($_POST['del_extra_files'])) { - if ($_POST['del_extra_files'] == "del") { + if ($_POST['del_extra_files'] === "del") { try { @unlink(APP_ROOT . '/LICENSE'); @unlink(APP_ROOT . '/README.md'); @@ -59,11 +60,10 @@ if (isset($_POST['del_extra_files'])) { } } } +?> + -// 跳转主页 -echo ' - -'; + \ No newline at end of file diff --git a/install/install.php b/install/install.php index df6fabb..0635e9a 100755 --- a/install/install.php +++ b/install/install.php @@ -25,7 +25,7 @@ if ($state !== 'checked') { - + @@ -176,12 +176,9 @@ if ($state !== 'checked') {