mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00

* full support for OTHire 0.0.3 * added support for otservers that doesn't use account.name field, instead just account number will be used * (install) moved admin account creation to new step * fixed encryption detection on 0.3 * fixed bug when server_config table doesn't exist * other fixes
32 lines
903 B
PHP
32 lines
903 B
PHP
<?php
|
|
defined('MYAAC') or die('Direct access not allowed!');
|
|
|
|
?>
|
|
<form action="<?php echo BASE_URL; ?>install/" method="post" autocomplete="off">
|
|
<input type="hidden" name="step" id="step" value="finish" />
|
|
<table>
|
|
<?php
|
|
require(BASE . 'install/includes/config.php');
|
|
if(!$error) {
|
|
require(BASE . 'install/includes/database.php');
|
|
|
|
foreach(array(USE_ACCOUNT_NAME ? 'account' : 'account_id', 'password') as $value)
|
|
echo '
|
|
<tr>
|
|
<td>
|
|
<label for="vars_' . $value . '">
|
|
<span>' . $locale['step_admin_' . $value] . '</span>
|
|
</label>
|
|
<br>
|
|
<input type="text" name="vars[' . $value . ']" id="vars_' . $value . '"' . (isset($_SESSION['var_' . $value]) ? ' value="' . $_SESSION['var_' . $value] . '"' : '') . '/>
|
|
</td>
|
|
<td>
|
|
<em>' . $locale['step_admin_' . $value . '_desc'] . '</em>
|
|
</td>
|
|
</tr>';
|
|
}
|
|
?>
|
|
</table>
|
|
<?php echo next_buttons(true, $error ? false : true);
|
|
?>
|
|
</form>
|