$user['language']) ); load_language('local.lang', '', array('language'=>$user['language'], 'no_fallback'=>true) ); if (defined('IN_ADMIN') and IN_ADMIN) { load_language('admin.lang', '', array('language'=>$user['language']) ); } } } //if ( isset( $_GET['lang']) ) { redirect( make_index_url() ); } function Lang_flags() { global $user, $template; $available_lang = get_languages(); foreach ( $available_lang as $code => $displayname ) { $qlc_url = add_url_params( make_index_url(), array( 'lang' => $code ) ); $qlc_alt = ucwords( $displayname ); $qlc_title = $qlc_alt; $qlc_img = 'plugins/language_switch/icons/' . $code . '.gif'; if ( $code !== $user['language'] and file_exists(PHPWG_ROOT_PATH.$qlc_img) ) { $template->concat( 'PLUGIN_INDEX_ACTIONS', '
  • '
        . $qlc_alt . '
  • '); } } } ?>