foreach ($list as $val) { if ($val != '.' && $val != '..' && $val != '.svn') { // remove lang_ $x = substr($val, 5); // remove .php $x = substr($val, 0, -4); $out[] = substr($x, 5); } } return $out; } ?> <select name="language"> <?php $lnglist = listLanguages(); foreach ($lnglist as $lng) { if ($_POST['language'] == $lng) { echo '<option value="' . $lng . '" selected="selected">' . $lng . '</option>'; } else { echo '<option value="' . $lng . '">' . $lng . '</option>'; } } ?> </select> <p> </p> <!-- Database connection --> <input type="hidden" name="host" value="<?php echo $_POST['host'];
?> <?php echo _T("site_menu_home"); ?> "><?php get_site('title'); ?> </a></h1> <h2><?php get_site('slogan'); ?> </h2> </div> <?php if ($listLanguages = listLanguages()) { ?> <div class="languages"<?php if (theme_setting('list_languages_over', true)) { ?> onMouseOver="document.getElementById('language').style.display='block'" onMouseOut="document.getElementById('language').style.display='none'"<?php } ?> > <div class="lan_on"><span><?php echo _T("site_language"); ?> </span><img src="<?php echo get_url('languages/', false) . CFUSERLANG; ?> .png" width="23" height="15" alt="<?php