[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** This file is part of KCFinder project 4 * 5 * @desc Load language labels in JavaScript 6 * @package KCFinder 7 * @version 2.21 8 * @author Pavel Tzonkov <[email protected]> 9 * @copyright 2010 KCFinder Project 10 * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 11 * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 12 * @link http://kcfinder.sunhater.com 13 */ 14 15 require "core/autoload.php"; 16 17 if (function_exists('set_magic_quotes_runtime')) 18 @set_magic_quotes_runtime(false); 19 20 $input = new input(); 21 if (!isset($input->get['lng']) || ($input->get['lng'] == 'en')) die; 22 $file = "lang/" . $input->get['lng'] . ".php"; 23 $files = glob("lang/*.php"); 24 if (!in_array($file, $files)) die; 25 $mtime = @filemtime($file); 26 if ($mtime) httpCache::checkMTime($mtime); 27 require $file; 28 header("Content-Type: text/javascript; charset={$lang['_charset']}"); 29 foreach ($lang as $english => $native) 30 if (substr($english, 0, 1) != "_") 31 echo "browser.labels['" . text::jsValue($english) . "']=\"" . text::jsValue($native) . "\";"; 32 33 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |