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
33 lines
961 B
PHP
33 lines
961 B
PHP
<?php
|
|
defined('MYAAC') or die('Direct access not allowed!');
|
|
if(isset($config['installed']) && $config['installed'] && !isset($_SESSION['saved'])) {
|
|
echo '<p class="warning">' . $locale['already_installed'] . '</p>';
|
|
}
|
|
else {
|
|
unset($_SESSION['saved']);
|
|
?>
|
|
<form action="<?php echo BASE_URL; ?>install/" method="post">
|
|
<input type="hidden" name="step" id="step" value="license" />
|
|
<div class="input"><p><?php echo $locale['step_welcome_desc']; ?></p>
|
|
<select name="lang">
|
|
<?php
|
|
foreach(get_locales() as $tmp_locale)
|
|
{
|
|
$lang_file_main = LOCALE . $tmp_locale . '/main.php';
|
|
$lang_file_install = LOCALE . $tmp_locale . '/install.php';
|
|
if(@file_exists($lang_file_main)
|
|
&& @file_exists($lang_file_install))
|
|
{
|
|
require($lang_file_main);
|
|
echo '<option value="' . $tmp_locale . '">' . $locale['name'] . '</option>';
|
|
}
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
<?php echo next_buttons(false, true); ?>
|
|
</form>
|
|
<?php
|
|
}
|
|
?>
|