From dd54c94d54fe895b6f4c7b3d9c20c26835393921 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 22 Mar 2020 10:19:59 +0800 Subject: [PATCH] change install in vps --- function/normal.php | 63 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 49 insertions(+), 14 deletions(-) diff --git a/function/normal.php b/function/normal.php index e6bf1e8..e970fe0 100644 --- a/function/normal.php +++ b/function/normal.php @@ -115,7 +115,7 @@ function setConfig($arr, $disktag = '') function install() { global $constStr; - if ($_GET['install1']) { + if ($_GET['install2']) { if ($_POST['admin']!='') { $tmp['admin'] = $_POST['admin']; $tmp['language'] = $_POST['language']; @@ -129,27 +129,70 @@ function install() } } } - if ($_GET['install0']) { + if ($_GET['install1']) { if (!ConfigWriteable()) { $html .= getconstStr('MakesuerWriteable'); $title = 'Error'; return message($html, $title, 201); } - if (!RewriteEngineOn()) { + /*if (!RewriteEngineOn()) { $html .= getconstStr('MakesuerRewriteOn'); $title = 'Error'; return message($html, $title, 201); + }*/ + $html .= ' + + '; + $title = getconstStr('SetAdminPassword'); + return message($html, $title, 201); + } + if ($_GET['install0']) { $html .= ' -
+ language:
'; foreach ($constStr['languages'] as $key1 => $value1) { $html .= '
'; } $html .= ' -
'; - $html .= '
'; $title = getconstStr('SelectLanguage'); return message($html, $title, 201); -- GitLab