mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 03:52:15 +09:00
Update installer to use new config format
This commit is contained in:
parent
28af7b95cf
commit
0b1fa79f43
15 changed files with 287 additions and 424 deletions
66
modules/install/tpl/db_config.html
Normal file
66
modules/install/tpl/db_config.html
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<include target="header.html" />
|
||||
<form id="body" method="post" action="./">
|
||||
<include target="progress_menu.html" />
|
||||
<div id="content">
|
||||
<h2>{$lang->install_progress_menu['dbInfo']}</h2>
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<input type="hidden" value="{$error_return_url}" name="error_return_url">
|
||||
<input type="hidden" name="module" value="{$module}" />
|
||||
<input type="hidden" name="act" value="procDBConfig" />
|
||||
<div class="x_control-group">
|
||||
<label for="db_type" class="x_control-label">{$lang->db_type}</label>
|
||||
<div class="x_controls">
|
||||
<select id="db_type" name="db_type">
|
||||
<block loop="DB::getEnableList() => $key,$val">
|
||||
<option value="{$val->db_type}" selected="selected"|cond="$val->db_type==$defaultDatabase" />
|
||||
{$val->db_type}
|
||||
<block cond="$val->db_type==$defaultDatabase && stripos($val->db_type, 'innodb') !== false">({$lang->cmd_recommended})</block>
|
||||
</option>
|
||||
</block>
|
||||
<block loop="DB::getDisableList() => $key,$val">
|
||||
<option value="{$val->db_type}" disabled="disabled" />{$val->db_type} ({$lang->can_use_when_installed})</option>
|
||||
</block>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<p loop="DB::getEnableList() => $key,$val" class="install_help db_type db_type_{$val->db_type}">{$lang->db_desc[$val->db_type]}</p>
|
||||
<div class="x_control-group">
|
||||
<label for="db_host" class="x_control-label">{$lang->db_hostname}</label>
|
||||
<div class="x_controls"><input name="db_host" value="localhost" type="text" id="db_host" required /></div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label for="db_port" class="x_control-label">{$lang->db_port}</label>
|
||||
<div class="x_controls"><input name="db_port" value="3306" type="text" id="db_port" required /></div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label for="db_user" class="x_control-label">{$lang->db_userid}</label>
|
||||
<div class="x_controls"><input name="db_user" type="text" id="db_user" class="focus" required /></div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label for="db_pass" class="x_control-label">{$lang->db_password}</label>
|
||||
<div class="x_controls"><input name="db_pass" type="password" id="db_pass" required /></div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label for="db_database" class="x_control-label">{$lang->db_name}</label>
|
||||
<div class="x_controls"><input name="db_database" type="text" id="db_database" required /></div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label for="db_prefix" class="x_control-label">{$lang->db_table_prefix}</label>
|
||||
<div class="x_controls"><input name="db_prefix" type="text" id="db_prefix" value="rx" required /></div>
|
||||
</div>
|
||||
<p class="install_help">
|
||||
{$lang->db_info_desc}<br />{$lang->db_prefix_desc}
|
||||
</p>
|
||||
</div>
|
||||
<div id="buttons">
|
||||
<div class="align-left">
|
||||
<a href="{getUrl('', 'act','dispInstallCheckEnv')}" class="button grey">« {$lang->cmd_back}</a>
|
||||
</div>
|
||||
<div class="align-right">
|
||||
<button type="submit" id="task-db-select" value="">{$lang->cmd_next} »</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<include target="footer.html" />
|
||||
Loading…
Add table
Add a link
Reference in a new issue