0 ? implode('/', $sel) : null;
$list_langs = array();
$options = array();
foreach ($langs as $k => $v) {
$list_langs[] = sprintf('%s',
$page != null ? implode('/', array($k, $page)) : $k,
$k == $locale ? ' class="sel"' : '',
$v);
$options[] = sprintf('',
$k,
$k == $locale ? ' selected="selected"' : '',
$v);
}
$options = implode($options);
$langsForm = <<
H;
include ('_nav/lib.php');
$hsnav = _mgnav_style() . _mgnav_html(true, $locale, $langsForm, $_SERVER['HTTP_HOST']);
$hsfoot = '';
if (!defined('HLANG'))
echo $hsnav;