code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Utils_Misc
{
function getErrorMessage($number, $arg = "") {
$langCode = 'en';
if (!empty($_GET['langCode']) && preg_match("/^[a-z\-]+$/", $_GET['langCode'])) {
if (file_exists(CKFINDER_CONNECTOR_LANG_PATH . "/" . $_GET['langCode'] . ".php"))
$langCode = $_GET['langCode'];
}
include CKFINDER_CONNECTOR_LANG_PATH . "/" . $langCode . ".php";
if ($number) {
if (!empty ($GLOBALS['CKFLang']['Errors'][$number])) {
$errorMessage = str_replace("%1", $arg, $GLOBALS['CKFLang']['Errors'][$number]);
} else {
$errorMessage = str_replace("%1", $number, $GLOBALS['CKFLang']['ErrorUnknown']);
}
} else {
$errorMessage = "";
}
return $errorMessage;
}
/**
* Convert any value to boolean, strings like "false", "FalSE" and "off" are also considered as false
*
* @static
* @access public
* @param mixed $value
* @return boolean
*/
function booleanValue($value)
{
if (strcasecmp("false", $value) == 0 || strcasecmp("off", $value) == 0 || !$value) {
return false;
} else {
return true;
}
}
/**
* @link http://pl.php.net/manual/en/function.imagecopyresampled.php
* replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster)
*
* @static
* @access public
* @param string $dst_image
* @param string $src_image
* @param int $dst_x
* @param int $dst_y
* @param int $src_x
* @param int $src_y
* @param int $dst_w
* @param int $dst_h
* @param int $src_w
* @param int $src_h
* @param int $quality
* @return boolean
*/
function fastImageCopyResampled (&$dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h, $quality = 3)
{
if (empty($src_image) || empty($dst_image)) {
return false;
}
if ($quality <= 1) {
$temp = imagecreatetruecolor ($dst_w + 1, $dst_h + 1);
imagecopyresized ($temp, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w + 1, $dst_h + 1, $src_w, $src_h);
imagecopyresized ($dst_image, $temp, 0, 0, 0, 0, $dst_w, $dst_h, $dst_w, $dst_h);
imagedestroy ($temp);
} elseif ($quality < 5 && (($dst_w * $quality) < $src_w || ($dst_h * $quality) < $src_h)) {
$tmp_w = $dst_w * $quality;
$tmp_h = $dst_h * $quality;
$temp = imagecreatetruecolor ($tmp_w + 1, $tmp_h + 1);
imagecopyresized ($temp, $src_image, 0, 0, $src_x, $src_y, $tmp_w + 1, $tmp_h + 1, $src_w, $src_h);
imagecopyresampled ($dst_image, $temp, $dst_x, $dst_y, 0, 0, $dst_w, $dst_h, $tmp_w, $tmp_h);
imagedestroy ($temp);
} else {
imagecopyresampled ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h);
}
return true;
}
/**
* @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php
* function posted by e dot a dot schultz at gmail dot com
*
* @static
* @access public
* @param string $filename
* @return boolean
*/
function setMemoryForImage($imageWidth, $imageHeight, $imageBits, $imageChannels)
{
$MB = 1048576; // number of bytes in 1M
$K64 = 65536; // number of bytes in 64K
$TWEAKFACTOR = 2.4; // Or whatever works for you
$memoryNeeded = round( ( $imageWidth * $imageHeight
* $imageBits
* $imageChannels / 8
+ $K64
) * $TWEAKFACTOR
) + 3*$MB;
//ini_get('memory_limit') only works if compiled with "--enable-memory-limit" also
//Default memory limit is 8MB so well stick with that.
//To find out what yours is, view your php.ini file.
$memoryLimit = CKFinder_Connector_Utils_Misc::returnBytes(@ini_get('memory_limit'))/$MB;
if (!$memoryLimit) {
$memoryLimit = 8;
}
$memoryLimitMB = $memoryLimit * $MB;
if (function_exists('memory_get_usage')) {
if (memory_get_usage() + $memoryNeeded > $memoryLimitMB) {
$newLimit = $memoryLimit + ceil( ( memory_get_usage()
+ $memoryNeeded
- $memoryLimitMB
) / $MB
);
if (@ini_set( 'memory_limit', $newLimit . 'M' ) === false) {
return false;
}
}
} else {
if ($memoryNeeded + 3*$MB > $memoryLimitMB) {
$newLimit = $memoryLimit + ceil(( 3*$MB
+ $memoryNeeded
- $memoryLimitMB
) / $MB
);
if (false === @ini_set( 'memory_limit', $newLimit . 'M' )) {
return false;
}
}
}
return true;
}
/**
* convert shorthand php.ini notation into bytes, much like how the PHP source does it
* @link http://pl.php.net/manual/en/function.ini-get.php
*
* @static
* @access public
* @param string $val
* @return int
*/
function returnBytes($val)
{
$val = trim($val);
if (!$val) {
return 0;
}
$last = strtolower($val[strlen($val)-1]);
switch($last) {
// The 'G' modifier is available since PHP 5.1.0
case 'g':
$val *= 1024;
case 'm':
$val *= 1024;
case 'k':
$val *= 1024;
}
return $val;
}
/**
* Checks if a value exists in an array (case insensitive)
*
* @static
* @access public
* @param string $needle
* @param array $haystack
* @return boolean
*/
function inArrayCaseInsensitive($needle, $haystack)
{
if (!$haystack || !is_array($haystack)) {
return false;
}
$lcase = array();
foreach ($haystack as $key => $val) {
$lcase[$key] = strtolower($val);
}
return in_array($needle, $lcase);
}
/**
* UTF-8 compatible version of basename()
*
* @static
* @access public
* @param string $file
* @return string
*/
function mbBasename($file)
{
$explode = explode('/', str_replace("\\", "/", $file));
return end($explode);
}
/**
* Source: http://pl.php.net/imagecreate
* (optimized for speed and memory usage, but yet not very efficient)
*
* @static
* @access public
* @param string $filename
* @return resource
*/
function imageCreateFromBmp($filename)
{
//20 seconds seems to be a reasonable value to not kill a server and process images up to 1680x1050
@set_time_limit(20);
if (false === ($f1 = fopen($filename, "rb"))) {
return false;
}
$FILE = unpack("vfile_type/Vfile_size/Vreserved/Vbitmap_offset", fread($f1, 14));
if ($FILE['file_type'] != 19778) {
return false;
}
$BMP = unpack('Vheader_size/Vwidth/Vheight/vplanes/vbits_per_pixel'.
'/Vcompression/Vsize_bitmap/Vhoriz_resolution'.
'/Vvert_resolution/Vcolors_used/Vcolors_important', fread($f1, 40));
$BMP['colors'] = pow(2,$BMP['bits_per_pixel']);
if ($BMP['size_bitmap'] == 0) {
$BMP['size_bitmap'] = $FILE['file_size'] - $FILE['bitmap_offset'];
}
$BMP['bytes_per_pixel'] = $BMP['bits_per_pixel']/8;
$BMP['bytes_per_pixel2'] = ceil($BMP['bytes_per_pixel']);
$BMP['decal'] = ($BMP['width']*$BMP['bytes_per_pixel']/4);
$BMP['decal'] -= floor($BMP['width']*$BMP['bytes_per_pixel']/4);
$BMP['decal'] = 4-(4*$BMP['decal']);
if ($BMP['decal'] == 4) {
$BMP['decal'] = 0;
}
$PALETTE = array();
if ($BMP['colors'] < 16777216) {
$PALETTE = unpack('V'.$BMP['colors'], fread($f1, $BMP['colors']*4));
}
//2048x1536px@24bit don't even try to process larger files as it will probably fail
if ($BMP['size_bitmap'] > 3 * 2048 * 1536) {
return false;
}
$IMG = fread($f1, $BMP['size_bitmap']);
fclose($f1);
$VIDE = chr(0);
$res = imagecreatetruecolor($BMP['width'],$BMP['height']);
$P = 0;
$Y = $BMP['height']-1;
$line_length = $BMP['bytes_per_pixel']*$BMP['width'];
if ($BMP['bits_per_pixel'] == 24) {
while ($Y >= 0)
{
$X=0;
$temp = unpack( "C*", substr($IMG, $P, $line_length));
while ($X < $BMP['width'])
{
$offset = $X*3;
imagesetpixel($res, $X++, $Y, ($temp[$offset+3] << 16) + ($temp[$offset+2] << 8) + $temp[$offset+1]);
}
$Y--;
$P += $line_length + $BMP['decal'];
}
}
elseif ($BMP['bits_per_pixel'] == 8)
{
while ($Y >= 0)
{
$X=0;
$temp = unpack( "C*", substr($IMG, $P, $line_length));
while ($X < $BMP['width'])
{
imagesetpixel($res, $X++, $Y, $PALETTE[$temp[$X] +1]);
}
$Y--;
$P += $line_length + $BMP['decal'];
}
}
elseif ($BMP['bits_per_pixel'] == 4)
{
while ($Y >= 0)
{
$X=0;
$i = 1;
$low = true;
$temp = unpack( "C*", substr($IMG, $P, $line_length));
while ($X < $BMP['width'])
{
if ($low) {
$index = $temp[$i] >> 4;
}
else {
$index = $temp[$i++] & 0x0F;
}
$low = !$low;
imagesetpixel($res, $X++, $Y, $PALETTE[$index +1]);
}
$Y--;
$P += $line_length + $BMP['decal'];
}
}
elseif ($BMP['bits_per_pixel'] == 1)
{
$COLOR = unpack("n",$VIDE.substr($IMG,floor($P),1));
if (($P*8)%8 == 0) $COLOR[1] = $COLOR[1] >>7;
elseif (($P*8)%8 == 1) $COLOR[1] = ($COLOR[1] & 0x40)>>6;
elseif (($P*8)%8 == 2) $COLOR[1] = ($COLOR[1] & 0x20)>>5;
elseif (($P*8)%8 == 3) $COLOR[1] = ($COLOR[1] & 0x10)>>4;
elseif (($P*8)%8 == 4) $COLOR[1] = ($COLOR[1] & 0x8)>>3;
elseif (($P*8)%8 == 5) $COLOR[1] = ($COLOR[1] & 0x4)>>2;
elseif (($P*8)%8 == 6) $COLOR[1] = ($COLOR[1] & 0x2)>>1;
elseif (($P*8)%8 == 7) $COLOR[1] = ($COLOR[1] & 0x1);
$COLOR[1] = $PALETTE[$COLOR[1]+1];
}
else {
return false;
}
return $res;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Utils/Misc.php | PHP | gpl3 | 12,202 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
/**
* Simple class which provides some basic API for creating XML nodes and adding attributes
*
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
class Ckfinder_Connector_Utils_XmlNode
{
/**
* Array that stores XML attributes
*
* @access private
* @var array
*/
var $_attributes = array();
/**
* Array that stores child nodes
*
* @access private
* @var array
*/
var $_childNodes = array();
/**
* Node name
*
* @access private
* @var string
*/
var $_name;
/**
* Node value
*
* @access private
* @var string
*/
var $_value;
/**
* Create new node
*
* @param string $nodeName node name
* @param string $nodeValue node value
* @return Ckfinder_Connector_Utils_XmlNode
*/
function Ckfinder_Connector_Utils_XmlNode($nodeName, $nodeValue = null)
{
$this->_name = $nodeName;
if (!is_null($nodeValue)) {
$this->_value = $nodeValue;
}
}
function &getChild($name)
{
foreach ($this->_childNodes as $i => $node) {
if ($node->_name == $name) {
return $this->_childNodes[$i];
}
}
return null;
}
/**
* Add attribute
*
* @param string $name
* @param string $value
* @access public
*/
function addAttribute($name, $value)
{
$this->_attributes[$name] = $value;
}
/**
* Get attribute value
*
* @param string $name
* @access public
*/
function getAttribute($name)
{
return $this->_attributes[$name];
}
/**
* Set element value
*
* @param string $name
* @param string $value
* @access public
*/
function setValue($value)
{
$this->_value = $value;
}
/**
* Get element value
*
* @param string $name
* @param string $value
* @access public
*/
function getValue()
{
return $this->_value;
}
/**
* Adds new child at the end of the children
*
* @param Ckfinder_Connector_Utils_XmlNode $node
* @access public
*/
function addChild(&$node)
{
$this->_childNodes[] =& $node;
}
/**
* Return a well-formed XML string based on Ckfinder_Connector_Utils_XmlNode element
*
* @return string
* @access public
*/
function asXML()
{
$ret = "<" . $this->_name;
//print Attributes
if (sizeof($this->_attributes)>0) {
foreach ($this->_attributes as $_name => $_value) {
$ret .= " " . $_name . '="' . htmlspecialchars($_value) . '"';
}
}
//if there is nothing more todo, close empty tag and exit
if (is_null($this->_value) && !sizeof($this->_childNodes)) {
$ret .= " />";
return $ret;
}
//close opening tag
$ret .= ">";
//print value
if (!is_null($this->_value)) {
$ret .= htmlspecialchars($this->_value);
}
//print child nodes
if (sizeof($this->_childNodes)>0) {
foreach ($this->_childNodes as $_node) {
$ret .= $_node->asXml();
}
}
$ret .= "</" . $this->_name . ">";
return $ret;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Utils/XmlNode.php | PHP | gpl3 | 4,174 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Utils_Security
{
/**
* Strip quotes from global arrays
* @access public
*/
function getRidOfMagicQuotes()
{
if (get_magic_quotes_gpc()) {
if (!empty($_GET)) {
$this->stripQuotes($_GET);
}
if (!empty($_POST)) {
$this->stripQuotes($_POST);
}
if (!empty($_COOKIE)) {
$this->stripQuotes($_COOKIE);
}
if (!empty($_FILES)) {
while (list($k,$v) = each($_FILES)) {
if (isset($_FILES[$k]['name'])) {
$this->stripQuotes($_FILES[$k]['name']);
}
}
}
}
}
/**
* Strip quotes from variable
*
* @access public
* @param mixed $var
* @param int $depth current depth
* @param int $howDeep maximum depth
*/
function stripQuotes(&$var, $depth=0, $howDeep=5)
{
if (is_array($var)) {
if ($depth++<$howDeep) {
while (list($k,$v) = each($var)) {
$this->stripQuotes($var[$k], $depth, $howDeep);
}
}
} else {
$var = stripslashes($var);
}
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Utils/Security.php | PHP | gpl3 | 2,015 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Utils_FileSystem
{
/**
* This function behaves similar to System.IO.Path.Combine in C#, the only diffrenece is that it also accepts null values and treat them as empty string
*
* @static
* @access public
* @param string $path1 first path
* @param string $path2 scecond path
* @return string
*/
function combinePaths($path1, $path2)
{
if (is_null($path1)) {
$path1 = "";
}
if (is_null($path2)) {
$path2 = "";
}
if (!strlen($path2)) {
if (strlen($path1)) {
$_lastCharP1 = substr($path1, -1, 1);
if ($_lastCharP1 != "/" && $_lastCharP1 != "\\") {
$path1 .= DIRECTORY_SEPARATOR;
}
}
}
else {
$_firstCharP2 = substr($path2, 0, 1);
if (strlen($path1)) {
if (strpos($path2, $path1)===0) {
return $path2;
}
$_lastCharP1 = substr($path1, -1, 1);
if ($_lastCharP1 != "/" && $_lastCharP1 != "\\" && $_firstCharP2 != "/" && $_firstCharP2 != "\\") {
$path1 .= DIRECTORY_SEPARATOR;
}
}
else {
return $path2;
}
}
return $path1 . $path2;
}
/**
* Check whether $fileName is a valid file name, return true on success
*
* @static
* @access public
* @param string $fileName
* @return boolean
*/
function checkFileName($fileName)
{
if (is_null($fileName) || !strlen($fileName) || substr($fileName,-1,1)=="." || false!==strpos($fileName, "..")) {
return false;
}
if (preg_match(CKFINDER_REGEX_INVALID_FILE, $fileName)) {
return false;
}
return true;
}
/**
* Unlink file/folder
*
* @static
* @access public
* @param string $path
* @return boolean
*/
function unlink($path)
{
/* make sure the path exists */
if(!file_exists($path)) {
return false;
}
/* If it is a file or link, just delete it */
if(is_file($path) || is_link($path)) {
return @unlink($path);
}
/* Scan the dir and recursively unlink */
$files = CKFinder_Connector_Utils_FileSystem::php4_scandir($path);
if ($files) {
foreach($files as $filename)
{
if ($filename == '.' || $filename == '..') {
continue;
}
$file = str_replace('//','/',$path.'/'.$filename);
CKFinder_Connector_Utils_FileSystem::unlink($file);
}
}
/* Remove the parent dir */
if(!@rmdir($path)) {
return false;
}
return true;
}
/**
* PHP4 Scandir
* @static
* @access public
* @param $directory directory name
*/
function php4_scandir($directory)
{
if (!is_dir($directory) || (false === $fh = @opendir($directory))) {
return false;
}
$files = array ();
while (false !== ($filename = readdir($fh))) {
$files[] = $filename;
}
closedir($fh);
return $files;
}
/**
* Return file name without extension (without dot & last part after dot)
*
* @static
* @access public
* @param string $fileName
* @return string
*/
function getFileNameWithoutExtension($fileName)
{
$dotPos = strrpos( $fileName, '.' );
if (false === $dotPos) {
return $fileName;
}
return substr($fileName, 0, $dotPos);
}
/**
* Get file extension (only last part - e.g. extension of file.foo.bar.jpg = jpg)
*
* @static
* @access public
* @param string $fileName
* @return string
*/
function getExtension( $fileName )
{
$dotPos = strrpos( $fileName, '.' );
if (false === $dotPos) {
return "";
}
return substr( $fileName, strrpos( $fileName, '.' ) +1 ) ;
}
/**
* Read file, split it into small chunks and send it to the browser
*
* @static
* @access public
* @param string $filename
* @return boolean
*/
function readfileChunked($filename)
{
$chunksize = 1024 * 10; // how many bytes per chunk
$handle = fopen($filename, 'rb');
if ($handle === false) {
return false;
}
while (!feof($handle)) {
echo fread($handle, $chunksize);
@ob_flush();
flush();
@set_time_limit(8);
}
fclose($handle);
return true;
}
/**
* Replace accented UTF-8 characters by unaccented ASCII-7 "equivalents".
* The purpose of this function is to replace characters commonly found in Latin
* alphabets with something more or less equivalent from the ASCII range. This can
* be useful for converting a UTF-8 to something ready for a filename, for example.
* Following the use of this function, you would probably also pass the string
* through utf8_strip_non_ascii to clean out any other non-ASCII chars
*
* For a more complete implementation of transliteration, see the utf8_to_ascii package
* available from the phputf8 project downloads:
* http://prdownloads.sourceforge.net/phputf8
*
* @param string UTF-8 string
* @param string UTF-8 with accented characters replaced by ASCII chars
* @return string accented chars replaced with ascii equivalents
* @author Andreas Gohr <andi@splitbrain.org>
* @see http://sourceforge.net/projects/phputf8/
*/
function convertToAscii($str)
{
static $UTF8_LOWER_ACCENTS = NULL;
static $UTF8_UPPER_ACCENTS = NULL;
if ( is_null($UTF8_LOWER_ACCENTS) ) {
$UTF8_LOWER_ACCENTS = array(
'à' => 'a', 'ô' => 'o', 'ď' => 'd', 'ḟ' => 'f', 'ë' => 'e', 'š' => 's', 'ơ' => 'o',
'ß' => 'ss', 'ă' => 'a', 'ř' => 'r', 'ț' => 't', 'ň' => 'n', 'ā' => 'a', 'ķ' => 'k',
'ŝ' => 's', 'ỳ' => 'y', 'ņ' => 'n', 'ĺ' => 'l', 'ħ' => 'h', 'ṗ' => 'p', 'ó' => 'o',
'ú' => 'u', 'ě' => 'e', 'é' => 'e', 'ç' => 'c', 'ẁ' => 'w', 'ċ' => 'c', 'õ' => 'o',
'ṡ' => 's', 'ø' => 'o', 'ģ' => 'g', 'ŧ' => 't', 'ș' => 's', 'ė' => 'e', 'ĉ' => 'c',
'ś' => 's', 'î' => 'i', 'ű' => 'u', 'ć' => 'c', 'ę' => 'e', 'ŵ' => 'w', 'ṫ' => 't',
'ū' => 'u', 'č' => 'c', 'ö' => 'oe', 'è' => 'e', 'ŷ' => 'y', 'ą' => 'a', 'ł' => 'l',
'ų' => 'u', 'ů' => 'u', 'ş' => 's', 'ğ' => 'g', 'ļ' => 'l', 'ƒ' => 'f', 'ž' => 'z',
'ẃ' => 'w', 'ḃ' => 'b', 'å' => 'a', 'ì' => 'i', 'ï' => 'i', 'ḋ' => 'd', 'ť' => 't',
'ŗ' => 'r', 'ä' => 'ae', 'í' => 'i', 'ŕ' => 'r', 'ê' => 'e', 'ü' => 'ue', 'ò' => 'o',
'ē' => 'e', 'ñ' => 'n', 'ń' => 'n', 'ĥ' => 'h', 'ĝ' => 'g', 'đ' => 'd', 'ĵ' => 'j',
'ÿ' => 'y', 'ũ' => 'u', 'ŭ' => 'u', 'ư' => 'u', 'ţ' => 't', 'ý' => 'y', 'ő' => 'o',
'â' => 'a', 'ľ' => 'l', 'ẅ' => 'w', 'ż' => 'z', 'ī' => 'i', 'ã' => 'a', 'ġ' => 'g',
'ṁ' => 'm', 'ō' => 'o', 'ĩ' => 'i', 'ù' => 'u', 'į' => 'i', 'ź' => 'z', 'á' => 'a',
'û' => 'u', 'þ' => 'th', 'ð' => 'dh', 'æ' => 'ae', 'µ' => 'u', 'ĕ' => 'e',
);
}
$str = str_replace(
array_keys($UTF8_LOWER_ACCENTS),
array_values($UTF8_LOWER_ACCENTS),
$str
);
if ( is_null($UTF8_UPPER_ACCENTS) ) {
$UTF8_UPPER_ACCENTS = array(
'À' => 'A', 'Ô' => 'O', 'Ď' => 'D', 'Ḟ' => 'F', 'Ë' => 'E', 'Š' => 'S', 'Ơ' => 'O',
'Ă' => 'A', 'Ř' => 'R', 'Ț' => 'T', 'Ň' => 'N', 'Ā' => 'A', 'Ķ' => 'K',
'Ŝ' => 'S', 'Ỳ' => 'Y', 'Ņ' => 'N', 'Ĺ' => 'L', 'Ħ' => 'H', 'Ṗ' => 'P', 'Ó' => 'O',
'Ú' => 'U', 'Ě' => 'E', 'É' => 'E', 'Ç' => 'C', 'Ẁ' => 'W', 'Ċ' => 'C', 'Õ' => 'O',
'Ṡ' => 'S', 'Ø' => 'O', 'Ģ' => 'G', 'Ŧ' => 'T', 'Ș' => 'S', 'Ė' => 'E', 'Ĉ' => 'C',
'Ś' => 'S', 'Î' => 'I', 'Ű' => 'U', 'Ć' => 'C', 'Ę' => 'E', 'Ŵ' => 'W', 'Ṫ' => 'T',
'Ū' => 'U', 'Č' => 'C', 'Ö' => 'Oe', 'È' => 'E', 'Ŷ' => 'Y', 'Ą' => 'A', 'Ł' => 'L',
'Ų' => 'U', 'Ů' => 'U', 'Ş' => 'S', 'Ğ' => 'G', 'Ļ' => 'L', 'Ƒ' => 'F', 'Ž' => 'Z',
'Ẃ' => 'W', 'Ḃ' => 'B', 'Å' => 'A', 'Ì' => 'I', 'Ï' => 'I', 'Ḋ' => 'D', 'Ť' => 'T',
'Ŗ' => 'R', 'Ä' => 'Ae', 'Í' => 'I', 'Ŕ' => 'R', 'Ê' => 'E', 'Ü' => 'Ue', 'Ò' => 'O',
'Ē' => 'E', 'Ñ' => 'N', 'Ń' => 'N', 'Ĥ' => 'H', 'Ĝ' => 'G', 'Đ' => 'D', 'Ĵ' => 'J',
'Ÿ' => 'Y', 'Ũ' => 'U', 'Ŭ' => 'U', 'Ư' => 'U', 'Ţ' => 'T', 'Ý' => 'Y', 'Ő' => 'O',
'Â' => 'A', 'Ľ' => 'L', 'Ẅ' => 'W', 'Ż' => 'Z', 'Ī' => 'I', 'Ã' => 'A', 'Ġ' => 'G',
'Ṁ' => 'M', 'Ō' => 'O', 'Ĩ' => 'I', 'Ù' => 'U', 'Į' => 'I', 'Ź' => 'Z', 'Á' => 'A',
'Û' => 'U', 'Þ' => 'Th', 'Ð' => 'Dh', 'Æ' => 'Ae', 'Ĕ' => 'E',
);
}
$str = str_replace(
array_keys($UTF8_UPPER_ACCENTS),
array_values($UTF8_UPPER_ACCENTS),
$str
);
return $str;
}
/**
* Convert file name from UTF-8 to system encoding
*
* @static
* @access public
* @param string $fileName
* @return string
*/
function convertToFilesystemEncoding($fileName)
{
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$encoding = $_config->getFilesystemEncoding();
if (is_null($encoding) || strcasecmp($encoding, "UTF-8") == 0 || strcasecmp($encoding, "UTF8") == 0) {
return $fileName;
}
if (!function_exists("iconv")) {
if (strcasecmp($encoding, "ISO-8859-1") == 0 || strcasecmp($encoding, "ISO8859-1") == 0 || strcasecmp($encoding, "Latin1") == 0) {
return str_replace("\0", "_", utf8_decode($fileName));
} else if (function_exists('mb_convert_encoding')) {
/**
* @todo check whether charset is supported - mb_list_encodings
*/
$encoded = @mb_convert_encoding($fileName, $encoding, 'UTF-8');
if (@mb_strlen($fileName, "UTF-8") != @mb_strlen($encoded, $encoding)) {
return str_replace("\0", "_", preg_replace("/[^[:ascii:]]/u","_",$fileName));
}
else {
return str_replace("\0", "_", $encoded);
}
} else {
return str_replace("\0", "_", preg_replace("/[^[:ascii:]]/u","_",$fileName));
}
}
$converted = @iconv("UTF-8", $encoding . "//IGNORE//TRANSLIT", $fileName);
if ($converted === false) {
return str_replace("\0", "_", preg_replace("/[^[:ascii:]]/u","_",$fileName));
}
return $converted;
}
/**
* Convert file name from system encoding into UTF-8
*
* @static
* @access public
* @param string $fileName
* @return string
*/
function convertToConnectorEncoding($fileName)
{
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$encoding = $_config->getFilesystemEncoding();
if (is_null($encoding) || strcasecmp($encoding, "UTF-8") == 0 || strcasecmp($encoding, "UTF8") == 0) {
return $fileName;
}
if (!function_exists("iconv")) {
if (strcasecmp($encoding, "ISO-8859-1") == 0 || strcasecmp($encoding, "ISO8859-1") == 0 || strcasecmp($encoding, "Latin1") == 0) {
return utf8_encode($fileName);
} else {
return $fileName;
}
}
$converted = @iconv($encoding, "UTF-8", $fileName);
if ($converted === false) {
return $fileName;
}
return $converted;
}
/**
* Find document root
*
* @return string
* @access public
*/
function getDocumentRootPath()
{
/**
* The absolute pathname of the currently executing script.
* Notatka: If a script is executed with the CLI, as a relative path, such as file.php or ../file.php,
* $_SERVER['SCRIPT_FILENAME'] will contain the relative path specified by the user.
*/
if (isset($_SERVER['SCRIPT_FILENAME'])) {
$sRealPath = dirname($_SERVER['SCRIPT_FILENAME']);
}
else {
/**
* realpath — Returns canonicalized absolute pathname
*/
$sRealPath = realpath( './' ) ;
}
/**
* The filename of the currently executing script, relative to the document root.
* For instance, $_SERVER['PHP_SELF'] in a script at the address http://example.com/test.php/foo.bar
* would be /test.php/foo.bar.
*/
$sSelfPath = dirname($_SERVER['PHP_SELF']);
return substr($sRealPath, 0, strlen($sRealPath) - strlen($sSelfPath));
}
/**
* Create directory recursively
*
* @static
* @access public
* @param string $dir
* @param int $mode
* @return boolean
*/
function createDirectoryRecursively($dir)
{
if (is_dir($dir)) {
return true;
}
//attempt to create directory
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
if ($perms = $_config->getChmodFolders()) {
$oldUmask = umask(0);
$bCreated = @mkdir($dir, $perms);
umask($oldUmask);
}
else {
$bCreated = @mkdir($dir);
}
if ($bCreated) {
return true;
}
//failed to create directory, perhaps we need to create parent directories first
if (!CKFinder_Connector_Utils_FileSystem::createDirectoryRecursively(dirname($dir))) {
return false;
}
//parent directories created successfully, let's try to create directory once again
if ($perms) {
$old_umask = umask(0);
$result = @mkdir($dir, $perms);
umask($old_umask);
}
else {
$result = @mkdir($dir);
}
return $result;
}
/**
* Detect HTML in the first KB to prevent against potential security issue with
* IE/Safari/Opera file type auto detection bug.
* Returns true if file contain insecure HTML code at the beginning.
*
* @static
* @access public
* @param string $filePath absolute path to file
* @return boolean
*/
function detectHtml($filePath)
{
$fp = @fopen($filePath, 'rb');
if ( $fp === false || !flock( $fp, LOCK_SH ) ) {
return -1 ;
}
$chunk = fread($fp, 1024);
flock( $fp, LOCK_UN ) ;
fclose($fp);
$chunk = strtolower($chunk);
if (!$chunk) {
return false;
}
$chunk = trim($chunk);
if (preg_match("/<!DOCTYPE\W*X?HTML/sim", $chunk)) {
return true;
}
$tags = array('<body', '<head', '<html', '<img', '<pre', '<script', '<table', '<title');
foreach( $tags as $tag ) {
if(false !== strpos($chunk, $tag)) {
return true ;
}
}
//type = javascript
if (preg_match('!type\s*=\s*[\'"]?\s*(?:\w*/)?(?:ecma|java)!sim', $chunk)) {
return true ;
}
//href = javascript
//src = javascript
//data = javascript
if (preg_match('!(?:href|src|data)\s*=\s*[\'"]?\s*(?:ecma|java)script:!sim',$chunk)) {
return true ;
}
//url(javascript
if (preg_match('!url\s*\(\s*[\'"]?\s*(?:ecma|java)script:!sim', $chunk)) {
return true ;
}
return false ;
}
/**
* Check file content.
* Currently this function validates only image files.
* Returns false if file is invalid.
*
* @static
* @access public
* @param string $filePath absolute path to file
* @param string $extension file extension
* @param integer $detectionLevel 0 = none, 1 = use getimagesize for images, 2 = use DetectHtml for images
* @return boolean
*/
function isImageValid($filePath, $extension)
{
if (!@is_readable($filePath)) {
return -1;
}
$imageCheckExtensions = array('gif', 'jpeg', 'jpg', 'png', 'psd', 'bmp', 'tiff');
// version_compare is available since PHP4 >= 4.0.7
if ( function_exists( 'version_compare' ) ) {
$sCurrentVersion = phpversion();
if ( version_compare( $sCurrentVersion, "4.2.0" ) >= 0 ) {
$imageCheckExtensions[] = "tiff";
$imageCheckExtensions[] = "tif";
}
if ( version_compare( $sCurrentVersion, "4.3.0" ) >= 0 ) {
$imageCheckExtensions[] = "swc";
}
if ( version_compare( $sCurrentVersion, "4.3.2" ) >= 0 ) {
$imageCheckExtensions[] = "jpc";
$imageCheckExtensions[] = "jp2";
$imageCheckExtensions[] = "jpx";
$imageCheckExtensions[] = "jb2";
$imageCheckExtensions[] = "xbm";
$imageCheckExtensions[] = "wbmp";
}
}
if ( !in_array( $extension, $imageCheckExtensions ) ) {
return true;
}
if ( @getimagesize( $filePath ) === false ) {
return false ;
}
return true;
}
/**
* Returns true if directory is not empty
*
* @access public
* @static
* @param string $serverPath
* @return boolean
*/
function hasChildren($serverPath)
{
if (!is_dir($serverPath) || (false === $fh = @opendir($serverPath))) {
return false;
}
$hasChildren = false;
while (false !== ($filename = readdir($fh))) {
if ($filename == '.' || $filename == '..') {
continue;
} else if (is_dir($serverPath . DIRECTORY_SEPARATOR . $filename)) {
//we have found valid directory
$hasChildren = true;
break;
}
}
closedir($fh);
return $hasChildren;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Utils/FileSystem.php | PHP | gpl3 | 19,783 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
/**
* This class keeps resource types configuration
*
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_ResourceTypeConfig
{
/**
* Resource name
*
* @var string
* @access private
*/
var $_name = "";
/**
* Resource url
*
* @var string
* @access private
*/
var $_url = "";
/**
* Directory path on a server
*
* @var string
* @access private
*/
var $_directory = "";
/**
* Max size
*
* @var unknown_type
* @access private
*/
var $_maxSize = 0;
/**
* Array with allowed extensions
*
* @var array[]string
* @access private
*/
var $_allowedExtensions = array();
/**
* Array with denied extensions
*
* @var array[]string
* @access private
*/
var $_deniedExtensions = array();
/**
* used for CKFinder_Connector_Core_Config object caching
*
* @var CKFinder_Connector_Core_Config
* @access private
*/
var $_config;
/**
* Get ResourceType configuration
*
* @param string $resourceTypeNode
* @return array
*
*/
function CKFinder_Connector_Core_ResourceTypeConfig($resourceTypeNode)
{
if (isset($resourceTypeNode["name"])) {
$this->_name = $resourceTypeNode["name"];
}
if (isset($resourceTypeNode["url"])) {
$this->_url = $resourceTypeNode["url"];
}
if (!strlen($this->_url)) {
$this->_url = "/";
}
else if(substr($this->_url,-1,1) != "/") {
$this->_url .= "/";
}
if (isset($resourceTypeNode["maxSize"])) {
$this->_maxSize = CKFinder_Connector_Utils_Misc::returnBytes((string)$resourceTypeNode["maxSize"]);
}
if (isset($resourceTypeNode["directory"])) {
$this->_directory = $resourceTypeNode["directory"];
}
if (!strlen($this->_directory)) {
$this->_directory = resolveUrl($this->_url);
}
if (isset($resourceTypeNode["allowedExtensions"])) {
if (is_array($resourceTypeNode["allowedExtensions"])) {
foreach ($resourceTypeNode["allowedExtensions"] as $e) {
$this->_allowedExtensions[] = strtolower(trim((string)$e));
}
}
else {
$resourceTypeNode["allowedExtensions"] = trim((string)$resourceTypeNode["allowedExtensions"]);
if (strlen($resourceTypeNode["allowedExtensions"])) {
$extensions = explode(",", $resourceTypeNode["allowedExtensions"]);
foreach ($extensions as $e) {
$this->_allowedExtensions[] = strtolower(trim($e));
}
}
}
}
if (isset($resourceTypeNode["deniedExtensions"])) {
if (is_array($resourceTypeNode["deniedExtensions"])) {
foreach ($resourceTypeNode["deniedExtensions"] as $extension) {
$this->_deniedExtensions[] = strtolower(trim((string)$e));
}
}
else {
$resourceTypeNode["deniedExtensions"] = trim((string)$resourceTypeNode["deniedExtensions"]);
if (strlen($resourceTypeNode["deniedExtensions"])) {
$extensions = explode(",", $resourceTypeNode["deniedExtensions"]);
foreach ($extensions as $e) {
$this->_deniedExtensions[] = strtolower(trim($e));
}
}
}
}
}
/**
* Get name
*
* @access public
* @return string
*/
function getName()
{
return $this->_name;
}
/**
* Get url
*
* @access public
* @return string
*/
function getUrl()
{
return $this->_url;
}
/**
* Get directory
*
* @access public
* @return string
*/
function getDirectory()
{
return $this->_directory;
}
/**
* Get max size
*
* @access public
* @return int
*/
function getMaxSize()
{
return $this->_maxSize;
}
/**
* Get allowed extensions
*
* @access public
* @return array[]string
*/
function getAllowedExtensions()
{
return $this->_allowedExtensions;
}
/**
* Get denied extensions
*
* @access public
* @return array[]string
*/
function getDeniedExtensions()
{
return $this->_deniedExtensions;
}
/**
* Check extension, return true if file name is valid.
* Return false if extension is on denied list.
* If allowed extensions are defined, return false if extension isn't on allowed list.
*
* @access public
* @param string $extension extension
* @param boolean $renameIfRequired whether try to rename file or not
* @return boolean
*/
function checkExtension(&$fileName, $renameIfRequired = true)
{
if (strpos($fileName, '.') === false) {
return true;
}
if (is_null($this->_config)) {
$this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
}
$toCheck = array();
if ($this->_config->getCheckDoubleExtension()) {
$pieces = explode('.', $fileName);
// First, check the last extension (ex. in file.php.jpg, the "jpg").
if ( !$this->checkSingleExtension( $pieces[sizeof($pieces)-1] ) ) {
return false;
}
if ($renameIfRequired) {
// Check the other extensions, rebuilding the file name. If an extension is
// not allowed, replace the dot with an underscore.
$fileName = $pieces[0] ;
for ($i=1; $i<sizeof($pieces)-1; $i++) {
$fileName .= $this->checkSingleExtension( $pieces[$i] ) ? '.' : '_' ;
$fileName .= $pieces[$i];
}
// Add the last extension to the final name.
$fileName .= '.' . $pieces[sizeof($pieces)-1] ;
}
}
else {
// Check only the last extension (ex. in file.php.jpg, only "jpg").
return $this->checkSingleExtension( substr($fileName, strrpos($fileName,'.')+1) );
}
return true;
}
/**
* Check given folder name
* Return true if folder name matches hidden folder names list
*
* @param string $folderName
* @access public
* @return boolean
*/
function checkIsHiddenFolder($folderName)
{
if (is_null($this->_config)) {
$this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
}
$regex = $this->_config->getHideFoldersRegex();
if ($regex) {
return preg_match($regex, $folderName);
}
return false;
}
/**
* Check given file name
* Return true if file name matches hidden file names list
*
* @param string $fileName
* @access public
* @return boolean
*/
function checkIsHiddenFile($fileName)
{
if (is_null($this->_config)) {
$this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
}
$regex = $this->_config->getHideFilesRegex();
if ($regex) {
return preg_match($regex, $fileName);
}
return false;
}
/**
* Check given path
* Return true if path contains folder name that matches hidden folder names list
*
* @param string $folderName
* @access public
* @return boolean
*/
function checkIsHiddenPath($path)
{
$_clientPathParts = explode("/", trim($path, "/"));
if ($_clientPathParts) {
foreach ($_clientPathParts as $_part) {
if ($this->checkIsHiddenFolder($_part)) {
return true;
}
}
}
return false;
}
function checkSingleExtension($extension)
{
$extension = strtolower(ltrim($extension,'.'));
if (sizeof($this->_deniedExtensions)) {
if (in_array($extension, $this->_deniedExtensions)) {
return false;
}
}
if (sizeof($this->_allowedExtensions)) {
return in_array($extension, $this->_allowedExtensions);
}
return true;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Core/ResourceTypeConfig.php | PHP | gpl3 | 9,577 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
/**
* Folder view mask
*/
define('CKFINDER_CONNECTOR_ACL_FOLDER_VIEW',1);
define('CKFINDER_CONNECTOR_ACL_FOLDER_CREATE',2);
define('CKFINDER_CONNECTOR_ACL_FOLDER_RENAME',4);
define('CKFINDER_CONNECTOR_ACL_FOLDER_DELETE',8);
define('CKFINDER_CONNECTOR_ACL_FILE_VIEW',16);
define('CKFINDER_CONNECTOR_ACL_FILE_UPLOAD',32);
define('CKFINDER_CONNECTOR_ACL_FILE_RENAME',64);
define('CKFINDER_CONNECTOR_ACL_FILE_DELETE',128);
/**
* This class keeps ACL configuration
*
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_AccessControlConfig
{
/**
* array with ACL entries
*
* @var array[string]string
* @access private
*/
var $_aclEntries = array();
function CKFinder_Connector_Core_AccessControlConfig($accessControlNodes)
{
foreach ($accessControlNodes as $node) {
$_folderView = isset($node['folderView']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['folderView']) : false;
$_folderCreate = isset($node['folderCreate']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['folderCreate']) : false;
$_folderRename = isset($node['folderRename']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['folderRename']) : false;
$_folderDelete = isset($node['folderDelete']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['folderDelete']) : false;
$_fileView = isset($node['fileView']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['fileView']) : false;
$_fileUpload = isset($node['fileUpload']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['fileUpload']) : false;
$_fileRename = isset($node['fileRename']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['fileRename']) : false;
$_fileDelete = isset($node['fileDelete']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['fileDelete']) : false;
$_role = isset($node['role']) ? $node['role'] : "*";
$_resourceType = isset($node['resourceType']) ? $node['resourceType'] : "*";
$_folder = isset($node['folder']) ? $node['folder'] : "/";
$this->addACLEntry($_role, $_resourceType, $_folder,
array(
$_folderView ? CKFINDER_CONNECTOR_ACL_FOLDER_VIEW : 0,
$_folderCreate ? CKFINDER_CONNECTOR_ACL_FOLDER_CREATE : 0,
$_folderRename ? CKFINDER_CONNECTOR_ACL_FOLDER_RENAME : 0,
$_folderDelete ? CKFINDER_CONNECTOR_ACL_FOLDER_DELETE : 0,
$_fileView ? CKFINDER_CONNECTOR_ACL_FILE_VIEW : 0,
$_fileUpload ? CKFINDER_CONNECTOR_ACL_FILE_UPLOAD : 0,
$_fileRename ? CKFINDER_CONNECTOR_ACL_FILE_RENAME : 0,
$_fileDelete ? CKFINDER_CONNECTOR_ACL_FILE_DELETE : 0,
),
array(
$_folderView ? 0 : CKFINDER_CONNECTOR_ACL_FOLDER_VIEW,
$_folderCreate ? 0 : CKFINDER_CONNECTOR_ACL_FOLDER_CREATE,
$_folderRename ? 0 : CKFINDER_CONNECTOR_ACL_FOLDER_RENAME,
$_folderDelete ? 0 : CKFINDER_CONNECTOR_ACL_FOLDER_DELETE,
$_fileView ? 0 : CKFINDER_CONNECTOR_ACL_FILE_VIEW,
$_fileUpload ? 0 : CKFINDER_CONNECTOR_ACL_FILE_UPLOAD,
$_fileRename ? 0 : CKFINDER_CONNECTOR_ACL_FILE_RENAME,
$_fileDelete ? 0 : CKFINDER_CONNECTOR_ACL_FILE_DELETE,
)
);
}
}
/**
* Add ACL entry
*
* @param string $role role
* @param string $resourceType resource type
* @param string $folderPath folder path
* @param int $allowRulesMask allow rules mask
* @param int $denyRulesMask deny rules mask
* @access private
*/
function addACLEntry($role, $resourceType, $folderPath, $allowRulesMask, $denyRulesMask)
{
if (!strlen($folderPath)) {
$folderPath = '/';
}
else {
if (substr($folderPath,0,1) != '/') {
$folderPath = '/' . $folderPath;
}
if (substr($folderPath,-1,1) != '/') {
$folderPath .= '/';
}
}
$_entryKey = $role . "#@#" . $resourceType;
if (array_key_exists($folderPath,$this->_aclEntries)) {
if (array_key_exists($_entryKey, $this->_aclEntries[$folderPath])) {
$_rulesMasks = $this->_aclEntries[$folderPath][$_entryKey];
foreach ($_rulesMasks[0] as $key => $value) {
$allowRulesMask[$key] |= $value;
}
foreach ($_rulesMasks[1] as $key => $value) {
$denyRulesMask[$key] |= $value;
}
}
}
else {
$this->_aclEntries[$folderPath] = array();
}
$this->_aclEntries[$folderPath][$_entryKey] = array($allowRulesMask, $denyRulesMask);
}
/**
* Get computed mask
*
* @param string $resourceType
* @param string $folderPath
* @return int
*/
function getComputedMask($resourceType, $folderPath)
{
$_computedMask = 0;
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$_roleSessionVar = $_config->getRoleSessionVar();
$_userRole = null;
if (strlen($_roleSessionVar) && isset($_SESSION[$_roleSessionVar])) {
$_userRole = (string)$_SESSION[$_roleSessionVar];
}
if (!is_null($_userRole) && !strlen($_userRole)) {
$_userRole = null;
}
$folderPath = trim($folderPath, "/");
$_pathParts = explode("/", $folderPath);
$_currentPath = "/";
for($i = -1; $i < sizeof($_pathParts); $i++) {
if ($i >= 0) {
if (!strlen($_pathParts[$i])) {
continue;
}
if (array_key_exists($_currentPath . '*/', $this->_aclEntries))
$_computedMask = $this->mergePathComputedMask( $_computedMask, $resourceType, $_userRole, $_currentPath . '*/' );
$_currentPath .= $_pathParts[$i] . '/';
}
if (array_key_exists($_currentPath, $this->_aclEntries)) {
$_computedMask = $this->mergePathComputedMask( $_computedMask, $resourceType, $_userRole, $_currentPath );
}
}
return $_computedMask;
}
/**
* merge current mask with folder entries
*
* @access private
* @param int $currentMask
* @param string $resourceType
* @param string $userRole
* @param string $path
* @return int
*/
function mergePathComputedMask( $currentMask, $resourceType, $userRole, $path )
{
$_folderEntries = $this->_aclEntries[$path];
$_possibleEntries = array();
$_possibleEntries[0] = "*#@#*";
$_possibleEntries[1] = "*#@#" . $resourceType;
if (!is_null($userRole))
{
$_possibleEntries[2] = $userRole . "#@#*";
$_possibleEntries[3] = $userRole . "#@#" . $resourceType;
}
for ($r = 0; $r < sizeof($_possibleEntries); $r++)
{
$_possibleKey = $_possibleEntries[$r];
if (array_key_exists($_possibleKey, $_folderEntries))
{
$_rulesMasks = $_folderEntries[$_possibleKey];
$currentMask |= array_sum($_rulesMasks[0]);
$currentMask ^= ($currentMask & array_sum($_rulesMasks[1]));
}
}
return $currentMask;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Core/AccessControlConfig.php | PHP | gpl3 | 8,297 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_Hooks
{
/**
* Run user defined hooks
*
* @param string $event
* @param object $errorHandler
* @param array $args
* @return boolean (true to continue processing, false otherwise)
*/
function run($event, $args = array())
{
$config = $GLOBALS['config'];
if (!isset($config['Hooks'])) {
return true;
}
$hooks =& $config['Hooks'];
if (!is_array($hooks) || !array_key_exists($event, $hooks) || !is_array($hooks[$event])) {
return true;
}
$errorHandler = $GLOBALS['connector']->getErrorHandler();
foreach ($hooks[$event] as $i => $hook) {
$object = NULL;
$method = NULL;
$function = NULL;
$data = NULL;
$passData = false;
/* $hook can be: a function, an object, an array of $functiontion and $data,
* an array of just a function, an array of object and method, or an
* array of object, method, and data.
*/
//function
if (is_string($hook)) {
$function = $hook;
}
//object
else if (is_object($hook)) {
$object = $hooks[$event][$i];
$method = "on" . $event;
}
//array of...
else if (is_array($hook)) {
$count = count($hook);
if ($count) {
//...object
if (is_object($hook[0])) {
$object = $hooks[$event][$i][0];
if ($count < 2) {
$method = "on" . $event;
} else {
//...object and method
$method = $hook[1];
if (count($hook) > 2) {
//...object, method and data
$passData = true;
$data = $hook[2];
}
}
}
//...function
else if (is_string($hook[0])) {
$function = $hook[0];
if ($count > 1) {
//...function with data
$passData = true;
$data = $hook[1];
}
}
}
}
/* If defined, add data to the arguments array */
if ($passData) {
$args = array_merge(array($data), $args);
}
if (isset($object)) {
$callback = array($object, $method);
}
else if (false !== ($pos = strpos($function, '::'))) {
$callback = array(substr($function, 0, $pos), substr($function, $pos + 2));
}
else {
$callback = $function;
}
if (is_callable($callback)) {
$ret = call_user_func_array($callback, $args);
}
else {
$functionName = CKFinder_Connector_Core_Hooks::_printCallback($callback);
$errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_CUSTOM_ERROR,
"CKFinder failed to call a hook: " . $functionName);
return false;
}
//String return is a custom error
if (is_string($ret)) {
$errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_CUSTOM_ERROR, $ret);
return false;
}
//hook returned an error code, user error codes start from 50000
//error codes are important because this way it is possible to create multilanguage extensions
//TODO: two custom extensions may be popular and return the same error codes
//recomendation: create a function that calculates the error codes starting number
//for an extension, a pool of 100 error codes for each extension should be safe enough
else if (is_int($ret)) {
$errorHandler->throwError($ret);
return false;
}
//no value returned
else if( $ret === null ) {
$functionName = CKFinder_Connector_Core_Hooks::_printCallback($callback);
$errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_CUSTOM_ERROR,
"CKFinder extension returned an invalid value (null)." .
"Hook " . $functionName . " should return a value.");
return false;
}
else if (!$ret) {
return false;
}
}
return true;
}
/**
* Print user friendly name of a callback
*
* @param mixed $callback
* @return string
*/
function _printCallback($callback)
{
if (is_array($callback)) {
if (is_object($callback[0])) {
$className = get_class($callback[0]);
} else {
$className = strval($callback[0]);
}
$functionName = $className . '::' . strval($callback[1]);
}
else {
$functionName = strval($callback);
}
return $functionName;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Core/Hooks.php | PHP | gpl3 | 6,124 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
/**
* Include access control config class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";
/**
* Include resource type config class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";
/**
* Include thumbnails config class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";
/**
* Include thumbnails config class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ImagesConfig.php";
/**
* Main config parser
*
*
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
* @global string $GLOBALS['config']
*/
class CKFinder_Connector_Core_Config
{
/**
* Is CKFinder enabled
*
* @var boolean
* @access private
*/
var $_isEnabled = false;
/**
* License Name
*
* @var string
* @access private
*/
var $_licenseName = "";
/**
* License Key
*
* @var string
* @access private
*/
var $_licenseKey = "";
/**
* Role session variable name
*
* @var string
* @access private
*/
var $_roleSessionVar = "CKFinder_UserRole";
/**
* Access Control Configuration
*
* @var CKFinder_Connector_Core_AccessControlConfig
* @access private
*/
var $_accessControlConfigCache;
/**
* ResourceType config cache
*
* @var array
* @access private
*/
var $_resourceTypeConfigCache = array();
/**
* Thumbnails config cache
*
* @var CKFinder_Connector_Core_ThumbnailsConfig
* @access private
*/
var $_thumbnailsConfigCache;
/**
* Images config cache
*
* @var CKFinder_Connector_Core_ImagesConfig
* @access private
*/
var $_imagesConfigCache;
/**
* Array with default resource types names
*
* @access private
* @var array
*/
var $_defaultResourceTypes = array();
/**
* Filesystem encoding
*
* @var string
* @access private
*/
var $_filesystemEncoding;
/**
* Check double extension
*
* @var boolean
* @access private
*/
var $_checkDoubleExtension = true;
/**
* If set to true, validate image size
*
* @var boolean
* @access private
*/
var $_secureImageUploads = true;
/**
* Check file size after scaling images (applies to images only)
*
* @var boolean
*/
var $_checkSizeAfterScaling = true;
/**
* For security, HTML is allowed in the first Kb of data for files having the following extensions only
*
* @var array
* @access private
*/
var $_htmlExtensions = array('html', 'htm', 'xml', 'xsd', 'txt', 'js');
/**
* Chmod files after upload to the following permission
*
* @var integer
* @access private
*/
var $_chmodFiles = 0777;
/**
* Chmod directories after creation
*
* @var integer
* @access private
*/
var $_chmodFolders = 0755;
/**
* Hide folders
*
* @var array
* @access private
*/
var $_hideFolders = array(".svn", "CVS");
/**
* Hide files
*
* @var integer
* @access private
*/
var $_hideFiles = array(".*");
/**
* If set to true, force ASCII names
*
* @var boolean
* @access private
*/
var $_forceAscii = false;
function CKFinder_Connector_Core_Config()
{
$this->loadValues();
}
/**
* Get file system encoding, returns null if encoding is not set
*
* @access public
* @return string
*/
function getFilesystemEncoding()
{
return $this->_filesystemEncoding;
}
/**
* Get "secureImageUploads" value
*
* @access public
* @return boolean
*/
function getSecureImageUploads()
{
return $this->_secureImageUploads;
}
/**
* Get "checkSizeAfterScaling" value
*
* @access public
* @return boolean
*/
function checkSizeAfterScaling()
{
return $this->_checkSizeAfterScaling;
}
/**
* Get "htmlExtensions" value
*
* @access public
* @return array
*/
function getHtmlExtensions()
{
return $this->_htmlExtensions;
}
/**
* Get "forceAscii" value
*
* @access public
* @return array
*/
function forceAscii()
{
return $this->_forceAscii;
}
/**
* Get regular expression to hide folders
*
* @access public
* @return array
*/
function getHideFoldersRegex()
{
static $folderRegex;
if (!isset($folderRegex)) {
if (is_array($this->_hideFolders) && $this->_hideFolders) {
$folderRegex = join("|", $this->_hideFolders);
$folderRegex = strtr($folderRegex, array("?" => "__QMK__", "*" => "__AST__", "|" => "__PIP__"));
$folderRegex = preg_quote($folderRegex, "/");
$folderRegex = strtr($folderRegex, array("__QMK__" => ".", "__AST__" => ".*", "__PIP__" => "|"));
$folderRegex = "/^(?:" . $folderRegex . ")$/uim";
}
else {
$folderRegex = "";
}
}
return $folderRegex;
}
/**
* Get regular expression to hide files
*
* @access public
* @return array
*/
function getHideFilesRegex()
{
static $fileRegex;
if (!isset($fileRegex)) {
if (is_array($this->_hideFiles) && $this->_hideFiles) {
$fileRegex = join("|", $this->_hideFiles);
$fileRegex = strtr($fileRegex, array("?" => "__QMK__", "*" => "__AST__", "|" => "__PIP__"));
$fileRegex = preg_quote($fileRegex, "/");
$fileRegex = strtr($fileRegex, array("__QMK__" => ".", "__AST__" => ".*", "__PIP__" => "|"));
$fileRegex = "/^(?:" . $fileRegex . ")$/uim";
}
else {
$fileRegex = "";
}
}
return $fileRegex;
}
/**
* Get "Check double extension" value
*
* @access public
* @return boolean
*/
function getCheckDoubleExtension()
{
return $this->_checkDoubleExtension;
}
/**
* Get default resource types
*
* @access public
* @return array()
*/
function getDefaultResourceTypes()
{
return $this->_defaultResourceTypes;
}
/**
* Is CKFinder enabled
*
* @access public
* @return boolean
*/
function getIsEnabled()
{
return $this->_isEnabled;
}
/**
* Get license key
*
* @access public
* @return string
*/
function getLicenseKey()
{
return $this->_licenseKey;
}
/**
* Get license name
*
* @access public
* @return string
*/
function getLicenseName()
{
return $this->_licenseName;
}
/**
* Get chmod settings for uploaded files
*
* @access public
* @return integer
*/
function getChmodFiles()
{
return $this->_chmodFiles;
}
/**
* Get chmod settings for created directories
*
* @access public
* @return integer
*/
function getChmodFolders()
{
return $this->_chmodFolders;
}
/**
* Get role sesion variable name
*
* @access public
* @return string
*/
function getRoleSessionVar()
{
return $this->_roleSessionVar;
}
/**
* Get resourceTypeName config
*
* @param string $resourceTypeName
* @return CKFinder_Connector_Core_ResourceTypeConfig|null
* @access public
*/
function &getResourceTypeConfig($resourceTypeName)
{
$_null = null;
if (isset($this->_resourceTypeConfigCache[$resourceTypeName])) {
return $this->_resourceTypeConfigCache[$resourceTypeName];
}
if (!isset($GLOBALS['config']['ResourceType']) || !is_array($GLOBALS['config']['ResourceType'])) {
return $_null;
}
reset($GLOBALS['config']['ResourceType']);
while (list($_key,$_resourceTypeNode) = each($GLOBALS['config']['ResourceType'])) {
if ($_resourceTypeNode['name'] === $resourceTypeName) {
$this->_resourceTypeConfigCache[$resourceTypeName] = new CKFinder_Connector_Core_ResourceTypeConfig($_resourceTypeNode);
return $this->_resourceTypeConfigCache[$resourceTypeName];
}
}
return $_null;
}
/**
* Get thumbnails config
*
* @access public
* @return CKFinder_Connector_Core_ThumbnailsConfig
*/
function &getThumbnailsConfig()
{
if (!isset($this->_thumbnailsConfigCache)) {
$this->_thumbnailsConfigCache = new CKFinder_Connector_Core_ThumbnailsConfig(isset($GLOBALS['config']['Thumbnails']) ? $GLOBALS['config']['Thumbnails'] : array());
}
return $this->_thumbnailsConfigCache;
}
/**
* Get images config
*
* @access public
* @return CKFinder_Connector_Core_ImagesConfig
*/
function &getImagesConfig()
{
if (!isset($this->_imagesConfigCache)) {
$this->_imagesConfigCache = new CKFinder_Connector_Core_ImagesConfig(isset($GLOBALS['config']['Images']) ? $GLOBALS['config']['Images'] : array());
}
return $this->_imagesConfigCache;
}
/**
* Get access control config
*
* @access public
* @return CKFinder_Connector_Core_AccessControlConfig
*/
function &getAccessControlConfig()
{
if (!isset($this->_accessControlConfigCache)) {
$this->_accessControlConfigCache = new CKFinder_Connector_Core_AccessControlConfig(isset($GLOBALS['config']['AccessControl']) ? $GLOBALS['config']['AccessControl'] : array());
}
return $this->_accessControlConfigCache;
}
/**
* Load values from config
*
* @access private
*/
function loadValues()
{
if (function_exists('CheckAuthentication')) {
$this->_isEnabled = CheckAuthentication();
}
if (isset($GLOBALS['config']['LicenseName'])) {
$this->_licenseName = (string)$GLOBALS['config']['LicenseName'];
}
if (isset($GLOBALS['config']['LicenseKey'])) {
$this->_licenseKey = (string)$GLOBALS['config']['LicenseKey'];
}
if (isset($GLOBALS['config']['FilesystemEncoding'])) {
$this->_filesystemEncoding = (string)$GLOBALS['config']['FilesystemEncoding'];
}
if (isset($GLOBALS['config']['RoleSessionVar'])) {
$this->_roleSessionVar = (string)$GLOBALS['config']['RoleSessionVar'];
}
if (isset($GLOBALS['config']['CheckDoubleExtension'])) {
$this->_checkDoubleExtension = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['CheckDoubleExtension']);
}
if (isset($GLOBALS['config']['SecureImageUploads'])) {
$this->_secureImageUploads = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['SecureImageUploads']);
}
if (isset($GLOBALS['config']['CheckSizeAfterScaling'])) {
$this->_checkSizeAfterScaling = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['CheckSizeAfterScaling']);
}
if (isset($GLOBALS['config']['ForceAscii'])) {
$this->_forceAscii = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['ForceAscii']);
}
if (isset($GLOBALS['config']['HtmlExtensions'])) {
$this->_htmlExtensions = (array)$GLOBALS['config']['HtmlExtensions'];
}
if (isset($GLOBALS['config']['HideFolders'])) {
$this->_hideFolders = (array)$GLOBALS['config']['HideFolders'];
}
if (isset($GLOBALS['config']['HideFiles'])) {
$this->_hideFiles = (array)$GLOBALS['config']['HideFiles'];
}
if (isset($GLOBALS['config']['ChmodFiles'])) {
$this->_chmodFiles = $GLOBALS['config']['ChmodFiles'];
}
if (isset($GLOBALS['config']['ChmodFolders'])) {
$this->_chmodFolders = $GLOBALS['config']['ChmodFolders'];
}
if (isset($GLOBALS['config']['DefaultResourceTypes'])) {
$_defaultResourceTypes = (string)$GLOBALS['config']['DefaultResourceTypes'];
if (strlen($_defaultResourceTypes)) {
$this->_defaultResourceTypes = explode(",", $_defaultResourceTypes);
}
}
}
/**
* Get all resource type names defined in config
*
* @return array
* @access public
*/
function getResourceTypeNames()
{
if (!isset($GLOBALS['config']['ResourceType']) || !is_array($GLOBALS['config']['ResourceType'])) {
return array();
}
$_names = array();
foreach ($GLOBALS['config']['ResourceType'] as $key => $_resourceType) {
if (isset($_resourceType['name'])) {
$_names[] = (string)$_resourceType['name'];
}
}
return $_names;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Core/Config.php | PHP | gpl3 | 14,110 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
/**
* Include file system utils class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Utils/FileSystem.php";
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_FolderHandler
{
/**
* CKFinder_Connector_Core_ResourceTypeConfig object
*
* @var CKFinder_Connector_Core_ResourceTypeConfig
* @access private
*/
var $_resourceTypeConfig;
/**
* ResourceType name
*
* @var string
* @access private
*/
var $_resourceTypeName = "";
/**
* Client path
*
* @var string
* @access private
*/
var $_clientPath = "/";
/**
* Url
*
* @var string
* @access private
*/
var $_url;
/**
* Server path
*
* @var string
* @access private
*/
var $_serverPath;
/**
* Thumbnails server path
*
* @var string
* @access private
*/
var $_thumbsServerPath;
/**
* ACL mask
*
* @var int
* @access private
*/
var $_aclMask;
/**
* Folder info
*
* @var mixed
* @access private
*/
var $_folderInfo;
/**
* Thumbnails folder info
*
* @var mized
* @access private
*/
var $_thumbsFolderInfo;
function CKFinder_Connector_Core_FolderHandler()
{
if (isset($_GET["type"])) {
$this->_resourceTypeName = (string)$_GET["type"];
}
if (isset($_GET["currentFolder"])) {
$this->_clientPath = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding((string)$_GET["currentFolder"]);
}
if (!strlen($this->_clientPath)) {
$this->_clientPath = "/";
}
else {
if (substr($this->_clientPath, -1, 1) != "/") {
$this->_clientPath .= "/";
}
if (substr($this->_clientPath, 0, 1) != "/") {
$this->_clientPath = "/" . $this->_clientPath;
}
}
$this->_aclMask = -1;
}
/**
* Get resource type config
*
* @return CKFinder_Connector_Core_ResourceTypeConfig
* @access public
*/
function &getResourceTypeConfig()
{
if (!isset($this->_resourceTypeConfig)) {
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$this->_resourceTypeConfig = $_config->getResourceTypeConfig($this->_resourceTypeName);
}
if (is_null($this->_resourceTypeConfig)) {
$connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector");
$oErrorHandler =& $connector->getErrorHandler();
$oErrorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_TYPE);
}
return $this->_resourceTypeConfig;
}
/**
* Get resource type name
*
* @return string
* @access public
*/
function getResourceTypeName()
{
return $this->_resourceTypeName;
}
/**
* Get Client path
*
* @return string
* @access public
*/
function getClientPath()
{
return $this->_clientPath;
}
/**
* Get Url
*
* @return string
* @access public
*/
function getUrl()
{
if (is_null($this->_url)) {
$this->_resourceTypeConfig = $this->getResourceTypeConfig();
if (is_null($this->_resourceTypeConfig)) {
$connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector");
$oErrorHandler =& $connector->getErrorHandler();
$oErrorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_TYPE);
$this->_url = "";
}
else {
$this->_url = $this->_resourceTypeConfig->getUrl() . ltrim($this->getClientPath(), "/");
}
}
return $this->_url;
}
/**
* Get server path
*
* @return string
* @access public
*/
function getServerPath()
{
if (is_null($this->_serverPath)) {
$this->_resourceTypeConfig = $this->getResourceTypeConfig();
$this->_serverPath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_resourceTypeConfig->getDirectory(), ltrim($this->_clientPath, "/"));
}
return $this->_serverPath;
}
/**
* Get server path to thumbnails directory
*
* @access public
* @return string
*/
function getThumbsServerPath()
{
if (is_null($this->_thumbsServerPath)) {
$this->_resourceTypeConfig = $this->getResourceTypeConfig();
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$_thumbnailsConfig = $_config->getThumbnailsConfig();
// Get the resource type directory.
$this->_thumbsServerPath = CKFinder_Connector_Utils_FileSystem::combinePaths($_thumbnailsConfig->getDirectory(), $this->_resourceTypeConfig->getName());
// Return the resource type directory combined with the required path.
$this->_thumbsServerPath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_thumbsServerPath, ltrim($this->_clientPath, '/'));
if (!is_dir($this->_thumbsServerPath)) {
if(!CKFinder_Connector_Utils_FileSystem::createDirectoryRecursively($this->_thumbsServerPath)) {
/**
* @todo Ckfinder_Connector_Utils_Xml::raiseError(); perhaps we should return error
*
*/
}
}
}
return $this->_thumbsServerPath;
}
/**
* Get ACL Mask
*
* @return int
* @access public
*/
function getAclMask()
{
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$_aclConfig = $_config->getAccessControlConfig();
if ($this->_aclMask == -1) {
$this->_aclMask = $_aclConfig->getComputedMask($this->_resourceTypeName, $this->_clientPath);
}
return $this->_aclMask;
}
/**
* Check ACL
*
* @access public
* @param int $aclToCkeck
* @return boolean
*/
function checkAcl($aclToCkeck)
{
$aclToCkeck = intval($aclToCkeck);
$maska = $this->getAclMask();
return (($maska & $aclToCkeck) == $aclToCkeck);
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Core/FolderHandler.php | PHP | gpl3 | 7,286 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
/**
* This class keeps images configuration
*
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_ImagesConfig
{
/**
* Max width for images, 0 to disable resizing
*
* @var int
* @access private
*/
var $_maxWidth = 0;
/**
* Max height for images, 0 to disable resizing
*
* @var int
* @access private
*/
var $_maxHeight = 0;
/**
* Quality of thumbnails
*
* @var int
* @access private
*/
var $_quality = 80;
function CKFinder_Connector_Core_ImagesConfig($imagesNode)
{
if(isset($imagesNode['maxWidth'])) {
$_maxWidth = intval($imagesNode['maxWidth']);
if($_maxWidth>=0) {
$this->_maxWidth = $_maxWidth;
}
}
if(isset($imagesNode['maxHeight'])) {
$_maxHeight = intval($imagesNode['maxHeight']);
if($_maxHeight>=0) {
$this->_maxHeight = $_maxHeight;
}
}
if(isset($imagesNode['quality'])) {
$_quality = intval($imagesNode['quality']);
if($_quality>0 && $_quality<=100) {
$this->_quality = $_quality;
}
}
}
/**
* Get maximum width of a thumbnail
*
* @access public
* @return int
*/
function getMaxWidth()
{
return $this->_maxWidth;
}
/**
* Get maximum height of a thumbnail
*
* @access public
* @return int
*/
function getMaxHeight()
{
return $this->_maxHeight;
}
/**
* Get quality of a thumbnail (1-100)
*
* @access public
* @return int
*/
function getQuality()
{
return $this->_quality;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Core/ImagesConfig.php | PHP | gpl3 | 2,474 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
/**
* Sigleton factory creating objects
*
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_Factory
{
/**
* Initiate factory
* @static
*/
function initFactory()
{
$GLOBALS['CKFinder_Connector_Factory']=array();
}
/**
* Get instance of specified class
* Short and Long class names are possible
* <code>
* $obj1 =& CKFinder_Connector_Core_Factory::getInstance("Ckfinder_Connector_Core_Xml");
* $obj2 =& CKFinder_Connector_Core_Factory::getInstance("Core_Xml");
* </code>
*
* @param string $className class name
* @static
* @access public
* @return object
*/
function &getInstance($className)
{
$namespace = "CKFinder_Connector_";
$baseName = str_replace($namespace,"",$className);
$className = $namespace.$baseName;
if (!isset($GLOBALS['CKFinder_Connector_Factory'][$className])) {
require_once CKFINDER_CONNECTOR_LIB_DIR . "/" . str_replace("_","/",$baseName).".php";
$GLOBALS['CKFinder_Connector_Factory'][$className] =& new $className;
}
return $GLOBALS['CKFinder_Connector_Factory'][$className];
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Core/Factory.php | PHP | gpl3 | 1,885 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
/**
* Registry for storing global variables values (not references)
*
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_Registry
{
/**
* Arrat that stores all values
*
* @var array
* @access private
*/
var $_store = array();
/**
* Chacke if value has been set
*
* @param string $key
* @return boolean
* @access private
*/
function isValid($key)
{
return array_key_exists($key, $this->_store);
}
/**
* Set value
*
* @param string $key
* @param mixed $obj
* @access public
*/
function set($key, $obj)
{
$this->_store[$key] = $obj;
}
/**
* Get value
*
* @param string $key
* @return mixed
* @access public
*/
function get($key)
{
if ($this->isValid($key)) {
return $this->_store[$key];
}
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Core/Registry.php | PHP | gpl3 | 1,597 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
/**
* Include basic Xml library
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Utils/XmlNode.php";
/**
* XML document
*
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_Xml
{
/**
* Connector node (root)
*
* @var Ckfinder_Connector_Utils_XmlNode
* @access private
*/
var $_connectorNode;
/**
* Error node
*
* @var Ckfinder_Connector_Utils_XmlNode
* @access private
*/
var $_errorNode;
function CKFinder_Connector_Core_Xml()
{
$this->sendXmlHeaders();
echo $this->getXMLDeclaration();
$this->_connectorNode = new Ckfinder_Connector_Utils_XmlNode("Connector");
$this->_errorNode = new Ckfinder_Connector_Utils_XmlNode("Error");
$this->_connectorNode->addChild($this->_errorNode);
}
/**
* Return connector node
*
* @access public
* @return Ckfinder_Connector_Utils_XmlNode
*/
function &getConnectorNode()
{
return $this->_connectorNode;
}
/**
* Return error node
*
* @access public
* @return Ckfinder_Connector_Utils_XmlNode
*/
function &getErrorNode()
{
return $this->_errorNode;
}
/**
* Send XML headers to the browser (and force browser not to use cache)
* @access private
*/
function sendXmlHeaders()
{
// Prevent the browser from caching the result.
// Date in the past
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT') ;
// always modified
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT') ;
// HTTP/1.1
header('Cache-Control: no-store, no-cache, must-revalidate') ;
header('Cache-Control: post-check=0, pre-check=0', false) ;
// HTTP/1.0
header('Pragma: no-cache') ;
// Set the response format.
header( 'Content-Type:text/xml; charset=utf-8' ) ;
}
/**
* Return XML declaration
*
* @access private
* @return string
*/
function getXMLDeclaration()
{
return '<?xml version="1.0" encoding="utf-8"?>';
}
/**
* Send error message to the browser. If error number is set to 1, $text (custom error message) will be displayed
* Don't call this function directly
*
* @access public
* @param int $number error number
* @param string $text Custom error message (optional)
*/
function raiseError( $number, $text = false)
{
$this->_errorNode->addAttribute("number", intval($number));
if (false!=$text) {
$this->_errorNode->addAttribute("text", $text);
}
echo $this->_connectorNode->asXML();
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Core/Xml.php | PHP | gpl3 | 3,438 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
/**
* This class keeps thumbnails configuration
*
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_ThumbnailsConfig
{
/**
* Url to thumbnails directory
*
* @var string
* @access private
*/
var $_url = "";
/**
* Directory where thumbnails are stored
*
* @var string
* @access private
*/
var $_directory = "";
/**
* Are thumbnails enabled
*
* @var boolean
* @access private
*/
var $_isEnabled = false;
/**
* Direct access to thumbnails?
*
* @var boolean
* @access private
*/
var $_directAccess = false;
/**
* Max width for thumbnails
*
* @var int
* @access private
*/
var $_maxWidth = 100;
/**
* Max height for thumbnails
*
* @var int
* @access private
*/
var $_maxHeight = 100;
/**
* Quality of thumbnails
*
* @var int
* @access private
*/
var $_quality = 100;
/**
* Are thumbnails of bitmap files enabled?
*
* @var boolean
* @access private
*/
var $_bmpSupported = false;
function CKFinder_Connector_Core_ThumbnailsConfig($thumbnailsNode)
{
if(extension_loaded('gd') && isset($thumbnailsNode['enabled'])) {
$this->_isEnabled = CKFinder_Connector_Utils_Misc::booleanValue($thumbnailsNode['enabled']);
}
if( isset($thumbnailsNode['directAccess'])) {
$this->_directAccess = CKFinder_Connector_Utils_Misc::booleanValue($thumbnailsNode['directAccess']);
}
if( isset($thumbnailsNode['bmpSupported'])) {
$this->_bmpSupported = CKFinder_Connector_Utils_Misc::booleanValue($thumbnailsNode['bmpSupported']);
}
if(isset($thumbnailsNode['maxWidth'])) {
$_maxWidth = intval($thumbnailsNode['maxWidth']);
if($_maxWidth>=0) {
$this->_maxWidth = $_maxWidth;
}
}
if(isset($thumbnailsNode['maxHeight'])) {
$_maxHeight = intval($thumbnailsNode['maxHeight']);
if($_maxHeight>=0) {
$this->_maxHeight = $_maxHeight;
}
}
if(isset($thumbnailsNode['quality'])) {
$_quality = intval($thumbnailsNode['quality']);
if($_quality>0 && $_quality<=100) {
$this->_quality = $_quality;
}
}
if(isset($thumbnailsNode['url'])) {
$this->_url = $thumbnailsNode['url'];
}
if (!strlen($this->_url)) {
$this->_url = "/";
}
else if(substr($this->_url,-1,1) != "/") {
$this->_url .= "/";
}
if(isset($thumbnailsNode['directory'])) {
$this->_directory = $thumbnailsNode['directory'];
}
}
/**
* Get URL
*
* @access public
* @return string
*/
function getUrl()
{
return $this->_url;
}
/**
* Get directory
*
* @access public
* @return string
*/
function getDirectory()
{
return $this->_directory;
}
/**
* Get is enabled setting
*
* @access public
* @return boolean
*/
function getIsEnabled()
{
return $this->_isEnabled;
}
/**
* Get is enabled setting
*
* @access public
* @return boolean
*/
function getBmpSupported()
{
return $this->_bmpSupported;
}
/**
* Is direct access to thumbnails allowed?
*
* @access public
* @return boolean
*/
function getDirectAccess()
{
return $this->_directAccess;
}
/**
* Get maximum width of a thumbnail
*
* @access public
* @return int
*/
function getMaxWidth()
{
return $this->_maxWidth;
}
/**
* Get maximum height of a thumbnail
*
* @access public
* @return int
*/
function getMaxHeight()
{
return $this->_maxHeight;
}
/**
* Get quality of a thumbnail (1-100)
*
* @access public
* @return int
*/
function getQuality()
{
return $this->_quality;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Core/ThumbnailsConfig.php | PHP | gpl3 | 5,008 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
/**
* Executes all commands
*
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_Connector
{
/**
* Registry
*
* @var CKFinder_Connector_Core_Registry
* @access private
*/
var $_registry;
function CKFinder_Connector_Core_Connector()
{
$this->_registry =& CKFinder_Connector_Core_Factory::getInstance("Core_Registry");
$this->_registry->set("errorHandler", "ErrorHandler_Base");
}
/**
* Generic handler for invalid commands
* @access public
*
*/
function handleInvalidCommand()
{
$oErrorHandler =& $this->getErrorHandler();
$oErrorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_COMMAND);
}
/**
* Execute command
*
* @param string $command
* @access public
*/
function executeCommand($command)
{
if (!CKFinder_Connector_Core_Hooks::run('BeforeExecuteCommand', array(&$command))) {
return;
}
switch ($command)
{
case 'FileUpload':
$this->_registry->set("errorHandler", "ErrorHandler_FileUpload");
$obj =& CKFinder_Connector_Core_Factory::getInstance("CommandHandler_".$command);
$obj->sendResponse();
break;
case 'QuickUpload':
$this->_registry->set("errorHandler", "ErrorHandler_QuickUpload");
$obj =& CKFinder_Connector_Core_Factory::getInstance("CommandHandler_".$command);
$obj->sendResponse();
break;
case 'DownloadFile':
case 'Thumbnail':
$this->_registry->set("errorHandler", "ErrorHandler_Http");
$obj =& CKFinder_Connector_Core_Factory::getInstance("CommandHandler_".$command);
$obj->sendResponse();
break;
case 'CopyFiles':
case 'CreateFolder':
case 'DeleteFile':
case 'DeleteFolder':
case 'GetFiles':
case 'GetFolders':
case 'Init':
case 'MoveFiles':
case 'RenameFile':
case 'RenameFolder':
$obj =& CKFinder_Connector_Core_Factory::getInstance("CommandHandler_".$command);
$obj->sendResponse();
break;
default:
$this->handleInvalidCommand();
break;
}
}
/**
* Get error handler
*
* @access public
* @return CKFinder_Connector_ErrorHandler_Base|CKFinder_Connector_ErrorHandler_FileUpload|CKFinder_Connector_ErrorHandler_Http
*/
function &getErrorHandler()
{
$_errorHandler = $this->_registry->get("errorHandler");
$oErrorHandler =& CKFinder_Connector_Core_Factory::getInstance($_errorHandler);
return $oErrorHandler;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php4/Core/Connector.php | PHP | gpl3 | 3,539 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
/**
* Constants required by CKFinder
*
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
/**
* No errors
*/
define('IN_CKFINDER', true);
define('CKFINDER_CONNECTOR_ERROR_NONE',0);
define('CKFINDER_CONNECTOR_ERROR_CUSTOM_ERROR',1);
define('CKFINDER_CONNECTOR_ERROR_INVALID_COMMAND',10);
define('CKFINDER_CONNECTOR_ERROR_TYPE_NOT_SPECIFIED',11);
define('CKFINDER_CONNECTOR_ERROR_INVALID_TYPE',12);
define('CKFINDER_CONNECTOR_ERROR_INVALID_NAME',102);
define('CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED',103);
define('CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED',104);
define('CKFINDER_CONNECTOR_ERROR_INVALID_EXTENSION',105);
define('CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST',109);
define('CKFINDER_CONNECTOR_ERROR_UNKNOWN',110);
define('CKFINDER_CONNECTOR_ERROR_ALREADY_EXIST',115);
define('CKFINDER_CONNECTOR_ERROR_FOLDER_NOT_FOUND',116);
define('CKFINDER_CONNECTOR_ERROR_FILE_NOT_FOUND',117);
define('CKFINDER_CONNECTOR_ERROR_SOURCE_AND_TARGET_PATH_EQUAL',118);
define('CKFINDER_CONNECTOR_ERROR_UPLOADED_FILE_RENAMED',201);
define('CKFINDER_CONNECTOR_ERROR_UPLOADED_INVALID',202);
define('CKFINDER_CONNECTOR_ERROR_UPLOADED_TOO_BIG',203);
define('CKFINDER_CONNECTOR_ERROR_UPLOADED_CORRUPT',204);
define('CKFINDER_CONNECTOR_ERROR_UPLOADED_NO_TMP_DIR',205);
define('CKFINDER_CONNECTOR_ERROR_UPLOADED_WRONG_HTML_FILE',206);
define('CKFINDER_CONNECTOR_ERROR_MOVE_FAILED',300);
define('CKFINDER_CONNECTOR_ERROR_COPY_FAILED',301);
define('CKFINDER_CONNECTOR_ERROR_UPLOADED_INVALID_NAME_RENAMED', 207);
define('CKFINDER_CONNECTOR_ERROR_CONNECTOR_DISABLED',500);
define('CKFINDER_CONNECTOR_ERROR_THUMBNAILS_DISABLED',501);
define('CKFINDER_CONNECTOR_DEFAULT_USER_FILES_PATH',"/userfiles/");
define('CKFINDER_CONNECTOR_LANG_PATH',"./lang");
define('CKFINDER_CONNECTOR_CONFIG_FILE_PATH',"./../../../config.php");
if (version_compare(phpversion(), '6', '>=')) {
define('CKFINDER_CONNECTOR_PHP_MODE', 6);
}
else if (version_compare(phpversion(), '5', '>=')) {
define('CKFINDER_CONNECTOR_PHP_MODE', 5);
}
else {
define('CKFINDER_CONNECTOR_PHP_MODE', 4);
}
if (CKFINDER_CONNECTOR_PHP_MODE == 4) {
define('CKFINDER_CONNECTOR_LIB_DIR', "./php4");
} else {
define('CKFINDER_CONNECTOR_LIB_DIR', "./php5");
}
define('CKFINDER_CHARS', '123456789ABCDEFGHJKLMNPQRSTUVWXYZ');
define('CKFINDER_REGEX_IMAGES_EXT', '/\.(jpg|gif|png|bmp|jpeg)$/i');
define('CKFINDER_REGEX_INVALID_PATH', ",(/\.)|[[:cntrl:]]|(//)|(\\\\)|([\\:\*\?\"\<\>\|]),");
define('CKFINDER_REGEX_INVALID_FILE', ",[[:cntrl:]]|[/\\:\*\?\"\<\>\|],");
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/constants.php | PHP | gpl3 | 3,053 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
/**
* Main heart of CKFinder - Connector
*
* @package CKFinder
* @subpackage Connector
* @copyright CKSource - Frederico Knabben
*/
/**
* Protect against sending warnings to the browser.
* Comment out this line during debugging.
*/
// error_reporting(0);
/**
* Protect against sending content before all HTTP headers are sent (#186).
*/
ob_start();
/**
* define required constants
*/
require_once "./constants.php";
// @ob_end_clean();
// header("Content-Encoding: none");
/**
* we need this class in each call
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/CommandHandlerBase.php";
/**
* singleton factory
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/Factory.php";
/**
* utils class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Utils/Misc.php";
/**
* hooks class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/Hooks.php";
/**
* Simple function required by config.php - discover the server side path
* to the directory relative to the "$baseUrl" attribute
*
* @package CKFinder
* @subpackage Connector
* @param string $baseUrl
* @return string
*/
function resolveUrl($baseUrl) {
$fileSystem =& CKFinder_Connector_Core_Factory::getInstance("Utils_FileSystem");
return $fileSystem->getDocumentRootPath() . $baseUrl;
}
$utilsSecurity =& CKFinder_Connector_Core_Factory::getInstance("Utils_Security");
$utilsSecurity->getRidOfMagicQuotes();
/**
* $config must be initialised
*/
$config = array();
$config['Hooks'] = array();
$config['Plugins'] = array();
/**
* read config file
*/
require_once CKFINDER_CONNECTOR_CONFIG_FILE_PATH;
CKFinder_Connector_Core_Factory::initFactory();
$connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector");
if(isset($_GET['command'])) {
$connector->executeCommand($_GET['command']);
}
else {
$connector->handleInvalidCommand();
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/connector.php | PHP | gpl3 | 2,384 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage ErrorHandler
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base error handling class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/ErrorHandler/Base.php";
/**
* File upload error handler
*
* @package CKFinder
* @subpackage ErrorHandler
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_ErrorHandler_QuickUpload extends CKFinder_Connector_ErrorHandler_Base {
/**
* Throw file upload error, return true if error has been thrown, false if error has been catched
*
* @param int $number
* @param string $text
* @access public
*/
public function throwError($number, $uploaded = false, $exit = true) {
if ($this->_catchAllErrors || in_array($number, $this->_skipErrorsArray)) {
return false;
}
$oRegistry = & CKFinder_Connector_Core_Factory :: getInstance("Core_Registry");
$sFileName = $oRegistry->get("FileUpload_fileName");
$sFileUrl = $oRegistry->get("FileUpload_url");
header('Content-Type: text/html; charset=utf-8');
/**
* echo <script> is not called before CKFinder_Connector_Utils_Misc::getErrorMessage
* because PHP has problems with including files that contain BOM character.
* Having BOM character after <script> tag causes a javascript error.
*/
echo "<script type=\"text/javascript\">";
if (!empty($_GET['CKEditor'])) {
$errorMessage = CKFinder_Connector_Utils_Misc::getErrorMessage($number, $sFileName);
if (!$uploaded) {
$sFileUrl = "";
$sFileName = "";
}
$funcNum = preg_replace("/[^0-9]/", "", $_GET['CKEditorFuncNum']);
echo "window.parent.CKEDITOR.tools.callFunction($funcNum, '" . str_replace("'", "\\'", $sFileUrl . $sFileName) . "', '" .str_replace("'", "\\'", $errorMessage). "');";
}
else {
if (!$uploaded) {
echo "window.parent.OnUploadCompleted(" . $number . ", '', '', '') ;";
} else {
echo "window.parent.OnUploadCompleted(" . $number . ", '" . str_replace("'", "\\'", $sFileUrl . $sFileName) . "', '" . str_replace("'", "\\'", $sFileName) . "', '') ;";
}
}
echo "</script>";
if ($exit) {
exit;
}
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/ErrorHandler/QuickUpload.php | PHP | gpl3 | 2,911 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage ErrorHandler
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base error handling class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/ErrorHandler/Base.php";
/**
* File upload error handler
*
* @package CKFinder
* @subpackage ErrorHandler
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_ErrorHandler_FileUpload extends CKFinder_Connector_ErrorHandler_Base {
/**
* Throw file upload error, return true if error has been thrown, false if error has been catched
*
* @param int $number
* @param string $text
* @access public
*/
public function throwError($number, $uploaded = false, $exit = true) {
if ($this->_catchAllErrors || in_array($number, $this->_skipErrorsArray)) {
return false;
}
$oRegistry = & CKFinder_Connector_Core_Factory :: getInstance("Core_Registry");
$sFileName = $oRegistry->get("FileUpload_fileName");
$sFileUrl = $oRegistry->get("FileUpload_url");
header('Content-Type: text/html; charset=utf-8');
$errorMessage = CKFinder_Connector_Utils_Misc :: getErrorMessage($number, $sFileName);
if (!$uploaded) {
$sFileName = "";
}
echo "<script type=\"text/javascript\">";
if (!empty($_GET['CKFinderFuncNum'])) {
$errorMessage = CKFinder_Connector_Utils_Misc::getErrorMessage($number, $sFileName);
if (!$uploaded) {
$sFileUrl = "";
$sFileName = "";
}
$funcNum = preg_replace("/[^0-9]/", "", $_GET['CKFinderFuncNum']);
echo "window.parent.CKFinder.tools.callFunction($funcNum, '" . str_replace("'", "\\'", $sFileUrl . $sFileName) . "', '" .str_replace("'", "\\'", $errorMessage). "');";
}
else {
echo "window.parent.OnUploadCompleted('" . str_replace("'", "\\'", $sFileName) . "', '" . str_replace("'", "\\'", $errorMessage) . "') ;";
}
echo "</script>";
if ($exit) {
exit;
}
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/ErrorHandler/FileUpload.php | PHP | gpl3 | 2,644 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage ErrorHandler
* @copyright CKSource - Frederico Knabben
*/
/**
* Basic error handler
*
* @package CKFinder
* @subpackage ErrorHandler
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_ErrorHandler_Base
{
/**
* Try/catch emulation, if set to true, error handler will not throw any error
*
* @var boolean
* @access protected
*/
protected $_catchAllErrors = false;
/**
* Array with error numbers that should be ignored
*
* @var array[]int
* @access protected
*/
protected $_skipErrorsArray = array();
/**
* Set whether all errors should be ignored
*
* @param boolean $newValue
* @access public
*/
public function setCatchAllErros($newValue)
{
$this->_catchAllErrors = $newValue ? true : false;
}
/**
* Set which errors should be ignored
*
* @param array $newArray
*/
public function setSkipErrorsArray($newArray)
{
if (is_array($newArray)) {
$this->_skipErrorsArray = $newArray;
}
}
/**
* Throw connector error, return true if error has been thrown, false if error has been catched
*
* @param int $number
* @param string $text
* @access public
*/
public function throwError($number, $text = false)
{
if ($this->_catchAllErrors || in_array($number, $this->_skipErrorsArray)) {
return false;
}
$_xml =& CKFinder_Connector_Core_Factory::getInstance("Core_Xml");
$_xml->raiseError($number,$text);
exit;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/ErrorHandler/Base.php | PHP | gpl3 | 2,197 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage ErrorHandler
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base error handling class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/ErrorHandler/Base.php";
/**
* HTTP error handler
*
* @package CKFinder
* @subpackage ErrorHandler
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_ErrorHandler_Http extends CKFinder_Connector_ErrorHandler_Base
{
/**
* Throw file upload error, return true if error has been thrown, false if error has been catched
*
* @param int $number
* @param string $text
* @access public
*/
public function throwError($number, $text = false, $exit = true)
{
if ($this->_catchAllErrors || in_array($number, $this->_skipErrorsArray)) {
return false;
}
switch ($number)
{
case CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST:
case CKFINDER_CONNECTOR_ERROR_INVALID_NAME:
case CKFINDER_CONNECTOR_ERROR_THUMBNAILS_DISABLED:
case CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED:
header("HTTP/1.0 403 Forbidden");
header("X-CKFinder-Error: ". $number);
break;
case CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED:
header("HTTP/1.0 500 Internal Server Error");
header("X-CKFinder-Error: ".$number);
break;
default:
header("HTTP/1.0 404 Not Found");
header("X-CKFinder-Error: ". $number);
break;
}
if ($exit) {
exit;
}
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/ErrorHandler/Http.php | PHP | gpl3 | 2,172 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base XML command handler
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
/**
* Handle RenameFile command
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_RenameFile extends CKFinder_Connector_CommandHandler_XmlCommandHandlerBase
{
/**
* Command name
*
* @access private
* @var string
*/
private $command = "RenameFile";
/**
* handle request and build XML
* @access protected
*
*/
protected function buildXml()
{
if (empty($_POST['CKFinderCommand']) || $_POST['CKFinderCommand'] != 'true') {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FILE_RENAME)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
if (!isset($_GET["fileName"])) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_NAME);
}
if (!isset($_GET["newFileName"])) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_NAME);
}
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$fileName = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding($_GET["fileName"]);
$newFileName = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding($_GET["newFileName"]);
$oRenamedFileNode = new Ckfinder_Connector_Utils_XmlNode("RenamedFile");
$this->_connectorNode->addChild($oRenamedFileNode);
$oRenamedFileNode->addAttribute("name", CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding($fileName));
$resourceTypeInfo = $this->_currentFolder->getResourceTypeConfig();
if (!$resourceTypeInfo->checkExtension($newFileName)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_EXTENSION);
}
if (!CKFinder_Connector_Utils_FileSystem::checkFileName($fileName) || $resourceTypeInfo->checkIsHiddenFile($fileName)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
if (!CKFinder_Connector_Utils_FileSystem::checkFileName($newFileName) || $resourceTypeInfo->checkIsHiddenFile($newFileName)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_NAME);
}
if (!$resourceTypeInfo->checkExtension($fileName, false)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
if ($_config->forceAscii()) {
$newFileName = CKFinder_Connector_Utils_FileSystem::convertToAscii($newFileName);
}
$filePath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getServerPath(), $fileName);
$newFilePath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getServerPath(), $newFileName);
$bMoved = false;
if (!file_exists($filePath)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_FILE_NOT_FOUND);
}
if (!is_writable(dirname($newFilePath))) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED);
}
if (!is_writable($filePath)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED);
}
if (file_exists($newFilePath)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ALREADY_EXIST);
}
$bMoved = @rename($filePath, $newFilePath);
if (!$bMoved) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNKNOWN, "File " . CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding($fileName) . "has not been renamed");
} else {
$oRenamedFileNode->addAttribute("newName", CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding($newFileName));
$thumbPath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getThumbsServerPath(), $fileName);
CKFinder_Connector_Utils_FileSystem::unlink($thumbPath);
}
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/RenameFile.php | PHP | gpl3 | 5,008 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base XML command handler
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
/**
* Handle CopyFiles command
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_CopyFiles extends CKFinder_Connector_CommandHandler_XmlCommandHandlerBase
{
/**
* Command name
*
* @access private
* @var string
*/
private $command = "CopyFiles";
/**
* handle request and build XML
* @access protected
*
*/
protected function buildXml()
{
if (empty($_POST['CKFinderCommand']) || $_POST['CKFinderCommand'] != 'true') {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
$clientPath = $this->_currentFolder->getClientPath();
$sServerDir = $this->_currentFolder->getServerPath();
$currentResourceTypeConfig = $this->_currentFolder->getResourceTypeConfig();
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$_aclConfig = $_config->getAccessControlConfig();
$aclMasks = array();
$_resourceTypeConfig = array();
if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FILE_RENAME | CKFINDER_CONNECTOR_ACL_FILE_UPLOAD | CKFINDER_CONNECTOR_ACL_FILE_DELETE)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
// Create the "Errors" node.
$oErrorsNode = new CKFinder_Connector_Utils_XmlNode("Errors");
$errorCode = CKFINDER_CONNECTOR_ERROR_NONE;
$copied = 0;
$copiedAll = 0;
if (!empty($_POST['copied'])) {
$copiedAll = intval($_POST['copied']);
}
$checkedPaths = array();
$oCopyFilesNode = new Ckfinder_Connector_Utils_XmlNode("CopyFiles");
if (!empty($_POST['files']) && is_array($_POST['files'])) {
foreach ($_POST['files'] as $index => $arr) {
if (empty($arr['name'])) {
continue;
}
if (!isset($arr['name'], $arr['type'], $arr['folder'])) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
// file name
$name = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding($arr['name']);
// resource type
$type = $arr['type'];
// client path
$path = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding($arr['folder']);
// options
$options = (!empty($arr['options'])) ? $arr['options'] : '';
$destinationFilePath = $sServerDir.$name;
// check #1 (path)
if (!CKFinder_Connector_Utils_FileSystem::checkFileName($name) || preg_match(CKFINDER_REGEX_INVALID_PATH, $path)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
// get resource type config for current file
if (!isset($_resourceTypeConfig[$type])) {
$_resourceTypeConfig[$type] = $_config->getResourceTypeConfig($type);
}
// check #2 (resource type)
if (is_null($_resourceTypeConfig[$type])) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
// check #3 (extension)
if (!$_resourceTypeConfig[$type]->checkExtension($name, false)) {
$errorCode = CKFINDER_CONNECTOR_ERROR_INVALID_EXTENSION;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
// check #4 (extension) - when moving to another resource type, double check extension
if ($currentResourceTypeConfig->getName() != $type) {
if (!$currentResourceTypeConfig->checkExtension($name, false)) {
$errorCode = CKFINDER_CONNECTOR_ERROR_INVALID_EXTENSION;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
}
// check #5 (hidden folders)
// cache results
if (empty($checkedPaths[$path])) {
$checkedPaths[$path] = true;
if ($_resourceTypeConfig[$type]->checkIsHiddenPath($path)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
}
$sourceFilePath = $_resourceTypeConfig[$type]->getDirectory().$path.$name;
// check #6 (hidden file name)
if ($currentResourceTypeConfig->checkIsHiddenFile($name)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
// check #7 (Access Control, need file view permission to source files)
if (!isset($aclMasks[$type."@".$path])) {
$aclMasks[$type."@".$path] = $_aclConfig->getComputedMask($type, $path);
}
$isAuthorized = (($aclMasks[$type."@".$path] & CKFINDER_CONNECTOR_ACL_FILE_VIEW) == CKFINDER_CONNECTOR_ACL_FILE_VIEW);
if (!$isAuthorized) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
// check #8 (invalid file name)
if (!file_exists($sourceFilePath) || !is_file($sourceFilePath)) {
$errorCode = CKFINDER_CONNECTOR_ERROR_FILE_NOT_FOUND;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
// check #9 (max size)
if ($currentResourceTypeConfig->getName() != $type) {
$maxSize = $currentResourceTypeConfig->getMaxSize();
$fileSize = filesize($sourceFilePath);
if ($maxSize && $fileSize>$maxSize) {
$errorCode = CKFINDER_CONNECTOR_ERROR_UPLOADED_TOO_BIG;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
}
//$overwrite
// finally, no errors so far, we may attempt to copy a file
// protection against copying files to itself
if ($sourceFilePath == $destinationFilePath) {
$errorCode = CKFINDER_CONNECTOR_ERROR_SOURCE_AND_TARGET_PATH_EQUAL;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
// check if file exists if we don't force overwriting
else if (file_exists($destinationFilePath) && strpos($options, "overwrite") === false) {
if (strpos($options, "autorename") !== false) {
$iCounter = 1;
while (true)
{
$fileName = CKFinder_Connector_Utils_FileSystem::getFileNameWithoutExtension($name) .
"(" . $iCounter . ")" . "." .
CKFinder_Connector_Utils_FileSystem::getExtension($name);
$destinationFilePath = $sServerDir.$fileName;
if (!file_exists($destinationFilePath)) {
break;
}
else {
$iCounter++;
}
}
if (!@copy($sourceFilePath, $destinationFilePath)) {
$errorCode = CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
else {
$copied++;
}
}
else {
$errorCode = CKFINDER_CONNECTOR_ERROR_ALREADY_EXIST;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
}
// copy() overwrites without warning
else {
if (!@copy($sourceFilePath, $destinationFilePath)) {
$errorCode = CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
else {
$copied++;
}
}
}
}
$this->_connectorNode->addChild($oCopyFilesNode);
if ($errorCode != CKFINDER_CONNECTOR_ERROR_NONE) {
$this->_connectorNode->addChild($oErrorsNode);
}
$oCopyFilesNode->addAttribute("copied", $copied);
$oCopyFilesNode->addAttribute("copiedTotal", $copiedAll + $copied);
/**
* Note: actually we could have more than one error.
* This is just a flag for CKFinder interface telling it to check all errors.
*/
if ($errorCode != CKFINDER_CONNECTOR_ERROR_NONE) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_COPY_FAILED);
}
}
private function appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path)
{
$oErrorNode = new CKFinder_Connector_Utils_XmlNode("Error");
$oErrorNode->addAttribute("code", $errorCode);
$oErrorNode->addAttribute("name", CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding($name));
$oErrorNode->addAttribute("type", $type);
$oErrorNode->addAttribute("folder", $path);
$oErrorsNode->addChild($oErrorNode);
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/CopyFiles.php | PHP | gpl3 | 11,151 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base XML command handler
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
/**
* Handle GetFiles command
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_GetFiles extends CKFinder_Connector_CommandHandler_XmlCommandHandlerBase
{
/**
* Command name
*
* @access private
* @var string
*/
private $command = "GetFiles";
/**
* handle request and build XML
* @access protected
*
*/
protected function buildXml()
{
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FILE_VIEW)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
// Map the virtual path to the local server path.
$_sServerDir = $this->_currentFolder->getServerPath();
// Create the "Files" node.
$oFilesNode = new Ckfinder_Connector_Utils_XmlNode("Files");
$this->_connectorNode->addChild($oFilesNode);
if (!is_dir($_sServerDir)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_FOLDER_NOT_FOUND);
}
$files = array();
$thumbFiles = array();
if ($dh = @opendir($_sServerDir)) {
while (($file = readdir($dh)) !== false) {
if ($file != "." && $file != ".." && !is_dir($_sServerDir . $file)) {
$files[] = $file;
}
}
closedir($dh);
} else {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED);
}
$resourceTypeInfo = $this->_currentFolder->getResourceTypeConfig();
if (sizeof($files)>0) {
$_thumbnailsConfig = $_config->getThumbnailsConfig();
$_thumbServerPath = '';
$_showThumbs = (!empty($_GET['showThumbs']) && $_GET['showThumbs'] == 1);
if ($_thumbnailsConfig->getIsEnabled() && ($_thumbnailsConfig->getDirectAccess() || $_showThumbs)) {
$_thumbServerPath = $this->_currentFolder->getThumbsServerPath();
}
natcasesort($files);
$i=0;
foreach ($files as $file) {
$filemtime = @filemtime($_sServerDir . $file);
//otherwise file doesn't exist or we can't get it's filename properly
if ($filemtime !== false) {
$filename = CKFinder_Connector_Utils_Misc::mbBasename($file);
if (!$resourceTypeInfo->checkExtension($filename, false)) {
continue;
}
if ($resourceTypeInfo->checkIsHiddenFile($filename)) {
continue;
}
$oFileNode[$i] = new Ckfinder_Connector_Utils_XmlNode("File");
$oFilesNode->addChild($oFileNode[$i]);
$oFileNode[$i]->addAttribute("name", CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding(CKFinder_Connector_Utils_Misc::mbBasename($file)));
$oFileNode[$i]->addAttribute("date", @date("YmdHi", $filemtime));
if (!empty($_thumbServerPath) && preg_match(CKFINDER_REGEX_IMAGES_EXT, $filename)) {
if (file_exists($_thumbServerPath . $filename)) {
$oFileNode[$i]->addAttribute("thumb", $filename);
}
elseif ($_showThumbs) {
$oFileNode[$i]->addAttribute("thumb", "?" . $filename);
}
}
$size = filesize($_sServerDir . $file);
if ($size && $size<1024) {
$size = 1;
}
else {
$size = (int)round($size / 1024);
}
$oFileNode[$i]->addAttribute("size", $size);
$i++;
}
}
}
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/GetFiles.php | PHP | gpl3 | 4,868 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Base commands handler
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
* @abstract
*
*/
class CKFinder_Connector_CommandHandler_CommandHandlerBase
{
/**
* CKFinder_Connector_Core_Connector object
*
* @access protected
* @var CKFinder_Connector_Core_Connector
*/
protected $_connector;
/**
* CKFinder_Connector_Core_FolderHandler object
*
* @access protected
* @var CKFinder_Connector_Core_FolderHandler
*/
protected $_currentFolder;
/**
* Error handler object
*
* @access protected
* @var CKFinder_Connector_ErrorHandler_Base|CKFinder_Connector_ErrorHandler_FileUpload|CKFinder_Connector_ErrorHandler_Http
*/
protected $_errorHandler;
function __construct()
{
$this->_currentFolder =& CKFinder_Connector_Core_Factory::getInstance("Core_FolderHandler");
$this->_connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector");
$this->_errorHandler =& $this->_connector->getErrorHandler();
}
/**
* Get Folder Handler
*
* @access public
* @return CKFinder_Connector_Core_FolderHandler
*/
public function getFolderHandler()
{
if (is_null($this->_currentFolder)) {
$this->_currentFolder =& CKFinder_Connector_Core_Factory::getInstance("Core_FolderHandler");
}
return $this->_currentFolder;
}
/**
* Check whether Connector is enabled
* @access protected
*
*/
protected function checkConnector()
{
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
if (!$_config->getIsEnabled()) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_CONNECTOR_DISABLED);
}
}
/**
* Check request
* @access protected
*
*/
protected function checkRequest()
{
if (preg_match(CKFINDER_REGEX_INVALID_PATH, $this->_currentFolder->getClientPath())) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_NAME);
}
$_resourceTypeConfig = $this->_currentFolder->getResourceTypeConfig();
if (is_null($_resourceTypeConfig)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_TYPE);
}
$_clientPath = $this->_currentFolder->getClientPath();
$_clientPathParts = explode("/", trim($_clientPath, "/"));
if ($_clientPathParts) {
foreach ($_clientPathParts as $_part) {
if ($_resourceTypeConfig->checkIsHiddenFolder($_part)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
}
}
if (!is_dir($this->_currentFolder->getServerPath())) {
if ($_clientPath == "/") {
if (!CKFinder_Connector_Utils_FileSystem::createDirectoryRecursively($this->_currentFolder->getServerPath())) {
/**
* @todo handle error
*/
}
}
else {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_FOLDER_NOT_FOUND);
}
}
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/CommandHandlerBase.php | PHP | gpl3 | 3,982 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base command handler
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/CommandHandlerBase.php";
/**
* Include xml utils
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/Xml.php";
/**
* Base XML commands handler
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
* @abstract
*
*/
abstract class CKFinder_Connector_CommandHandler_XmlCommandHandlerBase extends CKFinder_Connector_CommandHandler_CommandHandlerBase
{
/**
* Connector node - Ckfinder_Connector_Utils_XmlNode object
*
* @var Ckfinder_Connector_Utils_XmlNode
* @access protected
*/
protected $_connectorNode;
/**
* send response
* @access public
*
*/
public function sendResponse()
{
$xml =& CKFinder_Connector_Core_Factory::getInstance("Core_Xml");
$this->_connectorNode =& $xml->getConnectorNode();
$this->checkConnector();
if ($this->mustCheckRequest()) {
$this->checkRequest();
}
$resourceTypeName = $this->_currentFolder->getResourceTypeName();
if (!empty($resourceTypeName)) {
$this->_connectorNode->addAttribute("resourceType", $this->_currentFolder->getResourceTypeName());
}
if ($this->mustAddCurrentFolderNode()) {
$_currentFolder = new Ckfinder_Connector_Utils_XmlNode("CurrentFolder");
$this->_connectorNode->addChild($_currentFolder);
$_currentFolder->addAttribute("path", CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding($this->_currentFolder->getClientPath()));
$this->_errorHandler->setCatchAllErros(true);
$_url = $this->_currentFolder->getUrl();
$_currentFolder->addAttribute("url", is_null($_url) ? "" : CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding($_url));
$this->_errorHandler->setCatchAllErros(false);
$_currentFolder->addAttribute("acl", $this->_currentFolder->getAclMask());
}
$this->buildXml();
$_oErrorNode =& $xml->getErrorNode();
$_oErrorNode->addAttribute("number", "0");
echo $this->_connectorNode->asXML();
exit;
}
/**
* Must check request?
*
* @return boolean
* @access protected
*/
protected function mustCheckRequest()
{
return true;
}
/**
* Must add CurrentFolder node?
*
* @return boolean
* @access protected
*/
protected function mustAddCurrentFolderNode()
{
return true;
}
/**
* @access protected
* @abstract
* @return void
*/
abstract protected function buildXml();
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/XmlCommandHandlerBase.php | PHP | gpl3 | 3,406 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Include file upload command handler
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/FileUpload.php";
/**
* Handle QuickUpload command
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_QuickUpload extends CKFinder_Connector_CommandHandler_FileUpload
{
/**
* Command name
*
* @access protected
* @var string
*/
protected $command = "QuickUpload";
function sendResponse()
{
$oRegistry =& CKFinder_Connector_Core_Factory::getInstance("Core_Registry");
$oRegistry->set("FileUpload_url", $this->_currentFolder->getUrl());
return parent::sendResponse();
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/QuickUpload.php | PHP | gpl3 | 1,353 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base XML command handler
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
/**
* Handle Init command
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_Init extends CKFinder_Connector_CommandHandler_XmlCommandHandlerBase
{
/**
* Command name
*
* @access private
* @var string
*/
private $command = "Init";
protected function mustCheckRequest()
{
return false;
}
/**
* Must add CurrentFolder node?
*
* @return boolean
* @access protected
*/
protected function mustAddCurrentFolderNode()
{
return false;
}
/**
* handle request and build XML
* @access protected
*
*/
protected function buildXml()
{
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
// Create the "ConnectorInfo" node.
$_oConnInfo = new Ckfinder_Connector_Utils_XmlNode("ConnectorInfo");
$this->_connectorNode->addChild($_oConnInfo);
$_oConnInfo->addAttribute("enabled", $_config->getIsEnabled() ? "true" : "false");
if (!$_config->getIsEnabled()) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_CONNECTOR_DISABLED);
}
$_ln = '' ;
$_lc = $_config->getLicenseKey() . ' ' ;
if ( 1 == ( strpos( CKFINDER_CHARS, $_lc[0] ) % 5 ) )
$_ln = $_config->getLicenseName() ;
$_oConnInfo->addAttribute("s", $_ln);
$_oConnInfo->addAttribute("c", trim( $_lc[11] . $_lc[0] . $_lc [8] . $_lc[12] . $_lc[26] . $_lc[2] . $_lc[3] . $_lc[25] . $_lc[1] ));
$_thumbnailsConfig = $_config->getThumbnailsConfig();
$_thumbnailsEnabled = $_thumbnailsConfig->getIsEnabled() ;
$_oConnInfo->addAttribute("thumbsEnabled", $_thumbnailsEnabled ? "true" : "false");
if ($_thumbnailsEnabled) {
$_oConnInfo->addAttribute("thumbsUrl", $_thumbnailsConfig->getUrl());
$_oConnInfo->addAttribute("thumbsDirectAccess", $_thumbnailsConfig->getDirectAccess() ? "true" : "false" );
}
$_imagesConfig = $_config->getImagesConfig();
$_oConnInfo->addAttribute("imgWidth", $_imagesConfig->getMaxWidth());
$_oConnInfo->addAttribute("imgHeight", $_imagesConfig->getMaxHeight());
// Create the "ResourceTypes" node.
$_oResourceTypes = new Ckfinder_Connector_Utils_XmlNode("ResourceTypes");
$this->_connectorNode->addChild($_oResourceTypes);
// Create the "PluginsInfo" node.
$_oPluginsInfo = new Ckfinder_Connector_Utils_XmlNode("PluginsInfo");
$this->_connectorNode->addChild($_oPluginsInfo);
// Load the resource types in an array.
$_aTypes = $_config->getDefaultResourceTypes();
if (!sizeof($_aTypes)) {
$_aTypes = $_config->getResourceTypeNames();
}
$_aTypesSize = sizeof($_aTypes);
if ($_aTypesSize) {
for ($i = 0; $i < $_aTypesSize; $i++)
{
$_resourceTypeName = $_aTypes[$i];
$_acl = $_config->getAccessControlConfig();
$_aclMask = $_acl->getComputedMask($_resourceTypeName, "/");
if ( ($_aclMask & CKFINDER_CONNECTOR_ACL_FOLDER_VIEW) != CKFINDER_CONNECTOR_ACL_FOLDER_VIEW ) {
continue;
}
if (!isset($_GET['type']) || $_GET['type'] === $_resourceTypeName) {
//print $_resourceTypeName;
$_oTypeInfo = $_config->getResourceTypeConfig($_resourceTypeName);
//print_r($_oTypeInfo);
$_oResourceType[$i] = new Ckfinder_Connector_Utils_XmlNode("ResourceType");
$_oResourceTypes->addChild($_oResourceType[$i]);
$_oResourceType[$i]->addAttribute("name", $_resourceTypeName);
$_oResourceType[$i]->addAttribute("url", $_oTypeInfo->getUrl());
$_oResourceType[$i]->addAttribute("allowedExtensions", implode(",", $_oTypeInfo->getAllowedExtensions()));
$_oResourceType[$i]->addAttribute("deniedExtensions", implode(",", $_oTypeInfo->getDeniedExtensions()));
$_oResourceType[$i]->addAttribute("hash", substr(md5($_oTypeInfo->getDirectory()), 0, 16));
$_oResourceType[$i]->addAttribute("hasChildren", CKFinder_Connector_Utils_FileSystem::hasChildren($_oTypeInfo->getDirectory()) ? "true" : "false");
$_oResourceType[$i]->addAttribute("acl", $_aclMask);
}
}
}
$config = $GLOBALS['config'];
if (!empty($config['Plugins']) && is_array($config['Plugins']) ) {
$_oConnInfo->addAttribute("plugins", implode(",", $config['Plugins']));
}
CKFinder_Connector_Core_Hooks::run('InitCommand', array(&$this->_connectorNode));
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/Init.php | PHP | gpl3 | 5,769 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Handle Thumbnail command (create thumbnail if doesn't exist)
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_Thumbnail extends CKFinder_Connector_CommandHandler_CommandHandlerBase
{
/**
* Command name
*
* @access private
* @var string
*/
private $command = "Thumbnail";
/**
* handle request and send response
* @access public
*
*/
public function sendResponse()
{
// Get rid of BOM markers
if (ob_get_level()) {
while (@ob_end_clean() && ob_get_level());
}
header("Content-Encoding: none");
$this->checkConnector();
$this->checkRequest();
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$_thumbnails = $_config->getThumbnailsConfig();
if (!$_thumbnails->getIsEnabled()) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_THUMBNAILS_DISABLED);
}
if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FILE_VIEW)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
if (!isset($_GET["FileName"])) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
$fileName = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding($_GET["FileName"]);
$_resourceTypeInfo = $this->_currentFolder->getResourceTypeConfig();
if (!CKFinder_Connector_Utils_FileSystem::checkFileName($fileName)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
$sourceFilePath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getServerPath(), $fileName);
if ($_resourceTypeInfo->checkIsHiddenFile($fileName) || !file_exists($sourceFilePath)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_FILE_NOT_FOUND);
}
$thumbFilePath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getThumbsServerPath(), $fileName);
// If the thumbnail file doesn't exists, create it now.
if (!file_exists($thumbFilePath)) {
if(!$this->createThumb($sourceFilePath, $thumbFilePath, $_thumbnails->getMaxWidth(), $_thumbnails->getMaxHeight(), $_thumbnails->getQuality(), true, $_thumbnails->getBmpSupported())) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED);
}
}
$size = filesize($thumbFilePath);
$sourceImageAttr = getimagesize($thumbFilePath);
$mime = $sourceImageAttr["mime"];
$rtime = isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])?@strtotime($_SERVER["HTTP_IF_MODIFIED_SINCE"]):0;
$mtime = filemtime($thumbFilePath);
$etag = dechex($mtime) . "-" . dechex($size);
$is304 = false;
if (isset($_SERVER["HTTP_IF_NONE_MATCH"]) && $_SERVER["HTTP_IF_NONE_MATCH"] === $etag) {
$is304 = true;
}
else if($rtime == $mtime) {
$is304 = true;
}
if ($is304) {
header("HTTP/1.0 304 Not Modified");
exit();
}
//header("Cache-Control: cache, must-revalidate");
//header("Pragma: public");
//header("Expires: 0");
header('Cache-control: public');
header('Etag: ' . $etag);
header("Content-type: " . $mime . "; name=\"" . CKFinder_Connector_Utils_Misc::mbBasename($thumbFilePath) . "\"");
header("Last-Modified: ".gmdate('D, d M Y H:i:s', $mtime) . " GMT");
//header("Content-type: application/octet-stream; name=\"{$file}\"");
//header("Content-Disposition: attachment; filename=\"{$file}\"");
header("Content-Length: ".$size);
readfile($thumbFilePath);
exit;
}
/**
* Create thumbnail
*
* @param string $sourceFile
* @param string $targetFile
* @param int $maxWidth
* @param int $maxHeight
* @param boolean $preserverAspectRatio
* @param boolean $bmpSupported
* @return boolean
* @static
* @access public
*/
public static function createThumb($sourceFile, $targetFile, $maxWidth, $maxHeight, $quality, $preserverAspectRatio, $bmpSupported = false)
{
$sourceImageAttr = @getimagesize($sourceFile);
if ($sourceImageAttr === false) {
return false;
}
$sourceImageWidth = isset($sourceImageAttr[0]) ? $sourceImageAttr[0] : 0;
$sourceImageHeight = isset($sourceImageAttr[1]) ? $sourceImageAttr[1] : 0;
$sourceImageMime = isset($sourceImageAttr["mime"]) ? $sourceImageAttr["mime"] : "";
$sourceImageBits = isset($sourceImageAttr["bits"]) ? $sourceImageAttr["bits"] : 8;
$sourceImageChannels = isset($sourceImageAttr["channels"]) ? $sourceImageAttr["channels"] : 3;
if (!$sourceImageWidth || !$sourceImageHeight || !$sourceImageMime) {
return false;
}
$iFinalWidth = $maxWidth == 0 ? $sourceImageWidth : $maxWidth;
$iFinalHeight = $maxHeight == 0 ? $sourceImageHeight : $maxHeight;
if ($sourceImageWidth <= $iFinalWidth && $sourceImageHeight <= $iFinalHeight) {
if ($sourceFile != $targetFile) {
copy($sourceFile, $targetFile);
}
return true;
}
if ($preserverAspectRatio)
{
// Gets the best size for aspect ratio resampling
$oSize = CKFinder_Connector_CommandHandler_Thumbnail::GetAspectRatioSize($iFinalWidth, $iFinalHeight, $sourceImageWidth, $sourceImageHeight );
}
else {
$oSize = array('Width' => $iFinalWidth, 'Height' => $iFinalHeight);
}
CKFinder_Connector_Utils_Misc::setMemoryForImage($sourceImageWidth, $sourceImageHeight, $sourceImageBits, $sourceImageChannels);
switch ($sourceImageAttr['mime'])
{
case 'image/gif':
{
if (@imagetypes() & IMG_GIF) {
$oImage = @imagecreatefromgif($sourceFile);
} else {
$ermsg = 'GIF images are not supported';
}
}
break;
case 'image/jpeg':
{
if (@imagetypes() & IMG_JPG) {
$oImage = @imagecreatefromjpeg($sourceFile) ;
} else {
$ermsg = 'JPEG images are not supported';
}
}
break;
case 'image/png':
{
if (@imagetypes() & IMG_PNG) {
$oImage = @imagecreatefrompng($sourceFile) ;
} else {
$ermsg = 'PNG images are not supported';
}
}
break;
case 'image/wbmp':
{
if (@imagetypes() & IMG_WBMP) {
$oImage = @imagecreatefromwbmp($sourceFile);
} else {
$ermsg = 'WBMP images are not supported';
}
}
break;
case 'image/bmp':
{
/*
* This is sad that PHP doesn't support bitmaps.
* Anyway, we will use our custom function at least to display thumbnails.
* We'll not resize images this way (if $sourceFile === $targetFile),
* because user defined imagecreatefrombmp and imagecreatebmp are horribly slow
*/
if ($bmpSupported && (@imagetypes() & IMG_JPG) && $sourceFile != $targetFile) {
$oImage = CKFinder_Connector_Utils_Misc::imageCreateFromBmp($sourceFile);
} else {
$ermsg = 'BMP/JPG images are not supported';
}
}
break;
default:
$ermsg = $sourceImageAttr['mime'].' images are not supported';
break;
}
if (isset($ermsg) || false === $oImage) {
return false;
}
$oThumbImage = imagecreatetruecolor($oSize["Width"], $oSize["Height"]);
if ($sourceImageAttr['mime'] == 'image/png')
{
$bg = imagecolorallocatealpha($oThumbImage, 255, 255, 255, 127); // (PHP 4 >= 4.3.2, PHP 5)
imagefill($oThumbImage, 0, 0 , $bg);
imagealphablending($oThumbImage, false);
imagesavealpha($oThumbImage, true);
}
//imagecopyresampled($oThumbImage, $oImage, 0, 0, 0, 0, $oSize["Width"], $oSize["Height"], $sourceImageWidth, $sourceImageHeight);
CKFinder_Connector_Utils_Misc::fastImageCopyResampled($oThumbImage, $oImage, 0, 0, 0, 0, $oSize["Width"], $oSize["Height"], $sourceImageWidth, $sourceImageHeight, (int)max(floor($quality/20), 6));
switch ($sourceImageAttr['mime'])
{
case 'image/gif':
imagegif($oThumbImage, $targetFile);
break;
case 'image/jpeg':
case 'image/bmp':
imagejpeg($oThumbImage, $targetFile, $quality);
break;
case 'image/png':
imagepng($oThumbImage, $targetFile);
break;
case 'image/wbmp':
imagewbmp($oThumbImage, $targetFile);
break;
}
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
if (file_exists($targetFile) && ($perms = $_config->getChmodFiles())) {
$oldUmask = umask(0);
chmod($targetFile, $perms);
umask($oldUmask);
}
imageDestroy($oImage);
imageDestroy($oThumbImage);
return true;
}
/**
* Return aspect ratio size, returns associative array:
* <pre>
* Array
* (
* [Width] => 80
* [Heigth] => 120
* )
* </pre>
*
* @param int $maxWidth
* @param int $maxHeight
* @param int $actualWidth
* @param int $actualHeight
* @return array
* @static
* @access public
*/
public static function getAspectRatioSize($maxWidth, $maxHeight, $actualWidth, $actualHeight)
{
$oSize = array("Width"=>$maxWidth, "Height"=>$maxHeight);
// Calculates the X and Y resize factors
$iFactorX = (float)$maxWidth / (float)$actualWidth;
$iFactorY = (float)$maxHeight / (float)$actualHeight;
// If some dimension have to be scaled
if ($iFactorX != 1 || $iFactorY != 1)
{
// Uses the lower Factor to scale the oposite size
if ($iFactorX < $iFactorY) {
$oSize["Height"] = (int)round($actualHeight * $iFactorX);
}
else if ($iFactorX > $iFactorY) {
$oSize["Width"] = (int)round($actualWidth * $iFactorY);
}
}
if ($oSize["Height"] <= 0) {
$oSize["Height"] = 1;
}
if ($oSize["Width"] <= 0) {
$oSize["Width"] = 1;
}
// Returns the Size
return $oSize;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/Thumbnail.php | PHP | gpl3 | 12,306 |
<?php
/**
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Handle FileUpload command
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_FileUpload extends CKFinder_Connector_CommandHandler_CommandHandlerBase
{
/**
* Command name
*
* @access protected
* @var string
*/
protected $command = "FileUpload";
/**
* send response (save uploaded file, resize if required)
* @access public
*
*/
public function sendResponse()
{
$iErrorNumber = CKFINDER_CONNECTOR_ERROR_NONE;
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$oRegistry =& CKFinder_Connector_Core_Factory::getInstance("Core_Registry");
$oRegistry->set("FileUpload_fileName", "unknown file");
$uploadedFile = array_shift($_FILES);
if (!isset($uploadedFile['name'])) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UPLOADED_INVALID);
}
$sUnsafeFileName = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding(CKFinder_Connector_Utils_Misc::mbBasename($uploadedFile['name']));
$sFileName = str_replace(array(":", "*", "?", "|", "/"), "_", $sUnsafeFileName);
if ($_config->forceAscii()) {
$sFileName = CKFinder_Connector_Utils_FileSystem::convertToAscii($sFileName);
}
if ($sFileName != $sUnsafeFileName) {
$iErrorNumber = CKFINDER_CONNECTOR_ERROR_UPLOADED_INVALID_NAME_RENAMED;
}
$sExtension=CKFinder_Connector_Utils_FileSystem::getExtension($sFileName);
$sFileName=date("Ymd")."_".date("His").".".$sExtension;
$oRegistry->set("FileUpload_fileName", $sFileName);
$this->checkConnector();
$this->checkRequest();
if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FILE_UPLOAD)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
$_resourceTypeConfig = $this->_currentFolder->getResourceTypeConfig();
if (!CKFinder_Connector_Utils_FileSystem::checkFileName($sFileName) || $_resourceTypeConfig->checkIsHiddenFile($sFileName)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_NAME);
}
$resourceTypeInfo = $this->_currentFolder->getResourceTypeConfig();
if (!$resourceTypeInfo->checkExtension($sFileName)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_EXTENSION);
}
$sFileNameOrginal = $sFileName;
$oRegistry->set("FileUpload_fileName", $sFileName);
$oRegistry->set("FileUpload_url", $this->_currentFolder->getUrl());
$maxSize = $resourceTypeInfo->getMaxSize();
if (!$_config->checkSizeAfterScaling() && $maxSize && $uploadedFile['size']>$maxSize) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UPLOADED_TOO_BIG);
}
$htmlExtensions = $_config->getHtmlExtensions();
$sExtension = CKFinder_Connector_Utils_FileSystem::getExtension($sFileNameOrginal);
if ($htmlExtensions
&& !CKFinder_Connector_Utils_Misc::inArrayCaseInsensitive($sExtension, $htmlExtensions)
&& ($detectHtml = CKFinder_Connector_Utils_FileSystem::detectHtml($uploadedFile['tmp_name'])) === true ) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UPLOADED_WRONG_HTML_FILE);
}
$sExtension = CKFinder_Connector_Utils_FileSystem::getExtension($sFileNameOrginal);
$secureImageUploads = $_config->getSecureImageUploads();
if ($secureImageUploads
&& ($isImageValid = CKFinder_Connector_Utils_FileSystem::isImageValid($uploadedFile['tmp_name'], $sExtension)) === false ) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UPLOADED_CORRUPT);
}
switch ($uploadedFile['error']) {
case UPLOAD_ERR_OK:
break;
case UPLOAD_ERR_INI_SIZE:
case UPLOAD_ERR_FORM_SIZE:
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UPLOADED_TOO_BIG);
break;
case UPLOAD_ERR_PARTIAL:
case UPLOAD_ERR_NO_FILE:
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UPLOADED_CORRUPT);
break;
case UPLOAD_ERR_NO_TMP_DIR:
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UPLOADED_NO_TMP_DIR);
break;
case UPLOAD_ERR_CANT_WRITE:
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED);
break;
case UPLOAD_ERR_EXTENSION:
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED);
break;
}
$sServerDir = $this->_currentFolder->getServerPath();
$iCounter = 0;
while (true)
{
$sFilePath = CKFinder_Connector_Utils_FileSystem::combinePaths($sServerDir, $sFileName);
if (file_exists($sFilePath)) {
$iCounter++;
$sFileName =
CKFinder_Connector_Utils_FileSystem::getFileNameWithoutExtension($sFileNameOrginal) .
"(" . $iCounter . ")" . "." .
CKFinder_Connector_Utils_FileSystem::getExtension($sFileNameOrginal);
$oRegistry->set("FileUpload_fileName", $sFileName);
$iErrorNumber = CKFINDER_CONNECTOR_ERROR_UPLOADED_FILE_RENAMED;
} else {
if (false === move_uploaded_file($uploadedFile['tmp_name'], $sFilePath)) {
$iErrorNumber = CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED;
}
else {
if (isset($detectHtml) && $detectHtml === -1 && CKFinder_Connector_Utils_FileSystem::detectHtml($sFilePath) === true) {
@unlink($sFilePath);
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UPLOADED_WRONG_HTML_FILE);
}
else if (isset($isImageValid) && $isImageValid === -1 && CKFinder_Connector_Utils_FileSystem::isImageValid($sFilePath, $sExtension) === false) {
@unlink($sFilePath);
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UPLOADED_CORRUPT);
}
}
if (is_file($sFilePath) && ($perms = $_config->getChmodFiles())) {
$oldumask = umask(0);
chmod($sFilePath, $perms);
umask($oldumask);
}
break;
}
}
if (!$_config->checkSizeAfterScaling()) {
$this->_errorHandler->throwError($iErrorNumber, true, false);
}
//resize image if required
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/Thumbnail.php";
$_imagesConfig = $_config->getImagesConfig();
if ($_imagesConfig->getMaxWidth()>0 && $_imagesConfig->getMaxHeight()>0 && $_imagesConfig->getQuality()>0) {
CKFinder_Connector_CommandHandler_Thumbnail::createThumb($sFilePath, $sFilePath, $_imagesConfig->getMaxWidth(), $_imagesConfig->getMaxHeight(), $_imagesConfig->getQuality(), true) ;
}
if ($_config->checkSizeAfterScaling()) {
//check file size after scaling, attempt to delete if too big
clearstatcache();
if ($maxSize && filesize($sFilePath)>$maxSize) {
@unlink($sFilePath);
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UPLOADED_TOO_BIG);
}
else {
$this->_errorHandler->throwError($iErrorNumber, true, false);
}
}
CKFinder_Connector_Core_Hooks::run('AfterFileUpload', array(&$this->_currentFolder, &$uploadedFile, &$sFilePath));
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/FileUpload.php | PHP | gpl3 | 8,705 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base XML command handler
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
/**
* Handle RenameFolder command
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_RenameFolder extends CKFinder_Connector_CommandHandler_XmlCommandHandlerBase
{
/**
* Command name
*
* @access private
* @var string
*/
private $command = "RenameFolder";
/**
* handle request and build XML
* @access protected
*
*/
protected function buildXml()
{
if (empty($_POST['CKFinderCommand']) || $_POST['CKFinderCommand'] != 'true') {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FOLDER_RENAME)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
if (!isset($_GET["NewFolderName"])) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_NAME);
}
$newFolderName = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding($_GET["NewFolderName"]);
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
if ($_config->forceAscii()) {
$newFolderName = CKFinder_Connector_Utils_FileSystem::convertToAscii($newFolderName);
}
$resourceTypeInfo = $this->_currentFolder->getResourceTypeConfig();
if (!CKFinder_Connector_Utils_FileSystem::checkFileName($newFolderName) || $resourceTypeInfo->checkIsHiddenFolder($newFolderName)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_NAME);
}
// The root folder cannot be deleted.
if ($this->_currentFolder->getClientPath() == "/") {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
$oldFolderPath = $this->_currentFolder->getServerPath();
$bMoved = false;
if (!is_dir($oldFolderPath)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
//let's calculate new folder name
$newFolderPath = dirname($oldFolderPath).DIRECTORY_SEPARATOR.$newFolderName.DIRECTORY_SEPARATOR;
if (file_exists(rtrim($newFolderPath, DIRECTORY_SEPARATOR))) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ALREADY_EXIST);
}
$bMoved = @rename($oldFolderPath, $newFolderPath);
if (!$bMoved) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED);
} else {
$newThumbsServerPath = dirname($this->_currentFolder->getThumbsServerPath()) . '/' . $newFolderName . '/';
if (!@rename($this->_currentFolder->getThumbsServerPath(), $newThumbsServerPath)) {
CKFinder_Connector_Utils_FileSystem::unlink($this->_currentFolder->getThumbsServerPath());
}
}
$newFolderPath = preg_replace(",[^/]+/?$,", $newFolderName, $this->_currentFolder->getClientPath()) . '/';
$newFolderUrl = $resourceTypeInfo->getUrl() . ltrim($newFolderPath, '/');
$oRenameNode = new Ckfinder_Connector_Utils_XmlNode("RenamedFolder");
$this->_connectorNode->addChild($oRenameNode);
$oRenameNode->addAttribute("newName", CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding($newFolderName));
$oRenameNode->addAttribute("newPath", CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding($newFolderPath));
$oRenameNode->addAttribute("newUrl", CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding($newFolderUrl));
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/RenameFolder.php | PHP | gpl3 | 4,490 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base XML command handler
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
/**
* Handle GetFolders command
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_GetFolders extends CKFinder_Connector_CommandHandler_XmlCommandHandlerBase
{
/**
* Command name
*
* @access private
* @var string
*/
private $command = "GetFolders";
/**
* handle request and build XML
* @access protected
*
*/
protected function buildXml()
{
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FOLDER_VIEW)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
// Map the virtual path to the local server path.
$_sServerDir = $this->_currentFolder->getServerPath();
if (!is_dir($_sServerDir)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_FOLDER_NOT_FOUND);
}
// Create the "Folders" node.
$oFoldersNode = new Ckfinder_Connector_Utils_XmlNode("Folders");
$this->_connectorNode->addChild($oFoldersNode);
$files = array();
if ($dh = @opendir($_sServerDir)) {
while (($file = readdir($dh)) !== false) {
if ($file != "." && $file != ".." && is_dir($_sServerDir . $file)) {
$files[] = $file;
}
}
closedir($dh);
} else {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED);
}
$resourceTypeInfo = $this->_currentFolder->getResourceTypeConfig();
if (sizeof($files)>0) {
natcasesort($files);
$i=0;
foreach ($files as $file) {
$oAcl = $_config->getAccessControlConfig();
$aclMask = $oAcl->getComputedMask($this->_currentFolder->getResourceTypeName(), $this->_currentFolder->getClientPath() . $file . "/");
if (($aclMask & CKFINDER_CONNECTOR_ACL_FOLDER_VIEW) != CKFINDER_CONNECTOR_ACL_FOLDER_VIEW) {
continue;
}
if ($resourceTypeInfo->checkIsHiddenFolder($file)) {
continue;
}
// Create the "Folder" node.
$oFolderNode[$i] = new Ckfinder_Connector_Utils_XmlNode("Folder");
$oFoldersNode->addChild($oFolderNode[$i]);
$oFolderNode[$i]->addAttribute("name", CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding($file));
$oFolderNode[$i]->addAttribute("hasChildren", CKFinder_Connector_Utils_FileSystem::hasChildren($_sServerDir . $file) ? "true" : "false");
$oFolderNode[$i]->addAttribute("acl", $aclMask);
$i++;
}
}
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/GetFolders.php | PHP | gpl3 | 3,686 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base XML command handler
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
/**
* Handle DeleteFile command
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_DeleteFile extends CKFinder_Connector_CommandHandler_XmlCommandHandlerBase
{
/**
* Command name
*
* @access private
* @var string
*/
private $command = "DeleteFile";
/**
* handle request and build XML
* @access protected
*
*/
protected function buildXml()
{
if (empty($_POST['CKFinderCommand']) || $_POST['CKFinderCommand'] != 'true') {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FILE_DELETE)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
if (!isset($_GET["FileName"])) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_NAME);
}
$fileName = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding($_GET["FileName"]);
$_resourceTypeInfo = $this->_currentFolder->getResourceTypeConfig();
if (!CKFinder_Connector_Utils_FileSystem::checkFileName($fileName) || $_resourceTypeInfo->checkIsHiddenFile($fileName)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
if (!$_resourceTypeInfo->checkExtension($fileName, false)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
$filePath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getServerPath(), $fileName);
$bDeleted = false;
if (!file_exists($filePath)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_FILE_NOT_FOUND);
}
if (!@unlink($filePath)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED);
} else {
$bDeleted = true;
}
if ($bDeleted) {
$thumbPath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getThumbsServerPath(), $fileName);
@unlink($thumbPath);
$oDeleteFileNode = new Ckfinder_Connector_Utils_XmlNode("DeletedFile");
$this->_connectorNode->addChild($oDeleteFileNode);
$oDeleteFileNode->addAttribute("name", $fileName);
}
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/DeleteFile.php | PHP | gpl3 | 3,268 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Handle DownloadFile command
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_DownloadFile extends CKFinder_Connector_CommandHandler_CommandHandlerBase
{
/**
* Command name
*
* @access private
* @var string
*/
private $command = "DownloadFile";
/**
* send response (file)
* @access public
*
*/
public function sendResponse()
{
if (!function_exists('ob_list_handlers') || ob_list_handlers()) {
@ob_end_clean();
}
header("Content-Encoding: none");
$this->checkConnector();
$this->checkRequest();
if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FILE_VIEW)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
$fileName = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding($_GET["FileName"]);
$_resourceTypeInfo = $this->_currentFolder->getResourceTypeConfig();
if (!CKFinder_Connector_Utils_FileSystem::checkFileName($fileName)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
if (!$_resourceTypeInfo->checkExtension($fileName, false)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
$filePath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getServerPath(), $fileName);
if ($_resourceTypeInfo->checkIsHiddenFile($fileName) || !file_exists($filePath) || !is_file($filePath)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_FILE_NOT_FOUND);
}
$fileName = CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding($fileName);
header("Cache-Control: cache, must-revalidate");
header("Pragma: public");
header("Expires: 0");
if (!empty($_GET['format']) && $_GET['format'] == 'text') {
header("Content-Type: text/plain; charset=utf-8");
}
else {
header("Content-type: application/octet-stream; name=\"" . $fileName . "\"");
header("Content-Disposition: attachment; filename=\"" . str_replace("\"", "\\\"", $fileName). "\"");
}
header("Content-Length: " . filesize($filePath));
CKFinder_Connector_Utils_FileSystem::readfileChunked($filePath);
exit;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/DownloadFile.php | PHP | gpl3 | 3,147 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base XML command handler
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
/**
* Handle MoveFiles command
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_MoveFiles extends CKFinder_Connector_CommandHandler_XmlCommandHandlerBase
{
/**
* Command name
*
* @access private
* @var string
*/
private $command = "MoveFiles";
/**
* handle request and build XML
* @access protected
*
*/
protected function buildXml()
{
if (empty($_POST['CKFinderCommand']) || $_POST['CKFinderCommand'] != 'true') {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
$clientPath = $this->_currentFolder->getClientPath();
$sServerDir = $this->_currentFolder->getServerPath();
$currentResourceTypeConfig = $this->_currentFolder->getResourceTypeConfig();
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$_aclConfig = $_config->getAccessControlConfig();
$aclMasks = array();
$_resourceTypeConfig = array();
if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FILE_RENAME | CKFINDER_CONNECTOR_ACL_FILE_UPLOAD | CKFINDER_CONNECTOR_ACL_FILE_DELETE)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
// Create the "Errors" node.
$oErrorsNode = new CKFinder_Connector_Utils_XmlNode("Errors");
$errorCode = CKFINDER_CONNECTOR_ERROR_NONE;
$moved = 0;
$movedAll = 0;
if (!empty($_POST['moved'])) {
$movedAll = intval($_POST['moved']);
}
$checkedPaths = array();
$oMoveFilesNode = new Ckfinder_Connector_Utils_XmlNode("MoveFiles");
if (!empty($_POST['files']) && is_array($_POST['files'])) {
foreach ($_POST['files'] as $index => $arr) {
if (empty($arr['name'])) {
continue;
}
if (!isset($arr['name'], $arr['type'], $arr['folder'])) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
// file name
$name = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding($arr['name']);
// resource type
$type = $arr['type'];
// client path
$path = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding($arr['folder']);
// options
$options = (!empty($arr['options'])) ? $arr['options'] : '';
$destinationFilePath = $sServerDir.$name;
// check #1 (path)
if (!CKFinder_Connector_Utils_FileSystem::checkFileName($name) || preg_match(CKFINDER_REGEX_INVALID_PATH, $path)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
// get resource type config for current file
if (!isset($_resourceTypeConfig[$type])) {
$_resourceTypeConfig[$type] = $_config->getResourceTypeConfig($type);
}
// check #2 (resource type)
if (is_null($_resourceTypeConfig[$type])) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
// check #3 (extension)
if (!$_resourceTypeConfig[$type]->checkExtension($name, false)) {
$errorCode = CKFINDER_CONNECTOR_ERROR_INVALID_EXTENSION;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
// check #4 (extension) - when moving to another resource type, double check extension
if ($currentResourceTypeConfig->getName() != $type) {
if (!$currentResourceTypeConfig->checkExtension($name, false)) {
$errorCode = CKFINDER_CONNECTOR_ERROR_INVALID_EXTENSION;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
}
// check #5 (hidden folders)
// cache results
if (empty($checkedPaths[$path])) {
$checkedPaths[$path] = true;
if ($_resourceTypeConfig[$type]->checkIsHiddenPath($path)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
}
$sourceFilePath = $_resourceTypeConfig[$type]->getDirectory().$path.$name;
// check #6 (hidden file name)
if ($currentResourceTypeConfig->checkIsHiddenFile($name)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
// check #7 (Access Control, need file view permission to source files)
if (!isset($aclMasks[$type."@".$path])) {
$aclMasks[$type."@".$path] = $_aclConfig->getComputedMask($type, $path);
}
$isAuthorized = (($aclMasks[$type."@".$path] & CKFINDER_CONNECTOR_ACL_FILE_VIEW) == CKFINDER_CONNECTOR_ACL_FILE_VIEW);
if (!$isAuthorized) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
// check #8 (invalid file name)
if (!file_exists($sourceFilePath) || !is_file($sourceFilePath)) {
$errorCode = CKFINDER_CONNECTOR_ERROR_FILE_NOT_FOUND;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
// check #9 (max size)
if ($currentResourceTypeConfig->getName() != $type) {
$maxSize = $currentResourceTypeConfig->getMaxSize();
$fileSize = filesize($sourceFilePath);
if ($maxSize && $fileSize>$maxSize) {
$errorCode = CKFINDER_CONNECTOR_ERROR_UPLOADED_TOO_BIG;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
}
//$overwrite
// finally, no errors so far, we may attempt to copy a file
// protection against copying files to itself
if ($sourceFilePath == $destinationFilePath) {
$errorCode = CKFINDER_CONNECTOR_ERROR_SOURCE_AND_TARGET_PATH_EQUAL;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
// check if file exists if we don't force overwriting
else if (file_exists($destinationFilePath)) {
if (strpos($options, "overwrite") !== false) {
if (!@unlink($destinationFilePath)) {
$errorCode = CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
else {
if (!@rename($sourceFilePath, $destinationFilePath)) {
$errorCode = CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
else {
$moved++;
}
}
}
else if (strpos($options, "autorename") !== false) {
$iCounter = 1;
while (true)
{
$fileName = CKFinder_Connector_Utils_FileSystem::getFileNameWithoutExtension($name) .
"(" . $iCounter . ")" . "." .
CKFinder_Connector_Utils_FileSystem::getExtension($name);
$destinationFilePath = $sServerDir.$fileName;
if (!file_exists($destinationFilePath)) {
break;
}
else {
$iCounter++;
}
}
if (!@rename($sourceFilePath, $destinationFilePath)) {
$errorCode = CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
else {
$moved++;
}
}
else {
$errorCode = CKFINDER_CONNECTOR_ERROR_ALREADY_EXIST;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
}
else {
if (!@rename($sourceFilePath, $destinationFilePath)) {
$errorCode = CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED;
$this->appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path);
continue;
}
else {
$moved++;
}
}
}
}
$this->_connectorNode->addChild($oMoveFilesNode);
if ($errorCode != CKFINDER_CONNECTOR_ERROR_NONE) {
$this->_connectorNode->addChild($oErrorsNode);
}
$oMoveFilesNode->addAttribute("moved", $moved);
$oMoveFilesNode->addAttribute("movedTotal", $movedAll + $moved);
/**
* Note: actually we could have more than one error.
* This is just a flag for CKFinder interface telling it to check all errors.
*/
if ($errorCode != CKFINDER_CONNECTOR_ERROR_NONE) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_MOVE_FAILED);
}
}
private function appendErrorNode($oErrorsNode, $errorCode, $name, $type, $path)
{
$oErrorNode = new CKFinder_Connector_Utils_XmlNode("Error");
$oErrorNode->addAttribute("code", $errorCode);
$oErrorNode->addAttribute("name", CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding($name));
$oErrorNode->addAttribute("type", $type);
$oErrorNode->addAttribute("folder", $path);
$oErrorsNode->addChild($oErrorNode);
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/MoveFiles.php | PHP | gpl3 | 11,970 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base XML command handler
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
/**
* Handle CreateFolder command
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_CreateFolder extends CKFinder_Connector_CommandHandler_XmlCommandHandlerBase
{
/**
* Command name
*
* @access private
* @var string
*/
private $command = "CreateFolder";
/**
* handle request and build XML
* @access protected
*
*/
protected function buildXml()
{
if (empty($_POST['CKFinderCommand']) || $_POST['CKFinderCommand'] != 'true') {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FOLDER_CREATE)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
$_resourceTypeConfig = $this->_currentFolder->getResourceTypeConfig();
$sNewFolderName = isset($_GET["NewFolderName"]) ? $_GET["NewFolderName"] : "";
$sNewFolderName = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding($sNewFolderName);
if ($_config->forceAscii()) {
$sNewFolderName = CKFinder_Connector_Utils_FileSystem::convertToAscii($sNewFolderName);
}
if (!CKFinder_Connector_Utils_FileSystem::checkFileName($sNewFolderName) || $_resourceTypeConfig->checkIsHiddenFolder($sNewFolderName)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_NAME);
}
$sServerDir = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getServerPath(), $sNewFolderName);
if (!is_writeable($this->_currentFolder->getServerPath())) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED);
}
$bCreated = false;
if (file_exists($sServerDir)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ALREADY_EXIST);
}
if ($perms = $_config->getChmodFolders()) {
$oldUmask = umask(0);
$bCreated = @mkdir($sServerDir, $perms);
umask($oldUmask);
}
else {
$bCreated = @mkdir($sServerDir);
}
if (!$bCreated) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED);
} else {
$oNewFolderNode = new Ckfinder_Connector_Utils_XmlNode("NewFolder");
$this->_connectorNode->addChild($oNewFolderNode);
$oNewFolderNode->addAttribute("name", CKFinder_Connector_Utils_FileSystem::convertToConnectorEncoding($sNewFolderName));
}
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/CreateFolder.php | PHP | gpl3 | 3,549 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
/**
* Include base XML command handler
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
/**
* Handle DeleteFolder command
*
* @package CKFinder
* @subpackage CommandHandlers
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_CommandHandler_DeleteFolder extends CKFinder_Connector_CommandHandler_XmlCommandHandlerBase
{
/**
* Command name
*
* @access private
* @var string
*/
private $command = "DeleteFolder";
/**
* handle request and build XML
* @access protected
*
*/
protected function buildXml()
{
if (empty($_POST['CKFinderCommand']) || $_POST['CKFinderCommand'] != 'true') {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FOLDER_DELETE)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
}
// The root folder cannot be deleted.
if ($this->_currentFolder->getClientPath() == "/") {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
}
$folderServerPath = $this->_currentFolder->getServerPath();
if (!file_exists($folderServerPath) || !is_dir($folderServerPath)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_FOLDER_NOT_FOUND);
}
if (!CKFinder_Connector_Utils_FileSystem::unlink($folderServerPath)) {
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED);
}
CKFinder_Connector_Utils_FileSystem::unlink($this->_currentFolder->getThumbsServerPath());
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/CommandHandler/DeleteFolder.php | PHP | gpl3 | 2,380 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Utils_Misc
{
public static function getErrorMessage($number, $arg = "") {
$langCode = 'en';
if (!empty($_GET['langCode']) && preg_match("/^[a-z\-]+$/", $_GET['langCode'])) {
if (file_exists(CKFINDER_CONNECTOR_LANG_PATH . "/" . $_GET['langCode'] . ".php"))
$langCode = $_GET['langCode'];
}
include CKFINDER_CONNECTOR_LANG_PATH . "/" . $langCode . ".php";
if ($number) {
if (!empty ($GLOBALS['CKFLang']['Errors'][$number])) {
$errorMessage = str_replace("%1", $arg, $GLOBALS['CKFLang']['Errors'][$number]);
} else {
$errorMessage = str_replace("%1", $number, $GLOBALS['CKFLang']['ErrorUnknown']);
}
} else {
$errorMessage = "";
}
return $errorMessage;
}
/**
* Convert any value to boolean, strings like "false", "FalSE" and "off" are also considered as false
*
* @static
* @access public
* @param mixed $value
* @return boolean
*/
public static function booleanValue($value)
{
if (strcasecmp("false", $value) == 0 || strcasecmp("off", $value) == 0 || !$value) {
return false;
} else {
return true;
}
}
/**
* @link http://pl.php.net/manual/en/function.imagecopyresampled.php
* replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster)
*
* @static
* @access public
* @param string $dst_image
* @param string $src_image
* @param int $dst_x
* @param int $dst_y
* @param int $src_x
* @param int $src_y
* @param int $dst_w
* @param int $dst_h
* @param int $src_w
* @param int $src_h
* @param int $quality
* @return boolean
*/
public static function fastImageCopyResampled (&$dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h, $quality = 3)
{
if (empty($src_image) || empty($dst_image)) {
return false;
}
if ($quality <= 1) {
$temp = imagecreatetruecolor ($dst_w + 1, $dst_h + 1);
imagecopyresized ($temp, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w + 1, $dst_h + 1, $src_w, $src_h);
imagecopyresized ($dst_image, $temp, 0, 0, 0, 0, $dst_w, $dst_h, $dst_w, $dst_h);
imagedestroy ($temp);
} elseif ($quality < 5 && (($dst_w * $quality) < $src_w || ($dst_h * $quality) < $src_h)) {
$tmp_w = $dst_w * $quality;
$tmp_h = $dst_h * $quality;
$temp = imagecreatetruecolor ($tmp_w + 1, $tmp_h + 1);
imagecopyresized ($temp, $src_image, 0, 0, $src_x, $src_y, $tmp_w + 1, $tmp_h + 1, $src_w, $src_h);
imagecopyresampled ($dst_image, $temp, $dst_x, $dst_y, 0, 0, $dst_w, $dst_h, $tmp_w, $tmp_h);
imagedestroy ($temp);
} else {
imagecopyresampled ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h);
}
return true;
}
/**
* @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php
* function posted by e dot a dot schultz at gmail dot com
*
* @static
* @access public
* @param string $filename
* @return boolean
*/
public static function setMemoryForImage($imageWidth, $imageHeight, $imageBits, $imageChannels)
{
$MB = 1048576; // number of bytes in 1M
$K64 = 65536; // number of bytes in 64K
$TWEAKFACTOR = 2.4; // Or whatever works for you
$memoryNeeded = round( ( $imageWidth * $imageHeight
* $imageBits
* $imageChannels / 8
+ $K64
) * $TWEAKFACTOR
) + 3*$MB;
//ini_get('memory_limit') only works if compiled with "--enable-memory-limit" also
//Default memory limit is 8MB so well stick with that.
//To find out what yours is, view your php.ini file.
$memoryLimit = CKFinder_Connector_Utils_Misc::returnBytes(@ini_get('memory_limit'))/$MB;
if (!$memoryLimit) {
$memoryLimit = 8;
}
$memoryLimitMB = $memoryLimit * $MB;
if (function_exists('memory_get_usage')) {
if (memory_get_usage() + $memoryNeeded > $memoryLimitMB) {
$newLimit = $memoryLimit + ceil( ( memory_get_usage()
+ $memoryNeeded
- $memoryLimitMB
) / $MB
);
if (@ini_set( 'memory_limit', $newLimit . 'M' ) === false) {
return false;
}
}
} else {
if ($memoryNeeded + 3*$MB > $memoryLimitMB) {
$newLimit = $memoryLimit + ceil(( 3*$MB
+ $memoryNeeded
- $memoryLimitMB
) / $MB
);
if (false === @ini_set( 'memory_limit', $newLimit . 'M' )) {
return false;
}
}
}
return true;
}
/**
* convert shorthand php.ini notation into bytes, much like how the PHP source does it
* @link http://pl.php.net/manual/en/function.ini-get.php
*
* @static
* @access public
* @param string $val
* @return int
*/
public static function returnBytes($val) {
$val = trim($val);
if (!$val) {
return 0;
}
$last = strtolower($val[strlen($val)-1]);
switch($last) {
// The 'G' modifier is available since PHP 5.1.0
case 'g':
$val *= 1024;
case 'm':
$val *= 1024;
case 'k':
$val *= 1024;
}
return $val;
}
/**
* Checks if a value exists in an array (case insensitive)
*
* @static
* @access public
* @param string $needle
* @param array $haystack
* @return boolean
*/
public static function inArrayCaseInsensitive($needle, $haystack)
{
if (!$haystack || !is_array($haystack)) {
return false;
}
$lcase = array();
foreach ($haystack as $key => $val) {
$lcase[$key] = strtolower($val);
}
return in_array($needle, $lcase);
}
/**
* UTF-8 compatible version of basename()
*
* @static
* @access public
* @param string $file
* @return string
*/
public static function mbBasename($file)
{
$explode = explode('/', str_replace("\\", "/", $file));
return end($explode);
}
/**
* Source: http://pl.php.net/imagecreate
* (optimized for speed and memory usage, but yet not very efficient)
*
* @static
* @access public
* @param string $filename
* @return resource
*/
public static function imageCreateFromBmp($filename)
{
//20 seconds seems to be a reasonable value to not kill a server and process images up to 1680x1050
@set_time_limit(20);
if (false === ($f1 = fopen($filename, "rb"))) {
return false;
}
$FILE = unpack("vfile_type/Vfile_size/Vreserved/Vbitmap_offset", fread($f1, 14));
if ($FILE['file_type'] != 19778) {
return false;
}
$BMP = unpack('Vheader_size/Vwidth/Vheight/vplanes/vbits_per_pixel'.
'/Vcompression/Vsize_bitmap/Vhoriz_resolution'.
'/Vvert_resolution/Vcolors_used/Vcolors_important', fread($f1, 40));
$BMP['colors'] = pow(2,$BMP['bits_per_pixel']);
if ($BMP['size_bitmap'] == 0) {
$BMP['size_bitmap'] = $FILE['file_size'] - $FILE['bitmap_offset'];
}
$BMP['bytes_per_pixel'] = $BMP['bits_per_pixel']/8;
$BMP['bytes_per_pixel2'] = ceil($BMP['bytes_per_pixel']);
$BMP['decal'] = ($BMP['width']*$BMP['bytes_per_pixel']/4);
$BMP['decal'] -= floor($BMP['width']*$BMP['bytes_per_pixel']/4);
$BMP['decal'] = 4-(4*$BMP['decal']);
if ($BMP['decal'] == 4) {
$BMP['decal'] = 0;
}
$PALETTE = array();
if ($BMP['colors'] < 16777216) {
$PALETTE = unpack('V'.$BMP['colors'], fread($f1, $BMP['colors']*4));
}
//2048x1536px@24bit don't even try to process larger files as it will probably fail
if ($BMP['size_bitmap'] > 3 * 2048 * 1536) {
return false;
}
$IMG = fread($f1, $BMP['size_bitmap']);
fclose($f1);
$VIDE = chr(0);
$res = imagecreatetruecolor($BMP['width'],$BMP['height']);
$P = 0;
$Y = $BMP['height']-1;
$line_length = $BMP['bytes_per_pixel']*$BMP['width'];
if ($BMP['bits_per_pixel'] == 24) {
while ($Y >= 0)
{
$X=0;
$temp = unpack( "C*", substr($IMG, $P, $line_length));
while ($X < $BMP['width'])
{
$offset = $X*3;
imagesetpixel($res, $X++, $Y, ($temp[$offset+3] << 16) + ($temp[$offset+2] << 8) + $temp[$offset+1]);
}
$Y--;
$P += $line_length + $BMP['decal'];
}
}
elseif ($BMP['bits_per_pixel'] == 8)
{
while ($Y >= 0)
{
$X=0;
$temp = unpack( "C*", substr($IMG, $P, $line_length));
while ($X < $BMP['width'])
{
imagesetpixel($res, $X++, $Y, $PALETTE[$temp[$X] +1]);
}
$Y--;
$P += $line_length + $BMP['decal'];
}
}
elseif ($BMP['bits_per_pixel'] == 4)
{
while ($Y >= 0)
{
$X=0;
$i = 1;
$low = true;
$temp = unpack( "C*", substr($IMG, $P, $line_length));
while ($X < $BMP['width'])
{
if ($low) {
$index = $temp[$i] >> 4;
}
else {
$index = $temp[$i++] & 0x0F;
}
$low = !$low;
imagesetpixel($res, $X++, $Y, $PALETTE[$index +1]);
}
$Y--;
$P += $line_length + $BMP['decal'];
}
}
elseif ($BMP['bits_per_pixel'] == 1)
{
$COLOR = unpack("n",$VIDE.substr($IMG,floor($P),1));
if (($P*8)%8 == 0) $COLOR[1] = $COLOR[1] >>7;
elseif (($P*8)%8 == 1) $COLOR[1] = ($COLOR[1] & 0x40)>>6;
elseif (($P*8)%8 == 2) $COLOR[1] = ($COLOR[1] & 0x20)>>5;
elseif (($P*8)%8 == 3) $COLOR[1] = ($COLOR[1] & 0x10)>>4;
elseif (($P*8)%8 == 4) $COLOR[1] = ($COLOR[1] & 0x8)>>3;
elseif (($P*8)%8 == 5) $COLOR[1] = ($COLOR[1] & 0x4)>>2;
elseif (($P*8)%8 == 6) $COLOR[1] = ($COLOR[1] & 0x2)>>1;
elseif (($P*8)%8 == 7) $COLOR[1] = ($COLOR[1] & 0x1);
$COLOR[1] = $PALETTE[$COLOR[1]+1];
}
else {
return false;
}
return $res;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Utils/Misc.php | PHP | gpl3 | 12,301 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
/**
* Simple class which provides some basic API for creating XML nodes and adding attributes
*
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
class Ckfinder_Connector_Utils_XmlNode
{
/**
* Array that stores XML attributes
*
* @access private
* @var array
*/
private $_attributes = array();
/**
* Array that stores child nodes
*
* @access private
* @var array
*/
private $_childNodes = array();
/**
* Node name
*
* @access private
* @var string
*/
private $_name;
/**
* Node value
*
* @access private
* @var string
*/
private $_value;
/**
* Create new node
*
* @param string $nodeName node name
* @param string $nodeValue node value
* @return Ckfinder_Connector_Utils_XmlNode
*/
function __construct($nodeName, $nodeValue = null)
{
$this->_name = $nodeName;
if (!is_null($nodeValue)) {
$this->_value = $nodeValue;
}
}
function getChild($name)
{
foreach ($this->_childNodes as $i => $node) {
if ($node->_name == $name) {
return $this->_childNodes[$i];
}
}
return null;
}
/**
* Add attribute
*
* @param string $name
* @param string $value
* @access public
*/
public function addAttribute($name, $value)
{
$this->_attributes[$name] = $value;
}
/**
* Get attribute value
*
* @param string $name
* @access public
*/
public function getAttribute($name)
{
return $this->_attributes[$name];
}
/**
* Set element value
*
* @param string $name
* @param string $value
* @access public
*/
public function setValue($value)
{
$this->_value = $value;
}
/**
* Get element value
*
* @param string $name
* @param string $value
* @access public
*/
public function getValue()
{
return $this->_value;
}
/**
* Adds new child at the end of the children
*
* @param Ckfinder_Connector_Utils_XmlNode $node
* @access public
*/
public function addChild(&$node)
{
$this->_childNodes[] =& $node;
}
/**
* Return a well-formed XML string based on Ckfinder_Connector_Utils_XmlNode element
*
* @return string
* @access public
*/
public function asXML()
{
$ret = "<" . $this->_name;
//print Attributes
if (sizeof($this->_attributes)>0) {
foreach ($this->_attributes as $_name => $_value) {
$ret .= " " . $_name . '="' . htmlspecialchars($_value) . '"';
}
}
//if there is nothing more todo, close empty tag and exit
if (is_null($this->_value) && !sizeof($this->_childNodes)) {
$ret .= " />";
return $ret;
}
//close opening tag
$ret .= ">";
//print value
if (!is_null($this->_value)) {
$ret .= htmlspecialchars($this->_value);
}
//print child nodes
if (sizeof($this->_childNodes)>0) {
foreach ($this->_childNodes as $_node) {
$ret .= $_node->asXml();
}
}
$ret .= "</" . $this->_name . ">";
return $ret;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Utils/XmlNode.php | PHP | gpl3 | 4,210 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Utils_Security
{
/**
* Strip quotes from global arrays
* @access public
*/
public function getRidOfMagicQuotes()
{
if (CKFINDER_CONNECTOR_PHP_MODE<6 && get_magic_quotes_gpc()) {
if (!empty($_GET)) {
$this->stripQuotes($_GET);
}
if (!empty($_POST)) {
$this->stripQuotes($_POST);
}
if (!empty($_COOKIE)) {
$this->stripQuotes($_COOKIE);
}
if (!empty($_FILES)) {
while (list($k,$v) = each($_FILES)) {
if (isset($_FILES[$k]['name'])) {
$this->stripQuotes($_FILES[$k]['name']);
}
}
}
}
}
/**
* Strip quotes from variable
*
* @access public
* @param mixed $var
* @param int $depth current depth
* @param int $howDeep maximum depth
*/
public function stripQuotes(&$var, $depth=0, $howDeep=5)
{
if (is_array($var)) {
if ($depth++<$howDeep) {
while (list($k,$v) = each($var)) {
$this->stripQuotes($var[$k], $depth, $howDeep);
}
}
} else {
$var = stripslashes($var);
}
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Utils/Security.php | PHP | gpl3 | 2,062 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
/**
* @package CKFinder
* @subpackage Utils
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Utils_FileSystem
{
/**
* This function behaves similar to System.IO.Path.Combine in C#, the only diffrenece is that it also accepts null values and treat them as empty string
*
* @static
* @access public
* @param string $path1 first path
* @param string $path2 scecond path
* @return string
*/
public static function combinePaths($path1, $path2)
{
if (is_null($path1)) {
$path1 = "";
}
if (is_null($path2)) {
$path2 = "";
}
if (!strlen($path2)) {
if (strlen($path1)) {
$_lastCharP1 = substr($path1, -1, 1);
if ($_lastCharP1 != "/" && $_lastCharP1 != "\\") {
$path1 .= DIRECTORY_SEPARATOR;
}
}
}
else {
$_firstCharP2 = substr($path2, 0, 1);
if (strlen($path1)) {
if (strpos($path2, $path1)===0) {
return $path2;
}
$_lastCharP1 = substr($path1, -1, 1);
if ($_lastCharP1 != "/" && $_lastCharP1 != "\\" && $_firstCharP2 != "/" && $_firstCharP2 != "\\") {
$path1 .= DIRECTORY_SEPARATOR;
}
}
else {
return $path2;
}
}
return $path1 . $path2;
}
/**
* Check whether $fileName is a valid file name, return true on success
*
* @static
* @access public
* @param string $fileName
* @return boolean
*/
public static function checkFileName($fileName)
{
if (is_null($fileName) || !strlen($fileName) || substr($fileName,-1,1)=="." || false!==strpos($fileName, "..")) {
return false;
}
if (preg_match(CKFINDER_REGEX_INVALID_FILE, $fileName)) {
return false;
}
return true;
}
/**
* Unlink file/folder
*
* @static
* @access public
* @param string $path
* @return boolean
*/
public static function unlink($path)
{
/* make sure the path exists */
if(!file_exists($path)) {
return false;
}
/* If it is a file or link, just delete it */
if(is_file($path) || is_link($path)) {
return @unlink($path);
}
/* Scan the dir and recursively unlink */
$files = scandir($path);
if ($files) {
foreach($files as $filename)
{
if ($filename == '.' || $filename == '..') {
continue;
}
$file = str_replace('//','/',$path.'/'.$filename);
CKFinder_Connector_Utils_FileSystem::unlink($file);
}
}
/* Remove the parent dir */
if(!@rmdir($path)) {
return false;
}
return true;
}
/**
* Return file name without extension (without dot & last part after dot)
*
* @static
* @access public
* @param string $fileName
* @return string
*/
public static function getFileNameWithoutExtension($fileName)
{
$dotPos = strrpos( $fileName, '.' );
if (false === $dotPos) {
return $fileName;
}
return substr($fileName, 0, $dotPos);
}
/**
* Get file extension (only last part - e.g. extension of file.foo.bar.jpg = jpg)
*
* @static
* @access public
* @param string $fileName
* @return string
*/
public static function getExtension( $fileName )
{
$dotPos = strrpos( $fileName, '.' );
if (false === $dotPos) {
return "";
}
return substr( $fileName, strrpos( $fileName, '.' ) +1 ) ;
}
/**
* Read file, split it into small chunks and send it to the browser
*
* @static
* @access public
* @param string $filename
* @return boolean
*/
public static function readfileChunked($filename)
{
$chunksize = 1024 * 10; // how many bytes per chunk
$handle = fopen($filename, 'rb');
if ($handle === false) {
return false;
}
while (!feof($handle)) {
echo fread($handle, $chunksize);
@ob_flush();
flush();
@set_time_limit(8);
}
fclose($handle);
return true;
}
/**
* Replace accented UTF-8 characters by unaccented ASCII-7 "equivalents".
* The purpose of this function is to replace characters commonly found in Latin
* alphabets with something more or less equivalent from the ASCII range. This can
* be useful for converting a UTF-8 to something ready for a filename, for example.
* Following the use of this function, you would probably also pass the string
* through utf8_strip_non_ascii to clean out any other non-ASCII chars
*
* For a more complete implementation of transliteration, see the utf8_to_ascii package
* available from the phputf8 project downloads:
* http://prdownloads.sourceforge.net/phputf8
*
* @param string UTF-8 string
* @param string UTF-8 with accented characters replaced by ASCII chars
* @return string accented chars replaced with ascii equivalents
* @author Andreas Gohr <andi@splitbrain.org>
* @see http://sourceforge.net/projects/phputf8/
*/
public static function convertToAscii($str)
{
static $UTF8_LOWER_ACCENTS = NULL;
static $UTF8_UPPER_ACCENTS = NULL;
if ( is_null($UTF8_LOWER_ACCENTS) ) {
$UTF8_LOWER_ACCENTS = array(
'à' => 'a', 'ô' => 'o', 'ď' => 'd', 'ḟ' => 'f', 'ë' => 'e', 'š' => 's', 'ơ' => 'o',
'ß' => 'ss', 'ă' => 'a', 'ř' => 'r', 'ț' => 't', 'ň' => 'n', 'ā' => 'a', 'ķ' => 'k',
'ŝ' => 's', 'ỳ' => 'y', 'ņ' => 'n', 'ĺ' => 'l', 'ħ' => 'h', 'ṗ' => 'p', 'ó' => 'o',
'ú' => 'u', 'ě' => 'e', 'é' => 'e', 'ç' => 'c', 'ẁ' => 'w', 'ċ' => 'c', 'õ' => 'o',
'ṡ' => 's', 'ø' => 'o', 'ģ' => 'g', 'ŧ' => 't', 'ș' => 's', 'ė' => 'e', 'ĉ' => 'c',
'ś' => 's', 'î' => 'i', 'ű' => 'u', 'ć' => 'c', 'ę' => 'e', 'ŵ' => 'w', 'ṫ' => 't',
'ū' => 'u', 'č' => 'c', 'ö' => 'oe', 'è' => 'e', 'ŷ' => 'y', 'ą' => 'a', 'ł' => 'l',
'ų' => 'u', 'ů' => 'u', 'ş' => 's', 'ğ' => 'g', 'ļ' => 'l', 'ƒ' => 'f', 'ž' => 'z',
'ẃ' => 'w', 'ḃ' => 'b', 'å' => 'a', 'ì' => 'i', 'ï' => 'i', 'ḋ' => 'd', 'ť' => 't',
'ŗ' => 'r', 'ä' => 'ae', 'í' => 'i', 'ŕ' => 'r', 'ê' => 'e', 'ü' => 'ue', 'ò' => 'o',
'ē' => 'e', 'ñ' => 'n', 'ń' => 'n', 'ĥ' => 'h', 'ĝ' => 'g', 'đ' => 'd', 'ĵ' => 'j',
'ÿ' => 'y', 'ũ' => 'u', 'ŭ' => 'u', 'ư' => 'u', 'ţ' => 't', 'ý' => 'y', 'ő' => 'o',
'â' => 'a', 'ľ' => 'l', 'ẅ' => 'w', 'ż' => 'z', 'ī' => 'i', 'ã' => 'a', 'ġ' => 'g',
'ṁ' => 'm', 'ō' => 'o', 'ĩ' => 'i', 'ù' => 'u', 'į' => 'i', 'ź' => 'z', 'á' => 'a',
'û' => 'u', 'þ' => 'th', 'ð' => 'dh', 'æ' => 'ae', 'µ' => 'u', 'ĕ' => 'e',
);
}
$str = str_replace(
array_keys($UTF8_LOWER_ACCENTS),
array_values($UTF8_LOWER_ACCENTS),
$str
);
if ( is_null($UTF8_UPPER_ACCENTS) ) {
$UTF8_UPPER_ACCENTS = array(
'À' => 'A', 'Ô' => 'O', 'Ď' => 'D', 'Ḟ' => 'F', 'Ë' => 'E', 'Š' => 'S', 'Ơ' => 'O',
'Ă' => 'A', 'Ř' => 'R', 'Ț' => 'T', 'Ň' => 'N', 'Ā' => 'A', 'Ķ' => 'K',
'Ŝ' => 'S', 'Ỳ' => 'Y', 'Ņ' => 'N', 'Ĺ' => 'L', 'Ħ' => 'H', 'Ṗ' => 'P', 'Ó' => 'O',
'Ú' => 'U', 'Ě' => 'E', 'É' => 'E', 'Ç' => 'C', 'Ẁ' => 'W', 'Ċ' => 'C', 'Õ' => 'O',
'Ṡ' => 'S', 'Ø' => 'O', 'Ģ' => 'G', 'Ŧ' => 'T', 'Ș' => 'S', 'Ė' => 'E', 'Ĉ' => 'C',
'Ś' => 'S', 'Î' => 'I', 'Ű' => 'U', 'Ć' => 'C', 'Ę' => 'E', 'Ŵ' => 'W', 'Ṫ' => 'T',
'Ū' => 'U', 'Č' => 'C', 'Ö' => 'Oe', 'È' => 'E', 'Ŷ' => 'Y', 'Ą' => 'A', 'Ł' => 'L',
'Ų' => 'U', 'Ů' => 'U', 'Ş' => 'S', 'Ğ' => 'G', 'Ļ' => 'L', 'Ƒ' => 'F', 'Ž' => 'Z',
'Ẃ' => 'W', 'Ḃ' => 'B', 'Å' => 'A', 'Ì' => 'I', 'Ï' => 'I', 'Ḋ' => 'D', 'Ť' => 'T',
'Ŗ' => 'R', 'Ä' => 'Ae', 'Í' => 'I', 'Ŕ' => 'R', 'Ê' => 'E', 'Ü' => 'Ue', 'Ò' => 'O',
'Ē' => 'E', 'Ñ' => 'N', 'Ń' => 'N', 'Ĥ' => 'H', 'Ĝ' => 'G', 'Đ' => 'D', 'Ĵ' => 'J',
'Ÿ' => 'Y', 'Ũ' => 'U', 'Ŭ' => 'U', 'Ư' => 'U', 'Ţ' => 'T', 'Ý' => 'Y', 'Ő' => 'O',
'Â' => 'A', 'Ľ' => 'L', 'Ẅ' => 'W', 'Ż' => 'Z', 'Ī' => 'I', 'Ã' => 'A', 'Ġ' => 'G',
'Ṁ' => 'M', 'Ō' => 'O', 'Ĩ' => 'I', 'Ù' => 'U', 'Į' => 'I', 'Ź' => 'Z', 'Á' => 'A',
'Û' => 'U', 'Þ' => 'Th', 'Ð' => 'Dh', 'Æ' => 'Ae', 'Ĕ' => 'E',
);
}
$str = str_replace(
array_keys($UTF8_UPPER_ACCENTS),
array_values($UTF8_UPPER_ACCENTS),
$str
);
return $str;
}
/**
* Convert file name from UTF-8 to system encoding
*
* @static
* @access public
* @param string $fileName
* @return string
*/
public static function convertToFilesystemEncoding($fileName)
{
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$encoding = $_config->getFilesystemEncoding();
if (is_null($encoding) || strcasecmp($encoding, "UTF-8") == 0 || strcasecmp($encoding, "UTF8") == 0) {
return $fileName;
}
if (!function_exists("iconv")) {
if (strcasecmp($encoding, "ISO-8859-1") == 0 || strcasecmp($encoding, "ISO8859-1") == 0 || strcasecmp($encoding, "Latin1") == 0) {
return str_replace("\0", "_", utf8_decode($fileName));
} else if (function_exists('mb_convert_encoding')) {
/**
* @todo check whether charset is supported - mb_list_encodings
*/
$encoded = @mb_convert_encoding($fileName, $encoding, 'UTF-8');
if (@mb_strlen($fileName, "UTF-8") != @mb_strlen($encoded, $encoding)) {
return str_replace("\0", "_", preg_replace("/[^[:ascii:]]/u","_",$fileName));
}
else {
return str_replace("\0", "_", $encoded);
}
} else {
return str_replace("\0", "_", preg_replace("/[^[:ascii:]]/u","_",$fileName));
}
}
$converted = @iconv("UTF-8", $encoding . "//IGNORE//TRANSLIT", $fileName);
if ($converted === false) {
return str_replace("\0", "_", preg_replace("/[^[:ascii:]]/u","_",$fileName));
}
return $converted;
}
/**
* Convert file name from system encoding into UTF-8
*
* @static
* @access public
* @param string $fileName
* @return string
*/
public static function convertToConnectorEncoding($fileName)
{
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$encoding = $_config->getFilesystemEncoding();
if (is_null($encoding) || strcasecmp($encoding, "UTF-8") == 0 || strcasecmp($encoding, "UTF8") == 0) {
return $fileName;
}
if (!function_exists("iconv")) {
if (strcasecmp($encoding, "ISO-8859-1") == 0 || strcasecmp($encoding, "ISO8859-1") == 0 || strcasecmp($encoding, "Latin1") == 0) {
return utf8_encode($fileName);
} else {
return $fileName;
}
}
$converted = @iconv($encoding, "UTF-8", $fileName);
if ($converted === false) {
return $fileName;
}
return $converted;
}
/**
* Find document root
*
* @return string
* @access public
*/
public function getDocumentRootPath()
{
/**
* The absolute pathname of the currently executing script.
* Notatka: If a script is executed with the CLI, as a relative path, such as file.php or ../file.php,
* $_SERVER['SCRIPT_FILENAME'] will contain the relative path specified by the user.
*/
if (isset($_SERVER['SCRIPT_FILENAME'])) {
$sRealPath = dirname($_SERVER['SCRIPT_FILENAME']);
}
else {
/**
* realpath — Returns canonicalized absolute pathname
*/
$sRealPath = realpath( './' ) ;
}
/**
* The filename of the currently executing script, relative to the document root.
* For instance, $_SERVER['PHP_SELF'] in a script at the address http://example.com/test.php/foo.bar
* would be /test.php/foo.bar.
*/
$sSelfPath = dirname($_SERVER['PHP_SELF']);
return substr($sRealPath, 0, strlen($sRealPath) - strlen($sSelfPath));
}
/**
* Create directory recursively
*
* @access public
* @static
* @param string $dir
* @return boolean
*/
public static function createDirectoryRecursively($dir)
{
if (DIRECTORY_SEPARATOR === "\\") {
$dir = str_replace("/", "\\", $dir);
}
else if (DIRECTORY_SEPARATOR === "/") {
$dir = str_replace("\\", "/", $dir);
}
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
if ($perms = $_config->getChmodFolders()) {
$oldUmask = umask(0);
$bCreated = @mkdir($dir, $perms, true);
umask($oldUmask);
}
else {
$bCreated = @mkdir($dir, 0777, true);
}
return $bCreated;
}
/**
* Detect HTML in the first KB to prevent against potential security issue with
* IE/Safari/Opera file type auto detection bug.
* Returns true if file contain insecure HTML code at the beginning.
*
* @static
* @access public
* @param string $filePath absolute path to file
* @return boolean
*/
public static function detectHtml($filePath)
{
$fp = @fopen($filePath, 'rb');
if ( $fp === false || !flock( $fp, LOCK_SH ) ) {
return -1 ;
}
$chunk = fread($fp, 1024);
flock( $fp, LOCK_UN ) ;
fclose($fp);
$chunk = strtolower($chunk);
if (!$chunk) {
return false;
}
$chunk = trim($chunk);
if (preg_match("/<!DOCTYPE\W*X?HTML/sim", $chunk)) {
return true;
}
$tags = array('<body', '<head', '<html', '<img', '<pre', '<script', '<table', '<title');
foreach( $tags as $tag ) {
if(false !== strpos($chunk, $tag)) {
return true ;
}
}
//type = javascript
if (preg_match('!type\s*=\s*[\'"]?\s*(?:\w*/)?(?:ecma|java)!sim', $chunk)) {
return true ;
}
//href = javascript
//src = javascript
//data = javascript
if (preg_match('!(?:href|src|data)\s*=\s*[\'"]?\s*(?:ecma|java)script:!sim',$chunk)) {
return true ;
}
//url(javascript
if (preg_match('!url\s*\(\s*[\'"]?\s*(?:ecma|java)script:!sim', $chunk)) {
return true ;
}
return false ;
}
/**
* Check file content.
* Currently this function validates only image files.
* Returns false if file is invalid.
*
* @static
* @access public
* @param string $filePath absolute path to file
* @param string $extension file extension
* @param integer $detectionLevel 0 = none, 1 = use getimagesize for images, 2 = use DetectHtml for images
* @return boolean
*/
public static function isImageValid($filePath, $extension)
{
if (!@is_readable($filePath)) {
return -1;
}
$imageCheckExtensions = array('gif', 'jpeg', 'jpg', 'png', 'psd', 'bmp', 'tiff');
// version_compare is available since PHP4 >= 4.0.7
if ( function_exists( 'version_compare' ) ) {
$sCurrentVersion = phpversion();
if ( version_compare( $sCurrentVersion, "4.2.0" ) >= 0 ) {
$imageCheckExtensions[] = "tiff";
$imageCheckExtensions[] = "tif";
}
if ( version_compare( $sCurrentVersion, "4.3.0" ) >= 0 ) {
$imageCheckExtensions[] = "swc";
}
if ( version_compare( $sCurrentVersion, "4.3.2" ) >= 0 ) {
$imageCheckExtensions[] = "jpc";
$imageCheckExtensions[] = "jp2";
$imageCheckExtensions[] = "jpx";
$imageCheckExtensions[] = "jb2";
$imageCheckExtensions[] = "xbm";
$imageCheckExtensions[] = "wbmp";
}
}
if ( !in_array( $extension, $imageCheckExtensions ) ) {
return true;
}
if ( @getimagesize( $filePath ) === false ) {
return false ;
}
return true;
}
/**
* Returns true if directory is not empty
*
* @access public
* @static
* @param string $serverPath
* @return boolean
*/
public static function hasChildren($serverPath)
{
if (!is_dir($serverPath) || (false === $fh = @opendir($serverPath))) {
return false;
}
$hasChildren = false;
while (false !== ($filename = readdir($fh))) {
if ($filename == '.' || $filename == '..') {
continue;
} else if (is_dir($serverPath . DIRECTORY_SEPARATOR . $filename)) {
//we have found valid directory
$hasChildren = true;
break;
}
}
closedir($fh);
return $hasChildren;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Utils/FileSystem.php | PHP | gpl3 | 18,976 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
/**
* This class keeps resource types configuration
*
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_ResourceTypeConfig
{
/**
* Resource name
*
* @var string
* @access private
*/
private $_name = "";
/**
* Resource url
*
* @var string
* @access private
*/
private $_url = "";
/**
* Directory path on a server
*
* @var string
* @access private
*/
private $_directory = "";
/**
* Max size
*
* @var unknown_type
* @access private
*/
private $_maxSize = 0;
/**
* Array with allowed extensions
*
* @var array[]string
* @access private
*/
private $_allowedExtensions = array();
/**
* Array with denied extensions
*
* @var array[]string
* @access private
*/
private $_deniedExtensions = array();
/**
* used for CKFinder_Connector_Core_Config object caching
*
* @var CKFinder_Connector_Core_Config
* @access private
*/
private $_config;
/**
* Get ResourceType configuration
*
* @param string $resourceTypeNode
* @return array
*
*/
function __construct($resourceTypeNode)
{
if (isset($resourceTypeNode["name"])) {
$this->_name = $resourceTypeNode["name"];
}
if (isset($resourceTypeNode["url"])) {
$this->_url = $resourceTypeNode["url"];
}
if (!strlen($this->_url)) {
$this->_url = "/";
}
else if(substr($this->_url,-1,1) != "/") {
$this->_url .= "/";
}
if (isset($resourceTypeNode["maxSize"])) {
$this->_maxSize = CKFinder_Connector_Utils_Misc::returnBytes((string)$resourceTypeNode["maxSize"]);
}
if (isset($resourceTypeNode["directory"])) {
$this->_directory = $resourceTypeNode["directory"];
}
if (!strlen($this->_directory)) {
$this->_directory = resolveUrl($this->_url);
}
if (isset($resourceTypeNode["allowedExtensions"])) {
if (is_array($resourceTypeNode["allowedExtensions"])) {
foreach ($resourceTypeNode["allowedExtensions"] as $e) {
$this->_allowedExtensions[] = strtolower(trim((string)$e));
}
}
else {
$resourceTypeNode["allowedExtensions"] = trim((string)$resourceTypeNode["allowedExtensions"]);
if (strlen($resourceTypeNode["allowedExtensions"])) {
$extensions = explode(",", $resourceTypeNode["allowedExtensions"]);
foreach ($extensions as $e) {
$this->_allowedExtensions[] = strtolower(trim($e));
}
}
}
}
if (isset($resourceTypeNode["deniedExtensions"])) {
if (is_array($resourceTypeNode["deniedExtensions"])) {
foreach ($resourceTypeNode["deniedExtensions"] as $extension) {
$this->_deniedExtensions[] = strtolower(trim((string)$e));
}
}
else {
$resourceTypeNode["deniedExtensions"] = trim((string)$resourceTypeNode["deniedExtensions"]);
if (strlen($resourceTypeNode["deniedExtensions"])) {
$extensions = explode(",", $resourceTypeNode["deniedExtensions"]);
foreach ($extensions as $e) {
$this->_deniedExtensions[] = strtolower(trim($e));
}
}
}
}
}
/**
* Get name
*
* @access public
* @return string
*/
public function getName()
{
return $this->_name;
}
/**
* Get url
*
* @access public
* @return string
*/
public function getUrl()
{
return $this->_url;
}
/**
* Get directory
*
* @access public
* @return string
*/
public function getDirectory()
{
return $this->_directory;
}
/**
* Get max size
*
* @access public
* @return int
*/
public function getMaxSize()
{
return $this->_maxSize;
}
/**
* Get allowed extensions
*
* @access public
* @return array[]string
*/
public function getAllowedExtensions()
{
return $this->_allowedExtensions;
}
/**
* Get denied extensions
*
* @access public
* @return array[]string
*/
public function getDeniedExtensions()
{
return $this->_deniedExtensions;
}
/**
* Check extension, return true if file name is valid.
* Return false if extension is on denied list.
* If allowed extensions are defined, return false if extension isn't on allowed list.
*
* @access public
* @param string $extension extension
* @param boolean $renameIfRequired whether try to rename file or not
* @return boolean
*/
public function checkExtension(&$fileName, $renameIfRequired = true)
{
if (strpos($fileName, '.') === false) {
return true;
}
if (is_null($this->_config)) {
$this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
}
$toCheck = array();
if ($this->_config->getCheckDoubleExtension()) {
$pieces = explode('.', $fileName);
// First, check the last extension (ex. in file.php.jpg, the "jpg").
if ( !$this->checkSingleExtension( $pieces[sizeof($pieces)-1] ) ) {
return false;
}
if ($renameIfRequired) {
// Check the other extensions, rebuilding the file name. If an extension is
// not allowed, replace the dot with an underscore.
$fileName = $pieces[0] ;
for ($i=1; $i<sizeof($pieces)-1; $i++) {
$fileName .= $this->checkSingleExtension( $pieces[$i] ) ? '.' : '_' ;
$fileName .= $pieces[$i];
}
// Add the last extension to the final name.
$fileName .= '.' . $pieces[sizeof($pieces)-1] ;
}
}
else {
// Check only the last extension (ex. in file.php.jpg, only "jpg").
return $this->checkSingleExtension( substr($fileName, strrpos($fileName,'.')+1) );
}
return true;
}
/**
* Check given folder name
* Return true if folder name matches hidden folder names list
*
* @param string $folderName
* @access public
* @return boolean
*/
public function checkIsHiddenFolder($folderName)
{
if (is_null($this->_config)) {
$this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
}
$regex = $this->_config->getHideFoldersRegex();
if ($regex) {
return preg_match($regex, $folderName);
}
return false;
}
/**
* Check given file name
* Return true if file name matches hidden file names list
*
* @param string $fileName
* @access public
* @return boolean
*/
public function checkIsHiddenFile($fileName)
{
if (is_null($this->_config)) {
$this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
}
$regex = $this->_config->getHideFilesRegex();
if ($regex) {
return preg_match($regex, $fileName);
}
return false;
}
/**
* Check given path
* Return true if path contains folder name that matches hidden folder names list
*
* @param string $folderName
* @access public
* @return boolean
*/
public function checkIsHiddenPath($path)
{
$_clientPathParts = explode("/", trim($path, "/"));
if ($_clientPathParts) {
foreach ($_clientPathParts as $_part) {
if ($this->checkIsHiddenFolder($_part)) {
return true;
}
}
}
return false;
}
public function checkSingleExtension($extension)
{
$extension = strtolower(ltrim($extension,'.'));
if (sizeof($this->_deniedExtensions)) {
if (in_array($extension, $this->_deniedExtensions)) {
return false;
}
}
if (sizeof($this->_allowedExtensions)) {
return in_array($extension, $this->_allowedExtensions);
}
return true;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Core/ResourceTypeConfig.php | PHP | gpl3 | 9,651 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
/**
* Folder view mask
*/
define('CKFINDER_CONNECTOR_ACL_FOLDER_VIEW',1);
define('CKFINDER_CONNECTOR_ACL_FOLDER_CREATE',2);
define('CKFINDER_CONNECTOR_ACL_FOLDER_RENAME',4);
define('CKFINDER_CONNECTOR_ACL_FOLDER_DELETE',8);
define('CKFINDER_CONNECTOR_ACL_FILE_VIEW',16);
define('CKFINDER_CONNECTOR_ACL_FILE_UPLOAD',32);
define('CKFINDER_CONNECTOR_ACL_FILE_RENAME',64);
define('CKFINDER_CONNECTOR_ACL_FILE_DELETE',128);
/**
* This class keeps ACL configuration
*
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_AccessControlConfig
{
/**
* array with ACL entries
*
* @var array[string]string
* @access private
*/
private $_aclEntries = array();
function __construct($accessControlNodes)
{
foreach ($accessControlNodes as $node) {
$_folderView = isset($node['folderView']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['folderView']) : false;
$_folderCreate = isset($node['folderCreate']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['folderCreate']) : false;
$_folderRename = isset($node['folderRename']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['folderRename']) : false;
$_folderDelete = isset($node['folderDelete']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['folderDelete']) : false;
$_fileView = isset($node['fileView']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['fileView']) : false;
$_fileUpload = isset($node['fileUpload']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['fileUpload']) : false;
$_fileRename = isset($node['fileRename']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['fileRename']) : false;
$_fileDelete = isset($node['fileDelete']) ? CKFinder_Connector_Utils_Misc::booleanValue($node['fileDelete']) : false;
$_role = isset($node['role']) ? $node['role'] : "*";
$_resourceType = isset($node['resourceType']) ? $node['resourceType'] : "*";
$_folder = isset($node['folder']) ? $node['folder'] : "/";
$this->addACLEntry($_role, $_resourceType, $_folder,
array(
$_folderView ? CKFINDER_CONNECTOR_ACL_FOLDER_VIEW : 0,
$_folderCreate ? CKFINDER_CONNECTOR_ACL_FOLDER_CREATE : 0,
$_folderRename ? CKFINDER_CONNECTOR_ACL_FOLDER_RENAME : 0,
$_folderDelete ? CKFINDER_CONNECTOR_ACL_FOLDER_DELETE : 0,
$_fileView ? CKFINDER_CONNECTOR_ACL_FILE_VIEW : 0,
$_fileUpload ? CKFINDER_CONNECTOR_ACL_FILE_UPLOAD : 0,
$_fileRename ? CKFINDER_CONNECTOR_ACL_FILE_RENAME : 0,
$_fileDelete ? CKFINDER_CONNECTOR_ACL_FILE_DELETE : 0,
),
array(
$_folderView ? 0 : CKFINDER_CONNECTOR_ACL_FOLDER_VIEW,
$_folderCreate ? 0 : CKFINDER_CONNECTOR_ACL_FOLDER_CREATE,
$_folderRename ? 0 : CKFINDER_CONNECTOR_ACL_FOLDER_RENAME,
$_folderDelete ? 0 : CKFINDER_CONNECTOR_ACL_FOLDER_DELETE,
$_fileView ? 0 : CKFINDER_CONNECTOR_ACL_FILE_VIEW,
$_fileUpload ? 0 : CKFINDER_CONNECTOR_ACL_FILE_UPLOAD,
$_fileRename ? 0 : CKFINDER_CONNECTOR_ACL_FILE_RENAME,
$_fileDelete ? 0 : CKFINDER_CONNECTOR_ACL_FILE_DELETE,
)
);
}
}
/**
* Add ACL entry
*
* @param string $role role
* @param string $resourceType resource type
* @param string $folderPath folder path
* @param int $allowRulesMask allow rules mask
* @param int $denyRulesMask deny rules mask
* @access private
*/
private function addACLEntry($role, $resourceType, $folderPath, $allowRulesMask, $denyRulesMask)
{
if (!strlen($folderPath)) {
$folderPath = '/';
}
else {
if (substr($folderPath,0,1) != '/') {
$folderPath = '/' . $folderPath;
}
if (substr($folderPath,-1,1) != '/') {
$folderPath .= '/';
}
}
$_entryKey = $role . "#@#" . $resourceType;
if (array_key_exists($folderPath,$this->_aclEntries)) {
if (array_key_exists($_entryKey, $this->_aclEntries[$folderPath])) {
$_rulesMasks = $this->_aclEntries[$folderPath][$_entryKey];
foreach ($_rulesMasks[0] as $key => $value) {
$allowRulesMask[$key] |= $value;
}
foreach ($_rulesMasks[1] as $key => $value) {
$denyRulesMask[$key] |= $value;
}
}
}
else {
$this->_aclEntries[$folderPath] = array();
}
$this->_aclEntries[$folderPath][$_entryKey] = array($allowRulesMask, $denyRulesMask);
}
/**
* Get computed mask
*
* @param string $resourceType
* @param string $folderPath
* @return int
*/
public function getComputedMask($resourceType, $folderPath)
{
$_computedMask = 0;
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$_roleSessionVar = $_config->getRoleSessionVar();
$_userRole = null;
if (strlen($_roleSessionVar) && isset($_SESSION[$_roleSessionVar])) {
$_userRole = (string)$_SESSION[$_roleSessionVar];
}
if (!is_null($_userRole) && !strlen($_userRole)) {
$_userRole = null;
}
$folderPath = trim($folderPath, "/");
$_pathParts = explode("/", $folderPath);
$_currentPath = "/";
for($i = -1; $i < sizeof($_pathParts); $i++) {
if ($i >= 0) {
if (!strlen($_pathParts[$i])) {
continue;
}
if (array_key_exists($_currentPath . '*/', $this->_aclEntries))
$_computedMask = $this->mergePathComputedMask( $_computedMask, $resourceType, $_userRole, $_currentPath . '*/' );
$_currentPath .= $_pathParts[$i] . '/';
}
if (array_key_exists($_currentPath, $this->_aclEntries)) {
$_computedMask = $this->mergePathComputedMask( $_computedMask, $resourceType, $_userRole, $_currentPath );
}
}
return $_computedMask;
}
/**
* merge current mask with folder entries
*
* @access private
* @param int $currentMask
* @param string $resourceType
* @param string $userRole
* @param string $path
* @return int
*/
private function mergePathComputedMask( $currentMask, $resourceType, $userRole, $path )
{
$_folderEntries = $this->_aclEntries[$path];
$_possibleEntries = array();
$_possibleEntries[0] = "*#@#*";
$_possibleEntries[1] = "*#@#" . $resourceType;
if (!is_null($userRole))
{
$_possibleEntries[2] = $userRole . "#@#*";
$_possibleEntries[3] = $userRole . "#@#" . $resourceType;
}
for ($r = 0; $r < sizeof($_possibleEntries); $r++)
{
$_possibleKey = $_possibleEntries[$r];
if (array_key_exists($_possibleKey, $_folderEntries))
{
$_rulesMasks = $_folderEntries[$_possibleKey];
$currentMask |= array_sum($_rulesMasks[0]);
$currentMask ^= ($currentMask & array_sum($_rulesMasks[1]));
}
}
return $currentMask;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Core/AccessControlConfig.php | PHP | gpl3 | 8,292 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_Hooks
{
/**
* Run user defined hooks
*
* @param string $event
* @param object $errorHandler
* @param array $args
* @return boolean (true to continue processing, false otherwise)
*/
public static function run($event, $args = array())
{
$config = $GLOBALS['config'];
if (!isset($config['Hooks'])) {
return true;
}
$hooks =& $config['Hooks'];
if (!is_array($hooks) || !array_key_exists($event, $hooks) || !is_array($hooks[$event])) {
return true;
}
$errorHandler = $GLOBALS['connector']->getErrorHandler();
foreach ($hooks[$event] as $i => $hook) {
$object = NULL;
$method = NULL;
$function = NULL;
$data = NULL;
$passData = false;
/* $hook can be: a function, an object, an array of $functiontion and $data,
* an array of just a function, an array of object and method, or an
* array of object, method, and data.
*/
//function
if (is_string($hook)) {
$function = $hook;
}
//object
else if (is_object($hook)) {
$object = $hooks[$event][$i];
$method = "on" . $event;
}
//array of...
else if (is_array($hook)) {
$count = count($hook);
if ($count) {
//...object
if (is_object($hook[0])) {
$object = $hooks[$event][$i][0];
if ($count < 2) {
$method = "on" . $event;
} else {
//...object and method
$method = $hook[1];
if (count($hook) > 2) {
//...object, method and data
$passData = true;
$data = $hook[2];
}
}
}
//...function
else if (is_string($hook[0])) {
$function = $hook[0];
if ($count > 1) {
//...function with data
$passData = true;
$data = $hook[1];
}
}
}
}
/* If defined, add data to the arguments array */
if ($passData) {
$args = array_merge(array($data), $args);
}
if (isset($object)) {
$callback = array($object, $method);
}
else if (false !== ($pos = strpos($function, '::'))) {
$callback = array(substr($function, 0, $pos), substr($function, $pos + 2));
}
else {
$callback = $function;
}
if (is_callable($callback)) {
$ret = call_user_func_array($callback, $args);
}
else {
$functionName = CKFinder_Connector_Core_Hooks::_printCallback($callback);
$errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_CUSTOM_ERROR,
"CKFinder failed to call a hook: " . $functionName);
return false;
}
//String return is a custom error
if (is_string($ret)) {
$errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_CUSTOM_ERROR, $ret);
return false;
}
//hook returned an error code, user error codes start from 50000
//error codes are important because this way it is possible to create multilanguage extensions
//TODO: two custom extensions may be popular and return the same error codes
//recomendation: create a function that calculates the error codes starting number
//for an extension, a pool of 100 error codes for each extension should be safe enough
else if (is_int($ret)) {
$errorHandler->throwError($ret);
return false;
}
//no value returned
else if( $ret === null ) {
$functionName = CKFinder_Connector_Core_Hooks::_printCallback($callback);
$errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_CUSTOM_ERROR,
"CKFinder extension returned an invalid value (null)." .
"Hook " . $functionName . " should return a value.");
return false;
}
else if (!$ret) {
return false;
}
}
return true;
}
/**
* Print user friendly name of a callback
*
* @param mixed $callback
* @return string
*/
public static function _printCallback($callback)
{
if (is_array($callback)) {
if (is_object($callback[0])) {
$className = get_class($callback[0]);
} else {
$className = strval($callback[0]);
}
$functionName = $className . '::' . strval($callback[1]);
}
else {
$functionName = strval($callback);
}
return $functionName;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Core/Hooks.php | PHP | gpl3 | 6,152 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
/**
* Include access control config class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";
/**
* Include resource type config class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";
/**
* Include thumbnails config class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";
/**
* Include images config class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ImagesConfig.php";
/**
* Main config parser
*
*
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
* @global string $GLOBALS['config']
*/
class CKFinder_Connector_Core_Config
{
/**
* Is CKFinder enabled
*
* @var boolean
* @access private
*/
private $_isEnabled = false;
/**
* License Name
*
* @var string
* @access private
*/
private $_licenseName = "";
/**
* License Key
*
* @var string
* @access private
*/
private $_licenseKey = "";
/**
* Role session variable name
*
* @var string
* @access private
*/
private $_roleSessionVar = "CKFinder_UserRole";
/**
* Access Control Configuration
*
* @var CKFinder_Connector_Core_AccessControlConfig
* @access private
*/
private $_accessControlConfigCache;
/**
* ResourceType config cache
*
* @var array
* @access private
*/
private $_resourceTypeConfigCache = array();
/**
* Thumbnails config cache
*
* @var CKFinder_Connector_Core_ThumbnailsConfig
* @access private
*/
private $_thumbnailsConfigCache;
/**
* Images config cache
*
* @var CKFinder_Connector_Core_ImagesConfig
* @access private
*/
private $_imagesConfigCache;
/**
* Array with default resource types names
*
* @access private
* @var array
*/
private $_defaultResourceTypes = array();
/**
* Filesystem encoding
*
* @var string
* @access private
*/
private $_filesystemEncoding;
/**
* Check double extension
*
* @var boolean
* @access private
*/
private $_checkDoubleExtension = true;
/**
* If set to true, validate image size
*
* @var boolean
* @access private
*/
private $_secureImageUploads = true;
/**
* Check file size after scaling images (applies to images only)
*
* @var boolean
*/
private $_checkSizeAfterScaling = true;
/**
* For security, HTML is allowed in the first Kb of data for files having the following extensions only
*
* @var array
* @access private
*/
private $_htmlExtensions = array('html', 'htm', 'xml', 'xsd', 'txt', 'js');
/**
* Chmod files after upload to the following permission
*
* @var integer
* @access private
*/
private $_chmodFiles = 0777;
/**
* Chmod directories after creation
*
* @var integer
* @access private
*/
private $_chmodFolders = 0755;
/**
* Hide folders
*
* @var array
* @access private
*/
private $_hideFolders = array(".svn", "CVS");
/**
* Hide files
*
* @var integer
* @access private
*/
private $_hideFiles = array(".*");
/**
* If set to true, force ASCII names
*
* @var boolean
* @access private
*/
private $_forceAscii = false;
function __construct()
{
$this->loadValues();
}
/**
* Get file system encoding, returns null if encoding is not set
*
* @access public
* @return string
*/
public function getFilesystemEncoding()
{
return $this->_filesystemEncoding;
}
/**
* Get "secureImageUploads" value
*
* @access public
* @return boolean
*/
public function getSecureImageUploads()
{
return $this->_secureImageUploads;
}
/**
* Get "checkSizeAfterScaling" value
*
* @access public
* @return boolean
*/
public function checkSizeAfterScaling()
{
return $this->_checkSizeAfterScaling;
}
/**
* Get "htmlExtensions" value
*
* @access public
* @return array
*/
public function getHtmlExtensions()
{
return $this->_htmlExtensions;
}
/**
* Get "forceAscii" value
*
* @access public
* @return array
*/
public function forceAscii()
{
return $this->_forceAscii;
}
/**
* Get regular expression to hide folders
*
* @access public
* @return array
*/
public function getHideFoldersRegex()
{
static $folderRegex;
if (!isset($folderRegex)) {
if (is_array($this->_hideFolders) && $this->_hideFolders) {
$folderRegex = join("|", $this->_hideFolders);
$folderRegex = strtr($folderRegex, array("?" => "__QMK__", "*" => "__AST__", "|" => "__PIP__"));
$folderRegex = preg_quote($folderRegex, "/");
$folderRegex = strtr($folderRegex, array("__QMK__" => ".", "__AST__" => ".*", "__PIP__" => "|"));
$folderRegex = "/^(?:" . $folderRegex . ")$/uim";
}
else {
$folderRegex = "";
}
}
return $folderRegex;
}
/**
* Get regular expression to hide files
*
* @access public
* @return array
*/
public function getHideFilesRegex()
{
static $fileRegex;
if (!isset($fileRegex)) {
if (is_array($this->_hideFiles) && $this->_hideFiles) {
$fileRegex = join("|", $this->_hideFiles);
$fileRegex = strtr($fileRegex, array("?" => "__QMK__", "*" => "__AST__", "|" => "__PIP__"));
$fileRegex = preg_quote($fileRegex, "/");
$fileRegex = strtr($fileRegex, array("__QMK__" => ".", "__AST__" => ".*", "__PIP__" => "|"));
$fileRegex = "/^(?:" . $fileRegex . ")$/uim";
}
else {
$fileRegex = "";
}
}
return $fileRegex;
}
/**
* Get "Check double extension" value
*
* @access public
* @return boolean
*/
public function getCheckDoubleExtension()
{
return $this->_checkDoubleExtension;
}
/**
* Get default resource types
*
* @access public
* @return array()
*/
public function getDefaultResourceTypes()
{
return $this->_defaultResourceTypes;
}
/**
* Is CKFinder enabled
*
* @access public
* @return boolean
*/
public function getIsEnabled()
{
return $this->_isEnabled;
}
/**
* Get license key
*
* @access public
* @return string
*/
public function getLicenseKey()
{
return $this->_licenseKey;
}
/**
* Get license name
*
* @access public
* @return string
*/
public function getLicenseName()
{
return $this->_licenseName;
}
/**
* Get chmod settings for uploaded files
*
* @access public
* @return integer
*/
public function getChmodFiles()
{
return $this->_chmodFiles;
}
/**
* Get chmod settings for created directories
*
* @access public
* @return integer
*/
public function getChmodFolders()
{
return $this->_chmodFolders;
}
/**
* Get role sesion variable name
*
* @access public
* @return string
*/
public function getRoleSessionVar()
{
return $this->_roleSessionVar;
}
/**
* Get resourceTypeName config
*
* @param string $resourceTypeName
* @return CKFinder_Connector_Core_ResourceTypeConfig|null
* @access public
*/
public function &getResourceTypeConfig($resourceTypeName)
{
$_null = null;
if (isset($this->_resourceTypeConfigCache[$resourceTypeName])) {
return $this->_resourceTypeConfigCache[$resourceTypeName];
}
if (!isset($GLOBALS['config']['ResourceType']) || !is_array($GLOBALS['config']['ResourceType'])) {
return $_null;
}
reset($GLOBALS['config']['ResourceType']);
while (list($_key,$_resourceTypeNode) = each($GLOBALS['config']['ResourceType'])) {
if ($_resourceTypeNode['name'] === $resourceTypeName) {
$this->_resourceTypeConfigCache[$resourceTypeName] = new CKFinder_Connector_Core_ResourceTypeConfig($_resourceTypeNode);
return $this->_resourceTypeConfigCache[$resourceTypeName];
}
}
return $_null;
}
/**
* Get thumbnails config
*
* @access public
* @return CKFinder_Connector_Core_ThumbnailsConfig
*/
public function &getThumbnailsConfig()
{
if (!isset($this->_thumbnailsConfigCache)) {
$this->_thumbnailsConfigCache = new CKFinder_Connector_Core_ThumbnailsConfig(isset($GLOBALS['config']['Thumbnails']) ? $GLOBALS['config']['Thumbnails'] : array());
}
return $this->_thumbnailsConfigCache;
}
/**
* Get images config
*
* @access public
* @return CKFinder_Connector_Core_ImagesConfig
*/
public function &getImagesConfig()
{
if (!isset($this->_imagesConfigCache)) {
$this->_imagesConfigCache = new CKFinder_Connector_Core_ImagesConfig(isset($GLOBALS['config']['Images']) ? $GLOBALS['config']['Images'] : array());
}
return $this->_imagesConfigCache;
}
/**
* Get access control config
*
* @access public
* @return CKFinder_Connector_Core_AccessControlConfig
*/
public function &getAccessControlConfig()
{
if (!isset($this->_accessControlConfigCache)) {
$this->_accessControlConfigCache = new CKFinder_Connector_Core_AccessControlConfig(isset($GLOBALS['config']['AccessControl']) ? $GLOBALS['config']['AccessControl'] : array());
}
return $this->_accessControlConfigCache;
}
/**
* Load values from config
*
* @access private
*/
private function loadValues()
{
if (function_exists('CheckAuthentication')) {
$this->_isEnabled = CheckAuthentication();
}
if (isset($GLOBALS['config']['LicenseName'])) {
$this->_licenseName = (string)$GLOBALS['config']['LicenseName'];
}
if (isset($GLOBALS['config']['LicenseKey'])) {
$this->_licenseKey = (string)$GLOBALS['config']['LicenseKey'];
}
if (isset($GLOBALS['config']['FilesystemEncoding'])) {
$this->_filesystemEncoding = (string)$GLOBALS['config']['FilesystemEncoding'];
}
if (isset($GLOBALS['config']['RoleSessionVar'])) {
$this->_roleSessionVar = (string)$GLOBALS['config']['RoleSessionVar'];
}
if (isset($GLOBALS['config']['CheckDoubleExtension'])) {
$this->_checkDoubleExtension = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['CheckDoubleExtension']);
}
if (isset($GLOBALS['config']['SecureImageUploads'])) {
$this->_secureImageUploads = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['SecureImageUploads']);
}
if (isset($GLOBALS['config']['CheckSizeAfterScaling'])) {
$this->_checkSizeAfterScaling = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['CheckSizeAfterScaling']);
}
if (isset($GLOBALS['config']['ForceAscii'])) {
$this->_forceAscii = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['ForceAscii']);
}
if (isset($GLOBALS['config']['HtmlExtensions'])) {
$this->_htmlExtensions = (array)$GLOBALS['config']['HtmlExtensions'];
}
if (isset($GLOBALS['config']['HideFolders'])) {
$this->_hideFolders = (array)$GLOBALS['config']['HideFolders'];
}
if (isset($GLOBALS['config']['HideFiles'])) {
$this->_hideFiles = (array)$GLOBALS['config']['HideFiles'];
}
if (isset($GLOBALS['config']['ChmodFiles'])) {
$this->_chmodFiles = $GLOBALS['config']['ChmodFiles'];
}
if (isset($GLOBALS['config']['ChmodFolders'])) {
$this->_chmodFolders = $GLOBALS['config']['ChmodFolders'];
}
if (isset($GLOBALS['config']['DefaultResourceTypes'])) {
$_defaultResourceTypes = (string)$GLOBALS['config']['DefaultResourceTypes'];
if (strlen($_defaultResourceTypes)) {
$this->_defaultResourceTypes = explode(",", $_defaultResourceTypes);
}
}
}
/**
* Get all resource type names defined in config
*
* @return array
* @access public
*/
public function getResourceTypeNames()
{
if (!isset($GLOBALS['config']['ResourceType']) || !is_array($GLOBALS['config']['ResourceType'])) {
return array();
}
$_names = array();
foreach ($GLOBALS['config']['ResourceType'] as $key => $_resourceType) {
if (isset($_resourceType['name'])) {
$_names[] = (string)$_resourceType['name'];
}
}
return $_names;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Core/Config.php | PHP | gpl3 | 14,307 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
/**
* Include file system utils class
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Utils/FileSystem.php";
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_FolderHandler
{
/**
* CKFinder_Connector_Core_ResourceTypeConfig object
*
* @var CKFinder_Connector_Core_ResourceTypeConfig
* @access private
*/
private $_resourceTypeConfig;
/**
* ResourceType name
*
* @var string
* @access private
*/
private $_resourceTypeName = "";
/**
* Client path
*
* @var string
* @access private
*/
private $_clientPath = "/";
/**
* Url
*
* @var string
* @access private
*/
private $_url;
/**
* Server path
*
* @var string
* @access private
*/
private $_serverPath;
/**
* Thumbnails server path
*
* @var string
* @access private
*/
private $_thumbsServerPath;
/**
* ACL mask
*
* @var int
* @access private
*/
private $_aclMask;
/**
* Folder info
*
* @var mixed
* @access private
*/
private $_folderInfo;
/**
* Thumbnails folder info
*
* @var mized
* @access private
*/
private $_thumbsFolderInfo;
function __construct()
{
if (isset($_GET["type"])) {
$this->_resourceTypeName = (string)$_GET["type"];
}
if (isset($_GET["currentFolder"])) {
$this->_clientPath = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding((string)$_GET["currentFolder"]);
}
if (!strlen($this->_clientPath)) {
$this->_clientPath = "/";
}
else {
if (substr($this->_clientPath, -1, 1) != "/") {
$this->_clientPath .= "/";
}
if (substr($this->_clientPath, 0, 1) != "/") {
$this->_clientPath = "/" . $this->_clientPath;
}
}
$this->_aclMask = -1;
}
/**
* Get resource type config
*
* @return CKFinder_Connector_Core_ResourceTypeConfig
* @access public
*/
public function &getResourceTypeConfig()
{
if (!isset($this->_resourceTypeConfig)) {
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$this->_resourceTypeConfig = $_config->getResourceTypeConfig($this->_resourceTypeName);
}
if (is_null($this->_resourceTypeConfig)) {
$connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector");
$oErrorHandler =& $connector->getErrorHandler();
$oErrorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_TYPE);
}
return $this->_resourceTypeConfig;
}
/**
* Get resource type name
*
* @return string
* @access public
*/
public function getResourceTypeName()
{
return $this->_resourceTypeName;
}
/**
* Get Client path
*
* @return string
* @access public
*/
public function getClientPath()
{
return $this->_clientPath;
}
/**
* Get Url
*
* @return string
* @access public
*/
public function getUrl()
{
if (is_null($this->_url)) {
$this->_resourceTypeConfig = $this->getResourceTypeConfig();
if (is_null($this->_resourceTypeConfig)) {
$connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector");
$oErrorHandler =& $connector->getErrorHandler();
$oErrorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_TYPE);
$this->_url = "";
}
else {
$this->_url = $this->_resourceTypeConfig->getUrl() . ltrim($this->getClientPath(), "/");
}
}
return $this->_url;
}
/**
* Get server path
*
* @return string
* @access public
*/
public function getServerPath()
{
if (is_null($this->_serverPath)) {
$this->_resourceTypeConfig = $this->getResourceTypeConfig();
$this->_serverPath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_resourceTypeConfig->getDirectory(), ltrim($this->_clientPath, "/"));
}
return $this->_serverPath;
}
/**
* Get server path to thumbnails directory
*
* @access public
* @return string
*/
public function getThumbsServerPath()
{
if (is_null($this->_thumbsServerPath)) {
$this->_resourceTypeConfig = $this->getResourceTypeConfig();
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$_thumbnailsConfig = $_config->getThumbnailsConfig();
// Get the resource type directory.
$this->_thumbsServerPath = CKFinder_Connector_Utils_FileSystem::combinePaths($_thumbnailsConfig->getDirectory(), $this->_resourceTypeConfig->getName());
// Return the resource type directory combined with the required path.
$this->_thumbsServerPath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_thumbsServerPath, ltrim($this->_clientPath, '/'));
if (!is_dir($this->_thumbsServerPath)) {
if(!CKFinder_Connector_Utils_FileSystem::createDirectoryRecursively($this->_thumbsServerPath)) {
/**
* @todo Ckfinder_Connector_Utils_Xml::raiseError(); perhaps we should return error
*
*/
}
}
}
return $this->_thumbsServerPath;
}
/**
* Get ACL Mask
*
* @return int
* @access public
*/
public function getAclMask()
{
$_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
$_aclConfig = $_config->getAccessControlConfig();
if ($this->_aclMask == -1) {
$this->_aclMask = $_aclConfig->getComputedMask($this->_resourceTypeName, $this->_clientPath);
}
return $this->_aclMask;
}
/**
* Check ACL
*
* @access public
* @param int $aclToCkeck
* @return boolean
*/
public function checkAcl($aclToCkeck)
{
$aclToCkeck = intval($aclToCkeck);
$maska = $this->getAclMask();
return (($maska & $aclToCkeck) == $aclToCkeck);
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Core/FolderHandler.php | PHP | gpl3 | 7,352 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
/**
* This class keeps images configuration
*
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_ImagesConfig
{
/**
* Max width for images, 0 to disable resizing
*
* @var int
* @access private
*/
private $_maxWidth = 0;
/**
* Max height for images, 0 to disable resizing
*
* @var int
* @access private
*/
private $_maxHeight = 0;
/**
* Quality of thumbnails
*
* @var int
* @access private
*/
private $_quality = 80;
function __construct($imagesNode)
{
if(isset($imagesNode['maxWidth'])) {
$_maxWidth = intval($imagesNode['maxWidth']);
if($_maxWidth>=0) {
$this->_maxWidth = $_maxWidth;
}
}
if(isset($imagesNode['maxHeight'])) {
$_maxHeight = intval($imagesNode['maxHeight']);
if($_maxHeight>=0) {
$this->_maxHeight = $_maxHeight;
}
}
if(isset($imagesNode['quality'])) {
$_quality = intval($imagesNode['quality']);
if($_quality>0 && $_quality<=100) {
$this->_quality = $_quality;
}
}
}
/**
* Get maximum width of a thumbnail
*
* @access public
* @return int
*/
public function getMaxWidth()
{
return $this->_maxWidth;
}
/**
* Get maximum height of a thumbnail
*
* @access public
* @return int
*/
public function getMaxHeight()
{
return $this->_maxHeight;
}
/**
* Get quality of a thumbnail (1-100)
*
* @access public
* @return int
*/
public function getQuality()
{
return $this->_quality;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Core/ImagesConfig.php | PHP | gpl3 | 2,482 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
/**
* Sigleton factory creating objects
*
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_Factory
{
static $instances = array();
/**
* Initiate factory
* @static
*/
static function initFactory()
{
}
/**
* Get instance of specified class
* Short and Long class names are possible
* <code>
* $obj1 =& CKFinder_Connector_Core_Factory::getInstance("Ckfinder_Connector_Core_Xml");
* $obj2 =& CKFinder_Connector_Core_Factory::getInstance("Core_Xml");
* </code>
*
* @param string $className class name
* @static
* @access public
* @return object
*/
public static function &getInstance($className)
{
$namespace = "CKFinder_Connector_";
$baseName = str_replace($namespace,"",$className);
$className = $namespace.$baseName;
if (!isset(CKFinder_Connector_Core_Factory::$instances[$className])) {
require_once CKFINDER_CONNECTOR_LIB_DIR . "/" . str_replace("_","/",$baseName).".php";
CKFinder_Connector_Core_Factory::$instances[$className] = new $className;
}
return CKFinder_Connector_Core_Factory::$instances[$className];
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Core/Factory.php | PHP | gpl3 | 1,899 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
/**
* Registry for storing global variables values (not references)
*
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_Registry
{
/**
* Arrat that stores all values
*
* @var array
* @access private
*/
private $_store = array();
/**
* Chacke if value has been set
*
* @param string $key
* @return boolean
* @access private
*/
private function isValid($key)
{
return array_key_exists($key, $this->_store);
}
/**
* Set value
*
* @param string $key
* @param mixed $obj
* @access public
*/
public function set($key, $obj)
{
$this->_store[$key] = $obj;
}
/**
* Get value
*
* @param string $key
* @return mixed
* @access public
*/
public function get($key)
{
if ($this->isValid($key)) {
return $this->_store[$key];
}
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Core/Registry.php | PHP | gpl3 | 1,623 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
/**
* Include basic Xml library
*/
require_once CKFINDER_CONNECTOR_LIB_DIR . "/Utils/XmlNode.php";
/**
* XML document
*
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_Xml
{
/**
* Connector node (root)
*
* @var Ckfinder_Connector_Utils_XmlNode
* @access private
*/
private $_connectorNode;
/**
* Error node
*
* @var Ckfinder_Connector_Utils_XmlNode
* @access private
*/
private $_errorNode;
function __construct()
{
$this->sendXmlHeaders();
echo $this->getXMLDeclaration();
$this->_connectorNode = new Ckfinder_Connector_Utils_XmlNode("Connector");
$this->_errorNode = new Ckfinder_Connector_Utils_XmlNode("Error");
$this->_connectorNode->addChild($this->_errorNode);
}
/**
* Return connector node
*
* @return Ckfinder_Connector_Utils_XmlNode
* @access public
*/
public function &getConnectorNode()
{
return $this->_connectorNode;
}
/**
* Return error node
*
* @return Ckfinder_Connector_Utils_XmlNode
* @access public
*/
public function &getErrorNode()
{
return $this->_errorNode;
}
/**
* Send XML headers to the browser (and force browser not to use cache)
* @access private
*/
private function sendXmlHeaders()
{
// Prevent the browser from caching the result.
// Date in the past
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT') ;
// always modified
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT') ;
// HTTP/1.1
header('Cache-Control: no-store, no-cache, must-revalidate') ;
header('Cache-Control: post-check=0, pre-check=0', false) ;
// HTTP/1.0
header('Pragma: no-cache') ;
// Set the response format.
header( 'Content-Type:text/xml; charset=utf-8' ) ;
}
/**
* Return XML declaration
*
* @access private
* @return string
*/
private function getXMLDeclaration()
{
return '<?xml version="1.0" encoding="utf-8"?>';
}
/**
* Send error message to the browser. If error number is set to 1, $text (custom error message) will be displayed
* Don't call this function directly
*
* @access public
* @param int $number error number
* @param string $text Custom error message (optional)
*/
public function raiseError( $number, $text = false)
{
$this->_errorNode->addAttribute("number", intval($number));
if (false!=$text) {
$this->_errorNode->addAttribute("text", $text);
}
echo $this->_connectorNode->asXML();
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Core/Xml.php | PHP | gpl3 | 3,467 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
/**
* This class keeps thumbnails configuration
*
* @package CKFinder
* @subpackage Config
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_ThumbnailsConfig
{
/**
* Url to thumbnails directory
*
* @var string
* @access private
*/
private $_url = "";
/**
* Directory where thumbnails are stored
*
* @var string
* @access private
*/
private $_directory = "";
/**
* Are thumbnails enabled
*
* @var boolean
* @access private
*/
private $_isEnabled = false;
/**
* Direct access to thumbnails?
*
* @var boolean
* @access private
*/
private $_directAccess = false;
/**
* Max width for thumbnails
*
* @var int
* @access private
*/
private $_maxWidth = 100;
/**
* Max height for thumbnails
*
* @var int
* @access private
*/
private $_maxHeight = 100;
/**
* Quality of thumbnails
*
* @var int
* @access private
*/
private $_quality = 100;
/**
* Are thumbnails of bitmap files enabled?
*
* @var boolean
* @access private
*/
private $_bmpSupported = false;
function __construct($thumbnailsNode)
{
if(extension_loaded('gd') && isset($thumbnailsNode['enabled'])) {
$this->_isEnabled = CKFinder_Connector_Utils_Misc::booleanValue($thumbnailsNode['enabled']);
}
if( isset($thumbnailsNode['directAccess'])) {
$this->_directAccess = CKFinder_Connector_Utils_Misc::booleanValue($thumbnailsNode['directAccess']);
}
if( isset($thumbnailsNode['bmpSupported'])) {
$this->_bmpSupported = CKFinder_Connector_Utils_Misc::booleanValue($thumbnailsNode['bmpSupported']);
}
if(isset($thumbnailsNode['maxWidth'])) {
$_maxWidth = intval($thumbnailsNode['maxWidth']);
if($_maxWidth>=0) {
$this->_maxWidth = $_maxWidth;
}
}
if(isset($thumbnailsNode['maxHeight'])) {
$_maxHeight = intval($thumbnailsNode['maxHeight']);
if($_maxHeight>=0) {
$this->_maxHeight = $_maxHeight;
}
}
if(isset($thumbnailsNode['quality'])) {
$_quality = intval($thumbnailsNode['quality']);
if($_quality>0 && $_quality<=100) {
$this->_quality = $_quality;
}
}
if(isset($thumbnailsNode['url'])) {
$this->_url = $thumbnailsNode['url'];
}
if (!strlen($this->_url)) {
$this->_url = "/";
}
else if(substr($this->_url,-1,1) != "/") {
$this->_url .= "/";
}
if(isset($thumbnailsNode['directory'])) {
$this->_directory = $thumbnailsNode['directory'];
}
}
/**
* Get URL
*
* @access public
* @return string
*/
public function getUrl()
{
return $this->_url;
}
/**
* Get directory
*
* @access public
* @return string
*/
public function getDirectory()
{
return $this->_directory;
}
/**
* Get is enabled setting
*
* @access public
* @return boolean
*/
public function getIsEnabled()
{
return $this->_isEnabled;
}
/**
* Get is enabled setting
*
* @access public
* @return boolean
*/
public function getBmpSupported()
{
return $this->_bmpSupported;
}
/**
* Is direct access to thumbnails allowed?
*
* @access public
* @return boolean
*/
public function getDirectAccess()
{
return $this->_directAccess;
}
/**
* Get maximum width of a thumbnail
*
* @access public
* @return int
*/
public function getMaxWidth()
{
return $this->_maxWidth;
}
/**
* Get maximum height of a thumbnail
*
* @access public
* @return int
*/
public function getMaxHeight()
{
return $this->_maxHeight;
}
/**
* Get quality of a thumbnail (1-100)
*
* @access public
* @return int
*/
public function getQuality()
{
return $this->_quality;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Core/ThumbnailsConfig.php | PHP | gpl3 | 5,076 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
if (!defined('IN_CKFINDER')) exit;
/**
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
/**
* Executes all commands
*
* @package CKFinder
* @subpackage Core
* @copyright CKSource - Frederico Knabben
*/
class CKFinder_Connector_Core_Connector
{
/**
* Registry
*
* @var CKFinder_Connector_Core_Registry
* @access private
*/
private $_registry;
function __construct()
{
$this->_registry =& CKFinder_Connector_Core_Factory::getInstance("Core_Registry");
$this->_registry->set("errorHandler", "ErrorHandler_Base");
}
/**
* Generic handler for invalid commands
* @access public
*
*/
public function handleInvalidCommand()
{
$oErrorHandler =& $this->getErrorHandler();
$oErrorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_COMMAND);
}
/**
* Execute command
*
* @param string $command
* @access public
*/
public function executeCommand($command)
{
if (!CKFinder_Connector_Core_Hooks::run('BeforeExecuteCommand', array(&$command))) {
return;
}
switch ($command)
{
case 'FileUpload':
$this->_registry->set("errorHandler", "ErrorHandler_FileUpload");
$obj =& CKFinder_Connector_Core_Factory::getInstance("CommandHandler_".$command);
$obj->sendResponse();
break;
case 'QuickUpload':
$this->_registry->set("errorHandler", "ErrorHandler_QuickUpload");
$obj =& CKFinder_Connector_Core_Factory::getInstance("CommandHandler_".$command);
$obj->sendResponse();
break;
case 'DownloadFile':
case 'Thumbnail':
$this->_registry->set("errorHandler", "ErrorHandler_Http");
$obj =& CKFinder_Connector_Core_Factory::getInstance("CommandHandler_".$command);
$obj->sendResponse();
break;
case 'CopyFiles':
case 'CreateFolder':
case 'DeleteFile':
case 'DeleteFolder':
case 'GetFiles':
case 'GetFolders':
case 'Init':
case 'MoveFiles':
case 'RenameFile':
case 'RenameFolder':
$obj =& CKFinder_Connector_Core_Factory::getInstance("CommandHandler_".$command);
$obj->sendResponse();
break;
default:
$this->handleInvalidCommand();
break;
}
}
/**
* Get error handler
*
* @access public
* @return CKFinder_Connector_ErrorHandler_Base|CKFinder_Connector_ErrorHandler_FileUpload|CKFinder_Connector_ErrorHandler_Http
*/
public function &getErrorHandler()
{
$_errorHandler = $this->_registry->get("errorHandler");
$oErrorHandler =& CKFinder_Connector_Core_Factory::getInstance($_errorHandler);
return $oErrorHandler;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/php5/Core/Connector.php | PHP | gpl3 | 3,542 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Spanish language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'No ha sido posible completar la solicitud. (Error %1)',
'Errors' => array (
'10' => 'Comando incorrecto.',
'11' => 'El tipo de recurso no ha sido especificado en la solicitud.',
'12' => 'El tipo de recurso solicitado no es válido.',
'102' => 'Nombre de fichero o carpeta no válido.',
'103' => 'No se ha podido completar la solicitud debido a las restricciones de autorización.',
'104' => 'No ha sido posible completar la solicitud debido a restricciones en el sistema de ficheros.',
'105' => 'La extensión del archivo no es válida.',
'109' => 'Petición inválida.',
'110' => 'Error desconocido.',
'115' => 'Ya existe un fichero o carpeta con ese nombre.',
'116' => 'No se ha encontrado la carpeta. Por favor, actualice y pruebe de nuevo.',
'117' => 'No se ha encontrado el fichero. Por favor, actualice la lista de ficheros y pruebe de nuevo.',
'118' => 'Las rutas origen y destino son iguales.',
'201' => 'Ya existía un fichero con ese nombre. El fichero subido ha sido renombrado como "%1"',
'202' => 'Fichero inválido',
'203' => 'Fichero inválido. El peso es demasiado grande.',
'204' => 'El fichero subido está corrupto.',
'205' => 'La carpeta temporal no está disponible en el servidor para las subidas.',
'206' => 'La subida se ha cancelado por razones de seguridad. El fichero contenía código HTML.',
'207' => 'El fichero subido ha sido renombrado como "%1"',
'300' => 'Ha fallado el mover el(los) fichero(s).',
'301' => 'Ha fallado el copiar el(los) fichero(s).',
'500' => 'El navegador de archivos está deshabilitado por razones de seguridad. Por favor, contacte con el administrador de su sistema y compruebe el fichero de configuración de CKFinder.',
'501' => 'El soporte para iconos está deshabilitado.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/es.php | PHP | gpl3 | 2,120 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Finnish language. Translated in Finnish 2010-12-15 by Petteri Salmela.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Pyyntöä ei voitu suorittaa. (Virhe %1)',
'Errors' => array (
'10' => 'Virheellinen komento.',
'11' => 'Pyynnön resurssityyppi on määrittelemättä.',
'12' => 'Pyynnön resurssityyppi on virheellinen.',
'102' => 'Virheellinen tiedosto- tai kansionimi.',
'103' => 'Oikeutesi eivät riitä pyynnön suorittamiseen.',
'104' => 'Tiedosto-oikeudet eivät riitä pyynnön suorittamiseen.',
'105' => 'Virheellinen tiedostotarkenne.',
'109' => 'Virheellinen pyyntö.',
'110' => 'Tuntematon virhe.',
'115' => 'Samanniminen tiedosto tai kansio on jo olemassa.',
'116' => 'Kansiota ei löydy. Yritä uudelleen kansiopäivityksen jälkeen.',
'117' => 'Tiedostoa ei löydy. Yritä uudelleen kansiopäivityksen jälkeen.',
'118' => 'Lähde- ja kohdekansio on sama!',
'201' => 'Samanniminen tiedosto on jo olemassa. Palvelimelle ladattu tiedosto on nimetty: "%1"',
'202' => 'Virheellinen tiedosto',
'203' => 'Virheellinen tiedosto. Tiedostokoko on liian suuri.',
'204' => 'Palvelimelle ladattu tiedosto on vioittunut.',
'205' => 'Väliaikaishakemistoa ei ole määritetty palvelimelle lataamista varten.',
'206' => 'Palvelimelle lataaminen on peruttu turvallisuussyistä. Tiedosto sisältää HTML-tyylistä dataa.',
'207' => 'Palvelimelle ladattu tiedosto on nimetty: "%1"',
'300' => 'Tiedostosiirto epäonnistui.',
'301' => 'Tiedostokopiointi epäonnistui.',
'500' => 'Tiedostoselain on kytketty käytöstä turvallisuussyistä. Pyydä pääkäyttäjää tarkastamaan CKFinderin asetustiedosto.',
'501' => 'Esikatselukuvien tuki on kytketty toiminnasta.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/fi.php | PHP | gpl3 | 1,944 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the English language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'בקשה נכשלה. שגיאה. (Error %1)',
'Errors' => array (
'10' => 'Invalid command.',
'11' => 'The resource type was not specified in the request.',
'12' => 'The requested resource type is not valid.',
'102' => 'Invalid file or folder name.',
'103' => 'It was not possible to complete the request due to authorization restrictions.',
'104' => 'It was not possible to complete the request due to file system permission restrictions.',
'105' => 'Invalid file extension.',
'109' => 'Invalid request.',
'110' => 'Unknown error.',
'115' => 'A file or folder with the same name already exists.',
'116' => 'Folder not found. Please refresh and try again.',
'117' => 'File not found. Please refresh the files list and try again.',
'118' => 'Source and target paths are equal.',
'201' => 'A file with the same name is already available. The uploaded file has been renamed to "%1"',
'202' => 'Invalid file',
'203' => 'Invalid file. The file size is too big.',
'204' => 'The uploaded file is corrupt.',
'205' => 'No temporary folder is available for upload in the server.',
'206' => 'Upload cancelled for security reasons. The file contains HTML like data.',
'207' => 'The uploaded file has been renamed to "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.',
'501' => 'The thumbnails support is disabled.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/he.php | PHP | gpl3 | 1,864 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Slovak language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Server nemohol dokončiť spracovanie požiadavky. (Chyba %1)',
'Errors' => array (
'10' => 'Neplatný príkaz.',
'11' => 'V požiadavke nebol špecifikovaný typ súboru.',
'12' => 'Nepodporovaný typ súboru.',
'102' => 'Neplatný názov súboru alebo adresára.',
'103' => 'Nebolo možné dokončiť spracovanie požiadavky kvôli nepostačujúcej úrovni oprávnení.',
'104' => 'Nebolo možné dokončiť spracovanie požiadavky kvôli obmedzeniam v prístupových právach ku súborom.',
'105' => 'Neplatná prípona súboru.',
'109' => 'Neplatná požiadavka.',
'110' => 'Neidentifikovaná chyba.',
'115' => 'Zadaný súbor alebo adresár už existuje.',
'116' => 'Adresár nebol nájdený. Aktualizujte obsah adresára (Znovunačítať) a skúste znovu.',
'117' => 'Súbor nebol nájdený. Aktualizujte obsah adresára (Znovunačítať) a skúste znovu.',
'118' => 'Source and target paths are equal.',
'201' => 'Súbor so zadaným názvom už existuje. Prekopírovaný súbor bol premenovaný na "%1"',
'202' => 'Neplatný súbor',
'203' => 'Neplatný súbor - súbor presahuje maximálnu povolenú veľkosť.',
'204' => 'Kopírovaný súbor je poškodený.',
'205' => 'Server nemá špecifikovaný dočasný adresár pre kopírované súbory.',
'206' => 'Kopírovanie prerušené kvôli nedostatočnému zabezpečeniu. Súbor obsahuje HTML data.',
'207' => 'Prekopírovaný súbor bol premenovaný na "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'Prehliadanie súborov je zakázané kvôli bezpečnosti. Kontaktujte prosím administrátora a overte nastavenia v konfiguračnom súbore pre CKFinder.',
'501' => 'Momentálne nie je zapnutá podpora pre generáciu miniobrázkov.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/sk.php | PHP | gpl3 | 2,117 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Portuguese (Brazilian) language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Não foi possível completer o seu pedido. (Erro %1)',
'Errors' => array (
'10' => 'Comando inválido.',
'11' => 'O tipo de recurso não foi especificado na solicitação.',
'12' => 'O recurso solicitado não é válido.',
'102' => 'Nome do arquivo ou pasta inválido.',
'103' => 'Não foi possível completar a solicitação por restrições de acesso.',
'104' => 'Não foi possível completar a solicitação por restrições de acesso do sistema de arquivos.',
'105' => 'Extensão de arquivo inválida.',
'109' => 'Solicitação inválida.',
'110' => 'Erro desconhecido.',
'115' => 'Uma arquivo ou pasta já existe com esse nome.',
'116' => 'Pasta não encontrada. Atualize e tente novamente.',
'117' => 'Arquivo não encontrado. Atualize a lista de arquivos e tente novamente.',
'118' => 'Source and target paths are equal.',
'201' => 'Um arquivo com o mesmo nome já está disponível. O arquivo enviado foi renomeado para "%1"',
'202' => 'Arquivo inválido',
'203' => 'Arquivo inválido. O tamanho é muito grande.',
'204' => 'O arquivo enviado está corrompido.',
'205' => 'Nenhuma pasta temporária para envio está disponível no servidor.',
'206' => 'Transmissão cancelada por razões de segurança. O arquivo contem dados HTML.',
'207' => 'O arquivo enviado foi renomeado para "%1"',
'300' => 'Não foi possível mover o(s) arquivo(s).',
'301' => 'Não foi possível copiar o(s) arquivos(s).',
'500' => 'A navegação de arquivos está desativada por razões de segurança. Contacte o administrador do sistema.',
'501' => 'O suporte a miniaturas está desabilitado.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/pt-br.php | PHP | gpl3 | 1,982 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Latin American Spanish language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'No ha sido posible completar la solicitud. (Error %1)',
'Errors' => array (
'10' => 'Comando incorrecto.',
'11' => 'El tipo de recurso no ha sido especificado en la solicitud.',
'12' => 'El tipo de recurso solicitado no es válido.',
'102' => 'Nombre de archivo o carpeta no válido.',
'103' => 'No se ha podido completar la solicitud debido a las restricciones de autorización.',
'104' => 'No ha sido posible completar la solicitud debido a restricciones en el sistema de archivos.',
'105' => 'La extensión del archivo no es válida.',
'109' => 'Petición inválida.',
'110' => 'Error desconocido.',
'115' => 'Ya existe un archivo o carpeta con ese nombre.',
'116' => 'No se ha encontrado la carpeta. Por favor, actualice y pruebe de nuevo.',
'117' => 'No se ha encontrado el archivo. Por favor, actualice la lista de archivos y pruebe de nuevo.',
'118' => 'Las rutas origen y destino son iguales.',
'201' => 'Ya existía un archivo con ese nombre. El archivo subido ha sido renombrado como "%1"',
'202' => 'Archivo inválido',
'203' => 'Archivo inválido. El tamaño es demasiado grande.',
'204' => 'El archivo subido está corrupto.',
'205' => 'La carpeta temporal no está disponible en el servidor para las subidas.',
'206' => 'La subida se ha cancelado por razones de seguridad. El archivo contenía código HTML.',
'207' => 'El archivo subido ha sido renombrado como "%1"',
'300' => 'Ha fallado el mover el(los) archivo(s).',
'301' => 'Ha fallado el copiar el(los) archivo(s).',
'500' => 'El navegador de archivos está deshabilitado por razones de seguridad. Por favor, contacte con el administrador de su sistema y compruebe el archivo de configuración de CKFinder.',
'501' => 'El soporte para iconos está deshabilitado.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/es-mx.php | PHP | gpl3 | 2,138 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
//
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'A parancsot nem sikerült végrehajtani. (Hiba: %1)',
'Errors' => array (
'10' => 'Érvénytelen parancs.',
'11' => 'A fájl típusa nem lett a kérés során beállítva.',
'12' => 'A kívánt fájl típus érvénytelen.',
'102' => 'Érvénytelen fájl vagy könyvtárnév.',
'103' => 'Hitelesítési problémák miatt nem sikerült a kérést teljesíteni.',
'104' => 'Jogosultsági problémák miatt nem sikerült a kérést teljesíteni.',
'105' => 'Érvénytelen fájl kiterjesztés.',
'109' => 'Érvénytelen kérés.',
'110' => 'Ismeretlen hiba.',
'115' => 'A fálj vagy mappa már létezik ezen a néven.',
'116' => 'Mappa nem található. Kérjük frissítsen és próbálja újra.',
'117' => 'Fájl nem található. Kérjük frissítsen és próbálja újra.',
'118' => 'Source and target paths are equal.',
'201' => 'Ilyen nevű fájl már létezett. A feltöltött fájl a következőre lett átnevezve: "%1"',
'202' => 'Érvénytelen fájl',
'203' => 'Érvénytelen fájl. A fájl mérete túl nagy.',
'204' => 'A feltöltött fájl hibás.',
'205' => 'A szerveren nem található a feltöltéshez ideiglenes mappa.',
'206' => 'A feltöltés biztonsági okok miatt meg lett szakítva. The file contains HTML like data.',
'207' => 'El fichero subido ha sido renombrado como "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'A fájl-tallózó biztonsági okok miatt nincs engedélyezve. Kérjük vegye fel a kapcsolatot a rendszer üzemeltetőjével és ellenőrizze a CKFinder konfigurációs fájlt.',
'501' => 'A bélyegkép támogatás nincs engedélyezve.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/hu.php | PHP | gpl3 | 1,908 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Italian language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Impossibile completare la richiesta. (Errore %1)',
'Errors' => array (
'10' => 'Commando non valido.',
'11' => 'Il tipo di risorsa non è stato specificato nella richiesta.',
'12' => 'Il tipo di risorsa richiesto non è valido.',
'102' => 'Nome di file o cartella non valido.',
'103' => 'Non è stato possibile completare la richiesta a causa di restrizioni di autorizazione.',
'104' => 'Non è stato possibile completare la richiesta a causa di restrizioni nei permessi del file system.',
'105' => 'L\'estensione del file non è valida.',
'109' => 'Richiesta invalida.',
'110' => 'Errore sconosciuto.',
'115' => 'Un file o cartella con lo stesso nome è già esistente.',
'116' => 'Cartella non trovata. Prego aggiornare e riprovare.',
'117' => 'File non trovato. Prego aggirnare la lista dei file e riprovare.',
'118' => 'Source and target paths are equal.',
'201' => 'Un file con lo stesso nome è già disponibile. Il file caricato è stato rinominato in "%1".',
'202' => 'File invalido',
'203' => 'File invalido. La dimensione del file eccede i limiti del sistema.',
'204' => 'Il file caricato è corrotto.',
'205' => 'Il folder temporario non è disponibile new server.',
'206' => 'Upload annullato per motivi di sicurezza. Il file contiene dati in formatto HTML.',
'207' => 'El fichero subido ha sido renombrado como "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'Questo programma è disabilitato per motivi di sicurezza. Prego contattare l\'amministratore del sistema e verificare le configurazioni di CKFinder.',
'501' => 'Il supporto alle anteprime non è attivo.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/it.php | PHP | gpl3 | 2,004 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Chinese-Simplified language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => '请求的操作未能完成. (错误 %1)',
'Errors' => array (
'10' => '无效的指令.',
'11' => '文件类型不在许可范围之内.',
'12' => '文件类型无效.',
'102' => '无效的文件名或文件夹名称.',
'103' => '由于作者限制,该请求不能完成.',
'104' => '由于文件系统的限制,该请求不能完成.',
'105' => '无效的扩展名.',
'109' => '无效请求.',
'110' => '未知错误.',
'115' => '存在重名的文件或文件夹.',
'116' => '文件夹不存在. 请刷新后再试.',
'117' => '文件不存在. 请刷新列表后再试.',
'118' => '目标位置与当前位置相同.',
'201' => '文件与现有的重名. 新上传的文件改名为 "%1"',
'202' => '无效的文件',
'203' => '无效的文件. 文件尺寸太大.',
'204' => '上传文件已损失.',
'205' => '服务器中的上传临时文件夹无效.',
'206' => '因为安全原因,上传中断. 上传文件包含不能 HTML 类型数据.',
'207' => '新上传的文件改名为 "%1"',
'300' => '移动文件失败.',
'301' => '复制文件失败.',
'500' => '因为安全原因,文件不可浏览. 请联系系统管理员并检查CKFinder配置文件.',
'501' => '不支持缩略图方式.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/zh-cn.php | PHP | gpl3 | 1,610 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
//
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Het was niet mogelijk om deze actie uit te voeren. (Fout %1)',
'Errors' => array (
'10' => 'Ongeldige commando.',
'11' => 'De bestandstype komt niet voor in de aanvraag.',
'12' => 'De gevraagde brontype is niet geldig.',
'102' => 'Ongeldig bestands- of mapnaam.',
'103' => 'Het verzoek kon niet worden voltooid vanwege autorisatie beperkingen.',
'104' => 'Het verzoek kon niet worden voltooid door beperkingen in de permissies van het bestandssysteem.',
'105' => 'Ongeldige bestandsextensie.',
'109' => 'Ongeldige aanvraag.',
'110' => 'Onbekende fout.',
'115' => 'Er bestaat al een bestand of map met deze naam.',
'116' => 'Map niet gevonden, vernieuw de mappenlijst of kies een andere map.',
'117' => 'Bestand niet gevonden, vernieuw de mappenlijst of kies een andere folder.',
'118' => 'Source and target paths are equal.',
'201' => 'Er bestaat al een bestand met dezelfde naam. Het geüploade bestand is hernoemd naar: "%1"',
'202' => 'Ongeldige bestand',
'203' => 'Ongeldige bestand. Het bestand is te groot.',
'204' => 'De geüploade file is kapot.',
'205' => 'Er is geen hoofdmap gevonden.',
'206' => 'Het uploaden van het bestand is om veiligheidsredenen afgebroken. Er is HTML in het bestand aangetroffen.',
'207' => 'Het geuploade bestand is hernoemd naar: "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'Het uploaden van een bestand is momenteel niet mogelijk. Contacteer de beheerder en controleer het CKFinder configuratiebestand..',
'501' => 'De ondersteuning voor miniatuur afbeeldingen is uitgeschakeld.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/nl.php | PHP | gpl3 | 1,857 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
//
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Η ενέργεια δεν ήταν δυνατόν να εκτελεστεί. (Σφάλμα %1)',
'Errors' => array (
'10' => 'Λανθασμένη Εντολή.',
'11' => 'Το resource type δεν ήταν δυνατόν να προσδιορίστεί.',
'12' => 'Το resource type δεν είναι έγκυρο.',
'102' => 'Το όνομα αρχείου ή φακέλου δεν είναι έγκυρο.',
'103' => 'Δεν ήταν δυνατή η εκτέλεση της ενέργειας λόγω έλλειψης δικαιωμάτων ασφαλείας.',
'104' => 'Δεν ήταν δυνατή η εκτέλεση της ενέργειας λόγω περιορισμών του συστήματος αρχείων.',
'105' => 'Λανθασμένη Επέκταση Αρχείου.',
'109' => 'Λανθασμένη Ενέργεια.',
'110' => 'Άγνωστο Λάθος.',
'115' => 'Το αρχείο ή φάκελος υπάρχει ήδη.',
'116' => 'Ο φάκελος δεν βρέθηκε. Παρακαλούμε ανανεώστε τη σελίδα και προσπαθήστε ξανά.',
'117' => 'Το αρχείο δεν βρέθηκε. Παρακαλούμε ανανεώστε τη σελίδα και προσπαθήστε ξανά.',
'118' => 'Source and target paths are equal.',
'201' => 'Ένα αρχείο με την ίδια ονομασία υπάρχει ήδη. Το μεταφορτωμένο αρχείο μετονομάστηκε σε "%1"',
'202' => 'Λανθασμένο Αρχείο',
'203' => 'Λανθασμένο Αρχείο. Το μέγεθος του αρχείου είναι πολύ μεγάλο.',
'204' => 'Το μεταφορτωμένο αρχείο είναι χαλασμένο.',
'205' => 'Δεν υπάρχει προσωρινός φάκελος για να χρησιμοποιηθεί για τις μεταφορτώσεις των αρχείων.',
'206' => 'Η μεταφόρτωση ακυρώθηκε για λόγους ασφαλείας. Το αρχείο περιέχει δεδομένα μορφής HTML.',
'207' => 'Το μεταφορτωμένο αρχείο μετονομάστηκε σε "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'Ο πλοηγός αρχείων έχει απενεργοποιηθεί για λόγους ασφαλείας. Παρακαλούμε επικοινωνήστε με τον διαχειριστή της ιστοσελίδας και ελέγξτε το αρχείο ρυθμίσεων του πλοηγού (CKFinder).',
'501' => 'Η υποστήριξη των μικρογραφιών έχει απενεργοποιηθεί.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/el.php | PHP | gpl3 | 2,990 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Russian language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Невозможно завершить запрос. (Ошибка %1)',
'Errors' => array (
'10' => 'Неверная команда.',
'11' => 'Тип ресурса не указан в запросе.',
'12' => 'Неверный запрошенный тип ресурса.',
'102' => 'Неверное имя файла или папки.',
'103' => 'Невозможно завершить запрос из-за ограничений авторизации.',
'104' => 'Невозможно завершить запрос из-за ограничения разрешений файловой системы.',
'105' => 'Неверное расширение файла.',
'109' => 'Неверный запрос.',
'110' => 'Неизвестная ошибка.',
'115' => 'Файл или папка с таким именем уже существует.',
'116' => 'Папка не найдена. Пожалуйста, обновите вид папок и попробуйте еще раз.',
'117' => 'Файл не найден. Пожалуйста, обновите список файлов и попробуйте еще раз.',
'118' => 'Исходное расположение файла совпадает с указанным.',
'201' => 'Файл с таким именем уже существует. Загруженный файл был переименован в "%1"',
'202' => 'Неверный файл',
'203' => 'Неверный файл. Размер файла слишком большой.',
'204' => 'Загруженный файл поврежден.',
'205' => 'Недоступна временная папка для загрузки файлов на сервер.',
'206' => 'Загрузка отменена из-за соображений безопасности. Файл содержит похожие на HTML данные.',
'207' => 'Загруженный файл был переименован в "%1"',
'300' => 'Произошла ошибка при перемещении файла(ов).',
'301' => 'Произошла ошибка при копировании файла(ов).',
'500' => 'Браузер файлов отключен из-за соображений безопасности. Пожалуйста, сообщите вашему системному администратру и проверьте конфигурационный файл CKFinder.',
'501' => 'Поддержка миниатюр отключена.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/ru.php | PHP | gpl3 | 2,909 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
//
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Nebylo možno dokončit příkaz. (Error %1)',
'Errors' => array (
'10' => 'Neplatný příkaz.',
'11' => 'Požadovaný typ prostředku nebyl specifikován v dotazu.',
'12' => 'Požadovaný typ prostředku není validní.',
'102' => 'Šatné jméno souboru, nebo složky.',
'103' => 'Nebylo možné dokončit příkaz kvůli autorizačním omezením.',
'104' => 'Nebylo možné dokončit příkaz kvůli omezeným přístupovým právům k souborům.',
'105' => 'Špatná přípona souboru.',
'109' => 'Neplatný příkaz.',
'110' => 'Neznámá chyba.',
'115' => 'Již existuje soubor nebo složka se stejným jménem.',
'116' => 'Složka nenalezena, prosím obnovte stránku.',
'117' => 'Soubor nenalezen, prosím obnovte stránku.',
'118' => 'Source and target paths are equal.',
'201' => 'Již existoval soubor se stejným jménem, nahraný soubor byl přejmenován na "%1"',
'202' => 'Špatný soubor',
'203' => 'Špatný soubor. Příliš velký.',
'204' => 'Nahraný soubor je poškozen.',
'205' => 'Na serveru není dostupná dočasná složka.',
'206' => 'Nahrávání zrušeno z bezpečnostních důvodů. Soubor obsahuje data podobná HTML.',
'207' => 'Nahraný soubor byl přejmenován na "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'Nahrávání zrušeno z bezpečnostních důvodů. Zdělte to prosím administrátorovi a zkontrolujte nastavení CKFinderu.',
'501' => 'Podpora náhledů je vypnuta.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/cs.php | PHP | gpl3 | 1,753 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the English language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'リクエストの処理に失敗しました。 (Error %1)',
'Errors' => array (
'10' => '不正なコマンドです。',
'11' => 'リソースタイプが特定できませんでした。',
'12' => '要求されたリソースのタイプが正しくありません。',
'102' => 'ファイル名/フォルダ名が正しくありません。',
'103' => 'リクエストを完了できませんでした。認証エラーです。',
'104' => 'リクエストを完了できませんでした。ファイルのパーミッションが許可されていません。',
'105' => '拡張子が正しくありません。',
'109' => '不正なリクエストです。',
'110' => '不明なエラーが発生しました。',
'115' => '同じ名前のファイル/フォルダがすでに存在しています。',
'116' => 'フォルダが見つかりませんでした。ページを更新して再度お試し下さい。',
'117' => 'ファイルが見つかりませんでした。ページを更新して再度お試し下さい。',
'118' => '対象が移動元と同じ場所を指定されています。',
'201' => '同じ名前のファイルがすでに存在しています。"%1" にリネームして保存されました。',
'202' => '不正なファイルです。',
'203' => 'ファイルのサイズが大きすぎます。',
'204' => 'アップロードされたファイルは壊れています。',
'205' => 'サーバ内の一時作業フォルダが利用できません。',
'206' => 'セキュリティ上の理由からアップロードが取り消されました。このファイルにはHTMLに似たデータが含まれています。',
'207' => 'ファイルは "%1" にリネームして保存されました。',
'300' => 'ファイルの移動に失敗しました。',
'301' => 'ファイルのコピーに失敗しました。',
'500' => 'ファイルブラウザはセキュリティ上の制限から無効になっています。システム担当者に連絡をして、CKFinderの設定をご確認下さい。',
'501' => 'サムネイル機能は無効になっています。',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/ja.php | PHP | gpl3 | 2,507 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the German language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Ihre Anfrage konnte nicht bearbeitet werden. (Fehler %1)',
'Errors' => array (
'10' => 'Unbekannter Befehl.',
'11' => 'Der Ressourcentyp wurde nicht spezifiziert.',
'12' => 'Der Ressourcentyp ist nicht gültig.',
'102' => 'Ungültiger Datei oder Verzeichnisname.',
'103' => 'Ihre Anfrage konnte wegen Authorisierungseinschränkungen nicht durchgeführt werden.',
'104' => 'Ihre Anfrage konnte wegen Dateisystemeinschränkungen nicht durchgeführt werden.',
'105' => 'Invalid file extension.',
'109' => 'Unbekannte Anfrage.',
'110' => 'Unbekannter Fehler.',
'115' => 'Es existiert bereits eine Datei oder ein Ordner mit dem gleichen Namen.',
'116' => 'Verzeichnis nicht gefunden. Bitte aktualisieren Sie die Anzeige und versuchen es noch einmal.',
'117' => 'Datei nicht gefunden. Bitte aktualisieren Sie die Dateiliste und versuchen es noch einmal.',
'118' => 'Source and target paths are equal.',
'201' => 'Es existiert bereits eine Datei unter gleichem Namen. Die hochgeladene Datei wurde unter "%1" gespeichert.',
'202' => 'Ungültige Datei',
'203' => 'ungültige Datei. Die Dateigröße ist zu groß.',
'204' => 'Die hochgeladene Datei ist korrupt.',
'205' => 'Es existiert kein temp. Ordner für das Hochladen auf den Server.',
'206' => 'Das Hochladen wurde aus Sicherheitsgründen abgebrochen. Die Datei enthält HTML-Daten.',
'207' => 'Die hochgeladene Datei wurde unter "%1" gespeichert.',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'Der Dateibrowser wurde aus Sicherheitsgründen deaktiviert. Bitte benachrichtigen Sie Ihren Systemadministrator und prüfen Sie die Konfigurationsdatei.',
'501' => 'Die Miniaturansicht wurde deaktivert.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/de.php | PHP | gpl3 | 2,069 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the French language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'La demande n\'a pas abouti. (Erreur %1)',
'Errors' => array (
'10' => 'Commande invalide.',
'11' => 'Le type de ressource n\'a pas été spécifié dans la commande.',
'12' => 'Le type de ressource n\'est pas valide.',
'102' => 'Nom de fichier ou de dossier invalide.',
'103' => 'La demande n\'a pas abouti : problème d\'autorisations.',
'104' => 'La demande n\'a pas abouti : problème de restrictions de permissions.',
'105' => 'Extension de fichier invalide.',
'109' => 'Demande invalide.',
'110' => 'Erreur inconnue.',
'115' => 'Un fichier ou un dossier avec ce nom existe déjà.',
'116' => 'Ce dossier n\'existe pas. Veuillez rafraîchir la page et réessayer.',
'117' => 'Ce fichier n\'existe pas. Veuillez rafraîchir la page et réessayer.',
'118' => 'Les chemins vers la source et la cible sont les mêmes.',
'201' => 'Un fichier avec ce nom existe déjà. Le fichier téléversé a été renommé en "%1"',
'202' => 'Fichier invalide',
'203' => 'Fichier invalide. La taille est trop grande.',
'204' => 'Le fichier téléversé est corrompu.',
'205' => 'Aucun dossier temporaire n\'est disponible sur le serveur.',
'206' => 'Envoi interrompu pour raisons de sécurité. Le fichier contient des données de type HTML.',
'207' => 'El fichero subido ha sido renombrado como "%1"',
'300' => 'Le déplacement des fichiers a échoué.',
'301' => 'La copie des fichiers a échoué.',
'500' => 'L\'interface de gestion des fichiers est désactivé. Contactez votre administrateur et vérifier le fichier de configuration de CKFinder.',
'501' => 'La fonction "miniatures" est désactivée.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/fr.php | PHP | gpl3 | 1,980 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Swedish language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Begäran kunde inte utföras eftersom ett fel uppstod. (Error %1)',
'Errors' => array (
'10' => 'Ogiltig begäran.',
'11' => 'Resursens typ var inte specificerad i förfrågan.',
'12' => 'Den efterfrågade resurstypen är inte giltig.',
'102' => 'Ogiltigt fil- eller mappnamn.',
'103' => 'Begäran kunde inte utföras p.g.a. restriktioner av rättigheterna.',
'104' => 'Begäran kunde inte utföras p.g.a. restriktioner av rättigheter i filsystemet.',
'105' => 'Ogiltig filändelse.',
'109' => 'Ogiltig begäran.',
'110' => 'Okänt fel.',
'115' => 'En fil eller mapp med aktuellt namn finns redan.',
'116' => 'Mappen kunde inte hittas. Var god uppdatera sidan och försök igen.',
'117' => 'Filen kunde inte hittas. Var god uppdatera sidan och försök igen.',
'118' => 'Source and target paths are equal.',
'201' => 'En fil med aktuellt namn fanns redan. Den uppladdade filen har döpts om till "%1"',
'202' => 'Ogiltig fil',
'203' => 'Ogiltig fil. Filen var för stor.',
'204' => 'Den uppladdade filen var korrupt.',
'205' => 'En tillfällig mapp för uppladdning är inte tillgänglig på servern.',
'206' => 'Uppladdningen stoppades av säkerhetsskäl. Filen innehåller HTML-liknande data.',
'207' => 'Den uppladdade filen har döpts om till "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'Filhanteraren har stoppats av säkerhetsskäl. Var god kontakta administratören för att kontrollera konfigurationsfilen för CKFinder.',
'501' => 'Stöd för tumnaglar har stängts av.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/sv.php | PHP | gpl3 | 1,912 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the English language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'It was not possible to complete the request. (Error %1)',
'Errors' => array (
'10' => 'Invalid command.',
'11' => 'The resource type was not specified in the request.',
'12' => 'The requested resource type is not valid.',
'102' => 'Invalid file or folder name.',
'103' => 'It was not possible to complete the request due to authorization restrictions.',
'104' => 'It was not possible to complete the request due to file system permission restrictions.',
'105' => 'Invalid file extension.',
'109' => 'Invalid request.',
'110' => 'Unknown error.',
'115' => 'A file or folder with the same name already exists.',
'116' => 'Folder not found. Please refresh and try again.',
'117' => 'File not found. Please refresh the files list and try again.',
'118' => 'Source and target paths are equal.',
'201' => 'A file with the same name is already available. The uploaded file has been renamed to "%1"',
'202' => 'Invalid file',
'203' => 'Invalid file. The file size is too big.',
'204' => 'The uploaded file is corrupt.',
'205' => 'No temporary folder is available for upload in the server.',
'206' => 'Upload cancelled for security reasons. The file contains HTML like data.',
'207' => 'The uploaded file has been renamed to "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.',
'501' => 'The thumbnails support is disabled.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/en.php | PHP | gpl3 | 1,876 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
//
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Det var ikke mulig å utføre forespørselen. (Feil %1)',
'Errors' => array (
'10' => 'Ugyldig kommando.',
'11' => 'Ressurstypen ble ikke spesifisert i forepørselen.',
'12' => 'Ugyldig ressurstype.',
'102' => 'Ugyldig fil- eller mappenavn.',
'103' => 'Kunne ikke utføre forespørselen pga manglende autorisasjon.',
'104' => 'Kunne ikke utføre forespørselen pga manglende tilgang til filsystemet.',
'105' => 'Ugyldig filtype.',
'109' => 'Ugyldig forespørsel.',
'110' => 'Ukjent feil.',
'115' => 'Det finnes allerede en fil eller mappe med dette navnet.',
'116' => 'Kunne ikke finne mappen. Oppdater vinduet og prøv igjen.',
'117' => 'Kunne ikke finne filen. Oppdater vinduet og prøv igjen.',
'118' => 'Source and target paths are equal.',
'201' => 'Det fantes allerede en fil med dette navnet. Den opplastede filens navn har blitt endret til "%1"',
'202' => 'Ugyldig fil',
'203' => 'Ugyldig fil. Filen er for stor.',
'204' => 'Den opplastede filen er korrupt.',
'205' => 'Det finnes ingen midlertidig mappe for filopplastinger.',
'206' => 'Opplastingen ble avbrutt av sikkerhetshensyn. Filen inneholder HTML-aktig data.',
'207' => 'Den opplastede filens navn har blitt endret til "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'Filvelgeren ikke tilgjengelig av sikkerhetshensyn. Kontakt systemansvarlig og be han sjekke CKFinder\'s konfigurasjonsfil.',
'501' => 'Funksjon for minityrbilder er skrudd av.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/nb.php | PHP | gpl3 | 1,748 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Chinese (Taiwan) language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => '無法連接到伺服器 ! (錯誤代碼 %1)',
'Errors' => array (
'10' => '不合法的指令.',
'11' => '連接過程中 , 未指定資源形態 !',
'12' => '連接過程中出現不合法的資源形態 !',
'102' => '不合法的檔案或目錄名稱 !',
'103' => '無法連接:可能是使用者權限設定錯誤 !',
'104' => '無法連接:可能是伺服器檔案權限設定錯誤 !',
'105' => '無法上傳:不合法的副檔名 !',
'109' => '不合法的請求 !',
'110' => '不明錯誤 !',
'115' => '檔案或目錄名稱重複 !',
'116' => '找不到目錄 ! 請先重新整理 , 然後再試一次 !',
'117' => '找不到檔案 ! 請先重新整理 , 然後再試一次 !',
'118' => 'Source and target paths are equal.',
'201' => '伺服器上已有相同的檔案名稱 ! 您上傳的檔案名稱將會自動更改為 "%1"',
'202' => '不合法的檔案 !',
'203' => '不合法的檔案 ! 檔案大小超過預設值 !',
'204' => '您上傳的檔案已經損毀 !',
'205' => '伺服器上沒有預設的暫存目錄 !',
'206' => '檔案上傳程序因為安全因素已被系統自動取消 ! 可能是上傳的檔案內容包含 HTML 碼 !',
'207' => '您上傳的檔案名稱將會自動更改為 "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => '因為安全因素 , 檔案瀏覽器已被停用 ! 請聯絡您的系統管理者並檢查 CKFinder 的設定檔 config.php !',
'501' => '縮圖預覽功能已被停用 !',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/zh-tw.php | PHP | gpl3 | 1,876 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Slovenian language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Prišlo je do napake. (Napaka %1)',
'Errors' => array (
'10' => 'Napačen ukaz.',
'11' => 'V poizvedbi ni bil jasen tip (resource type).',
'12' => 'Tip datoteke ni primeren.',
'102' => 'Napačno ime mape ali datoteke.',
'103' => 'Vašega ukaza se ne da izvesti zaradi težav z avtorizacijo.',
'104' => 'Vašega ukaza se ne da izvesti zaradi težav z nastavitvami pravic v datotečnem sistemu.',
'105' => 'Napačna končnica datoteke.',
'109' => 'Napačna zahteva.',
'110' => 'Neznana napaka.',
'115' => 'Datoteka ali mapa s tem imenom že obstaja.',
'116' => 'Mapa ni najdena. Prosimo osvežite okno in poskusite znova.',
'117' => 'Datoteka ni najdena. Prosimo osvežite seznam datotek in poskusite znova.',
'118' => 'Začetna in končna pot je ista.',
'201' => 'Datoteka z istim imenom že obstaja. Naložena datoteka je bila preimenovana v "%1"',
'202' => 'Neprimerna datoteka.',
'203' => 'Datoteka je prevelika in zasede preveč prostora.',
'204' => 'Naložena datoteka je okvarjena.',
'205' => 'Na strežniku ni na voljo začasna mapa za prenos datotek.',
'206' => 'Nalaganje je bilo prekinjeno zaradi varnostnih razlogov. Datoteka vsebuje podatke, ki spominjajo na HTML kodo.',
'207' => 'Naložena datoteka je bila preimenovana v "%1"',
'300' => 'Premikanje datotek(e) ni uspelo.',
'301' => 'Kopiranje datotek(e) ni uspelo.',
'500' => 'Brskalnik je onemogočen zaradi varnostnih razlogov. Prosimo kontaktirajte upravljalca spletnih strani.',
'501' => 'Ni podpore za majhne sličice (predogled).',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/sl.php | PHP | gpl3 | 1,891 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Latvian language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Nebija iespējams pabeigt pieprasījumu. (Kļūda %1)',
'Errors' => array (
'10' => 'Nederīga komanda.',
'11' => 'Resursa veids netika norādīts pieprasījumā.',
'12' => 'Pieprasītais resursa veids nav derīgs.',
'102' => 'Nederīgs faila vai mapes nosaukums.',
'103' => 'Nav iespējams pabeigt pieprasījumu, autorizācijas aizliegumu dēļ.',
'104' => 'Nav iespējams pabeigt pieprasījumu, failu sistēmas atļauju ierobežojumu dēļ.',
'105' => 'Neatļauts faila paplašinājums.',
'109' => 'Nederīgs pieprasījums.',
'110' => 'Nezināma kļūda.',
'115' => 'Fails vai mape ar šādu nosaukumu jau pastāv.',
'116' => 'Mape nav atrasta. Lūdzu pārlādējiet šo logu un mēģiniet vēlreiz.',
'117' => 'Fails nav atrasts. Lūdzu pārlādējiet failu sarakstu un mēģiniet vēlreiz.',
'118' => 'Source and target paths are equal.',
'201' => 'Fails ar šādu nosaukumu jau eksistē. Augšupielādētais fails tika pārsaukts par "%1"',
'202' => 'Nederīgs fails',
'203' => 'Nederīgs fails. Faila izmērs pārsniedz pieļaujamo.',
'204' => 'Augšupielādētais fails ir bojāts.',
'205' => 'Neviena pagaidu mape nav pieejama priekš augšupielādēšanas uz servera.',
'206' => 'Augšupielāde atcelta drošības apsvērumu dēļ. Fails satur HTML veida datus.',
'207' => 'Augšupielādētais fails tika pārsaukts par "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'Failu pārlūks ir atslēgts drošības apsvērumu dēļ. Lūdzu sazinieties ar šīs sistēmas tehnisko administratoru vai pārbaudiet CKFinder konfigurācijas failu.',
'501' => 'Sīkbilžu atbalsts ir atslēgts.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/lv.php | PHP | gpl3 | 2,020 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
//
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Det var ikke mulig å utføre forespørselen. (Feil %1)',
'Errors' => array (
'10' => 'Ugyldig kommando.',
'11' => 'Ressurstypen ble ikke spesifisert i forepørselen.',
'12' => 'Ugyldig ressurstype.',
'102' => 'Ugyldig fil- eller mappenavn.',
'103' => 'Kunne ikke utføre forespørselen pga manglende autorisasjon.',
'104' => 'Kunne ikke utføre forespørselen pga manglende tilgang til filsystemet.',
'105' => 'Ugyldig filtype.',
'109' => 'Ugyldig forespørsel.',
'110' => 'Ukjent feil.',
'115' => 'Det finnes allerede en fil eller mappe med dette navnet.',
'116' => 'Kunne ikke finne mappen. Oppdater vinduet og prøv igjen.',
'117' => 'Kunne ikke finne filen. Oppdater vinduet og prøv igjen.',
'118' => 'Source and target paths are equal.',
'201' => 'Det fantes allerede en fil med dette navnet. Den opplastede filens navn har blitt endret til "%1"',
'202' => 'Ugyldig fil',
'203' => 'Ugyldig fil. Filen er for stor.',
'204' => 'Den opplastede filen er korrupt.',
'205' => 'Det finnes ingen midlertidig mappe for filopplastinger.',
'206' => 'Opplastingen ble avbrutt av sikkerhetshensyn. Filen inneholder HTML-aktig data.',
'207' => 'Den opplastede filens navn har blitt endret til "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'Filvelgeren ikke tilgjengelig av sikkerhetshensyn. Kontakt systemansvarlig og be han sjekke CKFinder\'s konfigurasjonsfil.',
'501' => 'Funksjon for minityrbilder er skrudd av.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/nn.php | PHP | gpl3 | 1,748 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Danish language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Det var ikke muligt at fuldføre handlingen. (Fejl: %1)',
'Errors' => array (
'10' => 'Ugyldig handling.',
'11' => 'Ressourcetypen blev ikke angivet i anmodningen.',
'12' => 'Ressourcetypen er ikke gyldig.',
'102' => 'Ugyldig fil eller mappenavn.',
'103' => 'Det var ikke muligt at fuldføre handlingen på grund af en begrænsning i rettigheder.',
'104' => 'Det var ikke muligt at fuldføre handlingen på grund af en begrænsning i filsystem rettigheder.',
'105' => 'Ugyldig filtype.',
'109' => 'Ugyldig anmodning.',
'110' => 'Ukendt fejl.',
'115' => 'En fil eller mappe med det samme navn eksisterer allerede.',
'116' => 'Mappen blev ikke fundet. Opdatér listen eller prøv igen.',
'117' => 'Filen blev ikke fundet. Opdatér listen eller prøv igen.',
'118' => 'Originalplacering og destination er ens',
'201' => 'En fil med det samme filnavn eksisterer allerede. Den uploadede fil er blevet omdøbt til "%1"',
'202' => 'Ugyldig fil.',
'203' => 'Ugyldig fil. Filstørrelsen er for stor.',
'204' => 'Den uploadede fil er korrupt.',
'205' => 'Der er ikke en midlertidig mappe til upload til rådighed på serveren.',
'206' => 'Upload annulleret af sikkerhedsmæssige årsager. Filen indeholder HTML-lignende data.',
'207' => 'Den uploadede fil er blevet omdøbt til "%1"',
'300' => 'Flytning af fil(er) fejlede.',
'301' => 'Kopiering af fil(er) fejlede.',
'500' => 'Filbrowseren er deaktiveret af sikkerhedsmæssige årsager. Kontakt systemadministratoren eller kontrollér CKFinders konfigurationsfil.',
'501' => 'Understøttelse af thumbnails er deaktiveret.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/da.php | PHP | gpl3 | 1,951 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object, for the Polish language. This is the base file for all translations.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Wykonanie operacji zakończyło się niepowodzeniem. (Błąd %1)',
'Errors' => array (
'10' => 'Nieprawidłowe polecenie (command).',
'11' => 'Brak wymaganego parametru: źródło danych (type).',
'12' => 'Nieprawidłowe źródło danych (type).',
'102' => 'Nieprawidłowa nazwa pliku lub katalogu.',
'103' => 'Wykonanie operacji nie jest możliwe: brak autoryzacji.',
'104' => 'Wykonanie operacji nie powiodło się z powodu niewystarczających uprawnień do systemu plików.',
'105' => 'Nieprawidłowe rozszerzenie.',
'109' => 'Nieprawiłowe polecenie.',
'110' => 'Niezidentyfikowany błąd.',
'115' => 'Plik lub katalog o podanej nazwie już istnieje.',
'116' => 'Nie znaleziono katalogu. Odśwież panel i spróbuj ponownie.',
'117' => 'Nie znaleziono pliku. Odśwież listę plików i spróbuj ponownie.',
'118' => 'Ścieżki źródłowa i docelowa są jednakowe.',
'201' => 'Plik o podanej nazwie już istnieje. Nazwa przesłanego pliku została zmieniona na "%1"',
'202' => 'Nieprawidłowy plik.',
'203' => 'Nieprawidłowy plik. Plik przekroczył dozwolony rozmiar.',
'204' => 'Przesłany plik jest uszkodzony.',
'205' => 'Brak folderu tymczasowego na serwerze do przesyłania plików.',
'206' => 'Przesyłanie pliku zakończyło się niepowodzeniem z powodów bezpieczeństwa. Plik zawiera dane przypominające HTML.',
'207' => 'Nazwa przesłanego pliku została zmieniona na "%1"',
'300' => 'Przenoszenie nie powiodło się.',
'301' => 'Kopiowanie nie powiodo się.',
'500' => 'Menedżer plików jest wyłączony z powodów bezpieczeństwa. Skontaktuj się z administratorem oraz sprawdź plik konfiguracyjny CKFindera.',
'501' => 'Tworzenie miniaturek jest wyłączone.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/pl.php | PHP | gpl3 | 2,068 |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
//
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Det var ikke mulig å utføre forespørselen. (Feil %1)',
'Errors' => array (
'10' => 'Ugyldig kommando.',
'11' => 'Ressurstypen ble ikke spesifisert i forepørselen.',
'12' => 'Ugyldig ressurstype.',
'102' => 'Ugyldig fil- eller mappenavn.',
'103' => 'Kunne ikke utføre forespørselen pga manglende autorisasjon.',
'104' => 'Kunne ikke utføre forespørselen pga manglende tilgang til filsystemet.',
'105' => 'Ugyldig filtype.',
'109' => 'Ugyldig forespørsel.',
'110' => 'Ukjent feil.',
'115' => 'Det finnes allerede en fil eller mappe med dette navnet.',
'116' => 'Kunne ikke finne mappen. Oppdater vinduet og prøv igjen.',
'117' => 'Kunne ikke finne filen. Oppdater vinduet og prøv igjen.',
'118' => 'Source and target paths are equal.',
'201' => 'Det fantes allerede en fil med dette navnet. Den opplastede filens navn har blitt endret til "%1"',
'202' => 'Ugyldig fil',
'203' => 'Ugyldig fil. Filen er for stor.',
'204' => 'Den opplastede filen er korrupt.',
'205' => 'Det finnes ingen midlertidig mappe for filopplastinger.',
'206' => 'Opplastingen ble avbrutt av sikkerhetshensyn. Filen inneholder HTML-aktig data.',
'207' => 'Den opplastede filens navn har blitt endret til "%1"',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'Filvelgeren ikke tilgjengelig av sikkerhetshensyn. Kontakt systemansvarlig og be han sjekke CKFinder\'s konfigurasjonsfil.',
'501' => 'Funksjon for minityrbilder er skrudd av.',
)
);
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/connector/php/lang/no.php | PHP | gpl3 | 1,748 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
define( 'CKFINDER_DEFAULT_BASEPATH', '/ckfinder/' ) ;
class CKFinder
{
var $BasePath ;
var $Width ;
var $Height ;
var $SelectFunction ;
var $SelectFunctionData ;
var $SelectThumbnailFunction ;
var $SelectThumbnailFunctionData ;
var $DisableThumbnailSelection = false ;
var $ClassName = '' ;
var $Id = '' ;
var $ResourceType ;
var $StartupPath ;
var $RememberLastFolder = true ;
var $StartupFolderExpanded = false ;
// PHP 4 Constructor
function CKFinder( $basePath = CKFINDER_DEFAULT_BASEPATH, $width = '100%', $height = 400, $selectFunction = null )
{
$this->BasePath = empty( $basePath ) ? CKFINDER_DEFAULT_BASEPATH : $basePath ;
$this->Width = empty( $width ) ? '100%' : $width ;
$this->Height = empty( $height ) ? 400 : $height ;
$this->SelectFunction = $selectFunction ;
$this->SelectThumbnailFunction = $selectFunction ;
}
// Renders CKFinder in the current page.
function Create()
{
echo $this->CreateHtml() ;
}
// Gets the HTML needed to create a CKFinder instance.
function CreateHtml()
{
$className = $this->ClassName ;
if ( !empty( $className ) )
$className = ' class="' . $className . '"' ;
$id = $this->Id ;
if ( !empty( $id ) )
$id = ' id="' . $id . '"' ;
return '<iframe src="' . $this->_BuildUrl() . '" width="' . $this->Width . '" ' .
'height="' . $this->Height . '"' . $className . $id . ' frameborder="0" scrolling="no"></iframe>' ;
}
function _BuildUrl( $url = "" )
{
if ( !$url )
$url = $this->BasePath ;
$qs = "" ;
if ( empty( $url ) )
$url = CKFINDER_DEFAULT_BASEPATH ;
if ( $url[ strlen( $url ) - 1 ] != '/' )
$url = $url . '/' ;
$url .= 'ckfinder.html' ;
if ( !empty( $this->SelectFunction ) )
$qs .= '?action=js&func=' . $this->SelectFunction ;
if ( !empty( $this->SelectFunctionData ) )
{
$qs .= $qs ? "&" : "?" ;
$qs .= 'data=' . rawurlencode($this->SelectFunctionData) ;
}
if ( $this->DisableThumbnailSelection )
{
$qs .= $qs ? "&" : "?" ;
$qs .= "dts=1" ;
}
else if ( !empty( $this->SelectThumbnailFunction ) || !empty( $this->SelectFunction ) )
{
$qs .= $qs ? "&" : "?" ;
$qs .= 'thumbFunc=' . ( !empty( $this->SelectThumbnailFunction ) ? $this->SelectThumbnailFunction : $this->SelectFunction ) ;
if ( !empty( $this->SelectThumbnailFunctionData ) )
$qs .= '&tdata=' . rawurlencode( $this->SelectThumbnailFunctionData ) ;
else if ( empty( $this->SelectThumbnailFunction ) && !empty( $this->SelectFunctionData ) )
$qs .= '&tdata=' . rawurlencode( $this->SelectFunctionData ) ;
}
if ( !empty( $this->StartupPath ) )
{
$qs .= ( $qs ? "&" : "?" ) ;
$qs .= "start=" . urlencode( $this->StartupPath . ( $this->StartupFolderExpanded ? ':1' : ':0' ) ) ;
}
if ( !empty( $this->ResourceType ) )
{
$qs .= ( $qs ? "&" : "?" ) ;
$qs .= "type=" . urlencode( $this->ResourceType ) ;
}
if ( !$this->RememberLastFolder )
{
$qs .= ( $qs ? "&" : "?" ) ;
$qs .= "rlf=0" ;
}
if ( !empty( $this->Id ) )
{
$qs .= ( $qs ? "&" : "?" ) ;
$qs .= "id=" . urlencode( $this->Id ) ;
}
return $url . $qs ;
}
// Static "Create".
function CreateStatic( $basePath = CKFINDER_DEFAULT_BASEPATH, $width = '100%', $height = 400, $selectFunction = null )
{
$finder = new CKFinder( $basePath, $width, $height, $selectFunction ) ;
$finder->Create() ;
}
// Static "SetupFCKeditor".
function SetupFCKeditor( &$editorObj, $basePath = CKFINDER_DEFAULT_BASEPATH, $imageType = null, $flashType = null )
{
if ( empty( $basePath ) )
$basePath = CKFINDER_DEFAULT_BASEPATH ;
// If it is a path relative to the current page.
if ( $basePath[0] != '/' )
{
$basePath = substr( $_SERVER[ 'REQUEST_URI' ], 0, strrpos( $_SERVER[ 'REQUEST_URI' ], '/' ) + 1 ) .
$basePath ;
}
$ckfinder = new CKFinder( $basePath ) ;
$ckfinder->SetupFCKeditorObject( $editorObj, $imageType, $flashType );
}
// Non-static method of attaching CKFinder to FCKeditor
function SetupFCKeditorObject( &$editorObj, $imageType = null, $flashType = null )
{
$url = $this->BasePath ;
// If it is a path relative to the current page.
if ( isset($url[0]) && $url[0] != '/' )
{
$url = substr( $_SERVER[ 'REQUEST_URI' ], 0, strrpos( $_SERVER[ 'REQUEST_URI' ], '/' ) + 1 ) . $url ;
}
$url = $this->_BuildUrl( $url ) ;
$qs = ( strpos($url, "?") !== false ) ? "&" : "?" ;
if ( $this->Width !== '100%' && is_numeric( str_replace( "px", "", strtolower( $this->Width ) ) ) )
{
$width = intval( $this->Width );
$editorObj->Config['LinkBrowserWindowWidth'] = $width ;
$editorObj->Config['ImageBrowserWindowWidth'] = $width ;
$editorObj->Config['FlashBrowserWindowWidth'] = $width ;
}
if ( $this->Height !== 400 && is_numeric( str_replace( "px", "", strtolower( $this->Height ) ) ) )
{
$height = intval( $this->Height );
$editorObj->Config['LinkBrowserWindowHeight'] = $height ;
$editorObj->Config['ImageBrowserWindowHeight'] = $height ;
$editorObj->Config['FlashBrowserWindowHeight'] = $height ;
}
$editorObj->Config['LinkBrowserURL'] = $url ;
$editorObj->Config['ImageBrowserURL'] = $url . $qs . 'type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
$editorObj->Config['FlashBrowserURL'] = $url . $qs . 'type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
$dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
$editorObj->Config['LinkUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=Files' ) ;
$editorObj->Config['ImageUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' : $imageType ) ;
$editorObj->Config['FlashUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
}
// Static "SetupCKEditor".
function SetupCKEditor( &$editorObj, $basePath = CKFINDER_DEFAULT_BASEPATH, $imageType = null, $flashType = null )
{
if ( empty( $basePath ) )
$basePath = CKFINDER_DEFAULT_BASEPATH ;
$ckfinder = new CKFinder( $basePath ) ;
$ckfinder->SetupCKEditorObject( $editorObj, $imageType, $flashType );
}
// Non-static method of attaching CKFinder to CKEditor
function SetupCKEditorObject( &$editorObj, $imageType = null, $flashType = null )
{
$url = $this->BasePath ;
// If it is a path relative to the current page.
if ( isset($url[0]) && $url[0] != '/' )
{
$url = substr( $_SERVER[ 'REQUEST_URI' ], 0, strrpos( $_SERVER[ 'REQUEST_URI' ], '/' ) + 1 ) . $url ;
}
$url = $this->_BuildUrl( $url ) ;
$qs = ( strpos($url, "?") !== false ) ? "&" : "?" ;
if ( $this->Width !== '100%' && is_numeric( str_ireplace( "px", "", $this->Width ) ) )
{
$width = intval( $this->Width );
$editorObj->config['filebrowserWindowWidth'] = $width ;
}
if ( $this->Height !== 400 && is_numeric( str_ireplace( "px", "", $this->Height ) ) )
{
$height = intval( $this->Height );
$editorObj->config['filebrowserWindowHeight'] = $height ;
}
$editorObj->config['filebrowserBrowseUrl'] = $url ;
$editorObj->config['filebrowserImageBrowseUrl'] = $url . $qs . 'type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
$editorObj->config['filebrowserFlashBrowseUrl'] = $url . $qs . 'type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
$dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
$editorObj->config['filebrowserUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=Files' ;
$editorObj->config['filebrowserImageUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
$editorObj->config['filebrowserFlashUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/ckfinder_php4.php | PHP | gpl3 | 8,578 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*/
define( 'CKFINDER_DEFAULT_BASEPATH', '/ckfinder/' ) ;
class CKFinder
{
public $BasePath ;
public $Width ;
public $Height ;
public $SelectFunction ;
public $SelectFunctionData ;
public $SelectThumbnailFunction ;
public $SelectThumbnailFunctionData ;
public $DisableThumbnailSelection = false ;
public $ClassName = '' ;
public $Id = '' ;
public $StartupPath ;
public $ResourceType ;
public $RememberLastFolder = true ;
public $StartupFolderExpanded = false ;
// PHP 5 Constructor
function __construct( $basePath = CKFINDER_DEFAULT_BASEPATH, $width = '100%', $height = 400, $selectFunction = null )
{
$this->BasePath = $basePath ;
$this->Width = $width ;
$this->Height = $height ;
$this->SelectFunction = $selectFunction ;
$this->SelectThumbnailFunction = $selectFunction ;
}
// Renders CKFinder in the current page.
public function Create()
{
echo $this->CreateHtml() ;
}
// Gets the HTML needed to create a CKFinder instance.
public function CreateHtml()
{
$className = $this->ClassName ;
if ( !empty( $className ) )
$className = ' class="' . $className . '"' ;
$id = $this->Id ;
if ( !empty( $id ) )
$id = ' id="' . $id . '"' ;
return '<iframe src="' . $this->_BuildUrl() . '" width="' . $this->Width . '" ' .
'height="' . $this->Height . '"' . $className . $id . ' frameborder="0" scrolling="no"></iframe>' ;
}
private function _BuildUrl( $url = "" )
{
if ( !$url )
$url = $this->BasePath ;
$qs = "" ;
if ( empty( $url ) )
$url = CKFINDER_DEFAULT_BASEPATH ;
if ( $url[ strlen( $url ) - 1 ] != '/' )
$url = $url . '/' ;
$url .= 'ckfinder.html' ;
if ( !empty( $this->SelectFunction ) )
$qs .= '?action=js&func=' . $this->SelectFunction ;
if ( !empty( $this->SelectFunctionData ) )
{
$qs .= $qs ? "&" : "?" ;
$qs .= 'data=' . rawurlencode($this->SelectFunctionData) ;
}
if ( $this->DisableThumbnailSelection )
{
$qs .= $qs ? "&" : "?" ;
$qs .= "dts=1" ;
}
else if ( !empty( $this->SelectThumbnailFunction ) || !empty( $this->SelectFunction ) )
{
$qs .= $qs ? "&" : "?" ;
$qs .= 'thumbFunc=' . ( !empty( $this->SelectThumbnailFunction ) ? $this->SelectThumbnailFunction : $this->SelectFunction ) ;
if ( !empty( $this->SelectThumbnailFunctionData ) )
$qs .= '&tdata=' . rawurlencode( $this->SelectThumbnailFunctionData ) ;
else if ( empty( $this->SelectThumbnailFunction ) && !empty( $this->SelectFunctionData ) )
$qs .= '&tdata=' . rawurlencode( $this->SelectFunctionData ) ;
}
if ( !empty( $this->StartupPath ) )
{
$qs .= ( $qs ? "&" : "?" ) ;
$qs .= "start=" . urlencode( $this->StartupPath . ( $this->StartupFolderExpanded ? ':1' : ':0' ) ) ;
}
if ( !empty( $this->ResourceType ) )
{
$qs .= ( $qs ? "&" : "?" ) ;
$qs .= "type=" . urlencode( $this->ResourceType ) ;
}
if ( !$this->RememberLastFolder )
{
$qs .= ( $qs ? "&" : "?" ) ;
$qs .= "rlf=0" ;
}
if ( !empty( $this->Id ) )
{
$qs .= ( $qs ? "&" : "?" ) ;
$qs .= "id=" . urlencode( $this->Id ) ;
}
return $url . $qs ;
}
// Static "Create".
public static function CreateStatic( $basePath = CKFINDER_DEFAULT_BASEPATH, $width = '100%', $height = 400, $selectFunction = null )
{
$finder = new CKFinder( $basePath, $width, $height, $selectFunction ) ;
$finder->Create() ;
}
// Static "SetupFCKeditor".
public static function SetupFCKeditor( &$editorObj, $basePath = CKFINDER_DEFAULT_BASEPATH, $imageType = null, $flashType = null )
{
if ( empty( $basePath ) )
$basePath = CKFINDER_DEFAULT_BASEPATH ;
$ckfinder = new CKFinder( $basePath ) ;
$ckfinder->SetupFCKeditorObject( $editorObj, $imageType, $flashType );
}
// Non-static method of attaching CKFinder to FCKeditor
public function SetupFCKeditorObject( &$editorObj, $imageType = null, $flashType = null )
{
$url = $this->BasePath ;
// If it is a path relative to the current page.
if ( isset($url[0]) && $url[0] != '/' )
{
$url = substr( $_SERVER[ 'REQUEST_URI' ], 0, strrpos( $_SERVER[ 'REQUEST_URI' ], '/' ) + 1 ) . $url ;
}
$url = $this->_BuildUrl( $url ) ;
$qs = ( strpos($url, "?") !== false ) ? "&" : "?" ;
if ( $this->Width !== '100%' && is_numeric( str_ireplace( "px", "", $this->Width ) ) )
{
$width = intval( $this->Width );
$editorObj->Config['LinkBrowserWindowWidth'] = $width ;
$editorObj->Config['ImageBrowserWindowWidth'] = $width ;
$editorObj->Config['FlashBrowserWindowWidth'] = $width ;
}
if ( $this->Height !== 400 && is_numeric( str_ireplace( "px", "", $this->Height ) ) )
{
$height = intval( $this->Height );
$editorObj->Config['LinkBrowserWindowHeight'] = $height ;
$editorObj->Config['ImageBrowserWindowHeight'] = $height ;
$editorObj->Config['FlashBrowserWindowHeight'] = $height ;
}
$editorObj->Config['LinkBrowserURL'] = $url ;
$editorObj->Config['ImageBrowserURL'] = $url . $qs . 'type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
$editorObj->Config['FlashBrowserURL'] = $url . $qs . 'type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
$dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
$editorObj->Config['LinkUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=Files' ) ;
$editorObj->Config['ImageUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' : $imageType ) ;
$editorObj->Config['FlashUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
}
// Static "SetupCKEditor".
public static function SetupCKEditor( &$editorObj, $basePath = CKFINDER_DEFAULT_BASEPATH, $imageType = null, $flashType = null )
{
if ( empty( $basePath ) )
$basePath = CKFINDER_DEFAULT_BASEPATH ;
$ckfinder = new CKFinder( $basePath ) ;
$ckfinder->SetupCKEditorObject( $editorObj, $imageType, $flashType );
}
// Non-static method of attaching CKFinder to CKEditor
public function SetupCKEditorObject( &$editorObj, $imageType = null, $flashType = null )
{
$url = $this->BasePath ;
// If it is a path relative to the current page.
if ( isset($url[0]) && $url[0] != '/' )
{
$url = substr( $_SERVER[ 'REQUEST_URI' ], 0, strrpos( $_SERVER[ 'REQUEST_URI' ], '/' ) + 1 ) . $url ;
}
$url = $this->_BuildUrl( $url ) ;
$qs = ( strpos($url, "?") !== false ) ? "&" : "?" ;
if ( $this->Width !== '100%' && is_numeric( str_ireplace( "px", "", $this->Width ) ) )
{
$width = intval( $this->Width );
$editorObj->config['filebrowserWindowWidth'] = $width ;
}
if ( $this->Height !== 400 && is_numeric( str_ireplace( "px", "", $this->Height ) ) )
{
$height = intval( $this->Height );
$editorObj->config['filebrowserWindowHeight'] = $height ;
}
$editorObj->config['filebrowserBrowseUrl'] = $url ;
$editorObj->config['filebrowserImageBrowseUrl'] = $url . $qs . 'type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
$editorObj->config['filebrowserFlashBrowseUrl'] = $url . $qs . 'type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
$dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
$editorObj->config['filebrowserUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=Files' ;
$editorObj->config['filebrowserImageUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
$editorObj->config['filebrowserFlashUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
}
}
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/core/ckfinder_php5.php | PHP | gpl3 | 8,355 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['nl'] =
{
appTitle : 'CKFinder', // MISSING
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
ok : 'OK', // MISSING
cancel : 'Cancel', // MISSING
confirmationTitle : 'Confirmation', // MISSING
messageTitle : 'Information', // MISSING
inputTitle : 'Question', // MISSING
undo : 'Undo', // MISSING
redo : 'Redo', // MISSING
skip : 'Skip', // MISSING
skipAll : 'Skip all', // MISSING
makeDecision : 'What action should be taken?', // MISSING
rememberDecision: 'Remember my decision' // MISSING
},
dir : 'ltr', // MISSING
HelpLang : 'en',
LangCode : 'nl',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'm/d/yyyy h:MM aa',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Mappen',
FolderLoading : 'Laden...',
FolderNew : 'Vul de mapnaam in: ',
FolderRename : 'Vul de nieuwe mapnaam in: ',
FolderDelete : 'Weet je het zeker dat je de map "%1" wilt verwijderen?',
FolderRenaming : ' (Aanpassen...)',
FolderDeleting : ' (Verwijderen...)',
// Files
FileRename : 'Vul de nieuwe bestandsnaam in: ',
FileRenameExt : 'Weet je zeker dat je de extensie wilt veranderen? Het bestand kan onbruikbaar worden.',
FileRenaming : 'Aanpassen...',
FileDelete : 'Weet je zeker dat je het bestand "%1" wilt verwijderen?',
FilesLoading : 'Loading...', // MISSING
FilesEmpty : 'Empty folder', // MISSING
FilesMoved : 'File %1 moved into %2:%3', // MISSING
FilesCopied : 'File %1 copied into %2:%3', // MISSING
// Basket
BasketFolder : 'Basket', // MISSING
BasketClear : 'Clear Basket', // MISSING
BasketRemove : 'Remove from basket', // MISSING
BasketOpenFolder : 'Open parent folder', // MISSING
BasketTruncateConfirm : 'Do you really want to remove all files from the basket?', // MISSING
BasketRemoveConfirm : 'Do you really want to remove the file "%1" from the basket?', // MISSING
BasketEmpty : 'No files in the basket, drag\'n\'drop some.', // MISSING
BasketCopyFilesHere : 'Copy Files from Basket', // MISSING
BasketMoveFilesHere : 'Move Files from Basket', // MISSING
BasketPasteErrorOther : 'File %s error: %e', // MISSING
BasketPasteMoveSuccess : 'The following files were moved: %s', // MISSING
BasketPasteCopySuccess : 'The following files were copied: %s', // MISSING
// Toolbar Buttons (some used elsewhere)
Upload : 'Uploaden',
UploadTip : 'Nieuw bestand uploaden',
Refresh : 'Vernieuwen',
Settings : 'Instellingen',
Help : 'Help',
HelpTip : 'Help',
// Context Menus
Select : 'Selecteer',
SelectThumbnail : 'Selecteer miniatuur afbeelding',
View : 'Weergave',
Download : 'Downloaden',
NewSubFolder : 'Nieuwe subfolder',
Rename : 'Hernoemen',
Delete : 'Verwijderen',
CopyDragDrop : 'Copy file here', // MISSING
MoveDragDrop : 'Move file here', // MISSING
// Dialogs
RenameDlgTitle : 'Rename', // MISSING
NewNameDlgTitle : 'New name', // MISSING
FileExistsDlgTitle : 'File already exists', // MISSING
SysErrorDlgTitle : 'System error', // MISSING
FileOverwrite : 'Overwrite', // MISSING
FileAutorename : 'Auto-rename', // MISSING
// Generic
OkBtn : 'OK',
CancelBtn : 'Annuleren',
CloseBtn : 'Sluiten',
// Upload Panel
UploadTitle : 'Nieuw bestand uploaden',
UploadSelectLbl : 'Selecteer het bestand om te uploaden',
UploadProgressLbl : '(Bezig met uploaden, even geduld...)',
UploadBtn : 'Upload geselecteerde bestand',
UploadBtnCancel : 'Cancel', // MISSING
UploadNoFileMsg : 'Kies een bestand van je computer.',
UploadNoFolder : 'Please select folder before uploading.', // MISSING
UploadNoPerms : 'File upload not allowed.', // MISSING
UploadUnknError : 'Error sending the file.', // MISSING
UploadExtIncorrect : 'File extension not allowed in this folder.', // MISSING
// Settings Panel
SetTitle : 'Instellingen',
SetView : 'Bekijken:',
SetViewThumb : 'Miniatuur afbeelding',
SetViewList : 'Lijst',
SetDisplay : 'Weergeef:',
SetDisplayName : 'Bestandsnaam',
SetDisplayDate : 'Datum',
SetDisplaySize : 'Bestandsgrootte',
SetSort : 'Sorteren op:',
SetSortName : 'Op bestandsnaam',
SetSortDate : 'Op datum',
SetSortSize : 'Op grootte',
// Status Bar
FilesCountEmpty : '<Lege map>',
FilesCountOne : '1 bestand',
FilesCountMany : '%1 bestanden',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'Het was niet mogelijk om deze actie uit te voeren. (Fout %1)',
Errors :
{
10 : 'Ongeldige commando.',
11 : 'De bestandstype komt niet voor in de aanvraag.',
12 : 'De gevraagde brontype is niet geldig.',
102 : 'Ongeldig bestands- of mapnaam.',
103 : 'Het verzoek kon niet worden voltooid vanwege autorisatie beperkingen.',
104 : 'Het verzoek kon niet worden voltooid door beperkingen in de permissies van het bestandssysteem.',
105 : 'Ongeldige bestandsextensie.',
109 : 'Ongeldige aanvraag.',
110 : 'Onbekende fout.',
115 : 'Er bestaat al een bestand of map met deze naam.',
116 : 'Map niet gevonden, vernieuw de mappenlijst of kies een andere map.',
117 : 'Bestand niet gevonden, vernieuw de mappenlijst of kies een andere folder.',
118 : 'Source and target paths are equal.', // MISSING
201 : 'Er bestaat al een bestand met dezelfde naam. Het geüploade bestand is hernoemd naar: "%1"',
202 : 'Ongeldige bestand',
203 : 'Ongeldige bestand. Het bestand is te groot.',
204 : 'De geüploade file is kapot.',
205 : 'Er is geen hoofdmap gevonden.',
206 : 'Het uploaden van het bestand is om veiligheidsredenen afgebroken. Er is HTML in het bestand aangetroffen.',
207 : 'Het geuploade bestand is hernoemd naar: "%1"',
300 : 'Moving file(s) failed.', // MISSING
301 : 'Copying file(s) failed.', // MISSING
500 : 'Het uploaden van een bestand is momenteel niet mogelijk. Contacteer de beheerder en controleer het CKFinder configuratiebestand..',
501 : 'De ondersteuning voor miniatuur afbeeldingen is uitgeschakeld.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'De bestandsnaam mag niet leeg zijn.',
FileExists : 'File %s already exists', // MISSING
FolderEmpty : 'De mapnaam mag niet leeg zijn.',
FileInvChar : 'De bestandsnaam mag niet de volgende tekens bevatten: \n\\ / : * ? " < > |',
FolderInvChar : 'De folder mag niet de volgende tekens bevatten: \n\\ / : * ? " < > |',
PopupBlockView : 'Het was niet mogelijk om dit bestand in een nieuw venster te openen. Configureer de browser zo dat het de popups van deze website niet blokkeert.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Resize %s', // MISSING
sizeTooBig : 'Cannot set image height or width to a value bigger than the original size (%size).', // MISSING
resizeSuccess : 'Image resized successfully.', // MISSING
thumbnailNew : 'Create new thumbnail', // MISSING
thumbnailSmall : 'Small (%s)', // MISSING
thumbnailMedium : 'Medium (%s)', // MISSING
thumbnailLarge : 'Large (%s)', // MISSING
newSize : 'Set new size', // MISSING
width : 'Width', // MISSING
height : 'Height', // MISSING
invalidHeight : 'Invalid height.', // MISSING
invalidWidth : 'Invalid width.', // MISSING
invalidName : 'Invalid file name.', // MISSING
newImage : 'Create new image', // MISSING
noExtensionChange : 'The file extension cannot be changed.', // MISSING
imageSmall : 'Source image is too small', // MISSING
contextMenuName : 'Resize' // MISSING
},
// Fileeditor plugin
Fileeditor :
{
save : 'Save', // MISSING
fileOpenError : 'Unable to open file.', // MISSING
fileSaveSuccess : 'File saved successfully.', // MISSING
contextMenuName : 'Edit', // MISSING
loadingFile : 'Loading file, please wait...' // MISSING
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/nl.js | JavaScript | gpl3 | 9,069 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the Italian
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['it'] =
{
appTitle : 'CKFinder',
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
ok : 'OK',
cancel : 'Annulla',
confirmationTitle : 'Confirmation', // MISSING
messageTitle : 'Information', // MISSING
inputTitle : 'Question', // MISSING
undo : 'Annulla',
redo : 'Ripristina',
skip : 'Skip', // MISSING
skipAll : 'Skip all', // MISSING
makeDecision : 'What action should be taken?', // MISSING
rememberDecision: 'Remember my decision' // MISSING
},
dir : 'ltr',
HelpLang : 'en',
LangCode : 'it',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'dd/mm/yyyy HH:MM',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Cartelle',
FolderLoading : 'Caricando...',
FolderNew : 'Nome della cartella: ',
FolderRename : 'Nuovo nome della cartella: ',
FolderDelete : 'Se sicuro di voler eliminare la cartella "%1"?',
FolderRenaming : ' (Rinominando...)',
FolderDeleting : ' (Eliminando...)',
// Files
FileRename : 'Nuovo nome del file: ',
FileRenameExt : 'Sei sicure di voler cambiare la estensione del file? Il file può risultare inusabile',
FileRenaming : 'Rinominando...',
FileDelete : 'Sei sicuro di voler eliminare il file "%1"?',
FilesLoading : 'Caricamento in corso...',
FilesEmpty : 'Cartella vuota',
FilesMoved : 'File %1 moved into %2:%3', // MISSING
FilesCopied : 'File %1 copied into %2:%3', // MISSING
// Basket
BasketFolder : 'Basket', // MISSING
BasketClear : 'Clear Basket', // MISSING
BasketRemove : 'Remove from basket', // MISSING
BasketOpenFolder : 'Open parent folder', // MISSING
BasketTruncateConfirm : 'Do you really want to remove all files from the basket?', // MISSING
BasketRemoveConfirm : 'Do you really want to remove the file "%1" from the basket?', // MISSING
BasketEmpty : 'No files in the basket, drag\'n\'drop some.', // MISSING
BasketCopyFilesHere : 'Copy Files from Basket', // MISSING
BasketMoveFilesHere : 'Move Files from Basket', // MISSING
BasketPasteErrorOther : 'File %s error: %e', // MISSING
BasketPasteMoveSuccess : 'The following files were moved: %s', // MISSING
BasketPasteCopySuccess : 'The following files were copied: %s', // MISSING
// Toolbar Buttons (some used elsewhere)
Upload : 'Upload',
UploadTip : 'Carica Nuovo File',
Refresh : 'Aggiorna',
Settings : 'Configurazioni',
Help : 'Aiuto',
HelpTip : 'Aiuto (Inglese)',
// Context Menus
Select : 'Seleziona',
SelectThumbnail : 'Seleziona la miniatura',
View : 'Vedi',
Download : 'Scarica',
NewSubFolder : 'Nuova Sottocartella',
Rename : 'Rinomina',
Delete : 'Elimina',
CopyDragDrop : 'Copia file qui',
MoveDragDrop : 'Muove file qui',
// Dialogs
RenameDlgTitle : 'Rinomina',
NewNameDlgTitle : 'Nuovo nome',
FileExistsDlgTitle : 'Il file già esiste',
SysErrorDlgTitle : 'System error', // MISSING
FileOverwrite : 'Sovrascrivere',
FileAutorename : 'Rinomina automaticamente',
// Generic
OkBtn : 'OK',
CancelBtn : 'Anulla',
CloseBtn : 'Chiudi',
// Upload Panel
UploadTitle : 'Carica Nuovo File',
UploadSelectLbl : 'Seleziona il file',
UploadProgressLbl : '(Caricamento in corso, attendere prego...)',
UploadBtn : 'Carica File',
UploadBtnCancel : 'Annulla',
UploadNoFileMsg : 'Seleziona il file da caricare',
UploadNoFolder : 'Seleziona il file prima di caricare.',
UploadNoPerms : 'Non è permesso il caricamento di file.',
UploadUnknError : 'Error sending the file.', // MISSING
UploadExtIncorrect : 'In questa cartella non sono permessi file con questa estensione.',
// Settings Panel
SetTitle : 'Configurazioni',
SetView : 'Vedi:',
SetViewThumb : 'Anteprima',
SetViewList : 'Lista',
SetDisplay : 'Informazioni:',
SetDisplayName : 'Nome del File',
SetDisplayDate : 'Data',
SetDisplaySize : 'Dimensione',
SetSort : 'Ordina:',
SetSortName : 'per Nome',
SetSortDate : 'per Data',
SetSortSize : 'per Dimensione',
// Status Bar
FilesCountEmpty : '<Nessun file>',
FilesCountOne : '1 file',
FilesCountMany : '%1 file',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'Impossibile completare la richiesta. (Errore %1)',
Errors :
{
10 : 'Commando non valido.',
11 : 'Il tipo di risorsa non è stato specificato nella richiesta.',
12 : 'Il tipo di risorsa richiesto non è valido.',
102 : 'Nome di file o cartella non valido.',
103 : 'Non è stato possibile completare la richiesta a causa di restrizioni di autorizazione.',
104 : 'Non è stato possibile completare la richiesta a causa di restrizioni nei permessi del file system.',
105 : 'L\'estensione del file non è valida.',
109 : 'Richiesta invalida.',
110 : 'Errore sconosciuto.',
115 : 'Un file o cartella con lo stesso nome è già esistente.',
116 : 'Cartella non trovata. Prego aggiornare e riprovare.',
117 : 'File non trovato. Prego aggirnare la lista dei file e riprovare.',
118 : 'Source and target paths are equal.', // MISSING
201 : 'Un file con lo stesso nome è già disponibile. Il file caricato è stato rinominato in "%1".',
202 : 'File invalido',
203 : 'File invalido. La dimensione del file eccede i limiti del sistema.',
204 : 'Il file caricato è corrotto.',
205 : 'Il folder temporario non è disponibile new server.',
206 : 'Upload annullato per motivi di sicurezza. Il file contiene dati in formatto HTML.',
207 : 'El fichero subido ha sido renombrado como "%1"',
300 : 'Moving file(s) failed.', // MISSING
301 : 'Copying file(s) failed.', // MISSING
500 : 'Questo programma è disabilitato per motivi di sicurezza. Prego contattare l\'amministratore del sistema e verificare le configurazioni di CKFinder.',
501 : 'Il supporto alle anteprime non è attivo.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'Il nome del file non può essere vuoto',
FileExists : 'File %s already exists', // MISSING
FolderEmpty : 'Il nome della cartella non può essere vuoto',
FileInvChar : 'I seguenti caratteri non possono essere usati per comporre il nome del file: \n\\ / : * ? " < > |',
FolderInvChar : 'I seguenti caratteri non possono essere usati per comporre il nome della cartella: \n\\ / : * ? " < > |',
PopupBlockView : 'Non è stato possile aprire il file in una nuova finestra. Prego configurare il browser e disabilitare i blocchi delle popup.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Ridimensiona %s',
sizeTooBig : 'Cannot set image height or width to a value bigger than the original size (%size).', // MISSING
resizeSuccess : 'Image resized successfully.', // MISSING
thumbnailNew : 'Create new thumbnail', // MISSING
thumbnailSmall : 'Piccolo (%s)',
thumbnailMedium : 'Medio (%s)',
thumbnailLarge : 'Grande (%s)',
newSize : 'Nuove dimensioni',
width : 'Larghezza',
height : 'Altezza',
invalidHeight : 'Invalid height.', // MISSING
invalidWidth : 'Invalid width.', // MISSING
invalidName : 'Invalid file name.', // MISSING
newImage : 'Crea nuova immagine',
noExtensionChange : 'L\'estensione del file non può essere cambiata.',
imageSmall : 'Source image is too small', // MISSING
contextMenuName : 'Ridimensiona'
},
// Fileeditor plugin
Fileeditor :
{
save : 'Salva',
fileOpenError : 'Non è stato possibile aprire il file.',
fileSaveSuccess : 'File saved successfully.', // MISSING
contextMenuName : 'Modifica',
loadingFile : 'Attendere prego. Caricamento del file in corso...'
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/it.js | JavaScript | gpl3 | 8,998 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the German
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['de'] =
{
appTitle : 'CKFinder', // MISSING
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
ok : 'OK', // MISSING
cancel : 'Cancel', // MISSING
confirmationTitle : 'Confirmation', // MISSING
messageTitle : 'Information', // MISSING
inputTitle : 'Question', // MISSING
undo : 'Undo', // MISSING
redo : 'Redo', // MISSING
skip : 'Skip', // MISSING
skipAll : 'Skip all', // MISSING
makeDecision : 'What action should be taken?', // MISSING
rememberDecision: 'Remember my decision' // MISSING
},
dir : 'ltr', // MISSING
HelpLang : 'en',
LangCode : 'de',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'd.m.yyyy H:MM',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Verzeichnisse',
FolderLoading : 'Laden...',
FolderNew : 'Bitte geben Sie den neuen Verzeichnisnamen an: ',
FolderRename : 'Bitte geben Sie den neuen Verzeichnisnamen an: ',
FolderDelete : 'Wollen Sie wirklich den Ordner "%1" löschen?',
FolderRenaming : ' (Umbenennen...)',
FolderDeleting : ' (Löschen...)',
// Files
FileRename : 'Bitte geben Sie den neuen Dateinamen an: ',
FileRenameExt : 'Wollen Sie wirklich die Dateierweiterung ändern? Die Datei könnte unbrauchbar werden!',
FileRenaming : 'Umbennenen...',
FileDelete : 'Wollen Sie wirklich die Datei "%1" löschen?',
FilesLoading : 'Loading...', // MISSING
FilesEmpty : 'Empty folder', // MISSING
FilesMoved : 'File %1 moved into %2:%3', // MISSING
FilesCopied : 'File %1 copied into %2:%3', // MISSING
// Basket
BasketFolder : 'Basket', // MISSING
BasketClear : 'Clear Basket', // MISSING
BasketRemove : 'Remove from basket', // MISSING
BasketOpenFolder : 'Open parent folder', // MISSING
BasketTruncateConfirm : 'Do you really want to remove all files from the basket?', // MISSING
BasketRemoveConfirm : 'Do you really want to remove the file "%1" from the basket?', // MISSING
BasketEmpty : 'No files in the basket, drag\'n\'drop some.', // MISSING
BasketCopyFilesHere : 'Copy Files from Basket', // MISSING
BasketMoveFilesHere : 'Move Files from Basket', // MISSING
BasketPasteErrorOther : 'File %s error: %e', // MISSING
BasketPasteMoveSuccess : 'The following files were moved: %s', // MISSING
BasketPasteCopySuccess : 'The following files were copied: %s', // MISSING
// Toolbar Buttons (some used elsewhere)
Upload : 'Hochladen',
UploadTip : 'Neue Datei hochladen',
Refresh : 'Aktualisieren',
Settings : 'Einstellungen',
Help : 'Hilfe',
HelpTip : 'Hilfe',
// Context Menus
Select : 'Auswählen',
SelectThumbnail : 'Miniatur auswählen',
View : 'Ansehen',
Download : 'Herunterladen',
NewSubFolder : 'Neues Unterverzeichnis',
Rename : 'Umbenennen',
Delete : 'Löschen',
CopyDragDrop : 'Copy file here', // MISSING
MoveDragDrop : 'Move file here', // MISSING
// Dialogs
RenameDlgTitle : 'Rename', // MISSING
NewNameDlgTitle : 'New name', // MISSING
FileExistsDlgTitle : 'File already exists', // MISSING
SysErrorDlgTitle : 'System error', // MISSING
FileOverwrite : 'Overwrite', // MISSING
FileAutorename : 'Auto-rename', // MISSING
// Generic
OkBtn : 'OK',
CancelBtn : 'Abbrechen',
CloseBtn : 'Schließen',
// Upload Panel
UploadTitle : 'Neue Datei hochladen',
UploadSelectLbl : 'Bitte wählen Sie die Datei aus',
UploadProgressLbl : '(Die Daten werden übertragen, bitte warten...)',
UploadBtn : 'Ausgewählte Datei hochladen',
UploadBtnCancel : 'Cancel', // MISSING
UploadNoFileMsg : 'Bitte wählen Sie eine Datei auf Ihrem Computer aus',
UploadNoFolder : 'Please select folder before uploading.', // MISSING
UploadNoPerms : 'File upload not allowed.', // MISSING
UploadUnknError : 'Error sending the file.', // MISSING
UploadExtIncorrect : 'File extension not allowed in this folder.', // MISSING
// Settings Panel
SetTitle : 'Einstellungen',
SetView : 'Ansicht:',
SetViewThumb : 'Miniaturansicht',
SetViewList : 'Liste',
SetDisplay : 'Anzeige:',
SetDisplayName : 'Dateiname',
SetDisplayDate : 'Datum',
SetDisplaySize : 'Dateigröße',
SetSort : 'Sortierung:',
SetSortName : 'nach Dateinamen',
SetSortDate : 'nach Datum',
SetSortSize : 'nach Größe',
// Status Bar
FilesCountEmpty : '<Leeres Verzeichnis>',
FilesCountOne : '1 Datei',
FilesCountMany : '%1 Datei',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'Ihre Anfrage konnte nicht bearbeitet werden. (Fehler %1)',
Errors :
{
10 : 'Unbekannter Befehl.',
11 : 'Der Ressourcentyp wurde nicht spezifiziert.',
12 : 'Der Ressourcentyp ist nicht gültig.',
102 : 'Ungültiger Datei oder Verzeichnisname.',
103 : 'Ihre Anfrage konnte wegen Authorisierungseinschränkungen nicht durchgeführt werden.',
104 : 'Ihre Anfrage konnte wegen Dateisystemeinschränkungen nicht durchgeführt werden.',
105 : 'Invalid file extension.',
109 : 'Unbekannte Anfrage.',
110 : 'Unbekannter Fehler.',
115 : 'Es existiert bereits eine Datei oder ein Ordner mit dem gleichen Namen.',
116 : 'Verzeichnis nicht gefunden. Bitte aktualisieren Sie die Anzeige und versuchen es noch einmal.',
117 : 'Datei nicht gefunden. Bitte aktualisieren Sie die Dateiliste und versuchen es noch einmal.',
118 : 'Source and target paths are equal.', // MISSING
201 : 'Es existiert bereits eine Datei unter gleichem Namen. Die hochgeladene Datei wurde unter "%1" gespeichert.',
202 : 'Ungültige Datei',
203 : 'ungültige Datei. Die Dateigröße ist zu groß.',
204 : 'Die hochgeladene Datei ist korrupt.',
205 : 'Es existiert kein temp. Ordner für das Hochladen auf den Server.',
206 : 'Das Hochladen wurde aus Sicherheitsgründen abgebrochen. Die Datei enthält HTML-Daten.',
207 : 'Die hochgeladene Datei wurde unter "%1" gespeichert.',
300 : 'Moving file(s) failed.', // MISSING
301 : 'Copying file(s) failed.', // MISSING
500 : 'Der Dateibrowser wurde aus Sicherheitsgründen deaktiviert. Bitte benachrichtigen Sie Ihren Systemadministrator und prüfen Sie die Konfigurationsdatei.',
501 : 'Die Miniaturansicht wurde deaktivert.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'Der Dateinamen darf nicht leer sein',
FileExists : 'File %s already exists', // MISSING
FolderEmpty : 'Der Verzeichnisname darf nicht leer sein',
FileInvChar : 'Der Dateinamen darf nicht eines der folgenden Zeichen enthalten: \n\\ / : * ? " < > |',
FolderInvChar : 'Der Verzeichnisname darf nicht eines der folgenden Zeichen enthalten: \n\\ / : * ? " < > |',
PopupBlockView : 'Die Datei konnte nicht in einem neuen Fenster geöffnet werden. Bitte deaktivieren Sie in Ihrem Browser alle Popup-Blocker für diese Seite.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Resize %s', // MISSING
sizeTooBig : 'Cannot set image height or width to a value bigger than the original size (%size).', // MISSING
resizeSuccess : 'Image resized successfully.', // MISSING
thumbnailNew : 'Create new thumbnail', // MISSING
thumbnailSmall : 'Small (%s)', // MISSING
thumbnailMedium : 'Medium (%s)', // MISSING
thumbnailLarge : 'Large (%s)', // MISSING
newSize : 'Set new size', // MISSING
width : 'Width', // MISSING
height : 'Height', // MISSING
invalidHeight : 'Invalid height.', // MISSING
invalidWidth : 'Invalid width.', // MISSING
invalidName : 'Invalid file name.', // MISSING
newImage : 'Create new image', // MISSING
noExtensionChange : 'The file extension cannot be changed.', // MISSING
imageSmall : 'Source image is too small', // MISSING
contextMenuName : 'Resize' // MISSING
},
// Fileeditor plugin
Fileeditor :
{
save : 'Save', // MISSING
fileOpenError : 'Unable to open file.', // MISSING
fileSaveSuccess : 'File saved successfully.', // MISSING
contextMenuName : 'Edit', // MISSING
loadingFile : 'Loading file, please wait...' // MISSING
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/de.js | JavaScript | gpl3 | 9,411 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the Polish
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['pl'] =
{
appTitle : 'CKFinder',
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, wyłączone</span>',
confirmCancel : 'Pewne opcje zostały zmienione. Czy na pewno zamknąć okno dialogowe?',
ok : 'OK',
cancel : 'Anuluj',
confirmationTitle : 'Potwierdzenie',
messageTitle : 'Informacja',
inputTitle : 'Pytanie',
undo : 'Cofnij',
redo : 'Ponów',
skip : 'Pomiń',
skipAll : 'Pomiń wszystkie',
makeDecision : 'Wybierz jedną z opcji:',
rememberDecision: 'Zapamiętaj mój wybór'
},
dir : 'ltr',
HelpLang : 'pl',
LangCode : 'pl',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'yyyy-mm-dd HH:MM',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Katalogi',
FolderLoading : 'Ładowanie...',
FolderNew : 'Podaj nazwę nowego katalogu: ',
FolderRename : 'Podaj nową nazwę katalogu: ',
FolderDelete : 'Czy na pewno chcesz usunąć katalog "%1"?',
FolderRenaming : ' (Zmieniam nazwę...)',
FolderDeleting : ' (Kasowanie...)',
// Files
FileRename : 'Podaj nową nazwę pliku: ',
FileRenameExt : 'Czy na pewno chcesz zmienić rozszerzenie pliku? Może to spowodować problemy z otwieraniem pliku przez innych użytkowników',
FileRenaming : 'Zmieniam nazwę...',
FileDelete : 'Czy na pewno chcesz usunąć plik "%1"?',
FilesLoading : 'Ładowanie...',
FilesEmpty : 'Katalog jest pusty',
FilesMoved : 'Plik %1 został przeniesiony do %2:%3',
FilesCopied : 'Plik %1 został skopiowany do %2:%3',
// Basket
BasketFolder : 'Koszyk',
BasketClear : 'Wyczyść koszyk',
BasketRemove : 'Usuń z koszyka',
BasketOpenFolder : 'Otwórz katalog z plikiem',
BasketTruncateConfirm : 'Czy naprawdę chcesz usunąć wszystkie pliki z koszyka?',
BasketRemoveConfirm : 'Czy naprawdę chcesz usunąć plik "%1" z koszyka?',
BasketEmpty : 'Brak plików w koszyku, aby dodać plik, przeciągnij i upuść (drag\'n\'drop) dowolny plik do koszyka.',
BasketCopyFilesHere : 'Skopiuj pliki z koszyka',
BasketMoveFilesHere : 'Przenieś pliki z koszyka',
BasketPasteErrorOther : 'Plik: %s błąd: %e',
BasketPasteMoveSuccess : 'Następujące pliki zostały przeniesione: %s',
BasketPasteCopySuccess : 'Następujące pliki zostały skopiowane: %s',
// Toolbar Buttons (some used elsewhere)
Upload : 'Wyślij',
UploadTip : 'Wyślij plik',
Refresh : 'Odśwież',
Settings : 'Ustawienia',
Help : 'Pomoc',
HelpTip : 'Wskazówka',
// Context Menus
Select : 'Wybierz',
SelectThumbnail : 'Wybierz miniaturkę',
View : 'Zobacz',
Download : 'Pobierz',
NewSubFolder : 'Nowy podkatalog',
Rename : 'Zmień nazwę',
Delete : 'Usuń',
CopyDragDrop : 'Skopiuj tutaj plik',
MoveDragDrop : 'Przenieś tutaj plik',
// Dialogs
RenameDlgTitle : 'Zmiana nazwy',
NewNameDlgTitle : 'Nowa nazwa',
FileExistsDlgTitle : 'Plik już istnieje',
SysErrorDlgTitle : 'System error', // MISSING
FileOverwrite : 'Nadpisz',
FileAutorename : 'Zmień automatycznie nazwę',
// Generic
OkBtn : 'OK',
CancelBtn : 'Anuluj',
CloseBtn : 'Zamknij',
// Upload Panel
UploadTitle : 'Wyślij plik',
UploadSelectLbl : 'Wybierz plik',
UploadProgressLbl : '(Trwa wysyłanie pliku, proszę czekać...)',
UploadBtn : 'Wyślij wybrany plik',
UploadBtnCancel : 'Anuluj',
UploadNoFileMsg : 'Wybierz plik ze swojego komputera',
UploadNoFolder : 'Wybierz katalog przed wysłaniem pliku.',
UploadNoPerms : 'Wysyłanie plików nie jest dozwolone.',
UploadUnknError : 'Błąd podczas wysyłania pliku.',
UploadExtIncorrect : 'Rozszerzenie pliku nie jest dozwolone w tym katalogu.',
// Settings Panel
SetTitle : 'Ustawienia',
SetView : 'Widok:',
SetViewThumb : 'Miniaturki',
SetViewList : 'Lista',
SetDisplay : 'Wyświetlanie:',
SetDisplayName : 'Nazwa pliku',
SetDisplayDate : 'Data',
SetDisplaySize : 'Rozmiar pliku',
SetSort : 'Sortowanie:',
SetSortName : 'wg nazwy pliku',
SetSortDate : 'wg daty',
SetSortSize : 'wg rozmiaru',
// Status Bar
FilesCountEmpty : '<Pusty katalog>',
FilesCountOne : '1 plik',
FilesCountMany : 'Ilość plików: %1',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'Wykonanie operacji zakończyło się niepowodzeniem. (Błąd %1)',
Errors :
{
10 : 'Nieprawidłowe polecenie (command).',
11 : 'Brak wymaganego parametru: źródło danych (type).',
12 : 'Nieprawidłowe źródło danych (type).',
102 : 'Nieprawidłowa nazwa pliku lub katalogu.',
103 : 'Wykonanie operacji nie jest możliwe: brak autoryzacji.',
104 : 'Wykonanie operacji nie powiodło się z powodu niewystarczających uprawnień do systemu plików.',
105 : 'Nieprawidłowe rozszerzenie.',
109 : 'Nieprawiłowe polecenie.',
110 : 'Niezidentyfikowany błąd.',
115 : 'Plik lub katalog o podanej nazwie już istnieje.',
116 : 'Nie znaleziono katalogu. Odśwież panel i spróbuj ponownie.',
117 : 'Nie znaleziono pliku. Odśwież listę plików i spróbuj ponownie.',
118 : 'Ścieżki źródłowa i docelowa są jednakowe.',
201 : 'Plik o podanej nazwie już istnieje. Nazwa przesłanego pliku została zmieniona na "%1"',
202 : 'Nieprawidłowy plik.',
203 : 'Nieprawidłowy plik. Plik przekroczył dozwolony rozmiar.',
204 : 'Przesłany plik jest uszkodzony.',
205 : 'Brak folderu tymczasowego na serwerze do przesyłania plików.',
206 : 'Przesyłanie pliku zakończyło się niepowodzeniem z powodów bezpieczeństwa. Plik zawiera dane przypominające HTML.',
207 : 'Nazwa przesłanego pliku została zmieniona na "%1"',
300 : 'Przenoszenie nie powiodło się.',
301 : 'Kopiowanie nie powiodo się.',
500 : 'Menedżer plików jest wyłączony z powodów bezpieczeństwa. Skontaktuj się z administratorem oraz sprawdź plik konfiguracyjny CKFindera.',
501 : 'Tworzenie miniaturek jest wyłączone.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'Nazwa pliku nie może być pusta',
FileExists : 'Plik %s już istnieje',
FolderEmpty : 'Nazwa katalogu nie może być pusta',
FileInvChar : 'Nazwa pliku nie może zawierać żadnego z podanych znaków: \n\\ / : * ? " < > |',
FolderInvChar : 'Nazwa katalogu nie może zawierać żadnego z podanych znaków: \n\\ / : * ? " < > |',
PopupBlockView : 'Otwarcie pliku w nowym oknie nie powiodło się. Proszę zmienić konfigurację przeglądarki i wyłączyć wszelkie blokady okienek popup dla tej strony.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Zmiana rozmiaru %s',
sizeTooBig : 'Nie możesz zmienić wysokości lub szerokości na wartośc wyższą niż oryginalny rozmiar (%size).',
resizeSuccess : 'Obrazek został pomyślnie przeskalowany.',
thumbnailNew : 'Utwórz nową miniaturkę',
thumbnailSmall : 'Mały (%s)',
thumbnailMedium : 'Średni (%s)',
thumbnailLarge : 'Duży (%s)',
newSize : 'Podaj nowe wymiary',
width : 'Szerokość',
height : 'Wysokość',
invalidHeight : 'Nieprawidłowa wysokość.',
invalidWidth : 'Nieprawidłowa szerokość.',
invalidName : 'Nieprawidłowa nazwa pliku.',
newImage : 'Utwórz nowy obrazek',
noExtensionChange : 'Rozszerzenie pliku nie może zostac zmienione.',
imageSmall : 'Plik źródłowy jest zbyt mały',
contextMenuName : 'Zmień rozmiar'
},
// Fileeditor plugin
Fileeditor :
{
save : 'Zapisz',
fileOpenError : 'Nie udało się otworzyć pliku.',
fileSaveSuccess : 'Plik został zapisany pomyślnie.',
contextMenuName : 'Edytuj',
loadingFile : 'Trwa ładowanie pliku, proszę czekać...'
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/pl.js | JavaScript | gpl3 | 8,903 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['hu'] =
{
appTitle : 'CKFinder', // MISSING
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
ok : 'OK', // MISSING
cancel : 'Cancel', // MISSING
confirmationTitle : 'Confirmation', // MISSING
messageTitle : 'Information', // MISSING
inputTitle : 'Question', // MISSING
undo : 'Undo', // MISSING
redo : 'Redo', // MISSING
skip : 'Skip', // MISSING
skipAll : 'Skip all', // MISSING
makeDecision : 'What action should be taken?', // MISSING
rememberDecision: 'Remember my decision' // MISSING
},
dir : 'ltr', // MISSING
HelpLang : 'en',
LangCode : 'hu',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'yyyy. m. d. HH:MM',
DateAmPm : ['de.', 'du.'],
// Folders
FoldersTitle : 'Mappák',
FolderLoading : 'Betöltés...',
FolderNew : 'Kérjük adja meg a mappa nevét: ',
FolderRename : 'Kérjük adja meg a mappa új nevét: ',
FolderDelete : 'Biztosan törölni szeretné a következő mappát: "%1"?',
FolderRenaming : ' (átnevezés...)',
FolderDeleting : ' (törlés...)',
// Files
FileRename : 'Kérjük adja meg a fájl új nevét: ',
FileRenameExt : 'Biztosan szeretné módosítani a fájl kiterjesztését? A fájl esetleg használhatatlan lesz.',
FileRenaming : 'Átnevezés...',
FileDelete : 'Biztosan törölni szeretné a következő fájlt: "%1"?',
FilesLoading : 'Loading...', // MISSING
FilesEmpty : 'Empty folder', // MISSING
FilesMoved : 'File %1 moved into %2:%3', // MISSING
FilesCopied : 'File %1 copied into %2:%3', // MISSING
// Basket
BasketFolder : 'Basket', // MISSING
BasketClear : 'Clear Basket', // MISSING
BasketRemove : 'Remove from basket', // MISSING
BasketOpenFolder : 'Open parent folder', // MISSING
BasketTruncateConfirm : 'Do you really want to remove all files from the basket?', // MISSING
BasketRemoveConfirm : 'Do you really want to remove the file "%1" from the basket?', // MISSING
BasketEmpty : 'No files in the basket, drag\'n\'drop some.', // MISSING
BasketCopyFilesHere : 'Copy Files from Basket', // MISSING
BasketMoveFilesHere : 'Move Files from Basket', // MISSING
BasketPasteErrorOther : 'File %s error: %e', // MISSING
BasketPasteMoveSuccess : 'The following files were moved: %s', // MISSING
BasketPasteCopySuccess : 'The following files were copied: %s', // MISSING
// Toolbar Buttons (some used elsewhere)
Upload : 'Feltöltés',
UploadTip : 'Új fájl feltöltése',
Refresh : 'Frissítés',
Settings : 'Beállítások',
Help : 'Súgó',
HelpTip : 'Súgó (angolul)',
// Context Menus
Select : 'Kiválaszt',
SelectThumbnail : 'Bélyegkép kiválasztása',
View : 'Megtekintés',
Download : 'Letöltés',
NewSubFolder : 'Új almappa',
Rename : 'Átnevezés',
Delete : 'Törlés',
CopyDragDrop : 'Copy file here', // MISSING
MoveDragDrop : 'Move file here', // MISSING
// Dialogs
RenameDlgTitle : 'Rename', // MISSING
NewNameDlgTitle : 'New name', // MISSING
FileExistsDlgTitle : 'File already exists', // MISSING
SysErrorDlgTitle : 'System error', // MISSING
FileOverwrite : 'Overwrite', // MISSING
FileAutorename : 'Auto-rename', // MISSING
// Generic
OkBtn : 'OK',
CancelBtn : 'Mégsem',
CloseBtn : 'Bezárás',
// Upload Panel
UploadTitle : 'Új fájl feltöltése',
UploadSelectLbl : 'Válassza ki a feltölteni kívánt fájlt',
UploadProgressLbl : '(A feltöltés folyamatban, kérjük várjon...)',
UploadBtn : 'A kiválasztott fájl feltöltése',
UploadBtnCancel : 'Cancel', // MISSING
UploadNoFileMsg : 'Kérjük válassza ki a fájlt a számítógépéről',
UploadNoFolder : 'Please select folder before uploading.', // MISSING
UploadNoPerms : 'File upload not allowed.', // MISSING
UploadUnknError : 'Error sending the file.', // MISSING
UploadExtIncorrect : 'File extension not allowed in this folder.', // MISSING
// Settings Panel
SetTitle : 'Beállítások',
SetView : 'Nézet:',
SetViewThumb : 'bélyegképes',
SetViewList : 'listás',
SetDisplay : 'Megjelenik:',
SetDisplayName : 'fájl neve',
SetDisplayDate : 'dátum',
SetDisplaySize : 'fájlméret',
SetSort : 'Rendezés:',
SetSortName : 'fájlnév',
SetSortDate : 'dátum',
SetSortSize : 'méret',
// Status Bar
FilesCountEmpty : '<üres mappa>',
FilesCountOne : '1 fájl',
FilesCountMany : '%1 fájl',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'A parancsot nem sikerült végrehajtani. (Hiba: %1)',
Errors :
{
10 : 'Érvénytelen parancs.',
11 : 'A fájl típusa nem lett a kérés során beállítva.',
12 : 'A kívánt fájl típus érvénytelen.',
102 : 'Érvénytelen fájl vagy könyvtárnév.',
103 : 'Hitelesítési problémák miatt nem sikerült a kérést teljesíteni.',
104 : 'Jogosultsági problémák miatt nem sikerült a kérést teljesíteni.',
105 : 'Érvénytelen fájl kiterjesztés.',
109 : 'Érvénytelen kérés.',
110 : 'Ismeretlen hiba.',
115 : 'A fálj vagy mappa már létezik ezen a néven.',
116 : 'Mappa nem található. Kérjük frissítsen és próbálja újra.',
117 : 'Fájl nem található. Kérjük frissítsen és próbálja újra.',
118 : 'Source and target paths are equal.', // MISSING
201 : 'Ilyen nevű fájl már létezett. A feltöltött fájl a következőre lett átnevezve: "%1"',
202 : 'Érvénytelen fájl',
203 : 'Érvénytelen fájl. A fájl mérete túl nagy.',
204 : 'A feltöltött fájl hibás.',
205 : 'A szerveren nem található a feltöltéshez ideiglenes mappa.',
206 : 'A feltöltés biztonsági okok miatt meg lett szakítva. The file contains HTML like data.',
207 : 'El fichero subido ha sido renombrado como "%1"',
300 : 'Moving file(s) failed.', // MISSING
301 : 'Copying file(s) failed.', // MISSING
500 : 'A fájl-tallózó biztonsági okok miatt nincs engedélyezve. Kérjük vegye fel a kapcsolatot a rendszer üzemeltetőjével és ellenőrizze a CKFinder konfigurációs fájlt.',
501 : 'A bélyegkép támogatás nincs engedélyezve.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'A fájl neve nem lehet üres',
FileExists : 'File %s already exists', // MISSING
FolderEmpty : 'A mappa neve nem lehet üres',
FileInvChar : 'A fájl neve nem tartalmazhatja a következő karaktereket: \n\\ / : * ? " < > |',
FolderInvChar : 'A mappa neve nem tartalmazhatja a következő karaktereket: \n\\ / : * ? " < > |',
PopupBlockView : 'A felugró ablak megnyitása nem sikerült. Kérjük ellenőrizze a böngészője beállításait és tiltsa le a felugró ablakokat blokkoló alkalmazásait erre a honlapra.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Resize %s', // MISSING
sizeTooBig : 'Cannot set image height or width to a value bigger than the original size (%size).', // MISSING
resizeSuccess : 'Image resized successfully.', // MISSING
thumbnailNew : 'Create new thumbnail', // MISSING
thumbnailSmall : 'Small (%s)', // MISSING
thumbnailMedium : 'Medium (%s)', // MISSING
thumbnailLarge : 'Large (%s)', // MISSING
newSize : 'Set new size', // MISSING
width : 'Width', // MISSING
height : 'Height', // MISSING
invalidHeight : 'Invalid height.', // MISSING
invalidWidth : 'Invalid width.', // MISSING
invalidName : 'Invalid file name.', // MISSING
newImage : 'Create new image', // MISSING
noExtensionChange : 'The file extension cannot be changed.', // MISSING
imageSmall : 'Source image is too small', // MISSING
contextMenuName : 'Resize' // MISSING
},
// Fileeditor plugin
Fileeditor :
{
save : 'Save', // MISSING
fileOpenError : 'Unable to open file.', // MISSING
fileSaveSuccess : 'File saved successfully.', // MISSING
contextMenuName : 'Edit', // MISSING
loadingFile : 'Loading file, please wait...' // MISSING
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/hu.js | JavaScript | gpl3 | 9,251 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the Russian
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['ru'] =
{
appTitle : 'CKFinder',
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, недоступно</span>',
confirmCancel : 'Внесенные вами изменения будут утеряны. Вы уверены?',
ok : 'OK',
cancel : 'Отмена',
confirmationTitle : 'Подтверждение',
messageTitle : 'Информация',
inputTitle : 'Вопрос',
undo : 'Отменить',
redo : 'Повторить',
skip : 'Пропустить',
skipAll : 'Пропустить все',
makeDecision : 'Что следует сделать?',
rememberDecision: 'Запомнить мой выбор'
},
dir : 'ltr',
HelpLang : 'en',
LangCode : 'ru',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'dd.mm.yyyy H:MM',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Папки',
FolderLoading : 'Загрузка...',
FolderNew : 'Пожалуйста, введите новое имя папки: ',
FolderRename : 'Пожалуйста, введите новое имя папки: ',
FolderDelete : 'Вы уверены, что хотите удалить папку "%1"?',
FolderRenaming : ' (Переименовываю...)',
FolderDeleting : ' (Удаляю...)',
// Files
FileRename : 'Пожалуйста, введите новое имя файла: ',
FileRenameExt : 'Вы уверены, что хотите изменить расширение файла? Файл может стать недоступным',
FileRenaming : 'Переименовываю...',
FileDelete : 'Вы уверены, что хотите удалить файл "%1"?',
FilesLoading : 'Загрузка...',
FilesEmpty : 'Пустая папка',
FilesMoved : 'Файл %1 перемещен в %2:%3',
FilesCopied : 'Файл %1 скопирован в %2:%3',
// Basket
BasketFolder : 'Корзина',
BasketClear : 'Очистить корзину',
BasketRemove : 'Убрать из корзины',
BasketOpenFolder : 'Перейти в папку этого файла',
BasketTruncateConfirm : 'Вы точно хотите очистить корзину?',
BasketRemoveConfirm : 'Вы точно хотите убрать файл "%1" из корзины?',
BasketEmpty : 'В корзине пока нет файлов, добавьте новые с помощью драг-н-дропа (перетащите файл в корзину).',
BasketCopyFilesHere : 'Скопировать файл из корзины',
BasketMoveFilesHere : 'Переместить файл из корзины',
BasketPasteErrorOther : 'Произошла ошибка при обработке файла %s: %e',
BasketPasteMoveSuccess : 'Файлы перемещены: %s',
BasketPasteCopySuccess : 'Файлы скопированы: %s',
// Toolbar Buttons (some used elsewhere)
Upload : 'Загрузка',
UploadTip : 'Загрузить новый файл',
Refresh : 'Обновить',
Settings : 'Установки',
Help : 'Помощь',
HelpTip : 'Помощь',
// Context Menus
Select : 'Выбрать',
SelectThumbnail : 'Выбрать миниатюру',
View : 'Посмотреть',
Download : 'Сохранить',
NewSubFolder : 'Новая папка',
Rename : 'Переименовать',
Delete : 'Удалить',
CopyDragDrop : 'Копировать',
MoveDragDrop : 'Переместить',
// Dialogs
RenameDlgTitle : 'Переименовать',
NewNameDlgTitle : 'Новое имя',
FileExistsDlgTitle : 'Файл уже существует',
SysErrorDlgTitle : 'Системная ошибка',
FileOverwrite : 'Заменить файл',
FileAutorename : 'Автоматически переименовывать',
// Generic
OkBtn : 'ОК',
CancelBtn : 'Отмена',
CloseBtn : 'Закрыть',
// Upload Panel
UploadTitle : 'Загрузить новый файл',
UploadSelectLbl : 'Выбрать файл для загрузки',
UploadProgressLbl : '(Загрузка в процессе, пожалуйста подождите...)',
UploadBtn : 'Загрузить выбранный файл',
UploadBtnCancel : 'Отмена',
UploadNoFileMsg : 'Пожалуйста, выберите файл на вашем компьютере',
UploadNoFolder : 'Пожалуйста, выберите папку, в которую вы хотите закачать файл.',
UploadNoPerms : 'Загрузка файлов запрещена.',
UploadUnknError : 'Ошибка при передаче файла.',
UploadExtIncorrect : 'В эту папку нельзя закачивать файлы с таким расширением.',
// Settings Panel
SetTitle : 'Установки',
SetView : 'Просмотр:',
SetViewThumb : 'Миниатюры',
SetViewList : 'Список',
SetDisplay : 'Отобразить:',
SetDisplayName : 'Имя файла',
SetDisplayDate : 'Дата',
SetDisplaySize : 'Размер файла',
SetSort : 'Сортировка:',
SetSortName : 'по имени файла',
SetSortDate : 'по дате',
SetSortSize : 'по размеру',
// Status Bar
FilesCountEmpty : '<Пустая папка>',
FilesCountOne : '1 файл',
FilesCountMany : '%1 файлов',
// Size and Speed
Kb : '%1 кБ',
KbPerSecond : '%1 кБ/с',
// Connector Error Messages.
ErrorUnknown : 'Невозможно завершить запрос. (Ошибка %1)',
Errors :
{
10 : 'Неверная команда.',
11 : 'Тип ресурса не указан в запросе.',
12 : 'Неверный запрошенный тип ресурса.',
102 : 'Неверное имя файла или папки.',
103 : 'Невозможно завершить запрос из-за ограничений авторизации.',
104 : 'Невозможно завершить запрос из-за ограничения разрешений файловой системы.',
105 : 'Неверное расширение файла.',
109 : 'Неверный запрос.',
110 : 'Неизвестная ошибка.',
115 : 'Файл или папка с таким именем уже существует.',
116 : 'Папка не найдена. Пожалуйста, обновите вид папок и попробуйте еще раз.',
117 : 'Файл не найден. Пожалуйста, обновите список файлов и попробуйте еще раз.',
118 : 'Исходное расположение файла совпадает с указанным.',
201 : 'Файл с таким именем уже существует. Загруженный файл был переименован в "%1"',
202 : 'Неверный файл',
203 : 'Неверный файл. Размер файла слишком большой.',
204 : 'Загруженный файл поврежден.',
205 : 'Недоступна временная папка для загрузки файлов на сервер.',
206 : 'Загрузка отменена из-за соображений безопасности. Файл содержит похожие на HTML данные.',
207 : 'Загруженный файл был переименован в "%1"',
300 : 'Произошла ошибка при перемещении файла(ов).',
301 : 'Произошла ошибка при копировании файла(ов).',
500 : 'Браузер файлов отключен из-за соображений безопасности. Пожалуйста, сообщите вашему системному администратру и проверьте конфигурационный файл CKFinder.',
501 : 'Поддержка миниатюр отключена.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'Имя файла не может быть пустым',
FileExists : 'Файл %s уже существует',
FolderEmpty : 'Имя папки не может быть пустым',
FileInvChar : 'Имя файла не может содержать любой из перечисленных символов: \n\\ / : * ? " < > |',
FolderInvChar : 'Имя папки не может содержать любой из перечисленных символов: \n\\ / : * ? " < > |',
PopupBlockView : 'Невозможно открыть файл в новом окне. Пожалуйста, проверьте настройки браузера и отключите все блокировки всплывающих окон для этого сайта.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Изменить размеры %s',
sizeTooBig : 'Нельзя указывать размеры больше, чем у оригинального файла (%size).',
resizeSuccess : 'Размеры успешно изменены.',
thumbnailNew : 'Создать миниатюру(ы)',
thumbnailSmall : 'Маленькая (%s)',
thumbnailMedium : 'Средняя (%s)',
thumbnailLarge : 'Большая (%s)',
newSize : 'Установить новые размеры',
width : 'Ширина',
height : 'Высота',
invalidHeight : 'Высота должна быть числом больше нуля.',
invalidWidth : 'Ширина должна быть числом больше нуля.',
invalidName : 'Неверное имя файла.',
newImage : 'Сохранить как новый файл',
noExtensionChange : 'Не удалось поменять расширение файла.',
imageSmall : 'Исходная картинка слишком маленькая',
contextMenuName : 'Изменить размер'
},
// Fileeditor plugin
Fileeditor :
{
save : 'Сохранить',
fileOpenError : 'Не удалось открыть файл.',
fileSaveSuccess : 'Файл успешно сохранен.',
contextMenuName : 'Редактировать',
loadingFile : 'Файл загружается, пожалуйста подождите...'
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/ru.js | JavaScript | gpl3 | 11,737 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the Swedish
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['sv'] =
{
appTitle : 'CKFinder', // MISSING
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
ok : 'OK', // MISSING
cancel : 'Cancel', // MISSING
confirmationTitle : 'Confirmation', // MISSING
messageTitle : 'Information', // MISSING
inputTitle : 'Question', // MISSING
undo : 'Undo', // MISSING
redo : 'Redo', // MISSING
skip : 'Skip', // MISSING
skipAll : 'Skip all', // MISSING
makeDecision : 'What action should be taken?', // MISSING
rememberDecision: 'Remember my decision' // MISSING
},
dir : 'ltr', // MISSING
HelpLang : 'en',
LangCode : 'en', // MISSING
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'yyyy-mm-dd HH:MM',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Mappar',
FolderLoading : 'Laddar...',
FolderNew : 'Skriv namnet på den nya mappen: ',
FolderRename : 'Skriv det nya namnet på mappen: ',
FolderDelete : 'Är du säker på att du vill radera mappen "%1"?',
FolderRenaming : ' (Byter mappens namn...)',
FolderDeleting : ' (Raderar...)',
// Files
FileRename : 'Skriv det nya filnamnet: ',
FileRenameExt : 'Är du säker på att du fill ändra på filändelsen? Filen kan bli oanvändbar',
FileRenaming : 'Byter filnamn...',
FileDelete : 'Är du säker på att du vill radera filen "%1"?',
FilesLoading : 'Loading...', // MISSING
FilesEmpty : 'Empty folder', // MISSING
FilesMoved : 'File %1 moved into %2:%3', // MISSING
FilesCopied : 'File %1 copied into %2:%3', // MISSING
// Basket
BasketFolder : 'Basket', // MISSING
BasketClear : 'Clear Basket', // MISSING
BasketRemove : 'Remove from basket', // MISSING
BasketOpenFolder : 'Open parent folder', // MISSING
BasketTruncateConfirm : 'Do you really want to remove all files from the basket?', // MISSING
BasketRemoveConfirm : 'Do you really want to remove the file "%1" from the basket?', // MISSING
BasketEmpty : 'No files in the basket, drag\'n\'drop some.', // MISSING
BasketCopyFilesHere : 'Copy Files from Basket', // MISSING
BasketMoveFilesHere : 'Move Files from Basket', // MISSING
BasketPasteErrorOther : 'File %s error: %e', // MISSING
BasketPasteMoveSuccess : 'The following files were moved: %s', // MISSING
BasketPasteCopySuccess : 'The following files were copied: %s', // MISSING
// Toolbar Buttons (some used elsewhere)
Upload : 'Ladda upp',
UploadTip : 'Ladda upp en ny fil',
Refresh : 'Uppdatera',
Settings : 'Inställningar',
Help : 'Hjälp',
HelpTip : 'Hjälp',
// Context Menus
Select : 'Infoga bild',
SelectThumbnail : 'Infoga som tumnagel',
View : 'Visa',
Download : 'Ladda ner',
NewSubFolder : 'Ny Undermapp',
Rename : 'Byt namn',
Delete : 'Radera',
CopyDragDrop : 'Copy file here', // MISSING
MoveDragDrop : 'Move file here', // MISSING
// Dialogs
RenameDlgTitle : 'Rename', // MISSING
NewNameDlgTitle : 'New name', // MISSING
FileExistsDlgTitle : 'File already exists', // MISSING
SysErrorDlgTitle : 'System error', // MISSING
FileOverwrite : 'Overwrite', // MISSING
FileAutorename : 'Auto-rename', // MISSING
// Generic
OkBtn : 'OK',
CancelBtn : 'Avbryt',
CloseBtn : 'Stäng',
// Upload Panel
UploadTitle : 'Ladda upp en ny fil',
UploadSelectLbl : 'Välj fil att ladda upp',
UploadProgressLbl : '(Laddar upp filen, var god vänta...)',
UploadBtn : 'Ladda upp den valda filen',
UploadBtnCancel : 'Cancel', // MISSING
UploadNoFileMsg : 'Välj en fil från din dator',
UploadNoFolder : 'Please select folder before uploading.', // MISSING
UploadNoPerms : 'File upload not allowed.', // MISSING
UploadUnknError : 'Error sending the file.', // MISSING
UploadExtIncorrect : 'File extension not allowed in this folder.', // MISSING
// Settings Panel
SetTitle : 'Inställningar',
SetView : 'Visa:',
SetViewThumb : 'Tumnaglar',
SetViewList : 'Lista',
SetDisplay : 'Visa:',
SetDisplayName : 'Filnamn',
SetDisplayDate : 'Datum',
SetDisplaySize : 'Filstorlek',
SetSort : 'Sortering:',
SetSortName : 'Filnamn',
SetSortDate : 'Datum',
SetSortSize : 'Storlek',
// Status Bar
FilesCountEmpty : '<Tom Mapp>',
FilesCountOne : '1 fil',
FilesCountMany : '%1 filer',
// Size and Speed
Kb : '%1 kB', // MISSING
KbPerSecond : '%1 kB/s', // MISSING
// Connector Error Messages.
ErrorUnknown : 'Begäran kunde inte utföras eftersom ett fel uppstod. (Error %1)',
Errors :
{
10 : 'Ogiltig begäran.',
11 : 'Resursens typ var inte specificerad i förfrågan.',
12 : 'Den efterfrågade resurstypen är inte giltig.',
102 : 'Ogiltigt fil- eller mappnamn.',
103 : 'Begäran kunde inte utföras p.g.a. restriktioner av rättigheterna.',
104 : 'Begäran kunde inte utföras p.g.a. restriktioner av rättigheter i filsystemet.',
105 : 'Ogiltig filändelse.',
109 : 'Ogiltig begäran.',
110 : 'Okänt fel.',
115 : 'En fil eller mapp med aktuellt namn finns redan.',
116 : 'Mappen kunde inte hittas. Var god uppdatera sidan och försök igen.',
117 : 'Filen kunde inte hittas. Var god uppdatera sidan och försök igen.',
118 : 'Source and target paths are equal.', // MISSING
201 : 'En fil med aktuellt namn fanns redan. Den uppladdade filen har döpts om till "%1"',
202 : 'Ogiltig fil',
203 : 'Ogiltig fil. Filen var för stor.',
204 : 'Den uppladdade filen var korrupt.',
205 : 'En tillfällig mapp för uppladdning är inte tillgänglig på servern.',
206 : 'Uppladdningen stoppades av säkerhetsskäl. Filen innehåller HTML-liknande data.',
207 : 'Den uppladdade filen har döpts om till "%1"',
300 : 'Moving file(s) failed.', // MISSING
301 : 'Copying file(s) failed.', // MISSING
500 : 'Filhanteraren har stoppats av säkerhetsskäl. Var god kontakta administratören för att kontrollera konfigurationsfilen för CKFinder.',
501 : 'Stöd för tumnaglar har stängts av.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'Filnamnet får inte vara tomt',
FileExists : 'File %s already exists', // MISSING
FolderEmpty : 'Mappens namn får inte vara tomt',
FileInvChar : 'Filnamnet får inte innehålla något av följande tecken: \n\\ / : * ? " < > |',
FolderInvChar : 'Mappens namn får inte innehålla något av följande tecken: \n\\ / : * ? " < > |',
PopupBlockView : 'Det gick inte att öppna filen i ett nytt fönster. Ändra inställningarna i din webbläsare och tillåt popupfönster för den här hemsidan.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Resize %s', // MISSING
sizeTooBig : 'Cannot set image height or width to a value bigger than the original size (%size).', // MISSING
resizeSuccess : 'Image resized successfully.', // MISSING
thumbnailNew : 'Create new thumbnail', // MISSING
thumbnailSmall : 'Small (%s)', // MISSING
thumbnailMedium : 'Medium (%s)', // MISSING
thumbnailLarge : 'Large (%s)', // MISSING
newSize : 'Set new size', // MISSING
width : 'Width', // MISSING
height : 'Height', // MISSING
invalidHeight : 'Invalid height.', // MISSING
invalidWidth : 'Invalid width.', // MISSING
invalidName : 'Invalid file name.', // MISSING
newImage : 'Create new image', // MISSING
noExtensionChange : 'The file extension cannot be changed.', // MISSING
imageSmall : 'Source image is too small', // MISSING
contextMenuName : 'Resize' // MISSING
},
// Fileeditor plugin
Fileeditor :
{
save : 'Save', // MISSING
fileOpenError : 'Unable to open file.', // MISSING
fileSaveSuccess : 'File saved successfully.', // MISSING
contextMenuName : 'Edit', // MISSING
loadingFile : 'Loading file, please wait...' // MISSING
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/sv.js | JavaScript | gpl3 | 9,106 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the French
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['fr'] =
{
appTitle : 'CKFinder', // MISSING
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, Inaccessible</span>',
confirmCancel : 'Certaines options ont été modifiées. Êtes vous sûr de vouloir fermer cette fenêtre ?',
ok : 'OK',
cancel : 'Annuler',
confirmationTitle : 'Confirmation',
messageTitle : 'Information',
inputTitle : 'Question',
undo : 'Annuler',
redo : 'Rétablir',
skip : 'Passer',
skipAll : 'passer tout',
makeDecision : 'Quelle action choisir ?',
rememberDecision: 'Se rappeller de la décision'
},
dir : 'ltr',
HelpLang : 'en',
LangCode : 'fr',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'dd/mm/yyyy H:MM',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Dossiers',
FolderLoading : 'Chargement...',
FolderNew : 'Entrez le nouveau nom du dossier: ',
FolderRename : 'Entrez le nouveau nom du dossier: ',
FolderDelete : 'Êtes-vous sûr de vouloir effacer le dossier "%1" ?',
FolderRenaming : ' (Renommage en cours...)',
FolderDeleting : ' (Suppression en cours...)',
// Files
FileRename : 'Entrez le nouveau nom du fichier: ',
FileRenameExt : 'Êtes-vous sûr de vouloir ¨changer l\'extension de ce fichier? Le fichier pourrait devenir inutilisable',
FileRenaming : 'Renommage en cours...',
FileDelete : 'Êtes-vous sûr de vouloir effacer le fichier "%1" ?',
FilesLoading : 'Chargement...',
FilesEmpty : 'Répertoire vide',
FilesMoved : 'Fichier %1 déplacé vers %2:%3',
FilesCopied : 'Fichier %1 copié vers %2:%3',
// Basket
BasketFolder : 'Corbeille',
BasketClear : 'Vider la corbeille',
BasketRemove : 'Retirer de la corbeille',
BasketOpenFolder : 'Ouvrir le répertiore parent',
BasketTruncateConfirm : 'Êtes vous sûr de vouloir supprimer tous les fichiers de la corbeille ?',
BasketRemoveConfirm : 'Êtes vous sûr de vouloir supprimer le fichier "%1" de la corbeille ?',
BasketEmpty : 'Aucun fichier dans la corbeille, déposez en queques uns.',
BasketCopyFilesHere : 'Copier des fichiers depuis la corbeille',
BasketMoveFilesHere : 'Déplacer des fichiers depuis la corbeille',
BasketPasteErrorOther : 'Fichier %s erreur: %e',
BasketPasteMoveSuccess : 'Les fichiers suivant ont été déplacés: %s',
BasketPasteCopySuccess : 'Les fichiers suivant ont été copiés: %s',
// Toolbar Buttons (some used elsewhere)
Upload : 'Envoyer',
UploadTip : 'Envoyer un nouveau fichier',
Refresh : 'Rafraîchir',
Settings : 'Configuration',
Help : 'Aide',
HelpTip : 'Aide',
// Context Menus
Select : 'Choisir',
SelectThumbnail : 'Choisir une miniature',
View : 'Voir',
Download : 'Télécharger',
NewSubFolder : 'Nouveau sous-dossier',
Rename : 'Renommer',
Delete : 'Effacer',
CopyDragDrop : 'Copier les fichiers ici',
MoveDragDrop : 'Déplacer les fichiers ici',
// Dialogs
RenameDlgTitle : 'Renommer',
NewNameDlgTitle : 'Nouveau fichier',
FileExistsDlgTitle : 'Fichier déjà existant',
SysErrorDlgTitle : 'Erreur système',
FileOverwrite : 'Ré-écrire',
FileAutorename : 'Re-nommage automatique',
// Generic
OkBtn : 'OK',
CancelBtn : 'Annuler',
CloseBtn : 'Fermer',
// Upload Panel
UploadTitle : 'Envoyer un nouveau fichier',
UploadSelectLbl : 'Sélectionner le fichier à télécharger',
UploadProgressLbl : '(Envoi en cours, veuillez patienter...)',
UploadBtn : 'Envoyer le fichier sélectionné',
UploadBtnCancel : 'Annuler',
UploadNoFileMsg : 'Sélectionner un fichier sur votre ordinateur',
UploadNoFolder : 'Merci de sélectionner un répertoire avant l\'envoi.',
UploadNoPerms : 'L\'envoi de fichier n\'est pas autorisé',
UploadUnknError : 'Erreur pendant l\'envoi du fichier.',
UploadExtIncorrect : 'L\'extension du fichier n\'est pas autorisée dans ce dossier.',
// Settings Panel
SetTitle : 'Configuration',
SetView : 'Voir:',
SetViewThumb : 'Miniatures',
SetViewList : 'Liste',
SetDisplay : 'Affichage:',
SetDisplayName : 'Nom du fichier',
SetDisplayDate : 'Date',
SetDisplaySize : 'Taille du fichier',
SetSort : 'Classement:',
SetSortName : 'par Nom de Fichier',
SetSortDate : 'par Date',
SetSortSize : 'par Taille',
// Status Bar
FilesCountEmpty : '<Dossier Vide>',
FilesCountOne : '1 fichier',
FilesCountMany : '%1 fichiers',
// Size and Speed
Kb : '%1 ko',
KbPerSecond : '%1 ko/s',
// Connector Error Messages.
ErrorUnknown : 'La demande n\'a pas abouti. (Erreur %1)',
Errors :
{
10 : 'Commande invalide.',
11 : 'Le type de ressource n\'a pas été spécifié dans la commande.',
12 : 'Le type de ressource n\'est pas valide.',
102 : 'Nom de fichier ou de dossier invalide.',
103 : 'La demande n\'a pas abouti : problème d\'autorisations.',
104 : 'La demande n\'a pas abouti : problème de restrictions de permissions.',
105 : 'Extension de fichier invalide.',
109 : 'Demande invalide.',
110 : 'Erreur inconnue.',
115 : 'Un fichier ou un dossier avec ce nom existe déjà.',
116 : 'Ce dossier n\'existe pas. Veuillez rafraîchir la page et réessayer.',
117 : 'Ce fichier n\'existe pas. Veuillez rafraîchir la page et réessayer.',
118 : 'Les chemins vers la source et la cible sont les mêmes.',
201 : 'Un fichier avec ce nom existe déjà. Le fichier téléversé a été renommé en "%1"',
202 : 'Fichier invalide',
203 : 'Fichier invalide. La taille est trop grande.',
204 : 'Le fichier téléversé est corrompu.',
205 : 'Aucun dossier temporaire n\'est disponible sur le serveur.',
206 : 'Envoi interrompu pour raisons de sécurité. Le fichier contient des données de type HTML.',
207 : 'El fichero subido ha sido renombrado como "%1"',
300 : 'Le déplacement des fichiers a échoué.',
301 : 'La copie des fichiers a échoué.',
500 : 'L\'interface de gestion des fichiers est désactivé. Contactez votre administrateur et vérifier le fichier de configuration de CKFinder.',
501 : 'La fonction "miniatures" est désactivée.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'Le nom du fichier ne peut être vide',
FileExists : 'Le fichier %s existes déjà',
FolderEmpty : 'Le nom du dossier ne peut être vide',
FileInvChar : 'Le nom du fichier ne peut pas contenir les charactères suivants : \n\\ / : * ? " < > |',
FolderInvChar : 'Le nom du dossier ne peut pas contenir les charactères suivants : \n\\ / : * ? " < > |',
PopupBlockView : 'Il n\'a pas été possible d\'ouvrir la nouvelle fenêtre. Désactiver votre bloqueur de fenêtres pour ce site.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Redimensionner %s',
sizeTooBig : 'Impossible de modifier la hauteur ou la largeur de cette image pour une valeur plus grande que l\'original (%size).',
resizeSuccess : 'L\'image a été redimensionné avec succès.',
thumbnailNew : 'Créer une nouvelle vignette',
thumbnailSmall : 'Petit (%s)',
thumbnailMedium : 'Moyen (%s)',
thumbnailLarge : 'Gros (%s)',
newSize : 'Déterminer les nouvelles dimensions',
width : 'Largeur',
height : 'Hauteur',
invalidHeight : 'Hauteur invalide.',
invalidWidth : 'Largeur invalide.',
invalidName : 'Nom de fichier incorrect.',
newImage : 'Créer une nouvelle image',
noExtensionChange : 'L\'extension du fichier ne peut pas être changé.',
imageSmall : 'L\'image est trop petit',
contextMenuName : 'Redimensionner'
},
// Fileeditor plugin
Fileeditor :
{
save : 'Sauvegarder',
fileOpenError : 'Impossible d\'ouvrir le fichier',
fileSaveSuccess : 'Fichier sauvegardé avec succès.',
contextMenuName : 'Edition',
loadingFile : 'Chargement du fichier, veuillez patientez...'
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/fr.js | JavaScript | gpl3 | 9,029 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the Chinese-Simplified
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['zh-cn'] =
{
appTitle : 'CKFinder',
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>', // MISSING
confirmCancel : '部分内容尚未保存,确定关闭对话框么?',
ok : '确定',
cancel : '取消',
confirmationTitle : '确认',
messageTitle : '提示',
inputTitle : '询问',
undo : '撤销',
redo : '重做',
skip : '跳过',
skipAll : '全部跳过',
makeDecision : '应采取何样措施?',
rememberDecision: '下次不再询问'
},
dir : '自左向右',
HelpLang : 'en',
LangCode : 'zh-cn',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'yyyy年m月d日 h:MM aa',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : '文件夹',
FolderLoading : '正在加载文件夹...',
FolderNew : '请输入新文件夹名称: ',
FolderRename : '请输入新文件夹名称: ',
FolderDelete : '您确定要删除文件夹 "%1" 吗?',
FolderRenaming : ' (正在重命名...)',
FolderDeleting : ' (正在删除...)',
// Files
FileRename : '请输入新文件名: ',
FileRenameExt : '如果改变文件扩展名,可能会导致文件不可用。\r\n确定要更改吗?',
FileRenaming : '正在重命名...',
FileDelete : '您确定要删除文件 "%1" 吗?',
FilesLoading : '加载中...',
FilesEmpty : '空文件夹',
FilesMoved : '文件 %1 已移动至 %2:%3',
FilesCopied : '文件 %1 已拷贝至 %2:%3',
// Basket
BasketFolder : '临时文件夹',
BasketClear : '清空临时文件夹',
BasketRemove : '从临时文件夹移除',
BasketOpenFolder : '打开临时文件夹',
BasketTruncateConfirm : '确认清空临时文件夹?',
BasketRemoveConfirm : '确认从临时文件夹中移除文件 "%1" ?',
BasketEmpty : '临时文件夹为空, 可拖放文件至其中.',
BasketCopyFilesHere : '从临时文件夹复制至此',
BasketMoveFilesHere : '从临时文件夹移动至此',
BasketPasteErrorOther : '文件 %s 出错: %e',
BasketPasteMoveSuccess : '已移动以下文件: %s',
BasketPasteCopySuccess : '已拷贝以下文件: %s',
// Toolbar Buttons (some used elsewhere)
Upload : '上传',
UploadTip : '上传文件',
Refresh : '刷新',
Settings : '设置',
Help : '帮助',
HelpTip : '查看在线帮助',
// Context Menus
Select : '选择',
SelectThumbnail : '选中缩略图',
View : '查看',
Download : '下载',
NewSubFolder : '创建子文件夹',
Rename : '重命名',
Delete : '删除',
CopyDragDrop : '将文件复制至此',
MoveDragDrop : '将文件移动至此',
// Dialogs
RenameDlgTitle : '重命名',
NewNameDlgTitle : '文件名',
FileExistsDlgTitle : '文件已存在',
SysErrorDlgTitle : 'System error', // MISSING
FileOverwrite : '自动覆盖重名',
FileAutorename : '自动重命名重名',
// Generic
OkBtn : '确定',
CancelBtn : '取消',
CloseBtn : '关闭',
// Upload Panel
UploadTitle : '上传文件',
UploadSelectLbl : '选定要上传的文件',
UploadProgressLbl : '(正在上传文件,请稍候...)',
UploadBtn : '上传选定的文件',
UploadBtnCancel : '取消',
UploadNoFileMsg : '请选择一个要上传的文件',
UploadNoFolder : '需先选择一个文件.',
UploadNoPerms : '无文件上传权限.',
UploadUnknError : '上传文件出错.',
UploadExtIncorrect : '此文件后缀在当前文件夹中不可用.',
// Settings Panel
SetTitle : '设置',
SetView : '查看:',
SetViewThumb : '缩略图',
SetViewList : '列表',
SetDisplay : '显示:',
SetDisplayName : '文件名',
SetDisplayDate : '日期',
SetDisplaySize : '大小',
SetSort : '排列顺序:',
SetSortName : '按文件名',
SetSortDate : '按日期',
SetSortSize : '按大小',
// Status Bar
FilesCountEmpty : '<空文件夹>',
FilesCountOne : '1 个文件',
FilesCountMany : '%1 个文件',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : '请求的操作未能完成. (错误 %1)',
Errors :
{
10 : '无效的指令.',
11 : '文件类型不在许可范围之内.',
12 : '文件类型无效.',
102 : '无效的文件名或文件夹名称.',
103 : '由于作者限制,该请求不能完成.',
104 : '由于文件系统的限制,该请求不能完成.',
105 : '无效的扩展名.',
109 : '无效请求.',
110 : '未知错误.',
115 : '存在重名的文件或文件夹.',
116 : '文件夹不存在. 请刷新后再试.',
117 : '文件不存在. 请刷新列表后再试.',
118 : '目标位置与当前位置相同.',
201 : '文件与现有的重名. 新上传的文件改名为 "%1"',
202 : '无效的文件',
203 : '无效的文件. 文件尺寸太大.',
204 : '上传文件已损失.',
205 : '服务器中的上传临时文件夹无效.',
206 : '因为安全原因,上传中断. 上传文件包含不能 HTML 类型数据.',
207 : '新上传的文件改名为 "%1"',
300 : '移动文件失败.',
301 : '复制文件失败.',
500 : '因为安全原因,文件不可浏览. 请联系系统管理员并检查CKFinder配置文件.',
501 : '不支持缩略图方式.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : '文件名不能为空',
FileExists : '文件 %s 已存在.',
FolderEmpty : '文件夹名称不能为空',
FileInvChar : '文件名不能包含以下字符: \n\\ / : * ? " < > |',
FolderInvChar : '文件夹名称不能包含以下字符: \n\\ / : * ? " < > |',
PopupBlockView : '未能在新窗口中打开文件. 请修改浏览器配置解除对本站点的锁定.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : '改变尺寸 %s',
sizeTooBig : '无法大于原图尺寸 (%size).',
resizeSuccess : '图像尺寸已修改.',
thumbnailNew : '创建缩略图',
thumbnailSmall : '小 (%s)',
thumbnailMedium : '中 (%s)',
thumbnailLarge : '大 (%s)',
newSize : '设置新尺寸',
width : '宽度',
height : '高度',
invalidHeight : '无效高度.',
invalidWidth : '无效宽度.',
invalidName : '文件名无效.',
newImage : '创建图像',
noExtensionChange : '无法改变文件后缀.',
imageSmall : '原文件尺寸过小',
contextMenuName : '改变尺寸'
},
// Fileeditor plugin
Fileeditor :
{
save : '保存',
fileOpenError : '无法打开文件.',
fileSaveSuccess : '成功保存文件.',
contextMenuName : '编辑',
loadingFile : '加载文件中...'
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/zh-cn.js | JavaScript | gpl3 | 7,839 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the English
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['ja'] =
{
appTitle : 'CKFinder',
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, は利用できません。</span>',
confirmCancel : '変更された項目があります。ウィンドウを閉じてもいいですか?',
ok : '適用',
cancel : 'キャンセル',
confirmationTitle : '確認',
messageTitle : 'インフォメーション',
inputTitle : '質問',
undo : '元に戻す',
redo : 'やり直す',
skip : 'スキップ',
skipAll : 'すべてスキップ',
makeDecision : 'どうしますか?',
rememberDecision: '注意:'
},
dir : 'ltr',
HelpLang : 'en',
LangCode : 'ja',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'm/d/yyyy h:MM aa',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Folders',
FolderLoading : '読み込み中...',
FolderNew : '新しいフォルダ名を入力してください: ',
FolderRename : '新しいフォルダ名を入力してください: ',
FolderDelete : '本当にフォルダ「"%1"」を削除してもよろしいですか?',
FolderRenaming : ' (リネーム中...)',
FolderDeleting : ' (削除中...)',
// Files
FileRename : '新しいファイル名を入力してください: ',
FileRenameExt : 'ファイルが使えなくなる可能性がありますが、本当に拡張子を変更してもよろしいですか?',
FileRenaming : 'リネーム中...',
FileDelete : '本当に「"%1"」を削除してもよろしいですか?',
FilesLoading : '読み込み中...',
FilesEmpty : 'ファイルがありません',
FilesMoved : ' %1 は %2:%3 に移動されました',
FilesCopied : ' %1 cは %2:%3 にコピーされました',
// Basket
BasketFolder : 'Basket',
BasketClear : 'バスケットを空にする',
BasketRemove : 'バスケットから削除',
BasketOpenFolder : '親フォルダを開く',
BasketTruncateConfirm : '本当にバスケットの中身を空にしますか?',
BasketRemoveConfirm : '本当に「"%1"」をバスケットから削除しますか?',
BasketEmpty : 'バスケットの中にファイルがありません。このエリアにドラッグ&ドロップして追加することができます。',
BasketCopyFilesHere : 'バスケットからファイルをコピー',
BasketMoveFilesHere : 'バスケットからファイルを移動',
BasketPasteErrorOther : 'ファイル %s のエラー: %e',
BasketPasteMoveSuccess : '以下のファイルが移動されました: %s',
BasketPasteCopySuccess : '以下のファイルがコピーされました: %s',
// Toolbar Buttons (some used elsewhere)
Upload : 'アップロード',
UploadTip : '新しいファイルのアップロード',
Refresh : '表示の更新',
Settings : 'カスタマイズ',
Help : 'ヘルプ',
HelpTip : 'ヘルプ',
// Context Menus
Select : 'この画像を選択',
SelectThumbnail : 'この画像のサムネイルを選択',
View : '画像だけを表示',
Download : 'ダウンロード',
NewSubFolder : '新しいフォルダに入れる',
Rename : 'ファイル名の変更',
Delete : '削除',
CopyDragDrop : 'コピーするファイルをここにドロップしてください',
MoveDragDrop : '移動するファイルをここにドロップしてください',
// Dialogs
RenameDlgTitle : 'リネーム',
NewNameDlgTitle : '新しい名前',
FileExistsDlgTitle : 'ファイルはすでに存在します。',
SysErrorDlgTitle : 'システムエラー',
FileOverwrite : '上書き',
FileAutorename : 'A自動でリネーム',
// Generic
OkBtn : 'OK',
CancelBtn : 'キャンセル',
CloseBtn : '閉じる',
// Upload Panel
UploadTitle : 'ファイルのアップロード',
UploadSelectLbl : 'アップロードするファイルを選択してください',
UploadProgressLbl : '(ファイルのアップロード中...)',
UploadBtn : 'アップロード',
UploadBtnCancel : 'キャンセル',
UploadNoFileMsg : 'ファイルを選んでください。',
UploadNoFolder : 'アップロードの前にフォルダを選択してください。',
UploadNoPerms : 'ファイルのアップロード権限がありません。',
UploadUnknError : 'ファイルの送信に失敗しました。',
UploadExtIncorrect : '選択されたファイルの拡張子は許可されていません。',
// Settings Panel
SetTitle : '表示のカスタマイズ',
SetView : '表示方法:',
SetViewThumb : 'サムネイル',
SetViewList : '表示形式',
SetDisplay : '表示する項目:',
SetDisplayName : 'ファイル名',
SetDisplayDate : '日時',
SetDisplaySize : 'ファイルサイズ',
SetSort : '表示の順番:',
SetSortName : 'ファイル名',
SetSortDate : '日付',
SetSortSize : 'サイズ',
// Status Bar
FilesCountEmpty : '<フォルダ内にファイルがありません>',
FilesCountOne : '1つのファイル',
FilesCountMany : '%1個のファイル',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'リクエストの処理に失敗しました。 (Error %1)',
Errors :
{
10 : '不正なコマンドです。',
11 : 'リソースタイプが特定できませんでした。',
12 : '要求されたリソースのタイプが正しくありません。',
102 : 'ファイル名/フォルダ名が正しくありません。',
103 : 'リクエストを完了できませんでした。認証エラーです。',
104 : 'リクエストを完了できませんでした。ファイルのパーミッションが許可されていません。',
105 : '拡張子が正しくありません。',
109 : '不正なリクエストです。',
110 : '不明なエラーが発生しました。',
115 : '同じ名前のファイル/フォルダがすでに存在しています。',
116 : 'フォルダが見つかりませんでした。ページを更新して再度お試し下さい。',
117 : 'ファイルが見つかりませんでした。ページを更新して再度お試し下さい。',
118 : '対象が移動元と同じ場所を指定されています。',
201 : '同じ名前のファイルがすでに存在しています。"%1" にリネームして保存されました。',
202 : '不正なファイルです。',
203 : 'ファイルのサイズが大きすぎます。',
204 : 'アップロードされたファイルは壊れています。',
205 : 'サーバ内の一時作業フォルダが利用できません。',
206 : 'セキュリティ上の理由からアップロードが取り消されました。このファイルにはHTMLに似たデータが含まれています。',
207 : 'ファイルは "%1" にリネームして保存されました。',
300 : 'ファイルの移動に失敗しました。',
301 : 'ファイルのコピーに失敗しました。',
500 : 'ファイルブラウザはセキュリティ上の制限から無効になっています。システム担当者に連絡をして、CKFinderの設定をご確認下さい。',
501 : 'サムネイル機能は無効になっています。'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'ファイル名を入力してください',
FileExists : ' %s はすでに存在しています。別の名前を入力してください。',
FolderEmpty : 'フォルダ名を入力してください',
FileInvChar : 'ファイルに以下の文字は使えません: \n\\ / : * ? " < > |',
FolderInvChar : 'フォルダに以下の文字は使えません: \n\\ / : * ? " < > |',
PopupBlockView : 'ファイルを新しいウィンドウで開くことに失敗しました。 お使いのブラウザの設定でポップアップをブロックする設定を解除してください。'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'リサイズ: %s',
sizeTooBig : 'オリジナルの画像よりも大きいサイズは指定できません。 (%size).',
resizeSuccess : '画像のリサイズに成功しました',
thumbnailNew : 'サムネイルをつくる',
thumbnailSmall : '小 (%s)',
thumbnailMedium : '中 (%s)',
thumbnailLarge : '大 (%s)',
newSize : 'Set new size',
width : '幅',
height : '高さ',
invalidHeight : '高さの値が不正です。',
invalidWidth : '幅の値が不正です。',
invalidName : 'ファイル名が不正です。',
newImage : '新しい画像を作成',
noExtensionChange : '拡張子は変更できません。',
imageSmall : '元画像が小さすぎます。',
contextMenuName : 'リサイズ'
},
// Fileeditor plugin
Fileeditor :
{
save : '保存',
fileOpenError : 'ファイルを開けませんでした。',
fileSaveSuccess : 'ファイルの保存が完了しました。',
contextMenuName : '編集',
loadingFile : 'ファイルの読み込み中...'
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/ja.js | JavaScript | gpl3 | 10,330 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the Slovak
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['sk'] =
{
appTitle : 'CKFinder', // MISSING
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
ok : 'OK', // MISSING
cancel : 'Cancel', // MISSING
confirmationTitle : 'Confirmation', // MISSING
messageTitle : 'Information', // MISSING
inputTitle : 'Question', // MISSING
undo : 'Undo', // MISSING
redo : 'Redo', // MISSING
skip : 'Skip', // MISSING
skipAll : 'Skip all', // MISSING
makeDecision : 'What action should be taken?', // MISSING
rememberDecision: 'Remember my decision' // MISSING
},
dir : 'ltr', // MISSING
HelpLang : 'en',
LangCode : 'sk',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'mm/dd/yyyy HH:MM',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Adresáre',
FolderLoading : 'Nahrávam...',
FolderNew : 'Zadajte prosím meno nového adresára: ',
FolderRename : 'Zadajte prosím meno nového adresára: ',
FolderDelete : 'Skutočne zmazať adresár "%1" ?',
FolderRenaming : ' (Prebieha premenovanie adresára...)',
FolderDeleting : ' (Prebieha zmazanie adresára...)',
// Files
FileRename : 'Zadajte prosím meno nového súboru: ',
FileRenameExt : 'Skutočne chcete zmeniť príponu súboru? Upozornenie: zmenou prípony sa súbor môže stať nepoužiteľným, pokiaľ prípona nie je podporovaná.',
FileRenaming : 'Prebieha premenovanie súboru...',
FileDelete : 'Skutočne chcete odstrániť súbor "%1"?',
FilesLoading : 'Loading...', // MISSING
FilesEmpty : 'Empty folder', // MISSING
FilesMoved : 'File %1 moved into %2:%3', // MISSING
FilesCopied : 'File %1 copied into %2:%3', // MISSING
// Basket
BasketFolder : 'Basket', // MISSING
BasketClear : 'Clear Basket', // MISSING
BasketRemove : 'Remove from basket', // MISSING
BasketOpenFolder : 'Open parent folder', // MISSING
BasketTruncateConfirm : 'Do you really want to remove all files from the basket?', // MISSING
BasketRemoveConfirm : 'Do you really want to remove the file "%1" from the basket?', // MISSING
BasketEmpty : 'No files in the basket, drag\'n\'drop some.', // MISSING
BasketCopyFilesHere : 'Copy Files from Basket', // MISSING
BasketMoveFilesHere : 'Move Files from Basket', // MISSING
BasketPasteErrorOther : 'File %s error: %e', // MISSING
BasketPasteMoveSuccess : 'The following files were moved: %s', // MISSING
BasketPasteCopySuccess : 'The following files were copied: %s', // MISSING
// Toolbar Buttons (some used elsewhere)
Upload : 'Prekopírovať na server (Upload)',
UploadTip : 'Prekopírovať nový súbor',
Refresh : 'Znovunačítať (Refresh)',
Settings : 'Nastavenia',
Help : 'Pomoc',
HelpTip : 'Pomoc',
// Context Menus
Select : 'Vybrať',
SelectThumbnail : 'Select Thumbnail', // MISSING
View : 'Náhľad',
Download : 'Stiahnuť',
NewSubFolder : 'Nový podadresár',
Rename : 'Premenovať',
Delete : 'Zmazať',
CopyDragDrop : 'Copy file here', // MISSING
MoveDragDrop : 'Move file here', // MISSING
// Dialogs
RenameDlgTitle : 'Rename', // MISSING
NewNameDlgTitle : 'New name', // MISSING
FileExistsDlgTitle : 'File already exists', // MISSING
SysErrorDlgTitle : 'System error', // MISSING
FileOverwrite : 'Overwrite', // MISSING
FileAutorename : 'Auto-rename', // MISSING
// Generic
OkBtn : 'OK',
CancelBtn : 'Zrušiť',
CloseBtn : 'Zatvoriť',
// Upload Panel
UploadTitle : 'Nahrať nový súbor',
UploadSelectLbl : 'Vyberte súbor, ktorý chcete prekopírovať na server',
UploadProgressLbl : '(Prebieha kopírovanie, čakajte prosím...)',
UploadBtn : 'Prekopírovať vybratý súbor',
UploadBtnCancel : 'Cancel', // MISSING
UploadNoFileMsg : 'Vyberte prosím súbor na Vašom počítači!',
UploadNoFolder : 'Please select folder before uploading.', // MISSING
UploadNoPerms : 'File upload not allowed.', // MISSING
UploadUnknError : 'Error sending the file.', // MISSING
UploadExtIncorrect : 'File extension not allowed in this folder.', // MISSING
// Settings Panel
SetTitle : 'Nastavenia',
SetView : 'Náhľad:',
SetViewThumb : 'Miniobrázky',
SetViewList : 'Zoznam',
SetDisplay : 'Zobraziť:',
SetDisplayName : 'Názov súboru',
SetDisplayDate : 'Dátum',
SetDisplaySize : 'Veľkosť súboru',
SetSort : 'Zoradenie:',
SetSortName : 'podľa názvu súboru',
SetSortDate : 'podľa dátumu',
SetSortSize : 'podľa veľkosti',
// Status Bar
FilesCountEmpty : '<Prázdny adresár>',
FilesCountOne : '1 súbor',
FilesCountMany : '%1 súborov',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'Server nemohol dokončiť spracovanie požiadavky. (Chyba %1)',
Errors :
{
10 : 'Neplatný príkaz.',
11 : 'V požiadavke nebol špecifikovaný typ súboru.',
12 : 'Nepodporovaný typ súboru.',
102 : 'Neplatný názov súboru alebo adresára.',
103 : 'Nebolo možné dokončiť spracovanie požiadavky kvôli nepostačujúcej úrovni oprávnení.',
104 : 'Nebolo možné dokončiť spracovanie požiadavky kvôli obmedzeniam v prístupových právach ku súborom.',
105 : 'Neplatná prípona súboru.',
109 : 'Neplatná požiadavka.',
110 : 'Neidentifikovaná chyba.',
115 : 'Zadaný súbor alebo adresár už existuje.',
116 : 'Adresár nebol nájdený. Aktualizujte obsah adresára (Znovunačítať) a skúste znovu.',
117 : 'Súbor nebol nájdený. Aktualizujte obsah adresára (Znovunačítať) a skúste znovu.',
118 : 'Source and target paths are equal.', // MISSING
201 : 'Súbor so zadaným názvom už existuje. Prekopírovaný súbor bol premenovaný na "%1"',
202 : 'Neplatný súbor',
203 : 'Neplatný súbor - súbor presahuje maximálnu povolenú veľkosť.',
204 : 'Kopírovaný súbor je poškodený.',
205 : 'Server nemá špecifikovaný dočasný adresár pre kopírované súbory.',
206 : 'Kopírovanie prerušené kvôli nedostatočnému zabezpečeniu. Súbor obsahuje HTML data.',
207 : 'Prekopírovaný súbor bol premenovaný na "%1"',
300 : 'Moving file(s) failed.', // MISSING
301 : 'Copying file(s) failed.', // MISSING
500 : 'Prehliadanie súborov je zakázané kvôli bezpečnosti. Kontaktujte prosím administrátora a overte nastavenia v konfiguračnom súbore pre CKFinder.',
501 : 'Momentálne nie je zapnutá podpora pre generáciu miniobrázkov.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'Názov súbor nesmie prázdny',
FileExists : 'File %s already exists', // MISSING
FolderEmpty : 'Názov adresára nesmie byť prázdny',
FileInvChar : 'Súbor nesmie obsahovať žiadny z nasledujúcich znakov: \n\\ / : * ? " < > |',
FolderInvChar : 'Adresár nesmie obsahovať žiadny z nasledujúcich znakov: \n\\ / : * ? " < > |',
PopupBlockView : 'Nebolo možné otvoriť súbor v novom okne. Overte nastavenia Vášho prehliadača a zakážte všetky blokovače popup okien pre túto webstránku.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Resize %s', // MISSING
sizeTooBig : 'Cannot set image height or width to a value bigger than the original size (%size).', // MISSING
resizeSuccess : 'Image resized successfully.', // MISSING
thumbnailNew : 'Create new thumbnail', // MISSING
thumbnailSmall : 'Small (%s)', // MISSING
thumbnailMedium : 'Medium (%s)', // MISSING
thumbnailLarge : 'Large (%s)', // MISSING
newSize : 'Set new size', // MISSING
width : 'Width', // MISSING
height : 'Height', // MISSING
invalidHeight : 'Invalid height.', // MISSING
invalidWidth : 'Invalid width.', // MISSING
invalidName : 'Invalid file name.', // MISSING
newImage : 'Create new image', // MISSING
noExtensionChange : 'The file extension cannot be changed.', // MISSING
imageSmall : 'Source image is too small', // MISSING
contextMenuName : 'Resize' // MISSING
},
// Fileeditor plugin
Fileeditor :
{
save : 'Save', // MISSING
fileOpenError : 'Unable to open file.', // MISSING
fileSaveSuccess : 'File saved successfully.', // MISSING
contextMenuName : 'Edit', // MISSING
loadingFile : 'Loading file, please wait...' // MISSING
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/sk.js | JavaScript | gpl3 | 9,611 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the English
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['en'] =
{
appTitle : 'CKFinder',
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>',
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?',
ok : 'OK',
cancel : 'Cancel',
confirmationTitle : 'Confirmation',
messageTitle : 'Information',
inputTitle : 'Question',
undo : 'Undo',
redo : 'Redo',
skip : 'Skip',
skipAll : 'Skip all',
makeDecision : 'What action should be taken?',
rememberDecision: 'Remember my decision'
},
dir : 'ltr',
HelpLang : 'en',
LangCode : 'en',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'm/d/yyyy h:MM aa',
DateAmPm : ['AM','PM'],
// Folders
FoldersTitle : 'Folders',
FolderLoading : 'Loading...',
FolderNew : 'Please type the new folder name: ',
FolderRename : 'Please type the new folder name: ',
FolderDelete : 'Are you sure you want to delete the "%1" folder?',
FolderRenaming : ' (Renaming...)',
FolderDeleting : ' (Deleting...)',
// Files
FileRename : 'Please type the new file name: ',
FileRenameExt : 'Are you sure you want to change the file name extension? The file may become unusable',
FileRenaming : 'Renaming...',
FileDelete : 'Are you sure you want to delete the file "%1"?',
FilesLoading : 'Loading...',
FilesEmpty : 'Empty folder',
FilesMoved : 'File %1 moved into %2:%3',
FilesCopied : 'File %1 copied into %2:%3',
// Basket
BasketFolder : 'Basket',
BasketClear : 'Clear Basket',
BasketRemove : 'Remove from basket',
BasketOpenFolder : 'Open parent folder',
BasketTruncateConfirm : 'Do you really want to remove all files from the basket?',
BasketRemoveConfirm : 'Do you really want to remove the file "%1" from the basket?',
BasketEmpty : 'No files in the basket, drag\'n\'drop some.',
BasketCopyFilesHere : 'Copy Files from Basket',
BasketMoveFilesHere : 'Move Files from Basket',
BasketPasteErrorOther : 'File %s error: %e',
BasketPasteMoveSuccess : 'The following files were moved: %s',
BasketPasteCopySuccess : 'The following files were copied: %s',
// Toolbar Buttons (some used elsewhere)
Upload : 'Upload',
UploadTip : 'Upload New File',
Refresh : 'Refresh',
Settings : 'Settings',
Help : 'Help',
HelpTip : 'Help',
// Context Menus
Select : 'Select',
SelectThumbnail : 'Select Thumbnail',
View : 'View',
Download : 'Download',
NewSubFolder : 'New Subfolder',
Rename : 'Rename',
Delete : 'Delete',
CopyDragDrop : 'Copy file here',
MoveDragDrop : 'Move file here',
// Dialogs
RenameDlgTitle : 'Rename',
NewNameDlgTitle : 'New name',
FileExistsDlgTitle : 'File already exists',
SysErrorDlgTitle : 'System error',
FileOverwrite : 'Overwrite',
FileAutorename : 'Auto-rename',
// Generic
OkBtn : 'OK',
CancelBtn : 'Cancel',
CloseBtn : 'Close',
// Upload Panel
UploadTitle : 'Upload New File',
UploadSelectLbl : 'Select the file to upload',
UploadProgressLbl : '(Upload in progress, please wait...)',
UploadBtn : 'Upload Selected File',
UploadBtnCancel : 'Cancel',
UploadNoFileMsg : 'Please select a file from your computer',
UploadNoFolder : 'Please select folder before uploading.',
UploadNoPerms : 'File upload not allowed.',
UploadUnknError : 'Error sending the file.',
UploadExtIncorrect : 'File extension not allowed in this folder.',
// Settings Panel
SetTitle : 'Settings',
SetView : 'View:',
SetViewThumb : 'Thumbnails',
SetViewList : 'List',
SetDisplay : 'Display:',
SetDisplayName : 'File Name',
SetDisplayDate : 'Date',
SetDisplaySize : 'File Size',
SetSort : 'Sorting:',
SetSortName : 'by File Name',
SetSortDate : 'by Date',
SetSortSize : 'by Size',
// Status Bar
FilesCountEmpty : '<Empty Folder>',
FilesCountOne : '1 file',
FilesCountMany : '%1 files',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'It was not possible to complete the request. (Error %1)',
Errors :
{
10 : 'Invalid command.',
11 : 'The resource type was not specified in the request.',
12 : 'The requested resource type is not valid.',
102 : 'Invalid file or folder name.',
103 : 'It was not possible to complete the request due to authorization restrictions.',
104 : 'It was not possible to complete the request due to file system permission restrictions.',
105 : 'Invalid file extension.',
109 : 'Invalid request.',
110 : 'Unknown error.',
115 : 'A file or folder with the same name already exists.',
116 : 'Folder not found. Please refresh and try again.',
117 : 'File not found. Please refresh the files list and try again.',
118 : 'Source and target paths are equal.',
201 : 'A file with the same name is already available. The uploaded file has been renamed to "%1"',
202 : 'Invalid file',
203 : 'Invalid file. The file size is too big.',
204 : 'The uploaded file is corrupt.',
205 : 'No temporary folder is available for upload in the server.',
206 : 'Upload cancelled for security reasons. The file contains HTML like data.',
207 : 'The uploaded file has been renamed to "%1"',
300 : 'Moving file(s) failed.',
301 : 'Copying file(s) failed.',
500 : 'The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.',
501 : 'The thumbnails support is disabled.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'The file name cannot be empty',
FileExists : 'File %s already exists',
FolderEmpty : 'The folder name cannot be empty',
FileInvChar : 'The file name cannot contain any of the following characters: \n\\ / : * ? " < > |',
FolderInvChar : 'The folder name cannot contain any of the following characters: \n\\ / : * ? " < > |',
PopupBlockView : 'It was not possible to open the file in a new window. Please configure your browser and disable all popup blockers for this site.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Resize %s',
sizeTooBig : 'Cannot set image height or width to a value bigger than the original size (%size).',
resizeSuccess : 'Image resized successfully.',
thumbnailNew : 'Create new thumbnail',
thumbnailSmall : 'Small (%s)',
thumbnailMedium : 'Medium (%s)',
thumbnailLarge : 'Large (%s)',
newSize : 'Set new size',
width : 'Width',
height : 'Height',
invalidHeight : 'Invalid height.',
invalidWidth : 'Invalid width.',
invalidName : 'Invalid file name.',
newImage : 'Create new image',
noExtensionChange : 'The file extension cannot be changed.',
imageSmall : 'Source image is too small',
contextMenuName : 'Resize'
},
// Fileeditor plugin
Fileeditor :
{
save : 'Save',
fileOpenError : 'Unable to open file.',
fileSaveSuccess : 'File saved successfully.',
contextMenuName : 'Edit',
loadingFile : 'Loading file, please wait...'
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/en.js | JavaScript | gpl3 | 8,233 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the Danish
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['da'] =
{
appTitle : 'CKFinder',
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, ikke tilgængelig</span>',
confirmCancel : 'Nogle af indstillingerne er blevet ændret. Er du sikker på at lukke dialogen?',
ok : 'OK',
cancel : 'Annuller',
confirmationTitle : 'Bekræftelse',
messageTitle : 'Information',
inputTitle : 'Spørgsmål',
undo : 'Fortryd',
redo : 'Annuller fortryd',
skip : 'Skip',
skipAll : 'Skip alle',
makeDecision : 'Hvad skal der foretages?',
rememberDecision: 'Husk denne indstilling'
},
dir : 'ltr',
HelpLang : 'en',
LangCode : 'da',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'dd-mm-yyyy HH:MM',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Mapper',
FolderLoading : 'Indlæser...',
FolderNew : 'Skriv navnet på den nye mappe: ',
FolderRename : 'Skriv det nye navn på mappen: ',
FolderDelete : 'Er du sikker på, at du vil slette mappen "%1" ?',
FolderRenaming : ' (Omdøber...)',
FolderDeleting : ' (Sletter...)',
// Files
FileRename : 'Skriv navnet på den nye fil: ',
FileRenameExt : 'Er du sikker på, at du vil ændre filtypen? Filen kan muligvis ikke bruges bagefter.',
FileRenaming : '(Omdøber...)',
FileDelete : 'Er du sikker på, at du vil slette filen "%1" ?',
FilesLoading : 'Indlæser...',
FilesEmpty : 'Tom mappe',
FilesMoved : 'Filen %1 flyttet til %2:%3',
FilesCopied : 'Filen %1 kopieret til %2:%3',
// Basket
BasketFolder : 'Kurv',
BasketClear : 'Tøm kurv',
BasketRemove : 'Fjern fra kurv',
BasketOpenFolder : 'Åben overordnet mappe',
BasketTruncateConfirm : 'Er du sikker på at du vil tømme kurven?',
BasketRemoveConfirm : 'Er du sikker på at du vil slette filen "%1" fra kurven?',
BasketEmpty : 'Ingen filer i kurven, brug musen til at trække filer til kurven.',
BasketCopyFilesHere : 'Kopier Filer fra kurven',
BasketMoveFilesHere : 'Flyt Filer fra kurven',
BasketPasteErrorOther : 'Fil fejl: %e',
BasketPasteMoveSuccess : 'Følgende filer blev flyttet: %s',
BasketPasteCopySuccess : 'Følgende filer blev kopieret: %s',
// Toolbar Buttons (some used elsewhere)
Upload : 'Upload',
UploadTip : 'Upload ny fil',
Refresh : 'Opdatér',
Settings : 'Indstillinger',
Help : 'Hjælp',
HelpTip : 'Hjælp',
// Context Menus
Select : 'Vælg',
SelectThumbnail : 'Vælg thumbnail',
View : 'Vis',
Download : 'Download',
NewSubFolder : 'Ny undermappe',
Rename : 'Omdøb',
Delete : 'Slet',
CopyDragDrop : 'Kopier hertil',
MoveDragDrop : 'Flyt hertil',
// Dialogs
RenameDlgTitle : 'Omdøb',
NewNameDlgTitle : 'Nyt navn',
FileExistsDlgTitle : 'Filen eksisterer allerede',
SysErrorDlgTitle : 'System fejl',
FileOverwrite : 'Overskriv',
FileAutorename : 'Auto-omdøb',
// Generic
OkBtn : 'OK',
CancelBtn : 'Annullér',
CloseBtn : 'Luk',
// Upload Panel
UploadTitle : 'Upload ny fil',
UploadSelectLbl : 'Vælg den fil, som du vil uploade',
UploadProgressLbl : '(Uploader, vent venligst...)',
UploadBtn : 'Upload filen',
UploadBtnCancel : 'Annuller',
UploadNoFileMsg : 'Vælg en fil på din computer',
UploadNoFolder : 'Venligst vælg en mappe før upload startes.',
UploadNoPerms : 'Upload er ikke tilladt.',
UploadUnknError : 'Fejl ved upload.',
UploadExtIncorrect : 'Denne filtype er ikke tilladt i denne mappe.',
// Settings Panel
SetTitle : 'Indstillinger',
SetView : 'Vis:',
SetViewThumb : 'Thumbnails',
SetViewList : 'Liste',
SetDisplay : 'Thumbnails:',
SetDisplayName : 'Filnavn',
SetDisplayDate : 'Dato',
SetDisplaySize : 'Størrelse',
SetSort : 'Sortering:',
SetSortName : 'efter filnavn',
SetSortDate : 'efter dato',
SetSortSize : 'efter størrelse',
// Status Bar
FilesCountEmpty : '<tom mappe>',
FilesCountOne : '1 fil',
FilesCountMany : '%1 filer',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'Det var ikke muligt at fuldføre handlingen. (Fejl: %1)',
Errors :
{
10 : 'Ugyldig handling.',
11 : 'Ressourcetypen blev ikke angivet i anmodningen.',
12 : 'Ressourcetypen er ikke gyldig.',
102 : 'Ugyldig fil eller mappenavn.',
103 : 'Det var ikke muligt at fuldføre handlingen på grund af en begrænsning i rettigheder.',
104 : 'Det var ikke muligt at fuldføre handlingen på grund af en begrænsning i filsystem rettigheder.',
105 : 'Ugyldig filtype.',
109 : 'Ugyldig anmodning.',
110 : 'Ukendt fejl.',
115 : 'En fil eller mappe med det samme navn eksisterer allerede.',
116 : 'Mappen blev ikke fundet. Opdatér listen eller prøv igen.',
117 : 'Filen blev ikke fundet. Opdatér listen eller prøv igen.',
118 : 'Originalplacering og destination er ens',
201 : 'En fil med det samme filnavn eksisterer allerede. Den uploadede fil er blevet omdøbt til "%1"',
202 : 'Ugyldig fil.',
203 : 'Ugyldig fil. Filstørrelsen er for stor.',
204 : 'Den uploadede fil er korrupt.',
205 : 'Der er ikke en midlertidig mappe til upload til rådighed på serveren.',
206 : 'Upload annulleret af sikkerhedsmæssige årsager. Filen indeholder HTML-lignende data.',
207 : 'Den uploadede fil er blevet omdøbt til "%1"',
300 : 'Flytning af fil(er) fejlede.',
301 : 'Kopiering af fil(er) fejlede.',
500 : 'Filbrowseren er deaktiveret af sikkerhedsmæssige årsager. Kontakt systemadministratoren eller kontrollér CKFinders konfigurationsfil.',
501 : 'Understøttelse af thumbnails er deaktiveret.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'Filnavnet må ikke være tomt',
FileExists : 'Fil %erne eksisterer allerede',
FolderEmpty : 'Mappenavnet må ikke være tomt',
FileInvChar : 'Filnavnet må ikke indeholde et af følgende tegn: \n\\ / : * ? " < > |',
FolderInvChar : 'Mappenavnet må ikke indeholde et af følgende tegn: \n\\ / : * ? " < > |',
PopupBlockView : 'Det var ikke muligt at åbne filen i et nyt vindue. Kontrollér konfigurationen i din browser, og deaktivér eventuelle popup-blokkere for denne hjemmeside.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Rediger størrelse %s',
sizeTooBig : 'Kan ikke ændre billedets højde eller bredde til en værdi større end dets originale størrelse (%size).',
resizeSuccess : 'Størrelsen er nu ændret.',
thumbnailNew : 'Opret ny thumbnail',
thumbnailSmall : 'Lille (%s)',
thumbnailMedium : 'Mellem (%s)',
thumbnailLarge : 'Stor (%s)',
newSize : 'Rediger størrelse',
width : 'Bredde',
height : 'Højde',
invalidHeight : 'Ugyldig højde.',
invalidWidth : 'Ugyldig bredde.',
invalidName : 'Ugyldigt filenavn.',
newImage : 'Opret nyt billede.',
noExtensionChange : 'Filtypen kan ikke ændres.',
imageSmall : 'Originalfilen er for lille',
contextMenuName : 'Rediger størrelse'
},
// Fileeditor plugin
Fileeditor :
{
save : 'Gem',
fileOpenError : 'Filen kan ikke åbnes.',
fileSaveSuccess : 'Filen er nu gemt.',
contextMenuName : 'Rediger',
loadingFile : 'Henter fil, vent venligst...'
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/da.js | JavaScript | gpl3 | 8,391 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['nb'] =
{
appTitle : 'CKFinder', // MISSING
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
ok : 'OK', // MISSING
cancel : 'Cancel', // MISSING
confirmationTitle : 'Confirmation', // MISSING
messageTitle : 'Information', // MISSING
inputTitle : 'Question', // MISSING
undo : 'Undo', // MISSING
redo : 'Redo', // MISSING
skip : 'Skip', // MISSING
skipAll : 'Skip all', // MISSING
makeDecision : 'What action should be taken?', // MISSING
rememberDecision: 'Remember my decision' // MISSING
},
dir : 'ltr', // MISSING
HelpLang : 'en',
LangCode : 'no',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'dd/mm/yyyy HH:MM',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Mapper',
FolderLoading : 'Laster...',
FolderNew : 'Skriv inn det nye mappenavnet: ',
FolderRename : 'Skriv inn det nye mappenavnet: ',
FolderDelete : 'Er du sikker på at du vil slette mappen "%1"?',
FolderRenaming : ' (Endrer mappenavn...)',
FolderDeleting : ' (Sletter...)',
// Files
FileRename : 'Skriv inn det nye filnavnet: ',
FileRenameExt : 'Er du sikker på at du vil endre filtypen? Filen kan bli ubrukelig',
FileRenaming : 'Endrer filnavn...',
FileDelete : 'Er du sikker på at du vil slette denne filen "%1"?',
FilesLoading : 'Loading...', // MISSING
FilesEmpty : 'Empty folder', // MISSING
FilesMoved : 'File %1 moved into %2:%3', // MISSING
FilesCopied : 'File %1 copied into %2:%3', // MISSING
// Basket
BasketFolder : 'Basket', // MISSING
BasketClear : 'Clear Basket', // MISSING
BasketRemove : 'Remove from basket', // MISSING
BasketOpenFolder : 'Open parent folder', // MISSING
BasketTruncateConfirm : 'Do you really want to remove all files from the basket?', // MISSING
BasketRemoveConfirm : 'Do you really want to remove the file "%1" from the basket?', // MISSING
BasketEmpty : 'No files in the basket, drag\'n\'drop some.', // MISSING
BasketCopyFilesHere : 'Copy Files from Basket', // MISSING
BasketMoveFilesHere : 'Move Files from Basket', // MISSING
BasketPasteErrorOther : 'File %s error: %e', // MISSING
BasketPasteMoveSuccess : 'The following files were moved: %s', // MISSING
BasketPasteCopySuccess : 'The following files were copied: %s', // MISSING
// Toolbar Buttons (some used elsewhere)
Upload : 'Last opp',
UploadTip : 'Last opp en ny fil',
Refresh : 'Oppdater',
Settings : 'Innstillinger',
Help : 'Hjelp',
HelpTip : 'Hjelp finnes kun på engelsk',
// Context Menus
Select : 'Velg',
SelectThumbnail : 'Velg Miniatyr',
View : 'Vis fullversjon',
Download : 'Last ned',
NewSubFolder : 'Ny Undermappe',
Rename : 'Endre navn',
Delete : 'Slett',
CopyDragDrop : 'Copy file here', // MISSING
MoveDragDrop : 'Move file here', // MISSING
// Dialogs
RenameDlgTitle : 'Rename', // MISSING
NewNameDlgTitle : 'New name', // MISSING
FileExistsDlgTitle : 'File already exists', // MISSING
SysErrorDlgTitle : 'System error', // MISSING
FileOverwrite : 'Overwrite', // MISSING
FileAutorename : 'Auto-rename', // MISSING
// Generic
OkBtn : 'OK',
CancelBtn : 'Avbryt',
CloseBtn : 'Lukk',
// Upload Panel
UploadTitle : 'Last opp ny fil',
UploadSelectLbl : 'Velg filen du vil laste opp',
UploadProgressLbl : '(Laster opp filen, vennligst vent...)',
UploadBtn : 'Last opp valgt fil',
UploadBtnCancel : 'Cancel', // MISSING
UploadNoFileMsg : 'Du må velge en fil fra din datamaskin',
UploadNoFolder : 'Please select folder before uploading.', // MISSING
UploadNoPerms : 'File upload not allowed.', // MISSING
UploadUnknError : 'Error sending the file.', // MISSING
UploadExtIncorrect : 'File extension not allowed in this folder.', // MISSING
// Settings Panel
SetTitle : 'Innstillinger',
SetView : 'Filvisning:',
SetViewThumb : 'Miniatyrbilder',
SetViewList : 'Liste',
SetDisplay : 'Vis:',
SetDisplayName : 'Filnavn',
SetDisplayDate : 'Dato',
SetDisplaySize : 'Filstørrelse',
SetSort : 'Sorter etter:',
SetSortName : 'Filnavn',
SetSortDate : 'Dato',
SetSortSize : 'Størrelse',
// Status Bar
FilesCountEmpty : '<Tom Mappe>',
FilesCountOne : '1 fil',
FilesCountMany : '%1 filer',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'Det var ikke mulig å utføre forespørselen. (Feil %1)',
Errors :
{
10 : 'Ugyldig kommando.',
11 : 'Ressurstypen ble ikke spesifisert i forepørselen.',
12 : 'Ugyldig ressurstype.',
102 : 'Ugyldig fil- eller mappenavn.',
103 : 'Kunne ikke utføre forespørselen pga manglende autorisasjon.',
104 : 'Kunne ikke utføre forespørselen pga manglende tilgang til filsystemet.',
105 : 'Ugyldig filtype.',
109 : 'Ugyldig forespørsel.',
110 : 'Ukjent feil.',
115 : 'Det finnes allerede en fil eller mappe med dette navnet.',
116 : 'Kunne ikke finne mappen. Oppdater vinduet og prøv igjen.',
117 : 'Kunne ikke finne filen. Oppdater vinduet og prøv igjen.',
118 : 'Source and target paths are equal.', // MISSING
201 : 'Det fantes allerede en fil med dette navnet. Den opplastede filens navn har blitt endret til "%1"',
202 : 'Ugyldig fil',
203 : 'Ugyldig fil. Filen er for stor.',
204 : 'Den opplastede filen er korrupt.',
205 : 'Det finnes ingen midlertidig mappe for filopplastinger.',
206 : 'Opplastingen ble avbrutt av sikkerhetshensyn. Filen inneholder HTML-aktig data.',
207 : 'Den opplastede filens navn har blitt endret til "%1"',
300 : 'Moving file(s) failed.', // MISSING
301 : 'Copying file(s) failed.', // MISSING
500 : 'Filvelgeren ikke tilgjengelig av sikkerhetshensyn. Kontakt systemansvarlig og be han sjekke CKFinder\'s konfigurasjonsfil.',
501 : 'Funksjon for minityrbilder er skrudd av.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'Filnavnet kan ikke være tomt',
FileExists : 'File %s already exists', // MISSING
FolderEmpty : 'Mappenavnet kan ikke være tomt',
FileInvChar : 'Filnavnet kan ikke inneholde følgende tegn: \n\\ / : * ? " < > |',
FolderInvChar : 'Mappenavnet kan ikke inneholde følgende tegn: \n\\ / : * ? " < > |',
PopupBlockView : 'Du må skru av popup-blockeren for å se bildet i nytt vindu.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Resize %s', // MISSING
sizeTooBig : 'Cannot set image height or width to a value bigger than the original size (%size).', // MISSING
resizeSuccess : 'Image resized successfully.', // MISSING
thumbnailNew : 'Create new thumbnail', // MISSING
thumbnailSmall : 'Small (%s)', // MISSING
thumbnailMedium : 'Medium (%s)', // MISSING
thumbnailLarge : 'Large (%s)', // MISSING
newSize : 'Set new size', // MISSING
width : 'Width', // MISSING
height : 'Height', // MISSING
invalidHeight : 'Invalid height.', // MISSING
invalidWidth : 'Invalid width.', // MISSING
invalidName : 'Invalid file name.', // MISSING
newImage : 'Create new image', // MISSING
noExtensionChange : 'The file extension cannot be changed.', // MISSING
imageSmall : 'Source image is too small', // MISSING
contextMenuName : 'Resize' // MISSING
},
// Fileeditor plugin
Fileeditor :
{
save : 'Save', // MISSING
fileOpenError : 'Unable to open file.', // MISSING
fileSaveSuccess : 'File saved successfully.', // MISSING
contextMenuName : 'Edit', // MISSING
loadingFile : 'Loading file, please wait...' // MISSING
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/nb.js | JavaScript | gpl3 | 8,789 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the Chinese (Taiwan)
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['zh-tw'] =
{
appTitle : 'CKFinder', // MISSING
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
ok : 'OK', // MISSING
cancel : 'Cancel', // MISSING
confirmationTitle : 'Confirmation', // MISSING
messageTitle : 'Information', // MISSING
inputTitle : 'Question', // MISSING
undo : 'Undo', // MISSING
redo : 'Redo', // MISSING
skip : 'Skip', // MISSING
skipAll : 'Skip all', // MISSING
makeDecision : 'What action should be taken?', // MISSING
rememberDecision: 'Remember my decision' // MISSING
},
dir : 'ltr', // MISSING
HelpLang : 'zh-tw',
LangCode : 'zh-tw',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'mm/dd/yyyy HH:MM',
DateAmPm : ['上午', '下午'],
// Folders
FoldersTitle : '目錄',
FolderLoading : '載入中...',
FolderNew : '請輸入新目錄名稱: ',
FolderRename : '請輸入新目錄名稱: ',
FolderDelete : '確定刪除 "%1" 這個目錄嗎?',
FolderRenaming : ' (修改目錄...)',
FolderDeleting : ' (刪除目錄...)',
// Files
FileRename : '請輸入新檔案名稱: ',
FileRenameExt : '確定變更這個檔案的副檔名嗎? 變更後 , 此檔案可能會無法使用 !',
FileRenaming : '修改檔案名稱...',
FileDelete : '確定要刪除這個檔案 "%1"?',
FilesLoading : 'Loading...', // MISSING
FilesEmpty : 'Empty folder', // MISSING
FilesMoved : 'File %1 moved into %2:%3', // MISSING
FilesCopied : 'File %1 copied into %2:%3', // MISSING
// Basket
BasketFolder : 'Basket', // MISSING
BasketClear : 'Clear Basket', // MISSING
BasketRemove : 'Remove from basket', // MISSING
BasketOpenFolder : 'Open parent folder', // MISSING
BasketTruncateConfirm : 'Do you really want to remove all files from the basket?', // MISSING
BasketRemoveConfirm : 'Do you really want to remove the file "%1" from the basket?', // MISSING
BasketEmpty : 'No files in the basket, drag\'n\'drop some.', // MISSING
BasketCopyFilesHere : 'Copy Files from Basket', // MISSING
BasketMoveFilesHere : 'Move Files from Basket', // MISSING
BasketPasteErrorOther : 'File %s error: %e', // MISSING
BasketPasteMoveSuccess : 'The following files were moved: %s', // MISSING
BasketPasteCopySuccess : 'The following files were copied: %s', // MISSING
// Toolbar Buttons (some used elsewhere)
Upload : '上傳檔案',
UploadTip : '上傳一個新檔案',
Refresh : '重新整理',
Settings : '偏好設定',
Help : '說明',
HelpTip : '說明',
// Context Menus
Select : '選擇',
SelectThumbnail : 'Select Thumbnail', // MISSING
View : '瀏覽',
Download : '下載',
NewSubFolder : '建立新子目錄',
Rename : '重新命名',
Delete : '刪除',
CopyDragDrop : 'Copy file here', // MISSING
MoveDragDrop : 'Move file here', // MISSING
// Dialogs
RenameDlgTitle : 'Rename', // MISSING
NewNameDlgTitle : 'New name', // MISSING
FileExistsDlgTitle : 'File already exists', // MISSING
SysErrorDlgTitle : 'System error', // MISSING
FileOverwrite : 'Overwrite', // MISSING
FileAutorename : 'Auto-rename', // MISSING
// Generic
OkBtn : '確定',
CancelBtn : '取消',
CloseBtn : '關閉',
// Upload Panel
UploadTitle : '上傳新檔案',
UploadSelectLbl : '請選擇要上傳的檔案',
UploadProgressLbl : '(檔案上傳中 , 請稍候...)',
UploadBtn : '將檔案上傳到伺服器',
UploadBtnCancel : 'Cancel', // MISSING
UploadNoFileMsg : '請從你的電腦選擇一個檔案',
UploadNoFolder : 'Please select folder before uploading.', // MISSING
UploadNoPerms : 'File upload not allowed.', // MISSING
UploadUnknError : 'Error sending the file.', // MISSING
UploadExtIncorrect : 'File extension not allowed in this folder.', // MISSING
// Settings Panel
SetTitle : '設定',
SetView : '瀏覽方式:',
SetViewThumb : '縮圖預覽',
SetViewList : '清單列表',
SetDisplay : '顯示欄位:',
SetDisplayName : '檔案名稱',
SetDisplayDate : '檔案日期',
SetDisplaySize : '檔案大小',
SetSort : '排序方式:',
SetSortName : '依 檔案名稱',
SetSortDate : '依 檔案日期',
SetSortSize : '依 檔案大小',
// Status Bar
FilesCountEmpty : '<此目錄沒有任何檔案>',
FilesCountOne : '1 個檔案',
FilesCountMany : '%1 個檔案',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : '無法連接到伺服器 ! (錯誤代碼 %1)',
Errors :
{
10 : '不合法的指令.',
11 : '連接過程中 , 未指定資源形態 !',
12 : '連接過程中出現不合法的資源形態 !',
102 : '不合法的檔案或目錄名稱 !',
103 : '無法連接:可能是使用者權限設定錯誤 !',
104 : '無法連接:可能是伺服器檔案權限設定錯誤 !',
105 : '無法上傳:不合法的副檔名 !',
109 : '不合法的請求 !',
110 : '不明錯誤 !',
115 : '檔案或目錄名稱重複 !',
116 : '找不到目錄 ! 請先重新整理 , 然後再試一次 !',
117 : '找不到檔案 ! 請先重新整理 , 然後再試一次 !',
118 : 'Source and target paths are equal.', // MISSING
201 : '伺服器上已有相同的檔案名稱 ! 您上傳的檔案名稱將會自動更改為 "%1"',
202 : '不合法的檔案 !',
203 : '不合法的檔案 ! 檔案大小超過預設值 !',
204 : '您上傳的檔案已經損毀 !',
205 : '伺服器上沒有預設的暫存目錄 !',
206 : '檔案上傳程序因為安全因素已被系統自動取消 ! 可能是上傳的檔案內容包含 HTML 碼 !',
207 : '您上傳的檔案名稱將會自動更改為 "%1"',
300 : 'Moving file(s) failed.', // MISSING
301 : 'Copying file(s) failed.', // MISSING
500 : '因為安全因素 , 檔案瀏覽器已被停用 ! 請聯絡您的系統管理者並檢查 CKFinder 的設定檔 config.php !',
501 : '縮圖預覽功能已被停用 !'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : '檔案名稱不能空白 !',
FileExists : 'File %s already exists', // MISSING
FolderEmpty : '目錄名稱不能空白 !',
FileInvChar : '檔案名稱不能包含以下字元: \n\\ / : * ? " < > |',
FolderInvChar : '目錄名稱不能包含以下字元: \n\\ / : * ? " < > |',
PopupBlockView : '無法在新視窗開啟檔案 ! 請檢查瀏覽器的設定並且針對這個網站 關閉 <封鎖彈跳視窗> 這個功能 !'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Resize %s', // MISSING
sizeTooBig : 'Cannot set image height or width to a value bigger than the original size (%size).', // MISSING
resizeSuccess : 'Image resized successfully.', // MISSING
thumbnailNew : 'Create new thumbnail', // MISSING
thumbnailSmall : 'Small (%s)', // MISSING
thumbnailMedium : 'Medium (%s)', // MISSING
thumbnailLarge : 'Large (%s)', // MISSING
newSize : 'Set new size', // MISSING
width : 'Width', // MISSING
height : 'Height', // MISSING
invalidHeight : 'Invalid height.', // MISSING
invalidWidth : 'Invalid width.', // MISSING
invalidName : 'Invalid file name.', // MISSING
newImage : 'Create new image', // MISSING
noExtensionChange : 'The file extension cannot be changed.', // MISSING
imageSmall : 'Source image is too small', // MISSING
contextMenuName : 'Resize' // MISSING
},
// Fileeditor plugin
Fileeditor :
{
save : 'Save', // MISSING
fileOpenError : 'Unable to open file.', // MISSING
fileSaveSuccess : 'File saved successfully.', // MISSING
contextMenuName : 'Edit', // MISSING
loadingFile : 'Loading file, please wait...' // MISSING
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/zh-tw.js | JavaScript | gpl3 | 9,077 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['el'] =
{
appTitle : 'CKFinder', // MISSING
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
ok : 'OK', // MISSING
cancel : 'Cancel', // MISSING
confirmationTitle : 'Confirmation', // MISSING
messageTitle : 'Information', // MISSING
inputTitle : 'Question', // MISSING
undo : 'Undo', // MISSING
redo : 'Redo', // MISSING
skip : 'Skip', // MISSING
skipAll : 'Skip all', // MISSING
makeDecision : 'What action should be taken?', // MISSING
rememberDecision: 'Remember my decision' // MISSING
},
dir : 'ltr', // MISSING
HelpLang : 'en',
LangCode : 'el',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'dd/mm/yyyy HH:MM',
DateAmPm : ['ΜΜ', 'ΠΜ'],
// Folders
FoldersTitle : 'Φάκελοι',
FolderLoading : 'Φόρτωση...',
FolderNew : 'Παρακαλούμε πληκτρολογήστε την ονομασία του νέου φακέλου: ',
FolderRename : 'Παρακαλούμε πληκτρολογήστε την νέα ονομασία του φακέλου: ',
FolderDelete : 'Είστε σίγουροι ότι θέλετε να διαγράψετε το φάκελο "%1";',
FolderRenaming : ' (Μετονομασία...)',
FolderDeleting : ' (Διαγραφή...)',
// Files
FileRename : 'Παρακαλούμε πληκτρολογήστε την νέα ονομασία του αρχείου: ',
FileRenameExt : 'Είστε σίγουροι ότι θέλετε να αλλάξετε την επέκταση του αρχείου; Μετά από αυτή την ενέργεια το αρχείο μπορεί να μην μπορεί να χρησιμοποιηθεί',
FileRenaming : 'Μετονομασία...',
FileDelete : 'Είστε σίγουροι ότι θέλετε να διαγράψετε το αρχείο "%1"?',
FilesLoading : 'Loading...', // MISSING
FilesEmpty : 'Empty folder', // MISSING
FilesMoved : 'File %1 moved into %2:%3', // MISSING
FilesCopied : 'File %1 copied into %2:%3', // MISSING
// Basket
BasketFolder : 'Basket', // MISSING
BasketClear : 'Clear Basket', // MISSING
BasketRemove : 'Remove from basket', // MISSING
BasketOpenFolder : 'Open parent folder', // MISSING
BasketTruncateConfirm : 'Do you really want to remove all files from the basket?', // MISSING
BasketRemoveConfirm : 'Do you really want to remove the file "%1" from the basket?', // MISSING
BasketEmpty : 'No files in the basket, drag\'n\'drop some.', // MISSING
BasketCopyFilesHere : 'Copy Files from Basket', // MISSING
BasketMoveFilesHere : 'Move Files from Basket', // MISSING
BasketPasteErrorOther : 'File %s error: %e', // MISSING
BasketPasteMoveSuccess : 'The following files were moved: %s', // MISSING
BasketPasteCopySuccess : 'The following files were copied: %s', // MISSING
// Toolbar Buttons (some used elsewhere)
Upload : 'Μεταφόρτωση',
UploadTip : 'Μεταφόρτωση Νέου Αρχείου',
Refresh : 'Ανανέωση',
Settings : 'Ρυθμίσεις',
Help : 'Βοήθεια',
HelpTip : 'Βοήθεια',
// Context Menus
Select : 'Επιλογή',
SelectThumbnail : 'Επιλογή Μικρογραφίας',
View : 'Προβολή',
Download : 'Λήψη Αρχείου',
NewSubFolder : 'Νέος Υποφάκελος',
Rename : 'Μετονομασία',
Delete : 'Διαγραφή',
CopyDragDrop : 'Copy file here', // MISSING
MoveDragDrop : 'Move file here', // MISSING
// Dialogs
RenameDlgTitle : 'Rename', // MISSING
NewNameDlgTitle : 'New name', // MISSING
FileExistsDlgTitle : 'File already exists', // MISSING
SysErrorDlgTitle : 'System error', // MISSING
FileOverwrite : 'Overwrite', // MISSING
FileAutorename : 'Auto-rename', // MISSING
// Generic
OkBtn : 'OK',
CancelBtn : 'Ακύρωση',
CloseBtn : 'Κλείσιμο',
// Upload Panel
UploadTitle : 'Μεταφόρτωση Νέου Αρχείου',
UploadSelectLbl : 'επιλέξτε το αρχείο που θέλετε να μεταφερθεί κάνοντας κλίκ στο κουμπί',
UploadProgressLbl : '(Η μεταφόρτωση εκτελείται, παρακαλούμε περιμένετε...)',
UploadBtn : 'Μεταφόρτωση Επιλεγμένου Αρχείου',
UploadBtnCancel : 'Cancel', // MISSING
UploadNoFileMsg : 'Παρακαλούμε επιλέξτε ένα αρχείο από τον υπολογιστή σας',
UploadNoFolder : 'Please select folder before uploading.', // MISSING
UploadNoPerms : 'File upload not allowed.', // MISSING
UploadUnknError : 'Error sending the file.', // MISSING
UploadExtIncorrect : 'File extension not allowed in this folder.', // MISSING
// Settings Panel
SetTitle : 'Ρυθμίσεις',
SetView : 'Προβολή:',
SetViewThumb : 'Μικρογραφίες',
SetViewList : 'Λίστα',
SetDisplay : 'Εμφάνιση:',
SetDisplayName : 'Όνομα Αρχείου',
SetDisplayDate : 'Ημερομηνία',
SetDisplaySize : 'Μέγεθος Αρχείου',
SetSort : 'Ταξινόμηση:',
SetSortName : 'βάσει Όνοματος Αρχείου',
SetSortDate : 'βάσει Ημερομήνιας',
SetSortSize : 'βάσει Μεγέθους',
// Status Bar
FilesCountEmpty : '<Κενός Φάκελος>',
FilesCountOne : '1 αρχείο',
FilesCountMany : '%1 αρχεία',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'Η ενέργεια δεν ήταν δυνατόν να εκτελεστεί. (Σφάλμα %1)',
Errors :
{
10 : 'Λανθασμένη Εντολή.',
11 : 'Το resource type δεν ήταν δυνατόν να προσδιορίστεί.',
12 : 'Το resource type δεν είναι έγκυρο.',
102 : 'Το όνομα αρχείου ή φακέλου δεν είναι έγκυρο.',
103 : 'Δεν ήταν δυνατή η εκτέλεση της ενέργειας λόγω έλλειψης δικαιωμάτων ασφαλείας.',
104 : 'Δεν ήταν δυνατή η εκτέλεση της ενέργειας λόγω περιορισμών του συστήματος αρχείων.',
105 : 'Λανθασμένη Επέκταση Αρχείου.',
109 : 'Λανθασμένη Ενέργεια.',
110 : 'Άγνωστο Λάθος.',
115 : 'Το αρχείο ή φάκελος υπάρχει ήδη.',
116 : 'Ο φάκελος δεν βρέθηκε. Παρακαλούμε ανανεώστε τη σελίδα και προσπαθήστε ξανά.',
117 : 'Το αρχείο δεν βρέθηκε. Παρακαλούμε ανανεώστε τη σελίδα και προσπαθήστε ξανά.',
118 : 'Source and target paths are equal.', // MISSING
201 : 'Ένα αρχείο με την ίδια ονομασία υπάρχει ήδη. Το μεταφορτωμένο αρχείο μετονομάστηκε σε "%1"',
202 : 'Λανθασμένο Αρχείο',
203 : 'Λανθασμένο Αρχείο. Το μέγεθος του αρχείου είναι πολύ μεγάλο.',
204 : 'Το μεταφορτωμένο αρχείο είναι χαλασμένο.',
205 : 'Δεν υπάρχει προσωρινός φάκελος για να χρησιμοποιηθεί για τις μεταφορτώσεις των αρχείων.',
206 : 'Η μεταφόρτωση ακυρώθηκε για λόγους ασφαλείας. Το αρχείο περιέχει δεδομένα μορφής HTML.',
207 : 'Το μεταφορτωμένο αρχείο μετονομάστηκε σε "%1"',
300 : 'Moving file(s) failed.', // MISSING
301 : 'Copying file(s) failed.', // MISSING
500 : 'Ο πλοηγός αρχείων έχει απενεργοποιηθεί για λόγους ασφαλείας. Παρακαλούμε επικοινωνήστε με τον διαχειριστή της ιστοσελίδας και ελέγξτε το αρχείο ρυθμίσεων του πλοηγού (CKFinder).',
501 : 'Η υποστήριξη των μικρογραφιών έχει απενεργοποιηθεί.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'Η ονομασία του αρχείου δεν μπορεί να είναι κενή',
FileExists : 'File %s already exists', // MISSING
FolderEmpty : 'Η ονομασία του φακέλου δεν μπορεί να είναι κενή',
FileInvChar : 'Η ονομασία του αρχείου δεν μπορεί να περιέχει τους ακόλουθους χαρακτήρες: \n\\ / : * ? " < > |',
FolderInvChar : 'Η ονομασία του φακέλου δεν μπορεί να περιέχει τους ακόλουθους χαρακτήρες: \n\\ / : * ? " < > |',
PopupBlockView : 'Δεν ήταν εφικτό να ανοίξει το αρχείο σε νέο παράθυρο. Παρακαλώ, ελέγξτε τις ρυθμίσεις τους πλοηγού σας και απενεργοποιήστε όλους τους popup blockers για αυτή την ιστοσελίδα.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Resize %s', // MISSING
sizeTooBig : 'Cannot set image height or width to a value bigger than the original size (%size).', // MISSING
resizeSuccess : 'Image resized successfully.', // MISSING
thumbnailNew : 'Create new thumbnail', // MISSING
thumbnailSmall : 'Small (%s)', // MISSING
thumbnailMedium : 'Medium (%s)', // MISSING
thumbnailLarge : 'Large (%s)', // MISSING
newSize : 'Set new size', // MISSING
width : 'Width', // MISSING
height : 'Height', // MISSING
invalidHeight : 'Invalid height.', // MISSING
invalidWidth : 'Invalid width.', // MISSING
invalidName : 'Invalid file name.', // MISSING
newImage : 'Create new image', // MISSING
noExtensionChange : 'The file extension cannot be changed.', // MISSING
imageSmall : 'Source image is too small', // MISSING
contextMenuName : 'Resize' // MISSING
},
// Fileeditor plugin
Fileeditor :
{
save : 'Save', // MISSING
fileOpenError : 'Unable to open file.', // MISSING
fileSaveSuccess : 'File saved successfully.', // MISSING
contextMenuName : 'Edit', // MISSING
loadingFile : 'Loading file, please wait...' // MISSING
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/el.js | JavaScript | gpl3 | 11,785 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the Spanish
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['es'] =
{
appTitle : 'CKFinder',
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, no disponible</span>',
confirmCancel : 'Algunas opciones se han cambiado\r\n¿Está seguro de querer cerrar el diálogo?',
ok : 'Aceptar',
cancel : 'Cancelar',
confirmationTitle : 'Confirmación',
messageTitle : 'Información',
inputTitle : 'Pregunta',
undo : 'Deshacer',
redo : 'Rehacer',
skip : 'Omitir',
skipAll : 'Omitir todos',
makeDecision : '¿Qué acción debe realizarse?',
rememberDecision: 'Recordar mi decisión'
},
dir : 'ltr',
HelpLang : 'es',
LangCode : 'es',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'dd/mm/yyyy H:MM',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Carpetas',
FolderLoading : 'Cargando...',
FolderNew : 'Por favor, escriba el nombre para la nueva carpeta: ',
FolderRename : 'Por favor, escriba el nuevo nombre para la carpeta: ',
FolderDelete : '¿Está seguro de que quiere borrar la carpeta "%1"?',
FolderRenaming : ' (Renombrando...)',
FolderDeleting : ' (Borrando...)',
// Files
FileRename : 'Por favor, escriba el nuevo nombre del fichero: ',
FileRenameExt : '¿Está seguro de querer cambiar la extensión del fichero? El fichero puede dejar de ser usable',
FileRenaming : 'Renombrando...',
FileDelete : '¿Está seguro de que quiere borrar el fichero "%1"?',
FilesLoading : 'Cargando...',
FilesEmpty : 'Carpeta vacía',
FilesMoved : 'Fichero %1 movido a %2:%3',
FilesCopied : 'Fichero %1 copiado a %2:%3',
// Basket
BasketFolder : 'Cesta',
BasketClear : 'Vaciar cesta',
BasketRemove : 'Quitar de la cesta',
BasketOpenFolder : 'Abrir carpeta padre',
BasketTruncateConfirm : '¿Está seguro de querer quitar todos los ficheros de la cesta?',
BasketRemoveConfirm : '¿Está seguro de querer quitar el fichero "%1" de la cesta?',
BasketEmpty : 'No hay ficheros en la cesta, arrastra y suelta algunos.',
BasketCopyFilesHere : 'Copiar ficheros de la cesta',
BasketMoveFilesHere : 'Mover ficheros de la cesta',
BasketPasteErrorOther : 'Fichero %s error: %e',
BasketPasteMoveSuccess : 'Los siguientes ficheros han sido movidos: %s',
BasketPasteCopySuccess : 'Los siguientes ficheros han sido copiados: %s',
// Toolbar Buttons (some used elsewhere)
Upload : 'Añadir',
UploadTip : 'Añadir nuevo fichero',
Refresh : 'Actualizar',
Settings : 'Configuración',
Help : 'Ayuda',
HelpTip : 'Ayuda',
// Context Menus
Select : 'Seleccionar',
SelectThumbnail : 'Seleccionar el icono',
View : 'Ver',
Download : 'Descargar',
NewSubFolder : 'Nueva Subcarpeta',
Rename : 'Renombrar',
Delete : 'Borrar',
CopyDragDrop : 'Copiar fichero aquí',
MoveDragDrop : 'Mover fichero aquí',
// Dialogs
RenameDlgTitle : 'Renombrar',
NewNameDlgTitle : 'Nuevo nombre',
FileExistsDlgTitle : 'Fichero existente',
SysErrorDlgTitle : 'Error de sistema',
FileOverwrite : 'Sobreescribir',
FileAutorename : 'Auto-renombrar',
// Generic
OkBtn : 'Aceptar',
CancelBtn : 'Cancelar',
CloseBtn : 'Cerrar',
// Upload Panel
UploadTitle : 'Añadir nuevo fichero',
UploadSelectLbl : 'Elija el fichero a subir',
UploadProgressLbl : '(Subida en progreso, por favor espere...)',
UploadBtn : 'Subir el fichero elegido',
UploadBtnCancel : 'Cancelar',
UploadNoFileMsg : 'Por favor, elija un fichero de su ordenador',
UploadNoFolder : 'Por favor, escoja la carpeta antes de iniciar la subida.',
UploadNoPerms : 'No puede subir ficheros.',
UploadUnknError : 'Error enviando el fichero.',
UploadExtIncorrect : 'La extensión del fichero no está permitida en esta carpeta.',
// Settings Panel
SetTitle : 'Configuración',
SetView : 'Vista:',
SetViewThumb : 'Iconos',
SetViewList : 'Lista',
SetDisplay : 'Mostrar:',
SetDisplayName : 'Nombre de fichero',
SetDisplayDate : 'Fecha',
SetDisplaySize : 'Peso del fichero',
SetSort : 'Ordenar:',
SetSortName : 'por Nombre',
SetSortDate : 'por Fecha',
SetSortSize : 'por Peso',
// Status Bar
FilesCountEmpty : '<Carpeta vacía>',
FilesCountOne : '1 fichero',
FilesCountMany : '%1 ficheros',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'No ha sido posible completar la solicitud. (Error %1)',
Errors :
{
10 : 'Comando incorrecto.',
11 : 'El tipo de recurso no ha sido especificado en la solicitud.',
12 : 'El tipo de recurso solicitado no es válido.',
102 : 'Nombre de fichero o carpeta no válido.',
103 : 'No se ha podido completar la solicitud debido a las restricciones de autorización.',
104 : 'No ha sido posible completar la solicitud debido a restricciones en el sistema de ficheros.',
105 : 'La extensión del archivo no es válida.',
109 : 'Petición inválida.',
110 : 'Error desconocido.',
115 : 'Ya existe un fichero o carpeta con ese nombre.',
116 : 'No se ha encontrado la carpeta. Por favor, actualice y pruebe de nuevo.',
117 : 'No se ha encontrado el fichero. Por favor, actualice la lista de ficheros y pruebe de nuevo.',
118 : 'Las rutas origen y destino son iguales.',
201 : 'Ya existía un fichero con ese nombre. El fichero subido ha sido renombrado como "%1"',
202 : 'Fichero inválido',
203 : 'Fichero inválido. El peso es demasiado grande.',
204 : 'El fichero subido está corrupto.',
205 : 'La carpeta temporal no está disponible en el servidor para las subidas.',
206 : 'La subida se ha cancelado por razones de seguridad. El fichero contenía código HTML.',
207 : 'El fichero subido ha sido renombrado como "%1"',
300 : 'Ha fallado el mover el(los) fichero(s).',
301 : 'Ha fallado el copiar el(los) fichero(s).',
500 : 'El navegador de archivos está deshabilitado por razones de seguridad. Por favor, contacte con el administrador de su sistema y compruebe el fichero de configuración de CKFinder.',
501 : 'El soporte para iconos está deshabilitado.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'El nombre del fichero no puede estar vacío',
FileExists : 'El fichero %s ya existe',
FolderEmpty : 'El nombre de la carpeta no puede estar vacío',
FileInvChar : 'El nombre del fichero no puede contener ninguno de los caracteres siguientes: \n\\ / : * ? " < > |',
FolderInvChar : 'El nombre de la carpeta no puede contener ninguno de los caracteres siguientes: \n\\ / : * ? " < > |',
PopupBlockView : 'No ha sido posible abrir el fichero en una nueva ventana. Por favor, configure su navegador y desactive todos los bloqueadores de ventanas para esta página.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Redimensionar %s',
sizeTooBig : 'No se puede poner la altura o anchura de la imagen mayor que las dimensiones originales (%size).',
resizeSuccess : 'Imagen redimensionada correctamente.',
thumbnailNew : 'Crear nueva minuatura',
thumbnailSmall : 'Pequeña (%s)',
thumbnailMedium : 'Mediana (%s)',
thumbnailLarge : 'Grande (%s)',
newSize : 'Establecer nuevo tamaño',
width : 'Ancho',
height : 'Alto',
invalidHeight : 'Altura inválida.',
invalidWidth : 'Anchura inválida.',
invalidName : 'Nombre no válido.',
newImage : 'Crear nueva imagen',
noExtensionChange : 'La extensión no se puede cambiar.',
imageSmall : 'La imagen original es demasiado pequeña',
contextMenuName : 'Redimensionar'
},
// Fileeditor plugin
Fileeditor :
{
save : 'Guardar',
fileOpenError : 'No se puede abrir el fichero.',
fileSaveSuccess : 'Fichero guardado correctamente.',
contextMenuName : 'Editar',
loadingFile : 'Cargando fichero, por favor espere...'
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/es.js | JavaScript | gpl3 | 9,003 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the Finnish
* language. Translated in Finnish 2010-12-15 by Petteri Salmela.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['fi'] =
{
appTitle : 'CKFinder',
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, ei käytettävissä</span>',
confirmCancel : 'Valintoja on muutettu. Suljetaanko ikkuna kuitenkin?',
ok : 'OK',
cancel : 'Peru',
confirmationTitle : 'Varmistus',
messageTitle : 'Ilmoitus',
inputTitle : 'Kysymys',
undo : 'Peru',
redo : 'Tee uudelleen',
skip : 'Ohita',
skipAll : 'Ohita kaikki',
makeDecision : 'Mikä toiminto suoritetaan?',
rememberDecision: 'Muista valintani'
},
dir : 'ltr',
HelpLang : 'fi',
LangCode : 'fi',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'yyyy-mm-dd HH:MM',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Kansiot',
FolderLoading : 'Lataan...',
FolderNew : 'Kirjoita uuden kansion nimi: ',
FolderRename : 'Kirjoita uusi nimi kansiolle ',
FolderDelete : 'Haluatko varmasti poistaa kansion "%1"?',
FolderRenaming : ' (Uudelleennimeää...)',
FolderDeleting : ' (Poistaa...)',
// Files
FileRename : 'Kirjoita uusi tiedostonimi: ',
FileRenameExt : 'Haluatko varmasti muuttaa tiedostotarkennetta? Tiedosto voi muuttua käyttökelvottomaksi.',
FileRenaming : 'Uudelleennimeää...',
FileDelete : 'Haluatko varmasti poistaa tiedoston "%1"?',
FilesLoading : 'Lataa...',
FilesEmpty : 'Tyhjä kansio.',
FilesMoved : 'Tiedosto %1 siirretty nimelle %2:%3',
FilesCopied : 'Tiedosto %1 kopioitu nimelle %2:%3',
// Basket
BasketFolder : 'Kori',
BasketClear : 'Tyhjennä kori',
BasketRemove : 'Poista korista',
BasketOpenFolder : 'Avaa ylemmän tason kansio',
BasketTruncateConfirm : 'Haluatko todella poistaa kaikki tiedostot korista?',
BasketRemoveConfirm : 'Haluatko todella poistaa tiedoston "%1" korista?',
BasketEmpty : 'Korissa ei ole tiedostoja. Lisää raahaamalla.',
BasketCopyFilesHere : 'Kopioi tiedostot korista.',
BasketMoveFilesHere : 'Siirrä tiedostot korista.',
BasketPasteErrorOther : 'Tiedoston %s virhe: %e',
BasketPasteMoveSuccess : 'Seuraavat tiedostot siirrettiin: %s',
BasketPasteCopySuccess : 'Seuraavat tiedostot kopioitiin: %s',
// Toolbar Buttons (some used elsewhere)
Upload : 'Lataa palvelimelle',
UploadTip : 'Lataa uusi tiedosto palvelimelle',
Refresh : 'Päivitä',
Settings : 'Asetukset',
Help : 'Apua',
HelpTip : 'Apua',
// Context Menus
Select : 'Valitse',
SelectThumbnail : 'Valitse esikatselukuva',
View : 'Näytä',
Download : 'Lataa palvelimelta',
NewSubFolder : 'Uusi alikansio',
Rename : 'Uudelleennimeä ',
Delete : 'Poista',
CopyDragDrop : 'Kopioi tiedosto tähän',
MoveDragDrop : 'Siirrä tiedosto tähän',
// Dialogs
RenameDlgTitle : 'Nimeä uudelleen',
NewNameDlgTitle : 'Uusi nimi',
FileExistsDlgTitle : 'Tiedostonimi on jo olemassa!',
SysErrorDlgTitle : 'Järjestelmävirhe',
FileOverwrite : 'Ylikirjoita',
FileAutorename : 'Nimeä uudelleen automaattisesti',
// Generic
OkBtn : 'OK',
CancelBtn : 'Peru',
CloseBtn : 'Sulje',
// Upload Panel
UploadTitle : 'Lataa uusi tiedosto palvelimelle',
UploadSelectLbl : 'Valitse ladattava tiedosto',
UploadProgressLbl : '(Lataaminen palvelimelle käynnissä...)',
UploadBtn : 'Lataa valittu tiedosto palvelimelle',
UploadBtnCancel : 'Peru',
UploadNoFileMsg : 'Valitse tiedosto tietokoneeltasi.',
UploadNoFolder : 'Valitse kansio ennen palvelimelle lataamista.',
UploadNoPerms : 'Tiedoston lataaminen palvelimelle evätty.',
UploadUnknError : 'Tiedoston siirrossa tapahtui virhe.',
UploadExtIncorrect : 'Tiedostotarkenne ei ole sallittu valitussa kansiossa.',
// Settings Panel
SetTitle : 'Asetukset',
SetView : 'Näkymä:',
SetViewThumb : 'Esikatselukuvat',
SetViewList : 'Luettelo',
SetDisplay : 'Näytä:',
SetDisplayName : 'Tiedostonimi',
SetDisplayDate : 'Päivämäärä',
SetDisplaySize : 'Tiedostokoko',
SetSort : 'Lajittele:',
SetSortName : 'aakkosjärjestykseen',
SetSortDate : 'päivämäärän mukaan',
SetSortSize : 'tiedostokoon mukaan',
// Status Bar
FilesCountEmpty : '<Tyhjä kansio>',
FilesCountOne : '1 tiedosto',
FilesCountMany : '%1 tiedostoa',
// Size and Speed
Kb : '%1 kt',
KbPerSecond : '%1 kt/s',
// Connector Error Messages.
ErrorUnknown : 'Pyyntöä ei voitu suorittaa. (Virhe %1)',
Errors :
{
10 : 'Virheellinen komento.',
11 : 'Pyynnön resurssityyppi on määrittelemättä.',
12 : 'Pyynnön resurssityyppi on virheellinen.',
102 : 'Virheellinen tiedosto- tai kansionimi.',
103 : 'Oikeutesi eivät riitä pyynnön suorittamiseen.',
104 : 'Tiedosto-oikeudet eivät riitä pyynnön suorittamiseen.',
105 : 'Virheellinen tiedostotarkenne.',
109 : 'Virheellinen pyyntö.',
110 : 'Tuntematon virhe.',
115 : 'Samanniminen tiedosto tai kansio on jo olemassa.',
116 : 'Kansiota ei löydy. Yritä uudelleen kansiopäivityksen jälkeen.',
117 : 'Tiedostoa ei löydy. Yritä uudelleen kansiopäivityksen jälkeen.',
118 : 'Lähde- ja kohdekansio on sama!',
201 : 'Samanniminen tiedosto on jo olemassa. Palvelimelle ladattu tiedosto on nimetty: "%1"',
202 : 'Virheellinen tiedosto',
203 : 'Virheellinen tiedosto. Tiedostokoko on liian suuri.',
204 : 'Palvelimelle ladattu tiedosto on vioittunut.',
205 : 'Väliaikaishakemistoa ei ole määritetty palvelimelle lataamista varten.',
206 : 'Palvelimelle lataaminen on peruttu turvallisuussyistä. Tiedosto sisältää HTML-tyylistä dataa.',
207 : 'Palvelimelle ladattu tiedosto on nimetty: "%1"',
300 : 'Tiedostosiirto epäonnistui.',
301 : 'Tiedostokopiointi epäonnistui.',
500 : 'Tiedostoselain on kytketty käytöstä turvallisuussyistä. Pyydä pääkäyttäjää tarkastamaan CKFinderin asetustiedosto.',
501 : 'Esikatselukuvien tuki on kytketty toiminnasta.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'Tiedosto on nimettävä!',
FileExists : 'Tiedosto %s on jo olemassa',
FolderEmpty : 'Kansio on nimettävä!',
FileInvChar : 'Tiedostonimi ei voi sisältää seuraavia merkkejä: \n\\ / : * ? " < > |',
FolderInvChar : 'Kansionimi ei voi sisältää seuraavia merkkejä: \n\\ / : * ? " < > |',
PopupBlockView : 'Tiedostoa ei voitu avata uuteen ikkunaan. Salli selaimesi asetuksissa ponnahdusikkunat tälle sivulle.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Muuta kokoa %s',
sizeTooBig : 'Kuvan mittoja ei voi asettaa alkuperäistä suuremmiksi(%size).',
resizeSuccess : 'Kuvan koon muuttaminen onnistui.',
thumbnailNew : 'Luo uusi esikatselukuva.',
thumbnailSmall : 'Pieni (%s)',
thumbnailMedium : 'Keskikokoinen (%s)',
thumbnailLarge : 'Suuri (%s)',
newSize : 'Aseta uusi koko',
width : 'Leveys',
height : 'Korkeus',
invalidHeight : 'Viallinen korkeus.',
invalidWidth : 'Viallinen leveys.',
invalidName : 'Viallinen tiedostonimi.',
newImage : 'Luo uusi kuva',
noExtensionChange : 'Tiedostomäärettä ei voi vaihtaa.',
imageSmall : 'Lähdekuva on liian pieni',
contextMenuName : 'Muuta kokoa'
},
// Fileeditor plugin
Fileeditor :
{
save : 'Tallenna',
fileOpenError : 'Tiedostoa ei voi avata.',
fileSaveSuccess : 'Tiedoston tallennus onnistui.',
contextMenuName : 'Muokkaa',
loadingFile : 'Tiedostoa ladataan ...'
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/fi.js | JavaScript | gpl3 | 8,562 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['no'] =
{
appTitle : 'CKFinder', // MISSING
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
ok : 'OK', // MISSING
cancel : 'Cancel', // MISSING
confirmationTitle : 'Confirmation', // MISSING
messageTitle : 'Information', // MISSING
inputTitle : 'Question', // MISSING
undo : 'Undo', // MISSING
redo : 'Redo', // MISSING
skip : 'Skip', // MISSING
skipAll : 'Skip all', // MISSING
makeDecision : 'What action should be taken?', // MISSING
rememberDecision: 'Remember my decision' // MISSING
},
dir : 'ltr', // MISSING
HelpLang : 'en',
LangCode : 'no',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'dd/mm/yyyy HH:MM',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Mapper',
FolderLoading : 'Laster...',
FolderNew : 'Skriv inn det nye mappenavnet: ',
FolderRename : 'Skriv inn det nye mappenavnet: ',
FolderDelete : 'Er du sikker på at du vil slette mappen "%1"?',
FolderRenaming : ' (Endrer mappenavn...)',
FolderDeleting : ' (Sletter...)',
// Files
FileRename : 'Skriv inn det nye filnavnet: ',
FileRenameExt : 'Er du sikker på at du vil endre filtypen? Filen kan bli ubrukelig',
FileRenaming : 'Endrer filnavn...',
FileDelete : 'Er du sikker på at du vil slette denne filen "%1"?',
FilesLoading : 'Loading...', // MISSING
FilesEmpty : 'Empty folder', // MISSING
FilesMoved : 'File %1 moved into %2:%3', // MISSING
FilesCopied : 'File %1 copied into %2:%3', // MISSING
// Basket
BasketFolder : 'Basket', // MISSING
BasketClear : 'Clear Basket', // MISSING
BasketRemove : 'Remove from basket', // MISSING
BasketOpenFolder : 'Open parent folder', // MISSING
BasketTruncateConfirm : 'Do you really want to remove all files from the basket?', // MISSING
BasketRemoveConfirm : 'Do you really want to remove the file "%1" from the basket?', // MISSING
BasketEmpty : 'No files in the basket, drag\'n\'drop some.', // MISSING
BasketCopyFilesHere : 'Copy Files from Basket', // MISSING
BasketMoveFilesHere : 'Move Files from Basket', // MISSING
BasketPasteErrorOther : 'File %s error: %e', // MISSING
BasketPasteMoveSuccess : 'The following files were moved: %s', // MISSING
BasketPasteCopySuccess : 'The following files were copied: %s', // MISSING
// Toolbar Buttons (some used elsewhere)
Upload : 'Last opp',
UploadTip : 'Last opp en ny fil',
Refresh : 'Oppdater',
Settings : 'Innstillinger',
Help : 'Hjelp',
HelpTip : 'Hjelp finnes kun på engelsk',
// Context Menus
Select : 'Velg',
SelectThumbnail : 'Velg Miniatyr',
View : 'Vis fullversjon',
Download : 'Last ned',
NewSubFolder : 'Ny Undermappe',
Rename : 'Endre navn',
Delete : 'Slett',
CopyDragDrop : 'Copy file here', // MISSING
MoveDragDrop : 'Move file here', // MISSING
// Dialogs
RenameDlgTitle : 'Rename', // MISSING
NewNameDlgTitle : 'New name', // MISSING
FileExistsDlgTitle : 'File already exists', // MISSING
SysErrorDlgTitle : 'System error', // MISSING
FileOverwrite : 'Overwrite', // MISSING
FileAutorename : 'Auto-rename', // MISSING
// Generic
OkBtn : 'OK',
CancelBtn : 'Avbryt',
CloseBtn : 'Lukk',
// Upload Panel
UploadTitle : 'Last opp ny fil',
UploadSelectLbl : 'Velg filen du vil laste opp',
UploadProgressLbl : '(Laster opp filen, vennligst vent...)',
UploadBtn : 'Last opp valgt fil',
UploadBtnCancel : 'Cancel', // MISSING
UploadNoFileMsg : 'Du må velge en fil fra din datamaskin',
UploadNoFolder : 'Please select folder before uploading.', // MISSING
UploadNoPerms : 'File upload not allowed.', // MISSING
UploadUnknError : 'Error sending the file.', // MISSING
UploadExtIncorrect : 'File extension not allowed in this folder.', // MISSING
// Settings Panel
SetTitle : 'Innstillinger',
SetView : 'Filvisning:',
SetViewThumb : 'Miniatyrbilder',
SetViewList : 'Liste',
SetDisplay : 'Vis:',
SetDisplayName : 'Filnavn',
SetDisplayDate : 'Dato',
SetDisplaySize : 'Filstørrelse',
SetSort : 'Sorter etter:',
SetSortName : 'Filnavn',
SetSortDate : 'Dato',
SetSortSize : 'Størrelse',
// Status Bar
FilesCountEmpty : '<Tom Mappe>',
FilesCountOne : '1 fil',
FilesCountMany : '%1 filer',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'Det var ikke mulig å utføre forespørselen. (Feil %1)',
Errors :
{
10 : 'Ugyldig kommando.',
11 : 'Ressurstypen ble ikke spesifisert i forepørselen.',
12 : 'Ugyldig ressurstype.',
102 : 'Ugyldig fil- eller mappenavn.',
103 : 'Kunne ikke utføre forespørselen pga manglende autorisasjon.',
104 : 'Kunne ikke utføre forespørselen pga manglende tilgang til filsystemet.',
105 : 'Ugyldig filtype.',
109 : 'Ugyldig forespørsel.',
110 : 'Ukjent feil.',
115 : 'Det finnes allerede en fil eller mappe med dette navnet.',
116 : 'Kunne ikke finne mappen. Oppdater vinduet og prøv igjen.',
117 : 'Kunne ikke finne filen. Oppdater vinduet og prøv igjen.',
118 : 'Source and target paths are equal.', // MISSING
201 : 'Det fantes allerede en fil med dette navnet. Den opplastede filens navn har blitt endret til "%1"',
202 : 'Ugyldig fil',
203 : 'Ugyldig fil. Filen er for stor.',
204 : 'Den opplastede filen er korrupt.',
205 : 'Det finnes ingen midlertidig mappe for filopplastinger.',
206 : 'Opplastingen ble avbrutt av sikkerhetshensyn. Filen inneholder HTML-aktig data.',
207 : 'Den opplastede filens navn har blitt endret til "%1"',
300 : 'Moving file(s) failed.', // MISSING
301 : 'Copying file(s) failed.', // MISSING
500 : 'Filvelgeren ikke tilgjengelig av sikkerhetshensyn. Kontakt systemansvarlig og be han sjekke CKFinder\'s konfigurasjonsfil.',
501 : 'Funksjon for minityrbilder er skrudd av.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'Filnavnet kan ikke være tomt',
FileExists : 'File %s already exists', // MISSING
FolderEmpty : 'Mappenavnet kan ikke være tomt',
FileInvChar : 'Filnavnet kan ikke inneholde følgende tegn: \n\\ / : * ? " < > |',
FolderInvChar : 'Mappenavnet kan ikke inneholde følgende tegn: \n\\ / : * ? " < > |',
PopupBlockView : 'Du må skru av popup-blockeren for å se bildet i nytt vindu.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Resize %s', // MISSING
sizeTooBig : 'Cannot set image height or width to a value bigger than the original size (%size).', // MISSING
resizeSuccess : 'Image resized successfully.', // MISSING
thumbnailNew : 'Create new thumbnail', // MISSING
thumbnailSmall : 'Small (%s)', // MISSING
thumbnailMedium : 'Medium (%s)', // MISSING
thumbnailLarge : 'Large (%s)', // MISSING
newSize : 'Set new size', // MISSING
width : 'Width', // MISSING
height : 'Height', // MISSING
invalidHeight : 'Invalid height.', // MISSING
invalidWidth : 'Invalid width.', // MISSING
invalidName : 'Invalid file name.', // MISSING
newImage : 'Create new image', // MISSING
noExtensionChange : 'The file extension cannot be changed.', // MISSING
imageSmall : 'Source image is too small', // MISSING
contextMenuName : 'Resize' // MISSING
},
// Fileeditor plugin
Fileeditor :
{
save : 'Save', // MISSING
fileOpenError : 'Unable to open file.', // MISSING
fileSaveSuccess : 'File saved successfully.', // MISSING
contextMenuName : 'Edit', // MISSING
loadingFile : 'Loading file, please wait...' // MISSING
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/no.js | JavaScript | gpl3 | 8,789 |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
*
*/
/**
* @fileOverview Defines the {@link CKFinder.lang} object, for the Latvian
* language. This is the base file for all translations.
*/
/**
* Constains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['lv'] =
{
appTitle : 'CKFinder', // MISSING
// Common messages and labels.
common :
{
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, unavailable</span>', // MISSING
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
ok : 'OK', // MISSING
cancel : 'Cancel', // MISSING
confirmationTitle : 'Confirmation', // MISSING
messageTitle : 'Information', // MISSING
inputTitle : 'Question', // MISSING
undo : 'Undo', // MISSING
redo : 'Redo', // MISSING
skip : 'Skip', // MISSING
skipAll : 'Skip all', // MISSING
makeDecision : 'What action should be taken?', // MISSING
rememberDecision: 'Remember my decision' // MISSING
},
dir : 'ltr', // MISSING
HelpLang : 'en',
LangCode : 'lv',
// Date Format
// d : Day
// dd : Day (padding zero)
// m : Month
// mm : Month (padding zero)
// yy : Year (two digits)
// yyyy : Year (four digits)
// h : Hour (12 hour clock)
// hh : Hour (12 hour clock, padding zero)
// H : Hour (24 hour clock)
// HH : Hour (24 hour clock, padding zero)
// M : Minute
// MM : Minute (padding zero)
// a : Firt char of AM/PM
// aa : AM/PM
DateTime : 'dd/mm/yyyy H:MM',
DateAmPm : ['AM', 'PM'],
// Folders
FoldersTitle : 'Mapes',
FolderLoading : 'Ielādē...',
FolderNew : 'Lūdzu ierakstiet mapes nosaukumu: ',
FolderRename : 'Lūdzu ierakstiet jauno mapes nosaukumu: ',
FolderDelete : 'Vai tiešām vēlaties neatgriezeniski dzēst mapi "%1"?',
FolderRenaming : ' (Pārsauc...)',
FolderDeleting : ' (Dzēš...)',
// Files
FileRename : 'Lūdzu ierakstiet jauno faila nosaukumu: ',
FileRenameExt : 'Vai tiešām vēlaties mainīt faila paplašinājumu? Fails var palikt nelietojams.',
FileRenaming : 'Pārsauc...',
FileDelete : 'Vai tiešām vēlaties neatgriezeniski dzēst failu "%1"?',
FilesLoading : 'Loading...', // MISSING
FilesEmpty : 'Empty folder', // MISSING
FilesMoved : 'File %1 moved into %2:%3', // MISSING
FilesCopied : 'File %1 copied into %2:%3', // MISSING
// Basket
BasketFolder : 'Basket', // MISSING
BasketClear : 'Clear Basket', // MISSING
BasketRemove : 'Remove from basket', // MISSING
BasketOpenFolder : 'Open parent folder', // MISSING
BasketTruncateConfirm : 'Do you really want to remove all files from the basket?', // MISSING
BasketRemoveConfirm : 'Do you really want to remove the file "%1" from the basket?', // MISSING
BasketEmpty : 'No files in the basket, drag\'n\'drop some.', // MISSING
BasketCopyFilesHere : 'Copy Files from Basket', // MISSING
BasketMoveFilesHere : 'Move Files from Basket', // MISSING
BasketPasteErrorOther : 'File %s error: %e', // MISSING
BasketPasteMoveSuccess : 'The following files were moved: %s', // MISSING
BasketPasteCopySuccess : 'The following files were copied: %s', // MISSING
// Toolbar Buttons (some used elsewhere)
Upload : 'Augšupielādēt',
UploadTip : 'Augšupielādēt jaunu failu',
Refresh : 'Pārlādēt',
Settings : 'Uzstādījumi',
Help : 'Palīdzība',
HelpTip : 'Palīdzība',
// Context Menus
Select : 'Izvēlēties',
SelectThumbnail : 'Izvēlēties sīkbildi',
View : 'Skatīt',
Download : 'Lejupielādēt',
NewSubFolder : 'Jauna apakšmape',
Rename : 'Pārsaukt',
Delete : 'Dzēst',
CopyDragDrop : 'Copy file here', // MISSING
MoveDragDrop : 'Move file here', // MISSING
// Dialogs
RenameDlgTitle : 'Rename', // MISSING
NewNameDlgTitle : 'New name', // MISSING
FileExistsDlgTitle : 'File already exists', // MISSING
SysErrorDlgTitle : 'System error', // MISSING
FileOverwrite : 'Overwrite', // MISSING
FileAutorename : 'Auto-rename', // MISSING
// Generic
OkBtn : 'Labi',
CancelBtn : 'Atcelt',
CloseBtn : 'Aizvērt',
// Upload Panel
UploadTitle : 'Jauna faila augšupielādēšana',
UploadSelectLbl : 'Izvēlaties failu, ko augšupielādēt',
UploadProgressLbl : '(Augšupielādē, lūdzu uzgaidiet...)',
UploadBtn : 'Augšupielādēt izvēlēto failu',
UploadBtnCancel : 'Cancel', // MISSING
UploadNoFileMsg : 'Lūdzu izvēlaties failu no sava datora',
UploadNoFolder : 'Please select folder before uploading.', // MISSING
UploadNoPerms : 'File upload not allowed.', // MISSING
UploadUnknError : 'Error sending the file.', // MISSING
UploadExtIncorrect : 'File extension not allowed in this folder.', // MISSING
// Settings Panel
SetTitle : 'Uzstādījumi',
SetView : 'Attēlot:',
SetViewThumb : 'Sīkbildes',
SetViewList : 'Failu Sarakstu',
SetDisplay : 'Rādīt:',
SetDisplayName : 'Faila Nosaukumu',
SetDisplayDate : 'Datumu',
SetDisplaySize : 'Faila Izmēru',
SetSort : 'Kārtot:',
SetSortName : 'pēc Faila Nosaukuma',
SetSortDate : 'pēc Datuma',
SetSortSize : 'pēc Izmēra',
// Status Bar
FilesCountEmpty : '<Tukša mape>',
FilesCountOne : '1 fails',
FilesCountMany : '%1 faili',
// Size and Speed
Kb : '%1 kB',
KbPerSecond : '%1 kB/s',
// Connector Error Messages.
ErrorUnknown : 'Nebija iespējams pabeigt pieprasījumu. (Kļūda %1)',
Errors :
{
10 : 'Nederīga komanda.',
11 : 'Resursa veids netika norādīts pieprasījumā.',
12 : 'Pieprasītais resursa veids nav derīgs.',
102 : 'Nederīgs faila vai mapes nosaukums.',
103 : 'Nav iespējams pabeigt pieprasījumu, autorizācijas aizliegumu dēļ.',
104 : 'Nav iespējams pabeigt pieprasījumu, failu sistēmas atļauju ierobežojumu dēļ.',
105 : 'Neatļauts faila paplašinājums.',
109 : 'Nederīgs pieprasījums.',
110 : 'Nezināma kļūda.',
115 : 'Fails vai mape ar šādu nosaukumu jau pastāv.',
116 : 'Mape nav atrasta. Lūdzu pārlādējiet šo logu un mēģiniet vēlreiz.',
117 : 'Fails nav atrasts. Lūdzu pārlādējiet failu sarakstu un mēģiniet vēlreiz.',
118 : 'Source and target paths are equal.', // MISSING
201 : 'Fails ar šādu nosaukumu jau eksistē. Augšupielādētais fails tika pārsaukts par "%1"',
202 : 'Nederīgs fails',
203 : 'Nederīgs fails. Faila izmērs pārsniedz pieļaujamo.',
204 : 'Augšupielādētais fails ir bojāts.',
205 : 'Neviena pagaidu mape nav pieejama priekš augšupielādēšanas uz servera.',
206 : 'Augšupielāde atcelta drošības apsvērumu dēļ. Fails satur HTML veida datus.',
207 : 'Augšupielādētais fails tika pārsaukts par "%1"',
300 : 'Moving file(s) failed.', // MISSING
301 : 'Copying file(s) failed.', // MISSING
500 : 'Failu pārlūks ir atslēgts drošības apsvērumu dēļ. Lūdzu sazinieties ar šīs sistēmas tehnisko administratoru vai pārbaudiet CKFinder konfigurācijas failu.',
501 : 'Sīkbilžu atbalsts ir atslēgts.'
},
// Other Error Messages.
ErrorMsg :
{
FileEmpty : 'Faila nosaukumā nevar būt tukšums',
FileExists : 'File %s already exists', // MISSING
FolderEmpty : 'Mapes nosaukumā nevar būt tukšums',
FileInvChar : 'Faila nosaukums nedrīkst saturēt nevienu no sekojošajām zīmēm: \n\\ / : * ? " < > |',
FolderInvChar : 'Mapes nosaukums nedrīkst saturēt nevienu no sekojošajām zīmēm: \n\\ / : * ? " < > |',
PopupBlockView : 'Nav iespējams failu atvērt jaunā logā. Lūdzu veiciet izmaiņas uzstādījumos savai interneta pārlūkprogrammai un izslēdziet visus uznirstošo logu bloķētājus šai adresei.'
},
// Imageresize plugin
Imageresize :
{
dialogTitle : 'Resize %s', // MISSING
sizeTooBig : 'Cannot set image height or width to a value bigger than the original size (%size).', // MISSING
resizeSuccess : 'Image resized successfully.', // MISSING
thumbnailNew : 'Create new thumbnail', // MISSING
thumbnailSmall : 'Small (%s)', // MISSING
thumbnailMedium : 'Medium (%s)', // MISSING
thumbnailLarge : 'Large (%s)', // MISSING
newSize : 'Set new size', // MISSING
width : 'Width', // MISSING
height : 'Height', // MISSING
invalidHeight : 'Invalid height.', // MISSING
invalidWidth : 'Invalid width.', // MISSING
invalidName : 'Invalid file name.', // MISSING
newImage : 'Create new image', // MISSING
noExtensionChange : 'The file extension cannot be changed.', // MISSING
imageSmall : 'Source image is too small', // MISSING
contextMenuName : 'Resize' // MISSING
},
// Fileeditor plugin
Fileeditor :
{
save : 'Save', // MISSING
fileOpenError : 'Unable to open file.', // MISSING
fileSaveSuccess : 'File saved successfully.', // MISSING
contextMenuName : 'Edit', // MISSING
loadingFile : 'Loading file, please wait...' // MISSING
}
};
| 0f523140-f3b3-4653-89b0-eb08c39940ad | trunk/src/html/ckfinder/lang/lv.js | JavaScript | gpl3 | 9,429 |