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

* installation will be now done with AJAX request (jQuery), that will instaltly notify about the status of the installation (no waiting without clue anymore) * install items & weapons on installation (before monsters)
27 lines
778 B
PHP
27 lines
778 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']);
|
|
|
|
$locales = array();
|
|
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);
|
|
$locales[] = array('id' => $tmp_locale, 'name' => $locale['name']);
|
|
}
|
|
}
|
|
echo $twig->render('install.welcome.html.twig', array(
|
|
'locales' => $locales,
|
|
'locale' => $locale,
|
|
'buttons' => next_buttons(false, true)
|
|
));
|
|
}
|
|
?>
|