<?php /*** @ Version: $Id$* @ Copyright: Copyright (C) 2006 GoUp Inc. All rights reserved.* @ Package: Elxis* @ Subpackage: Module Language* @ License: http://www.gnu.org/copyleft/gpl.html GNU/GPL* Elxis CMS is a Free Software*/defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );$moduleclass_sfx = $params->get( 'moduleclass_sfx' );$lng_indicator = intval($params->get( 'indicator' ));$lng_flag = intval($params->get( 'flag' )); global $mosConfig_pub_langs, $lang; switch ($lng_indicator) { case '1': echo _E_LANGUAGE.': <br>'; break; case '2': break; case '0': default: echo _E_LANGUAGE.': '; break; } $frLangs = explode(',', $mosConfig_pub_langs); foreach ($frLangs as $langx) { if (file_exists($mosConfig_absolute_path.'/language/'.$langx.'/'.$langx.'.gif')) { echo "<a href=\"index.php?mylang=". $langx ."\">"; echo "<img src=\"".$mosConfig_live_site."/language/".$langx."/".$langx.".gif\" border=\"". ($langx===$lang?1:0) ."\" style=\"vertical-align:middle\">"; echo "</a> "; } }?>