diff --git a/app/Http/Controllers/SetupController.php b/app/Http/Controllers/SetupController.php index ca8a69ba..db400304 100644 --- a/app/Http/Controllers/SetupController.php +++ b/app/Http/Controllers/SetupController.php @@ -83,11 +83,19 @@ class SetupController extends Controller public function info() { + if (self::checkTablesExist()) { + return view('setup.locked'); + } + return view('setup.wizard.info'); } public function finish(Request $request) { + if (self::checkTablesExist()) { + return view('setup.locked'); + } + $this->validate($request, [ 'email' => 'required|email', 'password' => 'required|min:6|max:16|confirmed', diff --git a/resources/lang/en/setup.yml b/resources/lang/en/setup.yml index b8bce77b..177849b8 100644 --- a/resources/lang/en/setup.yml +++ b/resources/lang/en/setup.yml @@ -1,6 +1,6 @@ database: - connection-error: Unable to connect to MySQL server, please check your configuration. :msg - connection-success: Successfully connected to :server , just click NEXT to start installation. + connection-error: Unable to connect to the target database, please check your configuration. The server replied with this :msg. + connection-success: Connect to the target database [:server] successfully, just click NEXT to start installation. file: permission-error: Unable to create textures folder, please check the directory permissions or place one manually. @@ -10,9 +10,9 @@ permissions: storage: Unable to write to storage directory, please check the permissions. locked: - title: Installed + title: Already installed text: You appear to have already installed Blessing Skin Server. To reinstall please clear your old database tables first, or use a new database table prefix. - back-to-index: Back to index + button: Back to homepage updates: master: @@ -30,29 +30,27 @@ updates: tip-update: Tips of updating wizard: - info: - title: Providing information - button: Start installation - tip-info: Please provide the following information. Don't worry, you can always change these settings later. - admin-email: E-mail address of administrator - super-admin: This is the only one administrator account, which can ADD or CANCEL other administrators. - password: Password - tip-important: 'Important:' - password-saving: You will need this password to log in. Please store it in a secure location. - password-confirmation: Confirm password - site-name: Site name - site-name-show: will be showed in index and title. + master: + title: Install Wizard - Blessing Skin Server welcome: - title: Welcom + title: Welcome button: Next - welcome: Welcome to Blessing Skin Server + text: Welcome to Blessing Skin Server v:version! - master: - title: Blessing Skin Server Installation + info: + title: Information needed + button: Run install + text: To proceed with the installation fill this form with the details of the initial admin account. Don't worry, you can always change these settings later. + + admin-email: Admin Email + admin-notice: This is the UNIQUE super admin account who can GIVE or CANCEL other users' admin privilege. + password: Password + pwd-notice: Attention: You will need the password to log in. Please keep it at a secure place. + confirm-pwd: Confirm password + site-name: Site name + site-name-notice: This will be shown at title bar and homepage. finish: - title: Success! - success: Blessing Skin Server has been installed. Thank you, and enjoy! - email: E-mail - password: Password + title: Installation complete + text: Blessing Skin Server has been installed. Thank you, and enjoy! diff --git a/resources/lang/zh_CN/setup.yml b/resources/lang/zh_CN/setup.yml index 47ef9b4b..6c526f43 100644 --- a/resources/lang/zh_CN/setup.yml +++ b/resources/lang/zh_CN/setup.yml @@ -1,6 +1,6 @@ database: connection-error: 无法连接至 MySQL 服务器,请检查你的配置 :msg - connection-success: 成功连接至 MySQL 服务器 :server ,点击下一步以开始安装。 + connection-success: 成功连接至 MySQL 服务器 [:server] ,点击下一步以开始安装。 file: permission-error: textures 文件夹创建失败,请确认目录权限是否正确,或者手动放置一个。 @@ -11,8 +11,8 @@ permissions: locked: title: 已安装过 - text: 看起来已经安装妥当。如果想重新安装,请删除数据库中的旧数据表,或者换一个数据表前缀。 - back-to-index: 返回首页 + text: Blessing Skin Server 看起来已经安装妥当。如果想重新安装,请删除数据库中的旧数据表,或者换一个数据表前缀。 + button: 返回首页 updates: master: @@ -30,29 +30,27 @@ updates: tip-update: 升级提示: wizard: - info: - title: 填写信息 - button: 开始安装 - tip-info: 您需要填写一些基本信息。无需担心填错,这些信息以后可以再次修改。 - admin-email: 管理员邮箱 - super-admin: 这是唯一的超级管理员账号,可 添加/取消 其他管理员。 - password: 密码 - tip-important: 重要: - password-saving: 您将需要此密码来登录管理皮肤站,请将其保存在安全的位置。 - password-confirmation: 重复密码 - site-name: 站点名称 - site-name-show: 将会显示在首页以及标题栏 + master: + title: Blessing Skin Server 安装程序 welcome: title: 欢迎 button: 下一步 - welcome: 欢迎使用 Blessing Skin Server + text: 欢迎使用 Blessing Skin Server v:version! - master: - title: Blessing Skin Server 安装程序 + info: + title: 填写信息 + button: 开始安装 + text: 您需要填写一些基本信息。无需担心填错,这些信息以后可以再次修改。 + + admin-email: 管理员邮箱 + admin-notice: 这是唯一的超级管理员账号,可 添加/取消 其他管理员。 + password: 密码 + pwd-notice: 重要:您将需要此密码来登录管理皮肤站,请将其保存在安全的位置。 + confirm-pwd: 重复密码 + site-name: 站点名称 + site-name-notice: 将会显示在首页以及标题栏 finish: - title: 成功! + title: 安装成功! success: Blessing Skin Server 安装完成。您是否还沉浸在愉悦的安装过程中?很遗憾,一切皆已完成! :) - email: 邮箱 - password: 密码 diff --git a/resources/views/admin/plugins.tpl b/resources/views/admin/plugins.tpl index 02d49696..757fb1bc 100644 --- a/resources/views/admin/plugins.tpl +++ b/resources/views/admin/plugins.tpl @@ -37,7 +37,7 @@ td#description {
Blessing Skin Server {{ trans('setup.locked.text') }}
+{{ trans('setup.locked.text') }}
- {{ trans('setup.locked.back-to-index') }} + {{ trans('setup.locked.button') }}
@endsection diff --git a/resources/views/setup/wizard/finish.tpl b/resources/views/setup/wizard/finish.tpl index 38faa99f..6895ed04 100644 --- a/resources/views/setup/wizard/finish.tpl +++ b/resources/views/setup/wizard/finish.tpl @@ -2,15 +2,15 @@ @section('content'){{ trans('setup.wizard.finish.text') }}
-{{ trans('setup.wizard.finish.success') }}
| {{ trans('setup.wizard.finish.email') }} | +{{ trans('auth.email') }} | {{ $email }} |
|---|---|---|
| {{ trans('setup.wizard.finish.password') }} | +{{ trans('auth.password') }} | {{ $password }} |
{{ trans('setup.wizard.info.tip-info') }}
+{{ trans('setup.wizard.info.text') }}