@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb012 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
php
/
lib
/
Path :
Upload File :
New :
File
Dir
/homepage/v-mt/php/lib/function.mtbloglanguage.php
<?php # Movable Type (r) (C) 2001-2008 Six Apart, Ltd. All Rights Reserved. # This code cannot be redistributed without permission from www.sixapart.com. # For more information, consult your Movable Type license. # # $Id$ function smarty_function_mtbloglanguage($args, &$ctx) { $real_lang = array('cz' => 'cs', 'dk' => 'da', 'jp' => 'ja', 'si' => 'sl'); $blog = $ctx->stash('blog'); $lang_tag = $blog['blog_language']; if ($real_lang[$lang_tag]) { $lang_tag = $real_lang[$lang_tag]; } if ($args['locale']) { $lang_tag = preg_replace('/^([A-Za-z][A-Za-z])([-_]([A-Za-z][A-Za-z]))?$/e', '\'$1\' . "_" . (\'$3\' ? strtoupper(\'$3\') : strtoupper(\'$1\'))', $lang_tag); } elseif ($args['ietf']) { # http://www.ietf.org/rfc/rfc3066.txt $lang_tag = preg_replace('/_/', '-', $lang_tag); } return $lang_tag; } ?>