Revision 397 | Revision 749 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed
<?phpfunction smarty_modifier_getIsoCode( $Land = 'Deutschland', $len = 2 ){global $site, $ini;if ( !$site ){$site = __SITE__;}$iso = "DE";$sql = "SELECT`iso-" . $len . "` as iso_codeFROMcountriesWHERE`name_de` ='" . $Land . "'OR`name_uk` = '" . $Land . "'OR`id` = '" . $Land . "'";$row = DB::connection( 'cms' )->select( $sql );if ( $row ){$iso = $row["iso_code"];}return $iso;}