HEX
Server: LiteSpeed
System: Linux d8 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: wbwebdes (3015)
PHP: 8.1.31
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/wbwebdes/domains/survey.wb-webdesign.com/private_html/vendor/kcfinder/js_localize.php
<?php

/** This file is part of KCFinder project
  *
  *      @desc Load language labels into JavaScript
  *   @package KCFinder
  *   @version 3.12
  *    @author Pavel Tzonkov <[email protected]>
  * @copyright 2010-2014 KCFinder Project
  *   @license http://opensource.org/licenses/GPL-3.0 GPLv3
  *   @license http://opensource.org/licenses/LGPL-3.0 LGPLv3
  *      @link http://kcfinder.sunhater.com
  */

namespace kcfinder;
require "core/autoload.php";

if (!isset($_GET['lng']) || ($_GET['lng'] == 'en') ||
    ($_GET['lng'] != basename((string) $_GET['lng'])) ||
    !is_file("lang/" . $_GET['lng'] . ".php")
) {
    header("Content-Type: text/javascript");
    die;
}

$file = "lang/" . $_GET['lng'] . ".php";
$mtime = @filemtime($file);

if ($mtime)
    httpCache::checkMTime($mtime, "Content-Type: text/javascript");

require $file;
header("Content-Type: text/javascript");

echo "_.labels={";

$i = 0;
foreach ($lang as $english => $native) {
    if (substr((string) $english, 0, 1) != "_") {
        echo "'" . text::jsValue($english) . "':\"" . text::jsValue($native) . "\"";
        if (++$i < count($lang))
            echo ",";
    }
}

echo "}";

?>