source: trunk/admin/inc/ckeditor/filemanager/js_localize.php@ 364

Last change on this file since 364 was 239, checked in by luc, 9 years ago

Admin: correzione visulaizzazione immissione dati spoglio per Chrome e Safari - Aggiornamento dell'editor da FCKeditor a CKeditor , accessibili anche a Chrome e Safari.

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1<?php
2
3/** This file is part of KCFinder project
4 *
5 * @desc Load language labels into JavaScript
6 * @package KCFinder
7 * @version 2.51
8 * @author Pavel Tzonkov <pavelc@users.sourceforge.net>
9 * @copyright 2010, 2011 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
15require "core/autoload.php";
16if (function_exists('set_magic_quotes_runtime'))
17 @set_magic_quotes_runtime(false);
18$input = new input();
19if (!isset($input->get['lng']) || ($input->get['lng'] == 'en')) {
20 header("Content-Type: text/javascript");
21 die;
22}
23$file = "lang/" . $input->get['lng'] . ".php";
24$files = dir::content("lang", array(
25 'types' => "file",
26 'pattern' => '/^.*\.php$/'
27));
28if (!in_array($file, $files)) {
29 header("Content-Type: text/javascript");
30 die;
31}
32$mtime = @filemtime($file);
33if ($mtime) httpCache::checkMTime($mtime);
34require $file;
35header("Content-Type: text/javascript; charset={$lang['_charset']}");
36foreach ($lang as $english => $native)
37 if (substr($english, 0, 1) != "_")
38 echo "browser.labels['" . text::jsValue($english) . "']=\"" . text::jsValue($native) . "\";";
39
40?>
Note: See TracBrowser for help on using the repository browser.