diff --git a/browse.php b/browse.php new file mode 100644 index 0000000..cc88bfe --- /dev/null +++ b/browse.php @@ -0,0 +1,19 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +require "core/autoload.php"; +$browser = new browser(); +$browser->action(); + +?> \ No newline at end of file diff --git a/config.php b/config.php new file mode 100644 index 0000000..ae57806 --- /dev/null +++ b/config.php @@ -0,0 +1,122 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +// IMPORTANT!!! Do not remove uncommented settings in this file even if +// you are using session configuration. +// See http://kcfinder.sunhater.com/install for setting descriptions + +$_CONFIG = array( + + +// GENERAL SETTINGS + + 'disabled' => false, + 'theme' => "oxygen", + 'uploadURL' => "/upload", + 'uploadDir' => "", + + 'types' => array( + + // (F)CKEditor types + 'files' => "", + 'flash' => "swf", + 'images' => "*img", + + // TinyMCE types + 'file' => "", + 'media' => "swf flv avi mpg mpeg qt mov wmv asf rm", + 'image' => "*img", + ), + + +// IMAGE SETTINGS + + 'imageDriversPriority' => "imagick gmagick gd", + 'jpegQuality' => 90, + 'thumbsDir' => ".thumbs", + + 'maxImageWidth' => 0, + 'maxImageHeight' => 0, + + 'thumbWidth' => 100, + 'thumbHeight' => 100, + + 'watermark' => "", + + +// DISABLE / ENABLE SETTINGS + + 'denyZipDownload' => false, + 'denyUpdateCheck' => false, + 'denyExtensionRename' => false, + + +// PERMISSION SETTINGS + + 'dirPerms' => 0755, + 'filePerms' => 0644, + + 'access' => array( + + 'files' => array( + 'upload' => true, + 'delete' => true, + 'copy' => true, + 'move' => true, + 'rename' => true + ), + + 'dirs' => array( + 'create' => true, + 'delete' => true, + 'rename' => true + ) + ), + + 'deniedExts' => "exe com msi bat php phps phtml php3 php4 cgi pl", + + +// MISC SETTINGS + + 'filenameChangeChars' => array(/* + ' ' => "_", + ':' => "." + */), + + 'dirnameChangeChars' => array(/* + ' ' => "_", + ':' => "." + */), + + 'mime_magic' => "", + + 'cookieDomain' => "", + 'cookiePath' => "", + 'cookiePrefix' => 'KCFINDER_', + + +// THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION SETTINGS + + '_check4htaccess' => true, + //'_tinyMCEPath' => "/tiny_mce", + + '_sessionVar' => &$_SESSION['KCFINDER'], + //'_sessionLifetime' => 30, + //'_sessionDir' => "/full/directory/path", + + //'_sessionDomain' => ".mysite.com", + //'_sessionPath' => "/my/path", +); + +?> \ No newline at end of file diff --git a/core/.htaccess b/core/.htaccess new file mode 100644 index 0000000..d61b264 --- /dev/null +++ b/core/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + diff --git a/core/autoload.php b/core/autoload.php new file mode 100644 index 0000000..578523c --- /dev/null +++ b/core/autoload.php @@ -0,0 +1,196 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + * + * This file is the place you can put any code (at the end of the file), + * which will be executed before any other. Suitable for: + * 1. Set PHP ini settings using ini_set() + * 2. Custom session save handler with session_set_save_handler() + * 3. Any custom integration code. If you use any global variables + * here, they can be accessed in config.php via $GLOBALS array. + * It's recommended to use constants instead. + */ + + +// PHP VERSION CHECK +if (substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.')) < 5) + die("You are using PHP " . PHP_VERSION . " when KCFinder require at least version 5! Some systems has an option to change the active PHP version. Please refer to your hosting provider or upgrade your PHP distribution."); + + +// SAFE MODE CHECK +if (ini_get("safe_mode")) + die("The \"safe_mode\" PHP ini setting is turned on! You cannot run KCFinder in safe mode."); + + +// CMS INTEGRATION +if (isset($_GET['cms'])) { + switch ($_GET['cms']) { + case "drupal": require "integration/drupal.php"; + } +} + + +// MAGIC AUTOLOAD CLASSES FUNCTION +function __autoload($class) { + if ($class == "uploader") + require "core/uploader.php"; + elseif ($class == "browser") + require "core/browser.php"; + elseif (file_exists("core/types/$class.php")) + require "core/types/$class.php"; + elseif (file_exists("lib/class_$class.php")) + require "lib/class_$class.php"; + elseif (file_exists("lib/helper_$class.php")) + require "lib/helper_$class.php"; +} + + +// json_encode() IMPLEMENTATION IF JSON EXTENSION IS MISSING +if (!function_exists("json_encode")) { + + function kcfinder_json_string_encode($string) { + return '"' . + str_replace('/', "\\/", + str_replace("\t", "\\t", + str_replace("\r", "\\r", + str_replace("\n", "\\n", + str_replace('"', "\\\"", + str_replace("\\", "\\\\", + $string)))))) . '"'; + } + + function json_encode($data) { + + if (is_array($data)) { + $ret = array(); + + // OBJECT + if (array_keys($data) !== range(0, count($data) - 1)) { + foreach ($data as $key => $val) + $ret[] = kcfinder_json_string_encode($key) . ':' . json_encode($val); + return "{" . implode(",", $ret) . "}"; + + // ARRAY + } else { + foreach ($data as $val) + $ret[] = json_encode($val); + return "[" . implode(",", $ret) . "]"; + } + + // BOOLEAN OR NULL + } elseif (is_bool($data) || ($data === null)) + return ($data === null) + ? "null" + : ($data ? "true" : "false"); + + // FLOAT + elseif (is_float($data)) + return rtrim(rtrim(number_format($data, 14, ".", ""), "0"), "."); + + // INTEGER + elseif (is_int($data)) + return $data; + + // STRING + return kcfinder_json_string_encode($data); + } +} + + +// CUSTOM SESSION SAVE HANDLER CLASS EXAMPLE +// +// Uncomment & edit it if the application you want to integrate with, have +// its own session save handler. It's not even needed to save instances of +// this class in variables. Just add a row: +// new SessionSaveHandler(); +// and your handler will rule the sessions ;-) + +/* +class SessionSaveHandler { + protected $savePath; + protected $sessionName; + + public function __construct() { + session_set_save_handler( + array($this, "open"), + array($this, "close"), + array($this, "read"), + array($this, "write"), + array($this, "destroy"), + array($this, "gc") + ); + } + + // Open function, this works like a constructor in classes and is + // executed when the session is being opened. The open function expects + // two parameters, where the first is the save path and the second is the + // session name. + public function open($savePath, $sessionName) { + $this->savePath = $savePath; + $this->sessionName = $sessionName; + return true; + } + + // Close function, this works like a destructor in classes and is + // executed when the session operation is done. + public function close() { + return true; + } + + // Read function must return string value always to make save handler + // work as expected. Return empty string if there is no data to read. + // Return values from other handlers are converted to boolean expression. + // TRUE for success, FALSE for failure. + public function read($id) { + $file = $this->savePath . "/sess_$id"; + return (string) @file_get_contents($file); + } + + // Write function that is called when session data is to be saved. This + // function expects two parameters: an identifier and the data associated + // with it. + public function write($id, $data) { + $file = $this->savePath . "/sess_$id"; + if (false !== ($fp = @fopen($file, "w"))) { + $return = fwrite($fp, $data); + fclose($fp); + return $return; + } else + return false; + } + + // The destroy handler, this is executed when a session is destroyed with + // session_destroy() and takes the session id as its only parameter. + public function destroy($id) { + $file = $this->savePath . "/sess_$id"; + return @unlink($file); + } + + // The garbage collector, this is executed when the session garbage + // collector is executed and takes the max session lifetime as its only + // parameter. + public function gc($maxlifetime) { + foreach (glob($this->savePath . "/sess_*") as $file) + if (filemtime($file) + $maxlifetime < time()) + @unlink($file); + return true; + } +} + +new SessionSaveHandler(); + +*/ + + +// PUT YOUR ADDITIONAL CODE HERE + +?> \ No newline at end of file diff --git a/core/browser.php b/core/browser.php new file mode 100644 index 0000000..eb5c4ba --- /dev/null +++ b/core/browser.php @@ -0,0 +1,873 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class browser extends uploader { + protected $action; + protected $thumbsDir; + protected $thumbsTypeDir; + + public function __construct() { + parent::__construct(); + + if (isset($this->post['dir'])) { + $dir = $this->checkInputDir($this->post['dir'], true, false); + if ($dir === false) unset($this->post['dir']); + $this->post['dir'] = $dir; + } + + if (isset($this->get['dir'])) { + $dir = $this->checkInputDir($this->get['dir'], true, false); + if ($dir === false) unset($this->get['dir']); + $this->get['dir'] = $dir; + } + + $thumbsDir = $this->config['uploadDir'] . "/" . $this->config['thumbsDir']; + if (( + !is_dir($thumbsDir) && + !@mkdir($thumbsDir, $this->config['dirPerms']) + ) || + + !is_readable($thumbsDir) || + !dir::isWritable($thumbsDir) || + ( + !is_dir("$thumbsDir/{$this->type}") && + !@mkdir("$thumbsDir/{$this->type}", $this->config['dirPerms']) + ) + ) + $this->errorMsg("Cannot access or create thumbnails folder."); + + $this->thumbsDir = $thumbsDir; + $this->thumbsTypeDir = "$thumbsDir/{$this->type}"; + + // Remove temporary zip downloads if exists + $files = dir::content($this->config['uploadDir'], array( + 'types' => "file", + 'pattern' => '/^.*\.zip$/i' + )); + + if (is_array($files) && count($files)) { + $time = time(); + foreach ($files as $file) + if (is_file($file) && ($time - filemtime($file) > 3600)) + unlink($file); + } + + if (isset($this->get['theme']) && + ($this->get['theme'] == basename($this->get['theme'])) && + is_dir("themes/{$this->get['theme']}") + ) + $this->config['theme'] = $this->get['theme']; + } + + public function action() { + $act = isset($this->get['act']) ? $this->get['act'] : "browser"; + if (!method_exists($this, "act_$act")) + $act = "browser"; + $this->action = $act; + $method = "act_$act"; + + if ($this->config['disabled']) { + $message = $this->label("You don't have permissions to browse server."); + if (in_array($act, array("browser", "upload")) || + (substr($act, 0, 8) == "download") + ) + $this->backMsg($message); + else { + header("Content-Type: text/plain; charset={$this->charset}"); + die(json_encode(array('error' => $message))); + } + } + + if (!isset($this->session['dir'])) + $this->session['dir'] = $this->type; + else { + $type = $this->getTypeFromPath($this->session['dir']); + $dir = $this->config['uploadDir'] . "/" . $this->session['dir']; + if (($type != $this->type) || !is_dir($dir) || !is_readable($dir)) + $this->session['dir'] = $this->type; + } + $this->session['dir'] = path::normalize($this->session['dir']); + + if ($act == "browser") { + header("X-UA-Compatible: chrome=1"); + header("Content-Type: text/html; charset={$this->charset}"); + } elseif ( + (substr($act, 0, 8) != "download") && + !in_array($act, array("thumb", "upload")) + ) + header("Content-Type: text/plain; charset={$this->charset}"); + + $return = $this->$method(); + echo ($return === true) + ? '{}' + : $return; + } + + protected function act_browser() { + if (isset($this->get['dir']) && + is_dir("{$this->typeDir}/{$this->get['dir']}") && + is_readable("{$this->typeDir}/{$this->get['dir']}") + ) + $this->session['dir'] = path::normalize("{$this->type}/{$this->get['dir']}"); + + return $this->output(); + } + + protected function act_init() { + $tree = $this->getDirInfo($this->typeDir); + $tree['dirs'] = $this->getTree($this->session['dir']); + if (!is_array($tree['dirs']) || !count($tree['dirs'])) + unset($tree['dirs']); + $files = $this->getFiles($this->session['dir']); + $dirWritable = dir::isWritable("{$this->config['uploadDir']}/{$this->session['dir']}"); + $data = array( + 'tree' => &$tree, + 'files' => &$files, + 'dirWritable' => $dirWritable + ); + return json_encode($data); + } + + protected function act_thumb() { + $this->getDir($this->get['dir'], true); + if (!isset($this->get['file']) || !isset($this->get['dir'])) + $this->sendDefaultThumb(); + $file = $this->get['file']; + if (basename($file) != $file) + $this->sendDefaultThumb(); + $file = "{$this->thumbsDir}/{$this->type}/{$this->get['dir']}/$file"; + if (!is_file($file) || !is_readable($file)) { + $file = "{$this->config['uploadDir']}/{$this->type}/{$this->get['dir']}/" . basename($file); + if (!is_file($file) || !is_readable($file)) + $this->sendDefaultThumb($file); + $image = image::factory($this->imageDriver, $file); + if ($image->initError) + $this->sendDefaultThumb($file); + list($tmp, $tmp, $type) = getimagesize($file); + if (in_array($type, array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)) && + ($image->width <= $this->config['thumbWidth']) && + ($image->height <= $this->config['thumbHeight']) + ) { + $mime = + ($type == IMAGETYPE_GIF) ? "gif" : ( + ($type == IMAGETYPE_PNG) ? "png" : "jpeg"); + $mime = "image/$mime"; + httpCache::file($file, $mime); + } else + $this->sendDefaultThumb($file); + } + httpCache::file($file, "image/jpeg"); + } + + protected function act_expand() { + return json_encode(array('dirs' => $this->getDirs($this->postDir()))); + } + + protected function act_chDir() { + $this->postDir(); // Just for existing check + $this->session['dir'] = $this->type . "/" . $this->post['dir']; + $dirWritable = dir::isWritable("{$this->config['uploadDir']}/{$this->session['dir']}"); + return json_encode(array( + 'files' => $this->getFiles($this->session['dir']), + 'dirWritable' => $dirWritable + )); + } + + protected function act_newDir() { + if (!$this->config['access']['dirs']['create'] || + !isset($this->post['dir']) || + !isset($this->post['newDir']) + ) + $this->errorMsg("Unknown error."); + + $dir = $this->postDir(); + $newDir = $this->normalizeDirname(trim($this->post['newDir'])); + if (!strlen($newDir)) + $this->errorMsg("Please enter new folder name."); + if (preg_match('/[\/\\\\]/s', $newDir)) + $this->errorMsg("Unallowable characters in folder name."); + if (substr($newDir, 0, 1) == ".") + $this->errorMsg("Folder name shouldn't begins with '.'"); + if (file_exists("$dir/$newDir")) + $this->errorMsg("A file or folder with that name already exists."); + if (!@mkdir("$dir/$newDir", $this->config['dirPerms'])) + $this->errorMsg("Cannot create {dir} folder.", array('dir' => $newDir)); + return true; + } + + protected function act_renameDir() { + if (!$this->config['access']['dirs']['rename'] || + !isset($this->post['dir']) || + !isset($this->post['newName']) + ) + $this->errorMsg("Unknown error."); + + $dir = $this->postDir(); + $newName = $this->normalizeDirname(trim($this->post['newName'])); + if (!strlen($newName)) + $this->errorMsg("Please enter new folder name."); + if (preg_match('/[\/\\\\]/s', $newName)) + $this->errorMsg("Unallowable characters in folder name."); + if (substr($newName, 0, 1) == ".") + $this->errorMsg("Folder name shouldn't begins with '.'"); + if (!@rename($dir, dirname($dir) . "/$newName")) + $this->errorMsg("Cannot rename the folder."); + $thumbDir = "$this->thumbsTypeDir/{$this->post['dir']}"; + if (is_dir($thumbDir)) + @rename($thumbDir, dirname($thumbDir) . "/$newName"); + return json_encode(array('name' => $newName)); + } + + protected function act_deleteDir() { + if (!$this->config['access']['dirs']['delete'] || + !isset($this->post['dir']) || + !strlen(trim($this->post['dir'])) + ) + $this->errorMsg("Unknown error."); + + $dir = $this->postDir(); + + if (!dir::isWritable($dir)) + $this->errorMsg("Cannot delete the folder."); + $result = !dir::prune($dir, false); + if (is_array($result) && count($result)) + $this->errorMsg("Failed to delete {count} files/folders.", + array('count' => count($result))); + $thumbDir = "$this->thumbsTypeDir/{$this->post['dir']}"; + if (is_dir($thumbDir)) dir::prune($thumbDir); + return true; + } + + protected function act_upload() { + if (!$this->config['access']['files']['upload'] || + !isset($this->post['dir']) + ) + $this->errorMsg("Unknown error."); + + $dir = $this->postDir(); + + if (!dir::isWritable($dir)) + $this->errorMsg("Cannot access or write to upload folder."); + + if (is_array($this->file['name'])) { + $return = array(); + foreach ($this->file['name'] as $i => $name) { + $return[] = $this->moveUploadFile(array( + 'name' => $name, + 'tmp_name' => $this->file['tmp_name'][$i], + 'error' => $this->file['error'][$i] + ), $dir); + } + return implode("\n", $return); + } else + return $this->moveUploadFile($this->file, $dir); + } + + protected function act_download() { + $dir = $this->postDir(); + if (!isset($this->post['dir']) || + !isset($this->post['file']) || + (false === ($file = "$dir/{$this->post['file']}")) || + !file_exists($file) || !is_readable($file) + ) + $this->errorMsg("Unknown error."); + + header("Pragma: public"); + header("Expires: 0"); + header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); + header("Cache-Control: private", false); + header("Content-Type: application/octet-stream"); + header('Content-Disposition: attachment; filename="' . str_replace('"', "_", $this->post['file']) . '"'); + header("Content-Transfer-Encoding:­ binary"); + header("Content-Length: " . filesize($file)); + readfile($file); + die; + } + + protected function act_rename() { + $dir = $this->postDir(); + if (!$this->config['access']['files']['rename'] || + !isset($this->post['dir']) || + !isset($this->post['file']) || + !isset($this->post['newName']) || + (false === ($file = "$dir/{$this->post['file']}")) || + !file_exists($file) || !is_readable($file) || !file::isWritable($file) + ) + $this->errorMsg("Unknown error."); + + if (isset($this->config['denyExtensionRename']) && + $this->config['denyExtensionRename'] && + (file::getExtension($this->post['file'], true) !== + file::getExtension($this->post['newName'], true) + ) + ) + $this->errorMsg("You cannot rename the extension of files!"); + + $newName = $this->normalizeFilename(trim($this->post['newName'])); + if (!strlen($newName)) + $this->errorMsg("Please enter new file name."); + if (preg_match('/[\/\\\\]/s', $newName)) + $this->errorMsg("Unallowable characters in file name."); + if (substr($newName, 0, 1) == ".") + $this->errorMsg("File name shouldn't begins with '.'"); + $newName = "$dir/$newName"; + if (file_exists($newName)) + $this->errorMsg("A file or folder with that name already exists."); + $ext = file::getExtension($newName); + if (!$this->validateExtension($ext, $this->type)) + $this->errorMsg("Denied file extension."); + if (!@rename($file, $newName)) + $this->errorMsg("Unknown error."); + + $thumbDir = "{$this->thumbsTypeDir}/{$this->post['dir']}"; + $thumbFile = "$thumbDir/{$this->post['file']}"; + + if (file_exists($thumbFile)) + @rename($thumbFile, "$thumbDir/" . basename($newName)); + return true; + } + + protected function act_delete() { + $dir = $this->postDir(); + if (!$this->config['access']['files']['delete'] || + !isset($this->post['dir']) || + !isset($this->post['file']) || + (false === ($file = "$dir/{$this->post['file']}")) || + !file_exists($file) || !is_readable($file) || !file::isWritable($file) || + !@unlink($file) + ) + $this->errorMsg("Unknown error."); + + $thumb = "{$this->thumbsTypeDir}/{$this->post['dir']}/{$this->post['file']}"; + if (file_exists($thumb)) @unlink($thumb); + return true; + } + + protected function act_cp_cbd() { + $dir = $this->postDir(); + if (!$this->config['access']['files']['copy'] || + !isset($this->post['dir']) || + !is_dir($dir) || !is_readable($dir) || !dir::isWritable($dir) || + !isset($this->post['files']) || !is_array($this->post['files']) || + !count($this->post['files']) + ) + $this->errorMsg("Unknown error."); + + $error = array(); + foreach($this->post['files'] as $file) { + $file = path::normalize($file); + if (substr($file, 0, 1) == ".") continue; + $type = explode("/", $file); + $type = $type[0]; + if ($type != $this->type) continue; + $path = "{$this->config['uploadDir']}/$file"; + $base = basename($file); + $replace = array('file' => $base); + $ext = file::getExtension($base); + if (!file_exists($path)) + $error[] = $this->label("The file '{file}' does not exist.", $replace); + elseif (substr($base, 0, 1) == ".") + $error[] = "$base: " . $this->label("File name shouldn't begins with '.'"); + elseif (!$this->validateExtension($ext, $type)) + $error[] = "$base: " . $this->label("Denied file extension."); + elseif (file_exists("$dir/$base")) + $error[] = "$base: " . $this->label("A file or folder with that name already exists."); + elseif (!is_readable($path) || !is_file($path)) + $error[] = $this->label("Cannot read '{file}'.", $replace); + elseif (!@copy($path, "$dir/$base")) + $error[] = $this->label("Cannot copy '{file}'.", $replace); + else { + if (function_exists("chmod")) + @chmod("$dir/$base", $this->config['filePerms']); + $fromThumb = "{$this->thumbsDir}/$file"; + if (is_file($fromThumb) && is_readable($fromThumb)) { + $toThumb = "{$this->thumbsTypeDir}/{$this->post['dir']}"; + if (!is_dir($toThumb)) + @mkdir($toThumb, $this->config['dirPerms'], true); + $toThumb .= "/$base"; + @copy($fromThumb, $toThumb); + } + } + } + if (count($error)) + return json_encode(array('error' => $error)); + return true; + } + + protected function act_mv_cbd() { + $dir = $this->postDir(); + if (!$this->config['access']['files']['move'] || + !isset($this->post['dir']) || + !is_dir($dir) || !is_readable($dir) || !dir::isWritable($dir) || + !isset($this->post['files']) || !is_array($this->post['files']) || + !count($this->post['files']) + ) + $this->errorMsg("Unknown error."); + + $error = array(); + foreach($this->post['files'] as $file) { + $file = path::normalize($file); + if (substr($file, 0, 1) == ".") continue; + $type = explode("/", $file); + $type = $type[0]; + if ($type != $this->type) continue; + $path = "{$this->config['uploadDir']}/$file"; + $base = basename($file); + $replace = array('file' => $base); + $ext = file::getExtension($base); + if (!file_exists($path)) + $error[] = $this->label("The file '{file}' does not exist.", $replace); + elseif (substr($base, 0, 1) == ".") + $error[] = "$base: " . $this->label("File name shouldn't begins with '.'"); + elseif (!$this->validateExtension($ext, $type)) + $error[] = "$base: " . $this->label("Denied file extension."); + elseif (file_exists("$dir/$base")) + $error[] = "$base: " . $this->label("A file or folder with that name already exists."); + elseif (!is_readable($path) || !is_file($path)) + $error[] = $this->label("Cannot read '{file}'.", $replace); + elseif (!file::isWritable($path) || !@rename($path, "$dir/$base")) + $error[] = $this->label("Cannot move '{file}'.", $replace); + else { + if (function_exists("chmod")) + @chmod("$dir/$base", $this->config['filePerms']); + $fromThumb = "{$this->thumbsDir}/$file"; + if (is_file($fromThumb) && is_readable($fromThumb)) { + $toThumb = "{$this->thumbsTypeDir}/{$this->post['dir']}"; + if (!is_dir($toThumb)) + @mkdir($toThumb, $this->config['dirPerms'], true); + $toThumb .= "/$base"; + @rename($fromThumb, $toThumb); + } + } + } + if (count($error)) + return json_encode(array('error' => $error)); + return true; + } + + protected function act_rm_cbd() { + if (!$this->config['access']['files']['delete'] || + !isset($this->post['files']) || + !is_array($this->post['files']) || + !count($this->post['files']) + ) + $this->errorMsg("Unknown error."); + + $error = array(); + foreach($this->post['files'] as $file) { + $file = path::normalize($file); + if (substr($file, 0, 1) == ".") continue; + $type = explode("/", $file); + $type = $type[0]; + if ($type != $this->type) continue; + $path = "{$this->config['uploadDir']}/$file"; + $base = basename($file); + $replace = array('file' => $base); + if (!is_file($path)) + $error[] = $this->label("The file '{file}' does not exist.", $replace); + elseif (!@unlink($path)) + $error[] = $this->label("Cannot delete '{file}'.", $replace); + else { + $thumb = "{$this->thumbsDir}/$file"; + if (is_file($thumb)) @unlink($thumb); + } + } + if (count($error)) + return json_encode(array('error' => $error)); + return true; + } + + protected function act_downloadDir() { + $dir = $this->postDir(); + if (!isset($this->post['dir']) || $this->config['denyZipDownload']) + $this->errorMsg("Unknown error."); + $filename = basename($dir) . ".zip"; + do { + $file = md5(time() . session_id()); + $file = "{$this->config['uploadDir']}/$file.zip"; + } while (file_exists($file)); + new zipFolder($file, $dir); + header("Content-Type: application/x-zip"); + header('Content-Disposition: attachment; filename="' . str_replace('"', "_", $filename) . '"'); + header("Content-Length: " . filesize($file)); + readfile($file); + unlink($file); + die; + } + + protected function act_downloadSelected() { + $dir = $this->postDir(); + if (!isset($this->post['dir']) || + !isset($this->post['files']) || + !is_array($this->post['files']) || + $this->config['denyZipDownload'] + ) + $this->errorMsg("Unknown error."); + + $zipFiles = array(); + foreach ($this->post['files'] as $file) { + $file = path::normalize($file); + if ((substr($file, 0, 1) == ".") || (strpos($file, '/') !== false)) + continue; + $file = "$dir/$file"; + if (!is_file($file) || !is_readable($file)) + continue; + $zipFiles[] = $file; + } + + do { + $file = md5(time() . session_id()); + $file = "{$this->config['uploadDir']}/$file.zip"; + } while (file_exists($file)); + + $zip = new ZipArchive(); + $res = $zip->open($file, ZipArchive::CREATE); + if ($res === TRUE) { + foreach ($zipFiles as $cfile) + $zip->addFile($cfile, basename($cfile)); + $zip->close(); + } + header("Content-Type: application/x-zip"); + header('Content-Disposition: attachment; filename="selected_files_' . basename($file) . '"'); + header("Content-Length: " . filesize($file)); + readfile($file); + unlink($file); + die; + } + + protected function act_downloadClipboard() { + if (!isset($this->post['files']) || + !is_array($this->post['files']) || + $this->config['denyZipDownload'] + ) + $this->errorMsg("Unknown error."); + + $zipFiles = array(); + foreach ($this->post['files'] as $file) { + $file = path::normalize($file); + if ((substr($file, 0, 1) == ".")) + continue; + $type = explode("/", $file); + $type = $type[0]; + if ($type != $this->type) + continue; + $file = $this->config['uploadDir'] . "/$file"; + if (!is_file($file) || !is_readable($file)) + continue; + $zipFiles[] = $file; + } + + do { + $file = md5(time() . session_id()); + $file = "{$this->config['uploadDir']}/$file.zip"; + } while (file_exists($file)); + + $zip = new ZipArchive(); + $res = $zip->open($file, ZipArchive::CREATE); + if ($res === TRUE) { + foreach ($zipFiles as $cfile) + $zip->addFile($cfile, basename($cfile)); + $zip->close(); + } + header("Content-Type: application/x-zip"); + header('Content-Disposition: attachment; filename="clipboard_' . basename($file) . '"'); + header("Content-Length: " . filesize($file)); + readfile($file); + unlink($file); + die; + } + + protected function act_check4Update() { + if ($this->config['denyUpdateCheck']) + return json_encode(array('version' => false)); + + // Caching HTTP request for 6 hours + if (isset($this->session['checkVersion']) && + isset($this->session['checkVersionTime']) && + ((time() - $this->session['checkVersionTime']) < 21600) + ) + return json_encode(array('version' => $this->session['checkVersion'])); + + $protocol = "http"; + $host = "kcfinder.sunhater.com"; + $port = 80; + $path = "/checkVersion.php"; + + $url = "$protocol://$host:$port$path"; + $pattern = '/^\d+\.\d+$/'; + $responsePattern = '/^[A-Z]+\/\d+\.\d+\s+\d+\s+OK\s*([a-zA-Z0-9\-]+\:\s*[^\n]*\n)*\s*(.*)\s*$/'; + + // file_get_contents() + if (ini_get("allow_url_fopen") && + (false !== ($ver = file_get_contents($url))) && + preg_match($pattern, $ver) + + // HTTP extension + ) {} elseif ( + function_exists("http_get") && + (false !== ($ver = @http_get($url))) && + ( + ( + preg_match($responsePattern, $ver, $match) && + false !== ($ver = $match[2]) + ) || true + ) && + preg_match($pattern, $ver) + + // Curl extension + ) {} elseif ( + function_exists("curl_init") && + (false !== ( $curl = @curl_init($url) )) && + ( @ob_start() || (@curl_close($curl) && false)) && + ( @curl_exec($curl) || (@curl_close($curl) && false)) && + ((false !== ( $ver = @ob_get_clean() )) || (@curl_close($curl) && false)) && + ( @curl_close($curl) || true ) && + preg_match($pattern, $ver) + + // Socket extension + ) {} elseif (function_exists('socket_create')) { + $cmd = + "GET $path " . strtoupper($protocol) . "/1.1\r\n" . + "Host: $host\r\n" . + "Connection: Close\r\n\r\n"; + + if ((false !== ( $socket = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP) )) && + (false !== @socket_connect($socket, $host, $port) ) && + (false !== @socket_write($socket, $cmd, strlen($cmd)) ) && + (false !== ( $ver = @socket_read($socket, 2048) )) && + preg_match($responsePattern, $ver, $match) + ) + $ver = $match[2]; + + if (isset($socket) && is_resource($socket)) + @socket_close($socket); + } + + if (isset($ver) && preg_match($pattern, $ver)) { + $this->session['checkVersion'] = $ver; + $this->session['checkVersionTime'] = time(); + return json_encode(array('version' => $ver)); + } else + return json_encode(array('version' => false)); + } + + protected function moveUploadFile($file, $dir) { + $message = $this->checkUploadedFile($file); + + if ($message !== true) { + if (isset($file['tmp_name'])) + @unlink($file['tmp_name']); + return "{$file['name']}: $message"; + } + + $filename = $this->normalizeFilename($file['name']); + $target = "$dir/" . file::getInexistantFilename($filename, $dir); + + if (!@move_uploaded_file($file['tmp_name'], $target) && + !@rename($file['tmp_name'], $target) && + !@copy($file['tmp_name'], $target) + ) { + @unlink($file['tmp_name']); + return "{$file['name']}: " . $this->label("Cannot move uploaded file to target folder."); + } elseif (function_exists('chmod')) + chmod($target, $this->config['filePerms']); + + $this->makeThumb($target); + return "/" . basename($target); + } + + protected function sendDefaultThumb($file=null) { + if ($file !== null) { + $ext = file::getExtension($file); + $thumb = "themes/{$this->config['theme']}/img/files/big/$ext.png"; + } + if (!isset($thumb) || !file_exists($thumb)) + $thumb = "themes/{$this->config['theme']}/img/files/big/..png"; + header("Content-Type: image/png"); + readfile($thumb); + die; + } + + protected function getFiles($dir) { + $thumbDir = "{$this->config['uploadDir']}/{$this->config['thumbsDir']}/$dir"; + $dir = "{$this->config['uploadDir']}/$dir"; + $return = array(); + $files = dir::content($dir, array('types' => "file")); + if ($files === false) + return $return; + + foreach ($files as $file) { + $size = @getimagesize($file); + if (is_array($size) && count($size)) { + $thumb_file = "$thumbDir/" . basename($file); + if (!is_file($thumb_file)) + $this->makeThumb($file, false); + $smallThumb = + ($size[0] <= $this->config['thumbWidth']) && + ($size[1] <= $this->config['thumbHeight']) && + in_array($size[2], array(IMAGETYPE_GIF, IMAGETYPE_PNG, IMAGETYPE_JPEG)); + } else + $smallThumb = false; + + $stat = stat($file); + if ($stat === false) continue; + $name = basename($file); + $ext = file::getExtension($file); + $bigIcon = file_exists("themes/{$this->config['theme']}/img/files/big/$ext.png"); + $smallIcon = file_exists("themes/{$this->config['theme']}/img/files/small/$ext.png"); + $thumb = file_exists("$thumbDir/$name"); + $return[] = array( + 'name' => stripcslashes($name), + 'size' => $stat['size'], + 'mtime' => $stat['mtime'], + 'date' => @strftime($this->dateTimeSmall, $stat['mtime']), + 'readable' => is_readable($file), + 'writable' => file::isWritable($file), + 'bigIcon' => $bigIcon, + 'smallIcon' => $smallIcon, + 'thumb' => $thumb, + 'smallThumb' => $smallThumb + ); + } + return $return; + } + + protected function getTree($dir, $index=0) { + $path = explode("/", $dir); + + $pdir = ""; + for ($i = 0; ($i <= $index && $i < count($path)); $i++) + $pdir .= "/{$path[$i]}"; + if (strlen($pdir)) + $pdir = substr($pdir, 1); + + $fdir = "{$this->config['uploadDir']}/$pdir"; + + $dirs = $this->getDirs($fdir); + + if (is_array($dirs) && count($dirs) && ($index <= count($path) - 1)) { + + foreach ($dirs as $i => $cdir) { + if ($cdir['hasDirs'] && + ( + ($index == count($path) - 1) || + ($cdir['name'] == $path[$index + 1]) + ) + ) { + $dirs[$i]['dirs'] = $this->getTree($dir, $index + 1); + if (!is_array($dirs[$i]['dirs']) || !count($dirs[$i]['dirs'])) { + unset($dirs[$i]['dirs']); + continue; + } + } + } + } else + return false; + + return $dirs; + } + + protected function postDir($existent=true) { + $dir = $this->typeDir; + if (isset($this->post['dir'])) + $dir .= "/" . $this->post['dir']; + if ($existent && (!is_dir($dir) || !is_readable($dir))) + $this->errorMsg("Inexistant or inaccessible folder."); + return $dir; + } + + protected function getDir($existent=true) { + $dir = $this->typeDir; + if (isset($this->get['dir'])) + $dir .= "/" . $this->get['dir']; + if ($existent && (!is_dir($dir) || !is_readable($dir))) + $this->errorMsg("Inexistant or inaccessible folder."); + return $dir; + } + + protected function getDirs($dir) { + $dirs = dir::content($dir, array('types' => "dir")); + $return = array(); + if (is_array($dirs)) { + $writable = dir::isWritable($dir); + foreach ($dirs as $cdir) { + $info = $this->getDirInfo($cdir); + if ($info === false) continue; + $info['removable'] = $writable && $info['writable']; + $return[] = $info; + } + } + return $return; + } + + protected function getDirInfo($dir, $removable=false) { + if ((substr(basename($dir), 0, 1) == ".") || !is_dir($dir) || !is_readable($dir)) + return false; + $dirs = dir::content($dir, array('types' => "dir")); + if (is_array($dirs)) { + foreach ($dirs as $key => $cdir) + if (substr(basename($cdir), 0, 1) == ".") + unset($dirs[$key]); + $hasDirs = count($dirs) ? true : false; + } else + $hasDirs = false; + + $writable = dir::isWritable($dir); + $info = array( + 'name' => stripslashes(basename($dir)), + 'readable' => is_readable($dir), + 'writable' => $writable, + 'removable' => $removable && $writable && dir::isWritable(dirname($dir)), + 'hasDirs' => $hasDirs + ); + + if ($dir == "{$this->config['uploadDir']}/{$this->session['dir']}") + $info['current'] = true; + + return $info; + } + + protected function output($data=null, $template=null) { + if (!is_array($data)) $data = array(); + if ($template === null) + $template = $this->action; + + if (file_exists("tpl/tpl_$template.php")) { + ob_start(); + $eval = "unset(\$data);unset(\$template);unset(\$eval);"; + $_ = $data; + foreach (array_keys($data) as $key) + if (preg_match('/^[a-z\d_]+$/i', $key)) + $eval .= "\$$key=\$_['$key'];"; + $eval .= "unset(\$_);require \"tpl/tpl_$template.php\";"; + eval($eval); + return ob_get_clean(); + } + + return ""; + } + + protected function errorMsg($message, array $data=null) { + if (in_array($this->action, array("thumb", "upload", "download", "downloadDir"))) + die($this->label($message, $data)); + if (($this->action === null) || ($this->action == "browser")) + $this->backMsg($message, $data); + else { + $message = $this->label($message, $data); + die(json_encode(array('error' => $message))); + } + } +} + +?> \ No newline at end of file diff --git a/core/types/type_img.php b/core/types/type_img.php new file mode 100644 index 0000000..6964569 --- /dev/null +++ b/core/types/type_img.php @@ -0,0 +1,31 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class type_img { + + public function checkFile($file, array $config) { + + $driver = isset($config['imageDriversPriority']) + ? image::getDriver(explode(" ", $config['imageDriversPriority'])) : "gd"; + + $img = image::factory($driver, $file); + + if ($img->initError) + return "Unknown image format/encoding."; + + return true; + } +} + +?> \ No newline at end of file diff --git a/core/types/type_mime.php b/core/types/type_mime.php new file mode 100644 index 0000000..5446796 --- /dev/null +++ b/core/types/type_mime.php @@ -0,0 +1,47 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class type_mime { + + public function checkFile($file, array $config) { + if (!class_exists("finfo")) + return "Fileinfo PECL extension is missing."; + + if (!isset($config['params'])) + return "Undefined MIME types."; + + $finfo = strlen($config['mime_magic']) + ? new finfo(FILEINFO_MIME, $config['mime_magic']) + : new finfo(FILEINFO_MIME); + if (!$finfo) + return "Opening fileinfo database failed."; + + $type = $finfo->file($file); + $type = substr($type, 0, strrpos($type, ";")); + + $mimes = $config['params']; + if (substr($mimes, 0, 1) == "!") { + $mimes = trim(substr($mimes, 1)); + return in_array($type , explode(" ", $mimes)) + ? "You can't upload such files." + : true; + } + + return !in_array($type , explode(" ", $mimes)) + ? "You can't upload such files." + : true; + } +} + +?> \ No newline at end of file diff --git a/core/uploader.php b/core/uploader.php new file mode 100644 index 0000000..029415b --- /dev/null +++ b/core/uploader.php @@ -0,0 +1,728 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class uploader { + +/** Release version */ + const VERSION = "2.52-dev"; + +/** Config session-overrided settings + * @var array */ + protected $config = array(); + +/** Default image driver + * @var string */ + protected $imageDriver = "gd"; + +/** Opener applocation properties + * $opener['name'] Got from $_GET['opener']; + * $opener['CKEditor']['funcNum'] CKEditor function number (got from $_GET) + * $opener['TinyMCE'] Boolean + * @var array */ + protected $opener = array(); + +/** Got from $_GET['type'] or first one $config['types'] array key, if inexistant + * @var string */ + protected $type; + +/** Helper property. Local filesystem path to the Type Directory + * Equivalent: $config['uploadDir'] . "/" . $type + * @var string */ + protected $typeDir; + +/** Helper property. Web URL to the Type Directory + * Equivalent: $config['uploadURL'] . "/" . $type + * @var string */ + protected $typeURL; + +/** Linked to $config['types'] + * @var array */ + protected $types = array(); + +/** Settings which can override default settings if exists as keys in $config['types'][$type] array + * @var array */ + protected $typeSettings = array('disabled', 'theme', 'dirPerms', 'filePerms', 'denyZipDownload', 'maxImageWidth', 'maxImageHeight', 'thumbWidth', 'thumbHeight', 'jpegQuality', 'access', 'filenameChangeChars', 'dirnameChangeChars', 'denyExtensionRename', 'deniedExts', 'watermark'); + +/** Got from language file + * @var string */ + protected $charset; + +/** The language got from $_GET['lng'] or $_GET['lang'] or... Please see next property + * @var string */ + protected $lang = 'en'; + +/** Possible language $_GET keys + * @var array */ + protected $langInputNames = array('lang', 'langCode', 'lng', 'language', 'lang_code'); + +/** Uploaded file(s) info. Linked to first $_FILES element + * @var array */ + protected $file; + +/** Next three properties are got from the current language file + * @var string */ + protected $dateTimeFull; // Currently not used + protected $dateTimeMid; // Currently not used + protected $dateTimeSmall; + +/** Contain Specified language labels + * @var array */ + protected $labels = array(); + +/** Contain unprocessed $_GET array. Please use this instead of $_GET + * @var array */ + protected $get; + +/** Contain unprocessed $_POST array. Please use this instead of $_POST + * @var array */ + protected $post; + +/** Contain unprocessed $_COOKIE array. Please use this instead of $_COOKIE + * @var array */ + protected $cookie; + +/** Session array. Please use this property instead of $_SESSION + * @var array */ + protected $session; + +/** CMS integration attribute (got from $_GET['cms']) + * @var string */ + protected $cms = ""; + +/** Magic method which allows read-only access to protected or private class properties + * @param string $property + * @return mixed */ + public function __get($property) { + return property_exists($this, $property) ? $this->$property : null; + } + + public function __construct() { + + // DISABLE MAGIC QUOTES + if (function_exists('set_magic_quotes_runtime')) + @set_magic_quotes_runtime(false); + + // INPUT INIT + $input = new input(); + $this->get = &$input->get; + $this->post = &$input->post; + $this->cookie = &$input->cookie; + + // SET CMS INTEGRATION ATTRIBUTE + if (isset($this->get['cms']) && + in_array($this->get['cms'], array("drupal")) + ) + $this->cms = $this->get['cms']; + + // LINKING UPLOADED FILE + if (count($_FILES)) + $this->file = &$_FILES[key($_FILES)]; + + // LOAD DEFAULT CONFIGURATION + require "config.php"; + + // SETTING UP SESSION + if (isset($_CONFIG['_sessionLifetime'])) + ini_set('session.gc_maxlifetime', $_CONFIG['_sessionLifetime'] * 60); + if (isset($_CONFIG['_sessionDir'])) + ini_set('session.save_path', $_CONFIG['_sessionDir']); + if (isset($_CONFIG['_sessionDomain'])) + ini_set('session.cookie_domain', $_CONFIG['_sessionDomain']); + switch ($this->cms) { + case "drupal": break; + default: session_start(); break; + } + + // RELOAD DEFAULT CONFIGURATION + require "config.php"; + $this->config = $_CONFIG; + + // LOAD SESSION CONFIGURATION IF EXISTS + if (isset($_CONFIG['_sessionVar']) && + is_array($_CONFIG['_sessionVar']) + ) { + foreach ($_CONFIG['_sessionVar'] as $key => $val) + if ((substr($key, 0, 1) != "_") && isset($_CONFIG[$key])) + $this->config[$key] = $val; + if (!isset($this->config['_sessionVar']['self'])) + $this->config['_sessionVar']['self'] = array(); + $this->session = &$this->config['_sessionVar']['self']; + } else + $this->session = &$_SESSION; + + // IMAGE DRIVER INIT + if (isset($this->config['imageDriversPriority'])) { + $this->config['imageDriversPriority'] = + text::clearWhitespaces($this->config['imageDriversPriority']); + $driver = image::getDriver(explode(' ', $this->config['imageDriversPriority'])); + if ($driver !== false) + $this->imageDriver = $driver; + } + if ((!isset($driver) || ($driver === false)) && + (image::getDriver(array($this->imageDriver)) === false) + ) + die("Cannot find any of the supported PHP image extensions!"); + + // WATERMARK INIT + if (isset($this->config['watermark']) && is_string($this->config['watermark'])) + $this->config['watermark'] = array('file' => $this->config['watermark']); + + // GET TYPE DIRECTORY + $this->types = &$this->config['types']; + $firstType = array_keys($this->types); + $firstType = $firstType[0]; + $this->type = ( + isset($this->get['type']) && + isset($this->types[$this->get['type']]) + ) + ? $this->get['type'] : $firstType; + + // LOAD TYPE DIRECTORY SPECIFIC CONFIGURATION IF EXISTS + if (is_array($this->types[$this->type])) { + foreach ($this->types[$this->type] as $key => $val) + if (in_array($key, $this->typeSettings)) + $this->config[$key] = $val; + $this->types[$this->type] = isset($this->types[$this->type]['type']) + ? $this->types[$this->type]['type'] : ""; + } + + // COOKIES INIT + $ip = '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)'; + $ip = '/^' . implode('\.', array($ip, $ip, $ip, $ip)) . '$/'; + if (preg_match($ip, $_SERVER['HTTP_HOST']) || + preg_match('/^[^\.]+$/', $_SERVER['HTTP_HOST']) + ) + $this->config['cookieDomain'] = ""; + elseif (!strlen($this->config['cookieDomain'])) + $this->config['cookieDomain'] = $_SERVER['HTTP_HOST']; + if (!strlen($this->config['cookiePath'])) + $this->config['cookiePath'] = "/"; + + // UPLOAD FOLDER INIT + + // FULL URL + if (preg_match('/^([a-z]+)\:\/\/([^\/^\:]+)(\:(\d+))?\/(.+)\/?$/', + $this->config['uploadURL'], $patt) + ) { + list($unused, $protocol, $domain, $unused, $port, $path) = $patt; + $path = path::normalize($path); + $this->config['uploadURL'] = "$protocol://$domain" . (strlen($port) ? ":$port" : "") . "/$path"; + $this->config['uploadDir'] = strlen($this->config['uploadDir']) + ? path::normalize($this->config['uploadDir']) + : path::url2fullPath("/$path"); + $this->typeDir = "{$this->config['uploadDir']}/{$this->type}"; + $this->typeURL = "{$this->config['uploadURL']}/{$this->type}"; + + // SITE ROOT + } elseif ($this->config['uploadURL'] == "/") { + $this->config['uploadDir'] = strlen($this->config['uploadDir']) + ? path::normalize($this->config['uploadDir']) + : path::normalize($_SERVER['DOCUMENT_ROOT']); + $this->typeDir = "{$this->config['uploadDir']}/{$this->type}"; + $this->typeURL = "/{$this->type}"; + + // ABSOLUTE & RELATIVE + } else { + $this->config['uploadURL'] = (substr($this->config['uploadURL'], 0, 1) === "/") + ? path::normalize($this->config['uploadURL']) + : path::rel2abs_url($this->config['uploadURL']); + $this->config['uploadDir'] = strlen($this->config['uploadDir']) + ? path::normalize($this->config['uploadDir']) + : path::url2fullPath($this->config['uploadURL']); + $this->typeDir = "{$this->config['uploadDir']}/{$this->type}"; + $this->typeURL = "{$this->config['uploadURL']}/{$this->type}"; + } + if (!is_dir($this->config['uploadDir'])) + @mkdir($this->config['uploadDir'], $this->config['dirPerms']); + + // HOST APPLICATIONS INIT + if (isset($this->get['CKEditorFuncNum'])) + $this->opener['CKEditor']['funcNum'] = $this->get['CKEditorFuncNum']; + if (isset($this->get['opener']) && + (strtolower($this->get['opener']) == "tinymce") && + isset($this->config['_tinyMCEPath']) && + strlen($this->config['_tinyMCEPath']) + ) + $this->opener['TinyMCE'] = true; + + // LOCALIZATION + foreach ($this->langInputNames as $key) + if (isset($this->get[$key]) && + preg_match('/^[a-z][a-z\._\-]*$/i', $this->get[$key]) && + file_exists("lang/" . strtolower($this->get[$key]) . ".php") + ) { + $this->lang = $this->get[$key]; + break; + } + $this->localize($this->lang); + + // CHECK & MAKE DEFAULT .htaccess + if (isset($this->config['_check4htaccess']) && + $this->config['_check4htaccess'] + ) { + $htaccess = "{$this->config['uploadDir']}/.htaccess"; + if (!file_exists($htaccess)) { + if (!@file_put_contents($htaccess, $this->get_htaccess())) + $this->backMsg("Cannot write to upload folder. {$this->config['uploadDir']}"); + } else { + if (false === ($data = @file_get_contents($htaccess))) + $this->backMsg("Cannot read .htaccess"); + if (($data != $this->get_htaccess()) && !@file_put_contents($htaccess, $data)) + $this->backMsg("Incorrect .htaccess file. Cannot rewrite it!"); + } + } + + // CHECK & CREATE UPLOAD FOLDER + if (!is_dir($this->typeDir)) { + if (!mkdir($this->typeDir, $this->config['dirPerms'])) + $this->backMsg("Cannot create {dir} folder.", array('dir' => $this->type)); + } elseif (!is_readable($this->typeDir)) + $this->backMsg("Cannot read upload folder."); + } + + public function upload() { + $config = &$this->config; + $file = &$this->file; + $url = $message = ""; + + if ($config['disabled'] || !$config['access']['files']['upload']) { + if (isset($file['tmp_name'])) @unlink($file['tmp_name']); + $message = $this->label("You don't have permissions to upload files."); + + } elseif (true === ($message = $this->checkUploadedFile())) { + $message = ""; + + $dir = "{$this->typeDir}/"; + if (isset($this->get['dir']) && + (false !== ($gdir = $this->checkInputDir($this->get['dir']))) + ) { + $udir = path::normalize("$dir$gdir"); + if (substr($udir, 0, strlen($dir)) !== $dir) + $message = $this->label("Unknown error."); + else { + $l = strlen($dir); + $dir = "$udir/"; + $udir = substr($udir, $l); + } + } + + if (!strlen($message)) { + if (!is_dir(path::normalize($dir))) + @mkdir(path::normalize($dir), $this->config['dirPerms'], true); + + $filename = $this->normalizeFilename($file['name']); + $target = file::getInexistantFilename($dir . $filename); + + if (!@move_uploaded_file($file['tmp_name'], $target) && + !@rename($file['tmp_name'], $target) && + !@copy($file['tmp_name'], $target) + ) + $message = $this->label("Cannot move uploaded file to target folder."); + else { + if (function_exists('chmod')) + @chmod($target, $this->config['filePerms']); + $this->makeThumb($target); + $url = $this->typeURL; + if (isset($udir)) $url .= "/$udir"; + $url .= "/" . basename($target); + if (preg_match('/^([a-z]+)\:\/\/([^\/^\:]+)(\:(\d+))?\/(.+)$/', $url, $patt)) { + list($unused, $protocol, $domain, $unused, $port, $path) = $patt; + $base = "$protocol://$domain" . (strlen($port) ? ":$port" : "") . "/"; + $url = $base . path::urlPathEncode($path); + } else + $url = path::urlPathEncode($url); + } + } + } + + if (strlen($message) && + isset($this->file['tmp_name']) && + file_exists($this->file['tmp_name']) + ) + @unlink($this->file['tmp_name']); + + if (strlen($message) && method_exists($this, 'errorMsg')) + $this->errorMsg($message); + $this->callBack($url, $message); + } + + protected function normalizeFilename($filename) { + if (isset($this->config['filenameChangeChars']) && + is_array($this->config['filenameChangeChars']) + ) + $filename = strtr($filename, $this->config['filenameChangeChars']); + return $filename; + } + + protected function normalizeDirname($dirname) { + if (isset($this->config['dirnameChangeChars']) && + is_array($this->config['dirnameChangeChars']) + ) + $dirname = strtr($dirname, $this->config['dirnameChangeChars']); + return $dirname; + } + + protected function checkUploadedFile(array $aFile=null) { + $config = &$this->config; + $file = ($aFile === null) ? $this->file : $aFile; + + if (!is_array($file) || !isset($file['name'])) + return $this->label("Unknown error"); + + if (is_array($file['name'])) { + foreach ($file['name'] as $i => $name) { + $return = $this->checkUploadedFile(array( + 'name' => $name, + 'tmp_name' => $file['tmp_name'][$i], + 'error' => $file['error'][$i] + )); + if ($return !== true) + return "$name: $return"; + } + return true; + } + + $extension = file::getExtension($file['name']); + $typePatt = strtolower(text::clearWhitespaces($this->types[$this->type])); + + // CHECK FOR UPLOAD ERRORS + if ($file['error']) + return + ($file['error'] == UPLOAD_ERR_INI_SIZE) ? + $this->label("The uploaded file exceeds {size} bytes.", + array('size' => ini_get('upload_max_filesize'))) : ( + ($file['error'] == UPLOAD_ERR_FORM_SIZE) ? + $this->label("The uploaded file exceeds {size} bytes.", + array('size' => $this->get['MAX_FILE_SIZE'])) : ( + ($file['error'] == UPLOAD_ERR_PARTIAL) ? + $this->label("The uploaded file was only partially uploaded.") : ( + ($file['error'] == UPLOAD_ERR_NO_FILE) ? + $this->label("No file was uploaded.") : ( + ($file['error'] == UPLOAD_ERR_NO_TMP_DIR) ? + $this->label("Missing a temporary folder.") : ( + ($file['error'] == UPLOAD_ERR_CANT_WRITE) ? + $this->label("Failed to write file.") : + $this->label("Unknown error.") + ))))); + + // HIDDEN FILENAMES CHECK + elseif (substr($file['name'], 0, 1) == ".") + return $this->label("File name shouldn't begins with '.'"); + + // EXTENSION CHECK + elseif (!$this->validateExtension($extension, $this->type)) + return $this->label("Denied file extension."); + + // SPECIAL DIRECTORY TYPES CHECK (e.g. *img) + elseif (preg_match('/^\*([^ ]+)(.*)?$/s', $typePatt, $patt)) { + list($typePatt, $type, $params) = $patt; + if (class_exists("type_$type")) { + $class = "type_$type"; + $type = new $class(); + $cfg = $config; + $cfg['filename'] = $file['name']; + if (strlen($params)) + $cfg['params'] = trim($params); + $response = $type->checkFile($file['tmp_name'], $cfg); + if ($response !== true) + return $this->label($response); + } else + return $this->label("Non-existing directory type."); + } + + // IMAGE RESIZE + $img = image::factory($this->imageDriver, $file['tmp_name']); + if (!$img->initError && !$this->imageResize($img, $file['tmp_name'])) + return $this->label("The image is too big and/or cannot be resized."); + + return true; + } + + protected function checkInputDir($dir, $inclType=true, $existing=true) { + $dir = path::normalize($dir); + if (substr($dir, 0, 1) == "/") + $dir = substr($dir, 1); + + if ((substr($dir, 0, 1) == ".") || (substr(basename($dir), 0, 1) == ".")) + return false; + + if ($inclType) { + $first = explode("/", $dir); + $first = $first[0]; + if ($first != $this->type) + return false; + $return = $this->removeTypeFromPath($dir); + } else { + $return = $dir; + $dir = "{$this->type}/$dir"; + } + + if (!$existing) + return $return; + + $path = "{$this->config['uploadDir']}/$dir"; + return (is_dir($path) && is_readable($path)) ? $return : false; + } + + protected function validateExtension($ext, $type) { + $ext = trim(strtolower($ext)); + if (!isset($this->types[$type])) + return false; + + $exts = strtolower(text::clearWhitespaces($this->config['deniedExts'])); + if (strlen($exts)) { + $exts = explode(" ", $exts); + if (in_array($ext, $exts)) + return false; + } + + $exts = trim($this->types[$type]); + if (!strlen($exts) || substr($exts, 0, 1) == "*") + return true; + + if (substr($exts, 0, 1) == "!") { + $exts = explode(" ", trim(strtolower(substr($exts, 1)))); + return !in_array($ext, $exts); + } + + $exts = explode(" ", trim(strtolower($exts))); + return in_array($ext, $exts); + } + + protected function getTypeFromPath($path) { + return preg_match('/^([^\/]*)\/.*$/', $path, $patt) + ? $patt[1] : $path; + } + + protected function removeTypeFromPath($path) { + return preg_match('/^[^\/]*\/(.*)$/', $path, $patt) + ? $patt[1] : ""; + } + + protected function imageResize($image, $file=null) { + + if (!($image instanceof image)) { + $img = image::factory($this->imageDriver, $image); + if ($img->initError) return false; + $file = $image; + } elseif ($file === null) + return false; + else + $img = $image; + + $orientation = 1; + if (function_exists("exif_read_data")) { + $orientation = @exif_read_data($file); + $orientation = isset($orientation['Orientation']) ? $orientation['Orientation'] : 1; + } + + // IMAGE WILL NOT BE RESIZED WHEN NO WATERMARK AND SIZE IS ACCEPTABLE + if (( + !isset($this->config['watermark']['file']) || + (!strlen(trim($this->config['watermark']['file']))) + ) && ( + ( + !$this->config['maxImageWidth'] && + !$this->config['maxImageHeight'] + ) || ( + ($img->width <= $this->config['maxImageWidth']) && + ($img->height <= $this->config['maxImageHeight']) + ) + ) && + ($orientation == 1) + ) + return true; + + + // PROPORTIONAL RESIZE + if ((!$this->config['maxImageWidth'] || !$this->config['maxImageHeight'])) { + + if ($this->config['maxImageWidth'] && + ($this->config['maxImageWidth'] < $img->width) + ) { + $width = $this->config['maxImageWidth']; + $height = $img->getPropHeight($width); + + } elseif ( + $this->config['maxImageHeight'] && + ($this->config['maxImageHeight'] < $img->height) + ) { + $height = $this->config['maxImageHeight']; + $width = $img->getPropWidth($height); + } + + if (isset($width) && isset($height) && !$img->resize($width, $height)) + return false; + + // RESIZE TO FIT + } elseif ( + $this->config['maxImageWidth'] && $this->config['maxImageHeight'] && + !$img->resizeFit($this->config['maxImageWidth'], $this->config['maxImageHeight']) + ) + return false; + + // AUTO FLIP AND ROTATE FROM EXIF + if ((($orientation == 2) && !$img->flipHorizontal()) || + (($orientation == 3) && !$img->rotate(180)) || + (($orientation == 4) && !$img->flipVertical()) || + (($orientation == 5) && (!$img->flipVertical() || !$img->rotate(90))) || + (($orientation == 6) && !$img->rotate(90)) || + (($orientation == 7) && (!$img->flipHorizontal() || !$img->rotate(90))) || + (($orientation == 8) && !$img->rotate(270)) + ) + return false; + if (($orientation >= 2) && ($orientation <= 8) && ($this->imageDriver == "imagick")) + try { + $img->image->setImageProperty('exif:Orientation', "1"); + } catch (Exception $e) {} + + // WATERMARK + if (isset($this->config['watermark']['file']) && + is_file($this->config['watermark']['file']) + ) { + $left = isset($this->config['watermark']['left']) + ? $this->config['watermark']['left'] : false; + $top = isset($this->config['watermark']['top']) + ? $this->config['watermark']['top'] : false; + $img->watermark($this->config['watermark']['file'], $left, $top); + } + + // WRITE TO FILE + return $img->output("jpeg", array( + 'file' => $file, + 'quality' => $this->config['jpegQuality'] + )); + } + + protected function makeThumb($file, $overwrite=true) { + $img = image::factory($this->imageDriver, $file); + + // Drop files which are not images + if ($img->initError) + return true; + + $thumb = substr($file, strlen($this->config['uploadDir'])); + $thumb = $this->config['uploadDir'] . "/" . $this->config['thumbsDir'] . "/" . $thumb; + $thumb = path::normalize($thumb); + $thumbDir = dirname($thumb); + if (!is_dir($thumbDir) && !@mkdir($thumbDir, $this->config['dirPerms'], true)) + return false; + + if (!$overwrite && is_file($thumb)) + return true; + + // Images with smaller resolutions than thumbnails + if (($img->width <= $this->config['thumbWidth']) && + ($img->height <= $this->config['thumbHeight']) + ) { + list($tmp, $tmp, $type) = @getimagesize($file); + // Drop only browsable types + if (in_array($type, array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG))) + return true; + + // Resize image + } elseif (!$img->resizeFit($this->config['thumbWidth'], $this->config['thumbHeight'])) + return false; + + // Save thumbnail + return $img->output("jpeg", array( + 'file' => $thumb, + 'quality' => $this->config['jpegQuality'] + )); + } + + protected function localize($langCode) { + require "lang/{$langCode}.php"; + setlocale(LC_ALL, $lang['_locale']); + $this->charset = $lang['_charset']; + $this->dateTimeFull = $lang['_dateTimeFull']; + $this->dateTimeMid = $lang['_dateTimeMid']; + $this->dateTimeSmall = $lang['_dateTimeSmall']; + unset($lang['_locale']); + unset($lang['_charset']); + unset($lang['_dateTimeFull']); + unset($lang['_dateTimeMid']); + unset($lang['_dateTimeSmall']); + $this->labels = $lang; + } + + protected function label($string, array $data=null) { + $return = isset($this->labels[$string]) ? $this->labels[$string] : $string; + if (is_array($data)) + foreach ($data as $key => $val) + $return = str_replace("{{$key}}", $val, $return); + return $return; + } + + protected function backMsg($message, array $data=null) { + $message = $this->label($message, $data); + if (isset($this->file['tmp_name']) && file_exists($this->file['tmp_name'])) + @unlink($this->file['tmp_name']); + $this->callBack("", $message); + die; + } + + protected function callBack($url, $message="") { + $message = text::jsValue($message); + $CKfuncNum = isset($this->opener['CKEditor']['funcNum']) + ? $this->opener['CKEditor']['funcNum'] : 0; + if (!$CKfuncNum) $CKfuncNum = 0; + header("Content-Type: text/html; charset={$this->charset}"); + +?> + + + + + php_value engine off + + + php_value engine off + +"; + } +} + +?> \ No newline at end of file diff --git a/css.php b/css.php new file mode 100644 index 0000000..f4b0ede --- /dev/null +++ b/css.php @@ -0,0 +1,257 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +require "core/autoload.php"; +$mtime = @filemtime(__FILE__); +if ($mtime) httpCache::checkMTime($mtime); +$browser = new browser(); +$config = $browser->config; +ob_start(); + +?> +html, body { + overflow: hidden; +} + +body, form, th, td { + margin: 0; + padding: 0; +} + +a { + cursor:pointer; +} + +* { + font-family: Tahoma, Verdana, Arial, sans-serif; + font-size: 11px; +} + +table { + border-collapse: collapse; +} + +#all { + vvisibility: hidden; +} + +#left { + float: left; + display: block; + width: 25%; +} + +#right { + float: left; + display: block; + width: 75%; +} + +#settings { + display: none; + padding: 0; + float: left; + width: 100%; +} + +#settings > div { + float: left; +} + +#folders { + padding: 5px; + overflow: auto; +} + +#toolbar { + padding: 5px; +} + +#files { + padding: 5px; + overflow: auto; +} + +#status { + padding: 5px; + float: left; + overflow: hidden; +} + +#fileinfo { + float: left; +} + +#clipboard div { + width: 16px; + height: 16px; +} + +.folders { + margin-left: 16px; +} + +div.file { + overflow-x: hidden; + width: px; + float: left; + text-align: center; + cursor: default; + white-space: nowrap; +} + +div.file .thumb { + width: px; + height: px; + background: no-repeat center center; +} + +#files table { + width: 100%; +} + +tr.file { + cursor: default; +} + +tr.file > td { + white-space: nowrap; +} + +tr.file > td.name { + background-repeat: no-repeat; + background-position: left center; + padding-left: 20px; + width: 100%; +} + +tr.file > td.time, +tr.file > td.size { + text-align: right; +} + +#toolbar { + cursor: default; + white-space: nowrap; +} + +#toolbar a { + padding-left: 20px; + text-decoration: none; + background: no-repeat left center; +} + +#toolbar a:hover, a[href="#upload"].uploadHover { + color: #000; +} + +#upload { + position: absolute; + overflow: hidden; + opacity: 0; + filter: alpha(opacity:0); +} + +#upload input { + cursor: pointer; +} + +#uploadResponse { + display: none; +} + +span.brace { + padding-left: 11px; + cursor: default; +} + +span.brace.opened, span.brace.closed { + cursor: pointer; +} + +#shadow { + position: absolute; + top: 0; + left: 0; + display: none; + background: #000; + z-index: 100; + opacity: 0.7; + filter: alpha(opacity:50); +} + +#dialog, #clipboard, #alert { + position: absolute; + display: none; + z-index: 101; + cursor: default; +} + +#dialog .box, #alert { + max-width: 350px; +} + +#alert { + z-index: 102; +} + +#alert div.message { + overflow-y: auto; + overflow-x: hidden; +} + +#clipboard { + z-index: 99; +} + +#loading { + display: none; + float: right; +} + +.menu { + background: #888; + white-space: nowrap; +} + +.menu a { + display: block; +} + +.menu .list { + max-height: 0; + overflow-y: auto; + overflow-x: hidden; + white-space: nowrap; +} + +.file .access, .file .hasThumb { + display: none; +} + +#dialog img { + cursor: pointer; +} + +#resizer { + position: absolute; + z-index: 98; + top: 0; + background: #000; + opacity: 0; + filter: alpha(opacity:0); +} + +Order allow,deny +Deny from all + diff --git a/doc/BEFORE_RELEASE b/doc/BEFORE_RELEASE new file mode 100644 index 0000000..40dd345 --- /dev/null +++ b/doc/BEFORE_RELEASE @@ -0,0 +1,16 @@ +!!! THINGS TO DO BEFORE ZIPPING NEW PACKAGES !!! + +* Delete .git directory + +* Change version numbers in all source files, doc/README and core/uploader.php + VERSION class constant + +* Edit doc/Changelog file (also in dev version) + +* config.php changes: + 'disabled' => true, + 'uploadURL' => "upload", + +* Change version numbers in dev (Git) version + +* Delete this file \ No newline at end of file diff --git a/doc/Changelog b/doc/Changelog new file mode 100644 index 0000000..4191861 --- /dev/null +++ b/doc/Changelog @@ -0,0 +1,141 @@ + +VERSION 2.51 - 2010-08-25 +------------------------- +* Drag and drop uploading plugin - big fixes +* Cookies problem when using single words or IPs as hostname resolved +* Vietnamese localization + + +VERSION 2.5 - 2010-08-23 +------------------------ +* Drupal module support +* Drag and drop uploading plugin +* Two more language labels +* Localhost cookies bugfix +* Renaming current folder bugfix +* Small bugfixes + + +VERSION 2.41 - 2010-07-24 +------------------------- +* Directory types engine improvement +* New 'denyExtensionRename' config setting added + + +VERSION 2.4 - 2010-07-20 +------------------------ +* Online checking if new version is released in About box. To use this + feature you should to have Curl, HTTP or Socket extension, or + allow_url_fopen ini setting should be "on" +* New 'denyUpdateCheck' config setting added +* New 'dark' theme added (made by Dark Preacher) +* Additional 'theme' GET parameter to choose a theme from URL +* Thumbnails loading improvement +* Some changes in Oxygen CSS theme +* Replace alert() and confirm() JavaScript functions with good-looking boxes +* Safari 3 right-click fix +* Small bugfixes + + +VERSION 2.32 - 2010-07-11 +------------------------- +* 'filenameChangeChars' and 'dirnameChangeChars' config settings added +* Content-Type header fix for css.php, js_localize.php and + js/browser/joiner.php +* CKEditorFuncNum with index 0 bugfix +* Session save handler example in core/autoload.php + + +VERSION 2.31 - 2010-07-01 +------------------------- +* Proportional uploaded image resize bugfix +* Slideshow bugfixes +* Other small bugfixes + + +VERSION 2.3 - 2010-06-25 +------------------------ +* Replace XML Ajax responses with JSON +* Replace old 'readonly' config option with advanced 'access' option + PLEASE UPDATE YOUR OLD CONFIG FILE!!! +* Slideshow images in current folder using arrow keys +* Multipe files upload similar to Facebook upload (not works in IE!) +* Option to set protocol, domain and port in 'uploadURL' setting +* Bugfixes + + +VERSION 2.21 - 2010-11-19 +------------------------- +* Bugfixes only + + +VERSION 2.2 - 2010-07-27 +------------------------ +* Many bugfixes +* Read-only config option + + +VERSION 2.1 - 2010-07-04 +------------------------ +* Endless JavaScript loop on KCFinder disable bugfix +* New config setting whether to generate .htaccess file in upload folder +* Upload to specified folder from CKEditor & FCKeditor direct upload dialog +* Select multiple files bugfixes + + +VERSION 2.0 - 2010-07-01 +------------------------ +* Brand new core +* Option to resize files/folders panels with mouse drag +* Select multiple files with Ctrl key +* Return list of files to custom integrating application +* Animated folder tree +* Directory Type specific configuration settings +* Download multiple files or a folder as ZIP file + + +VERSION 1.7 - 2010-06-17 +------------------------ +* Maximize toolbar button +* Clipboard for copying and moving multiple files +* Show warning if the browser is not capable to display KCFinder +* Google Chrome Frame support for old versions of Internet Explorer + + +VERSION 1.6 - 2010-06-02 +------------------------ +* Support of Windows Apache server +* Support of Fileinfo PHP extension to detect mime types (*mime directory type) +* Option to deny globaly some dangerous extensions like exe, php, pl, cgi etc +* Check for denied file extension on file rename +* Disallow to upload hidden files (with names begins with .) +* Missing last character of filenames without extension bugfix +* Some small bugfixes + + +VERSION 1.5 - 2010-05-30 +------------------------ +* Filenames with spaces download bugfix +* FCKEditor direct upload bugfix +* Thumbnail generation bugfixes + + +VERSION 1.4 - 2010-05-24 +------------------------ +* Client-side caching bugfix +* Custom integrations - window.KCFinder.callBack() +* Security fixes + + +VERSION 1.3 - 2010-05-06 +------------------------ +* Another session bugfix. Now session configuratin works! +* Show filename by default bugfix +* Loading box on top right corner + + +VERSION 1.2 - 2010-05-03 +------------------------ +* Thumbnail generation bugfix +* Session bugfix +* other small bugfixes diff --git a/doc/LICENSE.GPL b/doc/LICENSE.GPL new file mode 100644 index 0000000..c968251 --- /dev/null +++ b/doc/LICENSE.GPL @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/doc/LICENSE.LGPL b/doc/LICENSE.LGPL new file mode 100644 index 0000000..9a3408f --- /dev/null +++ b/doc/LICENSE.LGPL @@ -0,0 +1,167 @@ +GNU Lesser General Public License +Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + + [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] + +Preamble + +The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. + +This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. + +When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. + +To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. + +For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. + +We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. + +To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. + +Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. + +Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. + +When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. + +We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. + +For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. + +In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. + +Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. + +The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". + +A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. + +The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) + +"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. + +Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. + +1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. + +You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. + + (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) + + These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. + + Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. + + In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. + +3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. + +Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. + +This option is useful when you wish to copy part of the code of the Library into a program that is not a library. + +4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. + +If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. + +5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. + +However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. + +When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. + +If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) + +Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. + +6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. + +You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: + + a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. + + e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. + +For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. + +It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. + +7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. + + b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. + +8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. + +9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. + +10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. + +11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. + +This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. + +12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. + +13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. + +14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. + +NO WARRANTY + +15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +END OF TERMS AND CONDITIONS +How to Apply These Terms to Your New Libraries +If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). + +To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. + + Copyright (C) + + This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + signature of Ty Coon, 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! diff --git a/doc/README b/doc/README new file mode 100644 index 0000000..7f6b056 --- /dev/null +++ b/doc/README @@ -0,0 +1,78 @@ +[===========================< KCFinder 2.52-dev >================================] +[ ] +[ Copyright 2010, 2011 KCFinder Project ] +[ http://kcfinder.sunhater.com ] +[ Pavel Tzonkov ] +[ ] +[============================================================================] + + +I. DESCRIPTION + + KCFinder free open-source alternative to the CKFinder Web file manager. It + can be integrated into FCKeditor, CKEditor, and TinyMCE WYSIWYG web + editors or your custom web applications to upload and manage images, flash + movies, and other files that can be embedded in an editor's generated HTML + content. Only PHP server-side scripting is supported. + + +II. FEATURES + + 1. Ajax engine with JSON responses. + + 2. Easy to integrate and configure in web applications. + + 3. Clipboard for copy and move multiple files + + 4. Select multiple files with Ctrl key + + 5. Download multiple files or a folder as ZIP file + + 6. Resize bigger uploaded images. Configurable maximum image resolution. + + 7. Configurable thumbnail resolution. + + 8. Visual themes. + + 9. Multilanguage system. + + 10. Slideshow. + + 11. Multiple files upload (ala Facebook) + + 12. Drag and drop uploading + + +III. REQUIREMENTS + + 1. Web server (only Apache 2 is well tested) + + 2. PHP 5.x.x. with GD extension. Safe mode should be disabled. To work + with client-side HTTP cache, the PHP must be installed as Apache + module. + + 3. PHP ZIP extension for multiple files download. If it's not available, + KCFinder will work but without this feature. + + 4. PHP Fileinfo extension if you want to check file's MIME type before + moving to upload directory. PHP versions lesser than 5.3 needs to + install Fileinfo PECL extension: http://pecl.php.net/package/Fileinfo + + 5. Modern browser (not IE6!). + + +IV. INSTALLATION + + See http://kcfinder.sunhater.com/install + + +V. USED 3RD PARTY SOFTWARE + + 1. jQuery JavaScript library v1.4.2 - http://www.jquery.com + + 2. jQuery Right-Click Plugin v1.01 - http://abeautifulsite.net/notebook/68 + + 3. jquery.event.drag Plugin v2.0.0 - http://threedubmedia.com/code/event/drag + + 4. In realization of "oxygen" theme were used icons and color schemes of + default KDE4 theme - http://www.kde.org diff --git a/integration/.htaccess b/integration/.htaccess new file mode 100644 index 0000000..d61b264 --- /dev/null +++ b/integration/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + diff --git a/integration/drupal.php b/integration/drupal.php new file mode 100644 index 0000000..d0cb5cc --- /dev/null +++ b/integration/drupal.php @@ -0,0 +1,115 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +// gets a valid drupal_path +function get_drupal_path() { + if (!empty($_SERVER['SCRIPT_FILENAME'])) { + $drupal_path = dirname(dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME'])))); + if (!file_exists($drupal_path . '/includes/bootstrap.inc')) { + $drupal_path = dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME']))); + $depth = 2; + do { + $drupal_path = dirname($drupal_path); + $depth++; + } while (!($bootstrap_file_found = file_exists($drupal_path . '/includes/bootstrap.inc')) && $depth < 10); + } + } + + if (!isset($bootstrap_file_found) || !$bootstrap_file_found) { + $drupal_path = '../../../../..'; + if (!file_exists($drupal_path . '/includes/bootstrap.inc')) { + $drupal_path = '../..'; + do { + $drupal_path .= '/..'; + $depth = substr_count($drupal_path, '..'); + } while (!($bootstrap_file_found = file_exists($drupal_path . '/includes/bootstrap.inc')) && $depth < 10); + } + } + return $drupal_path; +} + +function CheckAuthentication($drupal_path) { + + static $authenticated; + + if (!isset($authenticated)) { + + if (!isset($bootstrap_file_found) || $bootstrap_file_found) { + $current_cwd = getcwd(); + if (!defined('DRUPAL_ROOT')){ + define('DRUPAL_ROOT', $drupal_path); + } + + // Simulate being in the drupal root folder so we can share the session + chdir(DRUPAL_ROOT); + + global $base_url; + $base_root = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http'; + $base_url = $base_root .= '://'. preg_replace('/[^a-z0-9-:._]/i', '', $_SERVER['HTTP_HOST']); + + if ($dir = trim(dirname($_SERVER['SCRIPT_NAME']), '\,/')) { + $base_path = "/$dir"; + $base_url .= $base_path; + } + + // correct base_url so it points to Drupal root + $pos = strpos($base_url, '/sites/'); + $base_url = substr($base_url, 0, $pos); // drupal root absolute url + + // If we aren't in a Drupal installation, or if Drupal path hasn't been properly found, die + if(!file_exists(DRUPAL_ROOT . '/includes/bootstrap.inc')) { + die("The CMS integration service for -drupal- requires KCFinder to be properly placed inside your Drupal installation."); + } + + + // bootstrap + require_once(DRUPAL_ROOT . '/includes/bootstrap.inc'); + drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); + + // if user has access permission... + if (user_access('access kcfinder')) { + if (!isset($_SESSION['KCFINDER'])) { + $_SESSION['KCFINDER'] = array(); + $_SESSION['KCFINDER']['disabled'] = false; + } + + // User has permission, so make sure KCFinder is not disabled! + if(!isset($_SESSION['KCFINDER']['disabled'])) { + $_SESSION['KCFINDER']['disabled'] = false; + } + + global $user; + $_SESSION['KCFINDER']['uploadURL'] = strtr(variable_get('kcfinder_upload_url', 'sites/default/files/kcfinder'), array('%u' => $user->uid, '%n' => $user->name)); + $_SESSION['KCFINDER']['uploadDir'] = strtr(variable_get('kcfinder_upload_dir', ''), array('%u' => $user->uid, '%n' => $user->name)); + $_SESSION['KCFINDER']['theme'] = variable_get('kcfinder_theme', 'oxygen'); + + //echo '
uploadURL: ' . $_SESSION['KCFINDER']['uploadURL']
; + //echo '
uploadDir: ' . $_SESSION['KCFINDER']['uploadDir']
; + + chdir($current_cwd); + + return true; + } + + chdir($current_cwd); + return false; + } + } +} + +CheckAuthentication(get_drupal_path()); + +spl_autoload_register('__autoload'); + +?> \ No newline at end of file diff --git a/js/browser/0bject.js b/js/browser/0bject.js new file mode 100644 index 0000000..1e3c9e5 --- /dev/null +++ b/js/browser/0bject.js @@ -0,0 +1,24 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */?> + +var browser = { + opener: {}, + support: {}, + files: [], + clipboard: [], + labels: [], + shows: [], + orders: [], + cms: "" +}; diff --git a/js/browser/clipboard.js b/js/browser/clipboard.js new file mode 100644 index 0000000..068bb8a --- /dev/null +++ b/js/browser/clipboard.js @@ -0,0 +1,299 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */?> + +browser.initClipboard = function() { + if (!this.clipboard || !this.clipboard.length) return; + var size = 0; + $.each(this.clipboard, function(i, val) { + size += parseInt(val.size); + }); + size = this.humanSize(size); + $('#clipboard').html('
'); + var resize = function() { + $('#clipboard').css({ + left: $(window).width() - $('#clipboard').outerWidth() + 'px', + top: $(window).height() - $('#clipboard').outerHeight() + 'px' + }); + }; + resize(); + $('#clipboard').css('display', 'block'); + $(window).unbind(); + $(window).resize(function() { + browser.resize(); + resize(); + }); +}; + +browser.openClipboard = function() { + if (!this.clipboard || !this.clipboard.length) return; + if ($('.menu a[href="kcact:cpcbd"]').html()) { + $('#clipboard').removeClass('selected'); + this.hideDialog(); + return; + } + var html = ''; + + setTimeout(function() { + $('#clipboard').addClass('selected'); + $('#dialog').html(html); + $('.menu a[href="kcact:download"]').click(function() { + browser.hideDialog(); + browser.downloadClipboard(); + return false; + }); + $('.menu a[href="kcact:cpcbd"]').click(function() { + if (!browser.dirWritable) return false; + browser.hideDialog(); + browser.copyClipboard(browser.dir); + return false; + }); + $('.menu a[href="kcact:mvcbd"]').click(function() { + if (!browser.dirWritable) return false; + browser.hideDialog(); + browser.moveClipboard(browser.dir); + return false; + }); + $('.menu a[href="kcact:rmcbd"]').click(function() { + browser.hideDialog(); + browser.confirm( + browser.label("Are you sure you want to delete all files in the Clipboard?"), + function(callBack) { + if (callBack) callBack(); + browser.deleteClipboard(); + } + ); + return false; + }); + $('.menu a[href="kcact:clrcbd"]').click(function() { + browser.hideDialog(); + browser.clearClipboard(); + return false; + }); + + var left = $(window).width() - $('#dialog').outerWidth(); + var top = $(window).height() - $('#dialog').outerHeight() - $('#clipboard').outerHeight(); + var lheight = top + _.outerTopSpace('#dialog'); + $('.menu .list').css('max-height', lheight + 'px'); + var top = $(window).height() - $('#dialog').outerHeight() - $('#clipboard').outerHeight(); + $('#dialog').css({ + left: (left - 4) + 'px', + top: top + 'px' + }); + $('#dialog').fadeIn(); + }, 1); +}; + +browser.removeFromClipboard = function(i) { + if (!this.clipboard || !this.clipboard[i]) return false; + if (this.clipboard.length == 1) { + this.clearClipboard(); + this.hideDialog(); + return; + } + + if (i < this.clipboard.length - 1) { + var last = this.clipboard.slice(i + 1); + this.clipboard = this.clipboard.slice(0, i); + this.clipboard = this.clipboard.concat(last); + } else + this.clipboard.pop(); + + this.initClipboard(); + this.hideDialog(); + this.openClipboard(); + return true; +}; + +browser.copyClipboard = function(dir) { + if (!this.clipboard || !this.clipboard.length) return; + var files = []; + var failed = 0; + for (i = 0; i < this.clipboard.length; i++) + if (this.clipboard[i].readable) + files[i] = this.clipboard[i].dir + '/' + this.clipboard[i].name; + else + failed++; + if (this.clipboard.length == failed) { + browser.alert(this.label("The files in the Clipboard are not readable.")); + return; + } + var go = function(callBack) { + if (dir == browser.dir) + browser.fadeFiles(); + $.ajax({ + type: 'POST', + dataType: 'json', + url: browser.baseGetData('cp_cbd'), + data: {dir: dir, files: files}, + async: false, + success: function(data) { + if (callBack) callBack(); + browser.check4errors(data); + browser.clearClipboard(); + if (dir == browser.dir) + browser.refresh(); + }, + error: function() { + if (callBack) callBack(); + $('#files > div').css({ + opacity: '', + filter: '' + }); + browser.alert(browser.label("Unknown error.")); + } + }); + }; + + if (failed) + browser.confirm( + browser.label("{count} files in the Clipboard are not readable. Do you want to copy the rest?", {count:failed}), + go + ) + else + go(); + +}; + +browser.moveClipboard = function(dir) { + if (!this.clipboard || !this.clipboard.length) return; + var files = []; + var failed = 0; + for (i = 0; i < this.clipboard.length; i++) + if (this.clipboard[i].readable && this.clipboard[i].writable) + files[i] = this.clipboard[i].dir + "/" + this.clipboard[i].name; + else + failed++; + if (this.clipboard.length == failed) { + browser.alert(this.label("The files in the Clipboard are not movable.")) + return; + } + + var go = function(callBack) { + browser.fadeFiles(); + $.ajax({ + type: 'POST', + dataType: 'json', + url: browser.baseGetData('mv_cbd'), + data: {dir: dir, files: files}, + async: false, + success: function(data) { + if (callBack) callBack(); + browser.check4errors(data); + browser.clearClipboard(); + browser.refresh(); + }, + error: function() { + if (callBack) callBack(); + $('#files > div').css({ + opacity: '', + filter: '' + }); + browser.alert(browser.label("Unknown error.")); + } + }); + }; + + if (failed) + browser.confirm( + browser.label("{count} files in the Clipboard are not movable. Do you want to move the rest?", {count: failed}), + go + ); + else + go(); +}; + +browser.deleteClipboard = function() { + if (!this.clipboard || !this.clipboard.length) return; + var files = []; + var failed = 0; + for (i = 0; i < this.clipboard.length; i++) + if (this.clipboard[i].readable && this.clipboard[i].writable) + files[i] = this.clipboard[i].dir + '/' + this.clipboard[i].name; + else + failed++; + if (this.clipboard.length == failed) { + browser.alert(this.label("The files in the Clipboard are not removable.")) + return; + } + var go = function(callBack) { + browser.fadeFiles(); + $.ajax({ + type: 'POST', + dataType: 'json', + url: browser.baseGetData('rm_cbd'), + data: {files:files}, + async: false, + success: function(data) { + if (callBack) callBack(); + browser.check4errors(data); + browser.clearClipboard(); + browser.refresh(); + }, + error: function() { + if (callBack) callBack(); + $('#files > div').css({ + opacity: '', + filter:'' + }); + browser.alert(browser.label("Unknown error.")); + } + }); + }; + if (failed) + browser.confirm( + browser.label("{count} files in the Clipboard are not removable. Do you want to delete the rest?", {count: failed}), + go + ); + else + go(); +}; + +browser.downloadClipboard = function() { + if (!this.clipboard || !this.clipboard.length) return; + var files = []; + for (i = 0; i < this.clipboard.length; i++) + if (this.clipboard[i].readable) + files[i] = this.clipboard[i].dir + '/' + this.clipboard[i].name; + if (files.length) + this.post(this.baseGetData('downloadClipboard'), {files:files}); +}; + +browser.clearClipboard = function() { + $('#clipboard').html(''); + this.clipboard = []; +}; diff --git a/js/browser/dropUpload.js b/js/browser/dropUpload.js new file mode 100644 index 0000000..8df2502 --- /dev/null +++ b/js/browser/dropUpload.js @@ -0,0 +1,231 @@ + + +browser.initDropUpload = function() { + if ((typeof(XMLHttpRequest) == 'undefined') || + (typeof(document.addEventListener) == 'undefined') || + (typeof(File) == 'undefined') || + (typeof(FileReader) == 'undefined') + ) + return; + + if (!XMLHttpRequest.prototype.sendAsBinary) { + XMLHttpRequest.prototype.sendAsBinary = function(datastr) { + var ords = Array.prototype.map.call(datastr, function(x) { + return x.charCodeAt(0) & 0xff; + }); + var ui8a = new Uint8Array(ords); + this.send(ui8a.buffer); + } + } + + var uploadQueue = [], + uploadInProgress = false, + filesCount = 0, + errors = [], + files = $('#files'), + folders = $('div.folder > a'), + boundary = '------multipartdropuploadboundary' + (new Date).getTime(), + currentFile, + + filesDragOver = function(e) { + if (e.preventDefault) e.preventDefault(); + $('#files').addClass('drag'); + return false; + }, + + filesDragEnter = function(e) { + if (e.preventDefault) e.preventDefault(); + return false; + }, + + filesDragLeave = function(e) { + if (e.preventDefault) e.preventDefault(); + $('#files').removeClass('drag'); + return false; + }, + + filesDrop = function(e) { + if (e.preventDefault) e.preventDefault(); + if (e.stopPropagation) e.stopPropagation(); + $('#files').removeClass('drag'); + if (!$('#folders span.current').first().parent().data('writable')) { + browser.alert("Cannot write to upload folder."); + return false; + } + filesCount += e.dataTransfer.files.length + for (var i = 0; i < e.dataTransfer.files.length; i++) { + var file = e.dataTransfer.files[i]; + file.thisTargetDir = browser.dir; + uploadQueue.push(file); + } + processUploadQueue(); + return false; + }, + + folderDrag = function(e) { + if (e.preventDefault) e.preventDefault(); + return false; + }, + + folderDrop = function(e, dir) { + if (e.preventDefault) e.preventDefault(); + if (e.stopPropagation) e.stopPropagation(); + if (!$(dir).data('writable')) { + browser.alert("Cannot write to upload folder."); + return false; + } + filesCount += e.dataTransfer.files.length + for (var i = 0; i < e.dataTransfer.files.length; i++) { + var file = e.dataTransfer.files[i]; + file.thisTargetDir = $(dir).data('path'); + uploadQueue.push(file); + } + processUploadQueue(); + return false; + }; + + files.get(0).removeEventListener('dragover', filesDragOver, false); + files.get(0).removeEventListener('dragenter', filesDragEnter, false); + files.get(0).removeEventListener('dragleave', filesDragLeave, false); + files.get(0).removeEventListener('drop', filesDrop, false); + + files.get(0).addEventListener('dragover', filesDragOver, false); + files.get(0).addEventListener('dragenter', filesDragEnter, false); + files.get(0).addEventListener('dragleave', filesDragLeave, false); + files.get(0).addEventListener('drop', filesDrop, false); + + folders.each(function() { + var folder = this, + + dragOver = function(e) { + $(folder).children('span.folder').addClass('context'); + return folderDrag(e); + }, + + dragLeave = function(e) { + $(folder).children('span.folder').removeClass('context'); + return folderDrag(e); + }, + + drop = function(e) { + $(folder).children('span.folder').removeClass('context'); + return folderDrop(e, folder); + }; + + this.removeEventListener('dragover', dragOver, false); + this.removeEventListener('dragenter', folderDrag, false); + this.removeEventListener('dragleave', dragLeave, false); + this.removeEventListener('drop', drop, false); + + this.addEventListener('dragover', dragOver, false); + this.addEventListener('dragenter', folderDrag, false); + this.addEventListener('dragleave', dragLeave, false); + this.addEventListener('drop', drop, false); + }); + + function updateProgress(evt) { + var progress = evt.lengthComputable + ? Math.round((evt.loaded * 100) / evt.total) + '%' + : Math.round(evt.loaded / 1024) + " KB"; + $('#loading').html(browser.label("Uploading file {number} of {count}... {progress}", { + number: filesCount - uploadQueue.length, + count: filesCount, + progress: progress + })); + } + + function processUploadQueue() { + if (uploadInProgress) + return false; + + if (uploadQueue && uploadQueue.length) { + var file = uploadQueue.shift(); + currentFile = file; + $('#loading').html(browser.label("Uploading file {number} of {count}... {progress}", { + number: filesCount - uploadQueue.length, + count: filesCount, + progress: "" + })); + $('#loading').css('display', 'inline'); + + var reader = new FileReader(); + reader.thisFileName = file.name; + reader.thisFileType = file.type; + reader.thisFileSize = file.size; + reader.thisTargetDir = file.thisTargetDir; + + reader.onload = function(evt) { + uploadInProgress = true; + + var postbody = '--' + boundary + '\r\nContent-Disposition: form-data; name="upload[]"'; + if (evt.target.thisFileName) + postbody += '; filename="' + _.utf8encode(evt.target.thisFileName) + '"'; + postbody += '\r\n'; + if (evt.target.thisFileSize) + postbody += 'Content-Length: ' + evt.target.thisFileSize + '\r\n'; + postbody += 'Content-Type: ' + evt.target.thisFileType + '\r\n\r\n' + evt.target.result + '\r\n--' + boundary + '\r\nContent-Disposition: form-data; name="dir"\r\n\r\n' + _.utf8encode(evt.target.thisTargetDir) + '\r\n--' + boundary + '\r\n--' + boundary + '--\r\n'; + + var xhr = new XMLHttpRequest(); + xhr.thisFileName = evt.target.thisFileName; + + if (xhr.upload) { + xhr.upload.thisFileName = evt.target.thisFileName; + xhr.upload.addEventListener("progress", updateProgress, false); + } + xhr.open('POST', browser.baseGetData('upload'), true); + xhr.setRequestHeader('Content-Type', 'multipart/form-data; boundary=' + boundary); + xhr.setRequestHeader('Content-Length', postbody.length); + + xhr.onload = function(e) { + $('#loading').css('display', 'none'); + if (browser.dir == reader.thisTargetDir) + browser.fadeFiles(); + uploadInProgress = false; + processUploadQueue(); + if (xhr.responseText.substr(0, 1) != '/') + errors[errors.length] = xhr.responseText; + } + + xhr.sendAsBinary(postbody); + }; + + reader.onerror = function(evt) { + $('#loading').css('display', 'none'); + uploadInProgress = false; + processUploadQueue(); + errors[errors.length] = browser.label("Failed to upload {filename}!", { + filename: evt.target.thisFileName + }); + }; + + reader.readAsBinaryString(file); + + } else { + filesCount = 0; + var loop = setInterval(function() { + if (uploadInProgress) return; + boundary = '------multipartdropuploadboundary' + (new Date).getTime(); + uploadQueue = []; + clearInterval(loop); + if (currentFile.thisTargetDir == browser.dir) + browser.refresh(); + if (errors.length) { + browser.alert(errors.join('\n')); + errors = []; + } + }, 333); + } + } +}; diff --git a/js/browser/files.js b/js/browser/files.js new file mode 100644 index 0000000..ba3de49 --- /dev/null +++ b/js/browser/files.js @@ -0,0 +1,610 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */?> + +browser.initFiles = function() { + $(document).unbind('keydown'); + $(document).keydown(function(e) { + return !browser.selectAll(e); + }); + $('#files').unbind(); + $('#files').scroll(function() { + browser.hideDialog(); + }); + $('.file').unbind(); + $('.file').click(function(e) { + _.unselect(); + browser.selectFile($(this), e); + }); + $('.file').rightClick(function(e) { + _.unselect(); + browser.menuFile($(this), e); + }); + $('.file').dblclick(function() { + _.unselect(); + browser.returnFile($(this)); + }); + $('.file').mouseup(function() { + _.unselect(); + }); + $('.file').mouseout(function() { + _.unselect(); + }); + $.each(this.shows, function(i, val) { + var display = (_.kuki.get('show' + val) == 'off') + ? 'none' : 'block'; + $('#files .file div.' + val).css('display', display); + }); + this.statusDir(); +}; + +browser.showFiles = function(callBack, selected) { + this.fadeFiles(); + setTimeout(function() { + var html = ''; + $.each(browser.files, function(i, file) { + var stamp = []; + $.each(file, function(key, val) { + stamp[stamp.length] = key + "|" + val; + }); + stamp = _.md5(stamp.join('|')); + if (_.kuki.get('view') == 'list') { + if (!i) html += ''; + var icon = _.getFileExtension(file.name); + if (file.thumb) + icon = '.image'; + else if (!icon.length || !file.smallIcon) + icon = '.'; + icon = 'themes/' + browser.theme + '/img/files/small/' + icon + '.png'; + html += '' + + '' + + '' + + '' + + ''; + if (i == browser.files.length - 1) html += '
' + _.htmlData(file.name) + '' + file.date + '' + browser.humanSize(file.size) + '
'; + } else { + if (file.thumb) + var icon = browser.baseGetData('thumb') + '&file=' + encodeURIComponent(file.name) + '&dir=' + encodeURIComponent(browser.dir) + '&stamp=' + stamp; + else if (file.smallThumb) { + var icon = browser.uploadURL + '/' + browser.dir + '/' + file.name; + icon = _.escapeDirs(icon).replace(/\'/g, "%27"); + } else { + var icon = file.bigIcon ? _.getFileExtension(file.name) : '.'; + if (!icon.length) icon = '.'; + icon = 'themes/' + browser.theme + '/img/files/big/' + icon + '.png'; + } + html += '
' + + '
' + + '
' + _.htmlData(file.name) + '
' + + '
' + file.date + '
' + + '
' + browser.humanSize(file.size) + '
' + + '
'; + } + }); + $('#files').html('
' + html + '
'); + $.each(browser.files, function(i, file) { + var item = $('#files .file').get(i); + $(item).data(file); + if (_.inArray(file.name, selected) || + ((typeof selected != 'undefined') && !selected.push && (file.name == selected)) + ) + $(item).addClass('selected'); + }); + $('#files > div').css({opacity:'', filter:''}); + if (callBack) callBack(); + browser.initFiles(); + }, 200); +}; + +browser.selectFile = function(file, e) { + if (e.ctrlKey || e.metaKey) { + if (file.hasClass('selected')) + file.removeClass('selected'); + else + file.addClass('selected'); + var files = $('.file.selected').get(); + var size = 0; + if (!files.length) + this.statusDir(); + else { + $.each(files, function(i, cfile) { + size += parseInt($(cfile).data('size')); + }); + size = this.humanSize(size); + if (files.length > 1) + $('#fileinfo').html(files.length + ' ' + this.label("selected files") + ' (' + size + ')'); + else { + var data = $(files[0]).data(); + $('#fileinfo').html(data.name + ' (' + this.humanSize(data.size) + ', ' + data.date + ')'); + } + } + } else { + var data = file.data(); + $('.file').removeClass('selected'); + file.addClass('selected'); + $('#fileinfo').html(data.name + ' (' + this.humanSize(data.size) + ', ' + data.date + ')'); + } +}; + +browser.selectAll = function(e) { + if ((!e.ctrlKey && !e.metaKey) || ((e.keyCode != 65) && (e.keyCode != 97))) + return false; + var files = $('.file').get(); + if (files.length) { + var size = 0; + $.each(files, function(i, file) { + if (!$(file).hasClass('selected')) + $(file).addClass('selected'); + size += parseInt($(file).data('size')); + }); + size = this.humanSize(size); + $('#fileinfo').html(files.length + ' ' + this.label("selected files") + ' (' + size + ')'); + } + return true; +}; + +browser.returnFile = function(file) { + + var fileURL = file.substr + ? file : browser.uploadURL + '/' + browser.dir + '/' + file.data('name'); + fileURL = _.escapeDirs(fileURL); + + if (this.opener.CKEditor) { + this.opener.CKEditor.object.tools.callFunction(this.opener.CKEditor.funcNum, fileURL, ''); + window.close(); + + } else if (this.opener.FCKeditor) { + window.opener.SetUrl(fileURL) ; + window.close() ; + + } else if (this.opener.TinyMCE) { + var win = tinyMCEPopup.getWindowArg('window'); + win.document.getElementById(tinyMCEPopup.getWindowArg('input')).value = fileURL; + if (win.getImageData) win.getImageData(); + if (typeof(win.ImageDialog) != "undefined") { + if (win.ImageDialog.getImageData) + win.ImageDialog.getImageData(); + if (win.ImageDialog.showPreviewImage) + win.ImageDialog.showPreviewImage(fileURL); + } + tinyMCEPopup.close(); + + } else if (this.opener.callBack) { + + if (window.opener && window.opener.KCFinder) { + this.opener.callBack(fileURL); + window.close(); + } + + if (window.parent && window.parent.KCFinder) { + var button = $('#toolbar a[href="kcact:maximize"]'); + if (button.hasClass('selected')) + this.maximize(button); + this.opener.callBack(fileURL); + } + + } else if (this.opener.callBackMultiple) { + if (window.opener && window.opener.KCFinder) { + this.opener.callBackMultiple([fileURL]); + window.close(); + } + + if (window.parent && window.parent.KCFinder) { + var button = $('#toolbar a[href="kcact:maximize"]'); + if (button.hasClass('selected')) + this.maximize(button); + this.opener.callBackMultiple([fileURL]); + } + + } +}; + +browser.returnFiles = function(files) { + if (this.opener.callBackMultiple && files.length) { + var rfiles = []; + $.each(files, function(i, file) { + rfiles[i] = browser.uploadURL + '/' + browser.dir + '/' + $(file).data('name'); + rfiles[i] = _.escapeDirs(rfiles[i]); + }); + this.opener.callBackMultiple(rfiles); + if (window.opener) window.close() + } +}; + +browser.returnThumbnails = function(files) { + if (this.opener.callBackMultiple) { + var rfiles = []; + var j = 0; + $.each(files, function(i, file) { + if ($(file).data('thumb')) { + rfiles[j] = browser.thumbsURL + '/' + browser.dir + '/' + $(file).data('name'); + rfiles[j] = _.escapeDirs(rfiles[j++]); + } + }); + this.opener.callBackMultiple(rfiles); + if (window.opener) window.close() + } +}; + +browser.menuFile = function(file, e) { + var data = file.data(); + var path = this.dir + '/' + data.name; + var files = $('.file.selected').get(); + var html = ''; + + if (file.hasClass('selected') && files.length && (files.length > 1)) { + var thumb = false; + var notWritable = 0; + var cdata; + $.each(files, function(i, cfile) { + cdata = $(cfile).data(); + if (cdata.thumb) thumb = true; + if (!data.writable) notWritable++; + }); + if (this.opener.callBackMultiple) { + html += '' + this.label("Select") + ''; + if (thumb) html += + '' + this.label("Select Thumbnails") + ''; + } + if (data.thumb || data.smallThumb || this.support.zip) { + html += (html.length ? '
' : ''); + if (data.thumb || data.smallThumb) + html +='' + this.label("View") + ''; + if (this.support.zip) html += (html.length ? '
' : '') + + '' + this.label("Download") + ''; + } + + if (this.access.files.copy || this.access.files.move) + html += (html.length ? '
' : '') + + '' + this.label("Add to Clipboard") + ''; + if (this.access.files['delete']) + html += (html.length ? '
' : '') + + '' + this.label("Delete") + ''; + + if (html.length) { + html = ''; + $('#dialog').html(html); + this.showMenu(e); + } else + return; + + $('.menu a[href="kcact:pick"]').click(function() { + browser.returnFiles(files); + browser.hideDialog(); + return false; + }); + + $('.menu a[href="kcact:pick_thumb"]').click(function() { + browser.returnThumbnails(files); + browser.hideDialog(); + return false; + }); + + $('.menu a[href="kcact:download"]').click(function() { + browser.hideDialog(); + var pfiles = []; + $.each(files, function(i, cfile) { + pfiles[i] = $(cfile).data('name'); + }); + browser.post(browser.baseGetData('downloadSelected'), {dir:browser.dir, files:pfiles}); + return false; + }); + + $('.menu a[href="kcact:clpbrdadd"]').click(function() { + browser.hideDialog(); + var msg = ''; + $.each(files, function(i, cfile) { + var cdata = $(cfile).data(); + var failed = false; + for (i = 0; i < browser.clipboard.length; i++) + if ((browser.clipboard[i].name == cdata.name) && + (browser.clipboard[i].dir == browser.dir) + ) { + failed = true + msg += cdata.name + ": " + browser.label("This file is already added to the Clipboard.") + "\n"; + break; + } + + if (!failed) { + cdata.dir = browser.dir; + browser.clipboard[browser.clipboard.length] = cdata; + } + }); + browser.initClipboard(); + if (msg.length) browser.alert(msg.substr(0, msg.length - 1)); + return false; + }); + + $('.menu a[href="kcact:rm"]').click(function() { + if ($(this).hasClass('denied')) return false; + browser.hideDialog(); + var failed = 0; + var dfiles = []; + $.each(files, function(i, cfile) { + var cdata = $(cfile).data(); + if (!cdata.writable) + failed++; + else + dfiles[dfiles.length] = browser.dir + "/" + cdata.name; + }); + if (failed == files.length) { + browser.alert(browser.label("The selected files are not removable.")); + return false; + } + + var go = function(callBack) { + browser.fadeFiles(); + $.ajax({ + type: 'POST', + dataType: 'json', + url: browser.baseGetData('rm_cbd'), + data: {files:dfiles}, + async: false, + success: function(data) { + if (callBack) callBack(); + browser.check4errors(data); + browser.refresh(); + }, + error: function() { + if (callBack) callBack(); + $('#files > div').css({ + opacity: '', + filter: '' + }); + browser.alert(browser.label("Unknown error.")); + } + }); + }; + + if (failed) + browser.confirm( + browser.label("{count} selected files are not removable. Do you want to delete the rest?", {count:failed}), + go + ) + + else + browser.confirm( + browser.label("Are you sure you want to delete all selected files?"), + go + ); + + return false; + }); + + } else { + html += ''; + + $('#dialog').html(html); + this.showMenu(e); + + $('.menu a[href="kcact:pick"]').click(function() { + browser.returnFile(file); + browser.hideDialog(); + return false; + }); + + $('.menu a[href="kcact:pick_thumb"]').click(function() { + var path = browser.thumbsURL + '/' + browser.dir + '/' + data.name; + browser.returnFile(path); + browser.hideDialog(); + return false; + }); + + $('.menu a[href="kcact:download"]').click(function() { + var html = '
' + + '' + + '' + + '
'; + $('#dialog').html(html); + $('#downloadForm input').get(0).value = browser.dir; + $('#downloadForm input').get(1).value = data.name; + $('#downloadForm').submit(); + return false; + }); + + $('.menu a[href="kcact:clpbrdadd"]').click(function() { + for (i = 0; i < browser.clipboard.length; i++) + if ((browser.clipboard[i].name == data.name) && + (browser.clipboard[i].dir == browser.dir) + ) { + browser.hideDialog(); + browser.alert(browser.label("This file is already added to the Clipboard.")); + return false; + } + var cdata = data; + cdata.dir = browser.dir; + browser.clipboard[browser.clipboard.length] = cdata; + browser.initClipboard(); + browser.hideDialog(); + return false; + }); + + $('.menu a[href="kcact:mv"]').click(function(e) { + if (!data.writable) return false; + browser.fileNameDialog( + e, {dir: browser.dir, file: data.name}, + 'newName', data.name, browser.baseGetData('rename'), { + title: "New file name:", + errEmpty: "Please enter new file name.", + errSlash: "Unallowable characters in file name.", + errDot: "File name shouldn't begins with '.'" + }, + function() { + browser.refresh(); + } + ); + return false; + }); + + $('.menu a[href="kcact:rm"]').click(function() { + if (!data.writable) return false; + browser.hideDialog(); + browser.confirm(browser.label("Are you sure you want to delete this file?"), + function(callBack) { + $.ajax({ + type: 'POST', + dataType: 'json', + url: browser.baseGetData('delete'), + data: {dir:browser.dir, file:data.name}, + async: false, + success: function(data) { + if (callBack) callBack(); + browser.clearClipboard(); + if (browser.check4errors(data)) + return; + browser.refresh(); + }, + error: function() { + if (callBack) callBack(); + browser.alert(browser.label("Unknown error.")); + } + }); + } + ); + return false; + }); + } + + $('.menu a[href="kcact:view"]').click(function() { + browser.hideDialog(); + var ts = new Date().getTime(); + var showImage = function(data) { + url = _.escapeDirs(browser.uploadURL + '/' + browser.dir + '/' + data.name) + '?ts=' + ts, + $('#loading').html(browser.label("Loading image...")); + $('#loading').css('display', 'inline'); + var img = new Image(); + img.src = url; + img.onerror = function() { + browser.lock = false; + $('#loading').css('display', 'none'); + browser.alert(browser.label("Unknown error.")); + $(document).unbind('keydown'); + $(document).keydown(function(e) { + return !browser.selectAll(e); + }); + browser.refresh(); + }; + var onImgLoad = function() { + browser.lock = false; + $('#files .file').each(function() { + if ($(this).data('name') == data.name) + browser.ssImage = this; + }); + $('#loading').css('display', 'none'); + $('#dialog').html('
'); + $('#dialog img').attr({ + src: url, + title: data.name + }).fadeIn('fast', function() { + var o_w = $('#dialog').outerWidth(); + var o_h = $('#dialog').outerHeight(); + var f_w = $(window).width() - 30; + var f_h = $(window).height() - 30; + if ((o_w > f_w) || (o_h > f_h)) { + if ((f_w / f_h) > (o_w / o_h)) + f_w = parseInt((o_w * f_h) / o_h); + else if ((f_w / f_h) < (o_w / o_h)) + f_h = parseInt((o_h * f_w) / o_w); + $('#dialog img').attr({ + width: f_w, + height: f_h + }); + } + $('#dialog').unbind('click'); + $('#dialog').click(function(e) { + browser.hideDialog(); + $(document).unbind('keydown'); + $(document).keydown(function(e) { + return !browser.selectAll(e); + }); + if (browser.ssImage) { + browser.selectFile($(browser.ssImage), e); + } + }); + browser.showDialog(); + var images = []; + $.each(browser.files, function(i, file) { + if (file.thumb || file.smallThumb) + images[images.length] = file; + }); + if (images.length) + $.each(images, function(i, image) { + if (image.name == data.name) { + $(document).unbind('keydown'); + $(document).keydown(function(e) { + if (images.length > 1) { + if (!browser.lock && (e.keyCode == 37)) { + var nimg = i + ? images[i - 1] + : images[images.length - 1]; + browser.lock = true; + showImage(nimg); + } + if (!browser.lock && (e.keyCode == 39)) { + var nimg = (i >= images.length - 1) + ? images[0] + : images[i + 1]; + browser.lock = true; + showImage(nimg); + } + } + if (e.keyCode == 27) { + browser.hideDialog(); + $(document).unbind('keydown'); + $(document).keydown(function(e) { + return !browser.selectAll(e); + }); + } + }); + } + }); + }); + }; + if (img.complete) + onImgLoad(); + else + img.onload = onImgLoad; + }; + showImage(data); + return false; + }); +}; diff --git a/js/browser/folders.js b/js/browser/folders.js new file mode 100644 index 0000000..f9f5381 --- /dev/null +++ b/js/browser/folders.js @@ -0,0 +1,369 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */?> + +browser.initFolders = function() { + $('#folders').scroll(function() { + browser.hideDialog(); + }); + $('div.folder > a').unbind(); + $('div.folder > a').bind('click', function() { + browser.hideDialog(); + return false; + }); + $('div.folder > a > span.brace').unbind(); + $('div.folder > a > span.brace').click(function() { + if ($(this).hasClass('opened') || $(this).hasClass('closed')) + browser.expandDir($(this).parent()); + }); + $('div.folder > a > span.folder').unbind(); + $('div.folder > a > span.folder').click(function() { + browser.changeDir($(this).parent()); + }); + $('div.folder > a > span.folder').rightClick(function(e) { + _.unselect(); + browser.menuDir($(this).parent(), e); + }); + + if ($.browser.msie && $.browser.version && + (parseInt($.browser.version.substr(0, 1)) < 8) + ) { + var fls = $('div.folder').get(); + var body = $('body').get(0); + var div; + $.each(fls, function(i, folder) { + div = document.createElement('div'); + div.style.display = 'inline'; + div.style.margin = div.style.border = div.style.padding = '0'; + div.innerHTML='
' + $(folder).html() + "
"; + body.appendChild(div); + $(folder).css('width', $(div).innerWidth() + 'px'); + body.removeChild(div); + }); + } +}; + +browser.setTreeData = function(data, path) { + if (!path) + path = ''; + else if (path.length && (path.substr(path.length - 1, 1) != '/')) + path += '/'; + path += data.name; + var selector = '#folders a[href="kcdir:/' + _.escapeDirs(path) + '"]'; + $(selector).data({ + name: data.name, + path: path, + readable: data.readable, + writable: data.writable, + removable: data.removable, + hasDirs: data.hasDirs + }); + $(selector + ' span.folder').addClass(data.current ? 'current' : 'regular'); + if (data.dirs && data.dirs.length) { + $(selector + ' span.brace').addClass('opened'); + $.each(data.dirs, function(i, cdir) { + browser.setTreeData(cdir, path + '/'); + }); + } else if (data.hasDirs) + $(selector + ' span.brace').addClass('closed'); +}; + +browser.buildTree = function(root, path) { + if (!path) path = ""; + path += root.name; + var html = '
 ' + _.htmlData(root.name) + ''; + if (root.dirs) { + html += '
'; + for (var i = 0; i < root.dirs.length; i++) { + cdir = root.dirs[i]; + html += browser.buildTree(cdir, path + '/'); + } + html += '
'; + } + html += '
'; + return html; +}; + +browser.expandDir = function(dir) { + var path = dir.data('path'); + if (dir.children('.brace').hasClass('opened')) { + dir.parent().children('.folders').hide(500, function() { + if (path == browser.dir.substr(0, path.length)) + browser.changeDir(dir); + }); + dir.children('.brace').removeClass('opened'); + dir.children('.brace').addClass('closed'); + } else { + if (dir.parent().children('.folders').get(0)) { + dir.parent().children('.folders').show(500); + dir.children('.brace').removeClass('closed'); + dir.children('.brace').addClass('opened'); + } else if (!$('#loadingDirs').get(0)) { + dir.parent().append('
' + this.label("Loading folders...") + '
'); + $('#loadingDirs').css('display', 'none'); + $('#loadingDirs').show(200, function() { + $.ajax({ + type: 'POST', + dataType: 'json', + url: browser.baseGetData('expand'), + data: {dir:path}, + async: false, + success: function(data) { + $('#loadingDirs').hide(200, function() { + $('#loadingDirs').detach(); + }); + if (browser.check4errors(data)) + return; + + var html = ''; + $.each(data.dirs, function(i, cdir) { + html += ''; + }); + if (html.length) { + dir.parent().append('
' + html + '
'); + var folders = $(dir.parent().children('.folders').first()); + folders.css('display', 'none'); + $(folders).show(500); + $.each(data.dirs, function(i, cdir) { + browser.setTreeData(cdir, path); + }); + } + if (data.dirs.length) { + dir.children('.brace').removeClass('closed'); + dir.children('.brace').addClass('opened'); + } else { + dir.children('.brace').removeClass('opened'); + dir.children('.brace').removeClass('closed'); + } + browser.initFolders(); + browser.initDropUpload(); + }, + error: function() { + $('#loadingDirs').detach(); + browser.alert(browser.label("Unknown error.")); + } + }); + }); + } + } +}; + +browser.changeDir = function(dir) { + if (dir.children('span.folder').hasClass('regular')) { + $('div.folder > a > span.folder').removeClass('current'); + $('div.folder > a > span.folder').removeClass('regular'); + $('div.folder > a > span.folder').addClass('regular'); + dir.children('span.folder').removeClass('regular'); + dir.children('span.folder').addClass('current'); + $('#files').html(browser.label("Loading files...")); + $.ajax({ + type: 'POST', + dataType: 'json', + url: browser.baseGetData('chDir'), + data: {dir:dir.data('path')}, + async: false, + success: function(data) { + if (browser.check4errors(data)) + return; + browser.files = data.files; + browser.orderFiles(); + browser.dir = dir.data('path'); + browser.dirWritable = data.dirWritable; + var title = "KCFinder: /" + browser.dir; + document.title = title; + if (browser.opener.TinyMCE) + tinyMCEPopup.editor.windowManager.setTitle(window, title); + browser.statusDir(); + }, + error: function() { + $('#files').html(browser.label("Unknown error.")); + } + }); + } +}; + +browser.statusDir = function() { + for (var i = 0, size = 0; i < this.files.length; i++) + size += parseInt(this.files[i].size); + size = this.humanSize(size); + $('#fileinfo').html(this.files.length + ' ' + this.label("files") + ' (' + size + ')'); +}; + +browser.menuDir = function(dir, e) { + var data = dir.data(); + var html = ''; + + $('#dialog').html(html); + this.showMenu(e); + $('div.folder > a > span.folder').removeClass('context'); + if (dir.children('span.folder').hasClass('regular')) + dir.children('span.folder').addClass('context'); + + if (this.clipboard && this.clipboard.length && data.writable) { + + $('.menu a[href="kcact:cpcbd"]').click(function() { + browser.hideDialog(); + browser.copyClipboard(data.path); + return false; + }); + + $('.menu a[href="kcact:mvcbd"]').click(function() { + browser.hideDialog(); + browser.moveClipboard(data.path); + return false; + }); + } + + $('.menu a[href="kcact:refresh"]').click(function() { + browser.hideDialog(); + browser.refreshDir(dir); + return false; + }); + + $('.menu a[href="kcact:download"]').click(function() { + browser.hideDialog(); + browser.post(browser.baseGetData('downloadDir'), {dir:data.path}); + return false; + }); + + $('.menu a[href="kcact:mkdir"]').click(function(e) { + if (!data.writable) return false; + browser.hideDialog(); + browser.fileNameDialog( + e, {dir: data.path}, + 'newDir', '', browser.baseGetData('newDir'), { + title: "New folder name:", + errEmpty: "Please enter new folder name.", + errSlash: "Unallowable characters in folder name.", + errDot: "Folder name shouldn't begins with '.'" + }, function() { + browser.refreshDir(dir); + browser.initDropUpload(); + if (!data.hasDirs) { + dir.data('hasDirs', true); + dir.children('span.brace').addClass('closed'); + } + } + ); + return false; + }); + + $('.menu a[href="kcact:mvdir"]').click(function(e) { + if (!data.removable) return false; + browser.hideDialog(); + browser.fileNameDialog( + e, {dir: data.path}, + 'newName', data.name, browser.baseGetData('renameDir'), { + title: "New folder name:", + errEmpty: "Please enter new folder name.", + errSlash: "Unallowable characters in folder name.", + errDot: "Folder name shouldn't begins with '.'" + }, function(dt) { + if (!dt.name) { + browser.alert(browser.label("Unknown error.")); + return; + } + var currentDir = (data.path == browser.dir); + dir.children('span.folder').html(_.htmlData(dt.name)); + dir.data('name', dt.name); + dir.data('path', _.dirname(data.path) + '/' + dt.name); + if (currentDir) + browser.dir = dir.data('path'); + browser.initDropUpload(); + }, + true + ); + return false; + }); + + $('.menu a[href="kcact:rmdir"]').click(function() { + if (!data.removable) return false; + browser.hideDialog(); + browser.confirm( + "Are you sure you want to delete this folder and all its content?", + function(callBack) { + $.ajax({ + type: 'POST', + dataType: 'json', + url: browser.baseGetData('deleteDir'), + data: {dir: data.path}, + async: false, + success: function(data) { + if (callBack) callBack(); + if (browser.check4errors(data)) + return; + dir.parent().hide(500, function() { + var folders = dir.parent().parent(); + var pDir = folders.parent().children('a').first(); + dir.parent().detach(); + if (!folders.children('div.folder').get(0)) { + pDir.children('span.brace').first().removeClass('opened'); + pDir.children('span.brace').first().removeClass('closed'); + pDir.parent().children('.folders').detach(); + pDir.data('hasDirs', false); + } + if (pDir.data('path') == browser.dir.substr(0, pDir.data('path').length)) + browser.changeDir(pDir); + browser.initDropUpload(); + }); + }, + error: function() { + if (callBack) callBack(); + browser.alert(browser.label("Unknown error.")); + } + }); + } + ); + return false; + }); +}; + +browser.refreshDir = function(dir) { + var path = dir.data('path'); + if (dir.children('.brace').hasClass('opened') || dir.children('.brace').hasClass('closed')) { + dir.children('.brace').removeClass('opened'); + dir.children('.brace').addClass('closed'); + } + dir.parent().children('.folders').first().detach(); + if (path == browser.dir.substr(0, path.length)) + browser.changeDir(dir); + browser.expandDir(dir); + return true; +}; diff --git a/js/browser/init.js b/js/browser/init.js new file mode 100644 index 0000000..e26251a --- /dev/null +++ b/js/browser/init.js @@ -0,0 +1,187 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */?> + +browser.init = function() { + if (!this.checkAgent()) return; + + $('body').click(function() { + browser.hideDialog(); + }); + $('#shadow').click(function() { + return false; + }); + $('#dialog').unbind(); + $('#dialog').click(function() { + return false; + }); + $('#alert').unbind(); + $('#alert').click(function() { + return false; + }); + this.initOpeners(); + this.initSettings(); + this.initContent(); + this.initToolbar(); + this.initResizer(); + this.initDropUpload(); +}; + +browser.checkAgent = function() { + if (!$.browser.version || + ($.browser.msie && (parseInt($.browser.version) < 7) && !this.support.chromeFrame) || + ($.browser.opera && (parseInt($.browser.version) < 10)) || + ($.browser.mozilla && (parseFloat($.browser.version.replace(/^(\d+(\.\d+)?)([^\d].*)?$/, "$1")) < 1.8)) + ) { + var html = '
Your browser is not capable to display KCFinder. Please update your browser or install another one: Mozilla Firefox, Apple Safari, Google Chrome, Opera.'; + if ($.browser.msie) + html += ' You may also install Google Chrome Frame ActiveX plugin to get Internet Explorer 6 working.'; + html += '
'; + $('body').html(html); + return false; + } + return true; +}; + +browser.initOpeners = function() { + if (this.opener.TinyMCE && (typeof(tinyMCEPopup) == 'undefined')) + this.opener.TinyMCE = null; + + if (this.opener.TinyMCE) + this.opener.callBack = true; + + if ((!this.opener.name || (this.opener.name == 'fckeditor')) && + window.opener && window.opener.SetUrl + ) { + this.opener.FCKeditor = true; + this.opener.callBack = true; + } + + if (this.opener.CKEditor) { + if (window.parent && window.parent.CKEDITOR) + this.opener.CKEditor.object = window.parent.CKEDITOR; + else if (window.opener && window.opener.CKEDITOR) { + this.opener.CKEditor.object = window.opener.CKEDITOR; + this.opener.callBack = true; + } else + this.opener.CKEditor = null; + } + + if (!this.opener.CKEditor && !this.opener.FCKEditor && !this.TinyMCE) { + if ((window.opener && window.opener.KCFinder && window.opener.KCFinder.callBack) || + (window.parent && window.parent.KCFinder && window.parent.KCFinder.callBack) + ) + this.opener.callBack = window.opener + ? window.opener.KCFinder.callBack + : window.parent.KCFinder.callBack; + + if (( + window.opener && + window.opener.KCFinder && + window.opener.KCFinder.callBackMultiple + ) || ( + window.parent && + window.parent.KCFinder && + window.parent.KCFinder.callBackMultiple + ) + ) + this.opener.callBackMultiple = window.opener + ? window.opener.KCFinder.callBackMultiple + : window.parent.KCFinder.callBackMultiple; + } +}; + +browser.initContent = function() { + $('div#folders').html(this.label("Loading folders...")); + $('div#files').html(this.label("Loading files...")); + $.ajax({ + type: 'GET', + dataType: 'json', + url: browser.baseGetData('init'), + async: false, + success: function(data) { + if (browser.check4errors(data)) + return; + browser.dirWritable = data.dirWritable; + $('#folders').html(browser.buildTree(data.tree)); + browser.setTreeData(data.tree); + browser.initFolders(); + browser.files = data.files ? data.files : []; + browser.orderFiles(); + }, + error: function() { + $('div#folders').html(browser.label("Unknown error.")); + $('div#files').html(browser.label("Unknown error.")); + } + }); +}; + +browser.initResizer = function() { + var cursor = ($.browser.opera) ? 'move' : 'col-resize'; + $('#resizer').css('cursor', cursor); + $('#resizer').drag('start', function() { + $(this).css({opacity:'0.4', filter:'alpha(opacity:40)'}); + $('#all').css('cursor', cursor); + }); + $('#resizer').drag(function(e) { + var left = e.pageX - parseInt(_.nopx($(this).css('width')) / 2); + left = (left >= 0) ? left : 0; + left = (left + _.nopx($(this).css('width')) < $(window).width()) + ? left : $(window).width() - _.nopx($(this).css('width')); + $(this).css('left', left); + }); + var end = function() { + $(this).css({opacity:'0', filter:'alpha(opacity:0)'}); + $('#all').css('cursor', ''); + var left = _.nopx($(this).css('left')) + _.nopx($(this).css('width')); + var right = $(window).width() - left; + $('#left').css('width', left + 'px'); + $('#right').css('width', right + 'px'); + _('files').style.width = $('#right').innerWidth() - _.outerHSpace('#files') + 'px'; + _('resizer').style.left = $('#left').outerWidth() - _.outerRightSpace('#folders', 'm') + 'px'; + _('resizer').style.width = _.outerRightSpace('#folders', 'm') + _.outerLeftSpace('#files', 'm') + 'px'; + browser.fixFilesHeight(); + }; + $('#resizer').drag('end', end); + $('#resizer').mouseup(end); +}; + +browser.resize = function() { + _('left').style.width = '25%'; + _('right').style.width = '75%'; + _('toolbar').style.height = $('#toolbar a').outerHeight() + "px"; + _('shadow').style.width = $(window).width() + 'px'; + _('shadow').style.height = _('resizer').style.height = $(window).height() + 'px'; + _('left').style.height = _('right').style.height = + $(window).height() - $('#status').outerHeight() + 'px'; + _('folders').style.height = + $('#left').outerHeight() - _.outerVSpace('#folders') + 'px'; + browser.fixFilesHeight(); + var width = $('#left').outerWidth() + $('#right').outerWidth(); + _('status').style.width = width + 'px'; + while ($('#status').outerWidth() > width) + _('status').style.width = _.nopx(_('status').style.width) - 1 + 'px'; + while ($('#status').outerWidth() < width) + _('status').style.width = _.nopx(_('status').style.width) + 1 + 'px'; + if ($.browser.msie && ($.browser.version.substr(0, 1) < 8)) + _('right').style.width = $(window).width() - $('#left').outerWidth() + 'px'; + _('files').style.width = $('#right').innerWidth() - _.outerHSpace('#files') + 'px'; + _('resizer').style.left = $('#left').outerWidth() - _.outerRightSpace('#folders', 'm') + 'px'; + _('resizer').style.width = _.outerRightSpace('#folders', 'm') + _.outerLeftSpace('#files', 'm') + 'px'; +}; + +browser.fixFilesHeight = function() { + _('files').style.height = + $('#left').outerHeight() - $('#toolbar').outerHeight() - _.outerVSpace('#files') - + (($('#settings').css('display') != "none") ? $('#settings').outerHeight() : 0) + 'px'; +}; diff --git a/js/browser/joiner.php b/js/browser/joiner.php new file mode 100644 index 0000000..3b63832 --- /dev/null +++ b/js/browser/joiner.php @@ -0,0 +1,35 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +chdir(".."); // For compatibility +chdir(".."); +require "lib/helper_httpCache.php"; +require "lib/helper_dir.php"; +$files = dir::content("js/browser", array( + 'types' => "file", + 'pattern' => '/^.*\.js$/' +)); + +foreach ($files as $file) { + $fmtime = filemtime($file); + if (!isset($mtime) || ($fmtime > $mtime)) + $mtime = $fmtime; +} + +httpCache::checkMTime($mtime); +header("Content-Type: text/javascript"); +foreach ($files as $file) + require $file; + +?> \ No newline at end of file diff --git a/js/browser/misc.js b/js/browser/misc.js new file mode 100644 index 0000000..639e370 --- /dev/null +++ b/js/browser/misc.js @@ -0,0 +1,383 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */?> + +browser.drag = function(ev, dd) { + var top = dd.offsetY, + left = dd.offsetX; + if (top < 0) top = 0; + if (left < 0) left = 0; + if (top + $(this).outerHeight() > $(window).height()) + top = $(window).height() - $(this).outerHeight(); + if (left + $(this).outerWidth() > $(window).width()) + left = $(window).width() - $(this).outerWidth(); + $(this).css({ + top: top, + left: left + }); +}; + +browser.showDialog = function(e) { + $('#dialog').css({left: 0, top: 0}); + this.shadow(); + if ($('#dialog div.box') && !$('#dialog div.title').get(0)) { + var html = $('#dialog div.box').html(); + var title = $('#dialog').data('title') ? $('#dialog').data('title') : ""; + html = '
' + title + '
' + html; + $('#dialog div.box').html(html); + $('#dialog div.title span.close').mousedown(function() { + $(this).addClass('clicked'); + }); + $('#dialog div.title span.close').mouseup(function() { + $(this).removeClass('clicked'); + }); + $('#dialog div.title span.close').click(function() { + browser.hideDialog(); + browser.hideAlert(); + }); + } + $('#dialog').drag(browser.drag, {handle: '#dialog div.title'}); + $('#dialog').css('display', 'block'); + + if (e) { + var left = e.pageX - parseInt($('#dialog').outerWidth() / 2); + var top = e.pageY - parseInt($('#dialog').outerHeight() / 2); + if (left < 0) left = 0; + if (top < 0) top = 0; + if (($('#dialog').outerWidth() + left) > $(window).width()) + left = $(window).width() - $('#dialog').outerWidth(); + if (($('#dialog').outerHeight() + top) > $(window).height()) + top = $(window).height() - $('#dialog').outerHeight(); + $('#dialog').css({ + left: left + 'px', + top: top + 'px' + }); + } else + $('#dialog').css({ + left: parseInt(($(window).width() - $('#dialog').outerWidth()) / 2) + 'px', + top: parseInt(($(window).height() - $('#dialog').outerHeight()) / 2) + 'px' + }); + $(document).unbind('keydown'); + $(document).keydown(function(e) { + if (e.keyCode == 27) + browser.hideDialog(); + }); +}; + +browser.hideDialog = function() { + this.unshadow(); + if ($('#clipboard').hasClass('selected')) + $('#clipboard').removeClass('selected'); + $('#dialog').css('display', 'none'); + $('div.folder > a > span.folder').removeClass('context'); + $('#dialog').html(''); + $('#dialog').data('title', null); + $('#dialog').unbind(); + $('#dialog').click(function() { + return false; + }); + $(document).unbind('keydown'); + $(document).keydown(function(e) { + return !browser.selectAll(e); + }); + browser.hideAlert(); +}; + +browser.showAlert = function(shadow) { + $('#alert').css({left: 0, top: 0}); + if (typeof shadow == 'undefined') + shadow = true; + if (shadow) + this.shadow(); + var left = parseInt(($(window).width() - $('#alert').outerWidth()) / 2), + top = parseInt(($(window).height() - $('#alert').outerHeight()) / 2); + var wheight = $(window).height(); + if (top < 0) + top = 0; + $('#alert').css({ + left: left + 'px', + top: top + 'px', + display: 'block' + }); + if ($('#alert').outerHeight() > wheight) { + $('#alert div.message').css({ + height: wheight - $('#alert div.title').outerHeight() - $('#alert div.ok').outerHeight() - 20 + 'px' + }); + } + $(document).unbind('keydown'); + $(document).keydown(function(e) { + if (e.keyCode == 27) { + browser.hideDialog(); + browser.hideAlert(); + $(document).unbind('keydown'); + $(document).keydown(function(e) { + return !browser.selectAll(e); + }); + } + }); +}; + +browser.hideAlert = function(shadow) { + if (typeof shadow == 'undefined') + shadow = true; + if (shadow) + this.unshadow(); + $('#alert').css('display', 'none'); + $('#alert').html(''); + $('#alert').data('title', null); +}; + +browser.alert = function(msg, shadow) { + msg = msg.replace(/\r?\n/g, "
"); + var title = $('#alert').data('title') ? $('#alert').data('title') : browser.label("Attention"); + $('#alert').html('
' + title + '
' + msg + '
'); + $('#alert div.ok button').click(function() { + browser.hideAlert(shadow); + }); + $('#alert div.title span.close').mousedown(function() { + $(this).addClass('clicked'); + }); + $('#alert div.title span.close').mouseup(function() { + $(this).removeClass('clicked'); + }); + $('#alert div.title span.close').click(function() { + browser.hideAlert(shadow); + }); + $('#alert').drag(browser.drag, {handle: "#alert div.title"}); + browser.showAlert(shadow); +}; + +browser.confirm = function(question, callBack) { + $('#dialog').data('title', browser.label("Question")); + $('#dialog').html('
' + browser.label(question) + '
'); + browser.showDialog(); + $('#dialog div.buttons button').first().click(function() { + browser.hideDialog(); + }); + $('#dialog div.buttons button').last().click(function() { + if (callBack) + callBack(function() { + browser.hideDialog(); + }); + else + browser.hideDialog(); + }); + $('#dialog div.buttons button').get(1).focus(); +}; + +browser.shadow = function() { + $('#shadow').css('display', 'block'); +}; + +browser.unshadow = function() { + $('#shadow').css('display', 'none'); +}; + +browser.showMenu = function(e) { + var left = e.pageX; + var top = e.pageY; + if (($('#dialog').outerWidth() + left) > $(window).width()) + left = $(window).width() - $('#dialog').outerWidth(); + if (($('#dialog').outerHeight() + top) > $(window).height()) + top = $(window).height() - $('#dialog').outerHeight(); + $('#dialog').css({ + left: left + 'px', + top: top + 'px', + display: 'none' + }); + $('#dialog').fadeIn(); +}; + +browser.fileNameDialog = function(e, post, inputName, inputValue, url, labels, callBack, selectAll) { + var html = '
' + + '
' + + '
' + + '
' + + ' ' + + '' + + '
'; + $('#dialog').html(html); + $('#dialog').data('title', this.label(labels.title)); + $('#dialog input[name="' + inputName + '"]').attr('value', inputValue); + $('#dialog').unbind(); + $('#dialog').click(function() { + return false; + }); + $('#dialog form').submit(function() { + var name = this.elements[0]; + name.value = $.trim(name.value); + if (name.value == '') { + browser.alert(browser.label(labels.errEmpty), false); + name.focus(); + return; + } else if (/[\/\\]/g.test(name.value)) { + browser.alert(browser.label(labels.errSlash), false); + name.focus(); + return; + } else if (name.value.substr(0, 1) == ".") { + browser.alert(browser.label(labels.errDot), false); + name.focus(); + return; + } + eval('post.' + inputName + ' = name.value;'); + $.ajax({ + type: 'POST', + dataType: 'json', + url: url, + data: post, + async: false, + success: function(data) { + if (browser.check4errors(data, false)) + return; + if (callBack) callBack(data); + browser.hideDialog(); + }, + error: function() { + browser.alert(browser.label("Unknown error."), false); + } + }); + return false; + }); + browser.showDialog(e); + $('#dialog').css('display', 'block'); + $('#dialog input[type="submit"]').click(function() { + return $('#dialog form').submit(); + }); + var field = $('#dialog input[type="text"]'); + var value = field.attr('value'); + if (!selectAll && /^(.+)\.[^\.]+$/ .test(value)) { + value = value.replace(/^(.+)\.[^\.]+$/, "$1"); + _.selection(field.get(0), 0, value.length); + } else { + field.get(0).focus(); + field.get(0).select(); + } +}; + +browser.orderFiles = function(callBack, selected) { + var order = _.kuki.get('order'); + var desc = (_.kuki.get('orderDesc') == 'on'); + + if (!browser.files || !browser.files.sort) + browser.files = []; + + browser.files = browser.files.sort(function(a, b) { + var a1, b1, arr; + if (!order) order = 'name'; + + if (order == 'date') { + a1 = a.mtime; + b1 = b.mtime; + } else if (order == 'type') { + a1 = _.getFileExtension(a.name); + b1 = _.getFileExtension(b.name); + } else if (order == 'size') { + a1 = a.size; + b1 = b.size; + } else + eval('a1 = a.' + order + '.toLowerCase(); b1 = b.' + order + '.toLowerCase();'); + + if ((order == 'size') || (order == 'date')) { + if (a1 < b1) return desc ? 1 : -1; + if (a1 > b1) return desc ? -1 : 1; + } + + if (a1 == b1) { + a1 = a.name.toLowerCase(); + b1 = b.name.toLowerCase(); + arr = [a1, b1]; + arr = arr.sort(); + return (arr[0] == a1) ? -1 : 1; + } + + arr = [a1, b1]; + arr = arr.sort(); + if (arr[0] == a1) return desc ? 1 : -1; + return desc ? -1 : 1; + }); + + browser.showFiles(callBack, selected); + browser.initFiles(); +}; + +browser.humanSize = function(size) { + if (size < 1024) { + size = size.toString() + ' B'; + } else if (size < 1048576) { + size /= 1024; + size = parseInt(size).toString() + ' KB'; + } else if (size < 1073741824) { + size /= 1048576; + size = parseInt(size).toString() + ' MB'; + } else if (size < 1099511627776) { + size /= 1073741824; + size = parseInt(size).toString() + ' GB'; + } else { + size /= 1099511627776; + size = parseInt(size).toString() + ' TB'; + } + return size; +}; + +browser.baseGetData = function(act) { + var data = 'browse.php?type=' + encodeURIComponent(this.type) + '&lng=' + this.lang; + if (act) + data += "&act=" + act; + if (this.cms) + data += "&cms=" + this.cms; + return data; +}; + +browser.label = function(index, data) { + var label = this.labels[index] ? this.labels[index] : index; + if (data) + $.each(data, function(key, val) { + label = label.replace('{' + key + '}', val); + }); + return label; +}; + +browser.check4errors = function(data, shadow) { + if (!data.error) + return false; + var msg; + if (data.error.join) + msg = data.error.join("\n"); + else + msg = data.error; + browser.alert(msg, shadow); + return true; +}; + +browser.post = function(url, data) { + var html = '
'; + $.each(data, function(key, val) { + if ($.isArray(val)) + $.each(val, function(i, aval) { + html += ''; + }); + else + html += ''; + }); + html += '
'; + $('#dialog').html(html); + $('#dialog').css('display', 'block'); + $('#postForm').get(0).submit(); +}; + +browser.fadeFiles = function() { + $('#files > div').css({ + opacity: '0.4', + filter: 'alpha(opacity:40)' + }); +}; diff --git a/js/browser/settings.js b/js/browser/settings.js new file mode 100644 index 0000000..bdb547a --- /dev/null +++ b/js/browser/settings.js @@ -0,0 +1,102 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */?> + +browser.initSettings = function() { + + if (!this.shows.length) { + var showInputs = $('#show input[type="checkbox"]').toArray(); + $.each(showInputs, function (i, input) { + browser.shows[i] = input.name; + }); + } + + var shows = this.shows; + + if (!_.kuki.isSet('showname')) { + _.kuki.set('showname', 'on'); + $.each(shows, function (i, val) { + if (val != "name") _.kuki.set('show' + val, 'off'); + }); + } + + $('#show input[type="checkbox"]').click(function() { + var kuki = $(this).get(0).checked ? 'on' : 'off'; + _.kuki.set('show' + $(this).get(0).name, kuki) + if ($(this).get(0).checked) + $('#files .file div.' + $(this).get(0).name).css('display', 'block'); + else + $('#files .file div.' + $(this).get(0).name).css('display', 'none'); + }); + + $.each(shows, function(i, val) { + var checked = (_.kuki.get('show' + val) == 'on') ? 'checked' : ''; + $('#show input[name="' + val + '"]').get(0).checked = checked; + }); + + if (!this.orders.length) { + var orderInputs = $('#order input[type="radio"]').toArray(); + $.each(orderInputs, function (i, input) { + browser.orders[i] = input.value; + }); + } + + var orders = this.orders; + + if (!_.kuki.isSet('order')) + _.kuki.set('order', 'name'); + + if (!_.kuki.isSet('orderDesc')) + _.kuki.set('orderDesc', 'off'); + + $('#order input[value="' + _.kuki.get('order') + '"]').get(0).checked = true; + $('#order input[name="desc"]').get(0).checked = (_.kuki.get('orderDesc') == 'on'); + + $('#order input[type="radio"]').click(function() { + _.kuki.set('order', $(this).get(0).value); + browser.orderFiles(); + }); + + $('#order input[name="desc"]').click(function() { + _.kuki.set('orderDesc', $(this).get(0).checked ? 'on' : 'off'); + browser.orderFiles(); + }); + + if (!_.kuki.isSet('view')) + _.kuki.set('view', 'thumbs'); + + if (_.kuki.get('view') == 'list') { + $('#show input').each(function() { this.checked = true; }); + $('#show input').each(function() { this.disabled = true; }); + } + + $('#view input[value="' + _.kuki.get('view') + '"]').get(0).checked = true; + + $('#view input').click(function() { + var view = $(this).attr('value'); + if (_.kuki.get('view') != view) { + _.kuki.set('view', view); + if (view == 'list') { + $('#show input').each(function() { this.checked = true; }); + $('#show input').each(function() { this.disabled = true; }); + } else { + $.each(browser.shows, function(i, val) { + $('#show input[name="' + val + '"]').get(0).checked = + (_.kuki.get('show' + val) == "on"); + }); + $('#show input').each(function() { this.disabled = false; }); + } + } + browser.refresh(); + }); +}; diff --git a/js/browser/toolbar.js b/js/browser/toolbar.js new file mode 100644 index 0000000..e025bb4 --- /dev/null +++ b/js/browser/toolbar.js @@ -0,0 +1,329 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */?> + +browser.initToolbar = function() { + $('#toolbar a').click(function() { + browser.hideDialog(); + }); + + if (!_.kuki.isSet('displaySettings')) + _.kuki.set('displaySettings', 'off'); + + if (_.kuki.get('displaySettings') == 'on') { + $('#toolbar a[href="kcact:settings"]').addClass('selected'); + $('#settings').css('display', 'block'); + browser.resize(); + } + + $('#toolbar a[href="kcact:settings"]').click(function () { + if ($('#settings').css('display') == 'none') { + $(this).addClass('selected'); + _.kuki.set('displaySettings', 'on'); + $('#settings').css('display', 'block'); + browser.fixFilesHeight(); + } else { + $(this).removeClass('selected'); + _.kuki.set('displaySettings', 'off'); + $('#settings').css('display', 'none'); + browser.fixFilesHeight(); + } + return false; + }); + + $('#toolbar a[href="kcact:refresh"]').click(function() { + browser.refresh(); + return false; + }); + + if (window.opener || this.opener.TinyMCE || $('iframe', window.parent.document).get(0)) + $('#toolbar a[href="kcact:maximize"]').click(function() { + browser.maximize(this); + return false; + }); + else + $('#toolbar a[href="kcact:maximize"]').css('display', 'none'); + + $('#toolbar a[href="kcact:about"]').click(function() { + var html = '
' + + '
KCFinder ' + browser.version + '
'; + if (browser.support.check4Update) + html += '
' + browser.label("Checking for new version...") + '
'; + html += + '
' + browser.label("Licenses:") + ' GPLv2 & LGPLv2
' + + '
Copyright ©2010, 2011 Pavel Tzonkov
' + + '' + + '
'; + $('#dialog').html(html); + $('#dialog').data('title', browser.label("About")); + browser.showDialog(); + var close = function() { + browser.hideDialog(); + browser.unshadow(); + } + $('#dialog button').click(close); + var span = $('#checkver > span'); + setTimeout(function() { + $.ajax({ + dataType: 'json', + url: browser.baseGetData('check4Update'), + async: true, + success: function(data) { + if (!$('#dialog').html().length) + return; + span.removeClass('loading'); + if (!data.version) { + span.html(browser.label("Unable to connect!")); + browser.showDialog(); + return; + } + if (browser.version < data.version) + span.html('' + browser.label("Download version {version} now!", {version: data.version}) + ''); + else + span.html(browser.label("KCFinder is up to date!")); + browser.showDialog(); + }, + error: function() { + if (!$('#dialog').html().length) + return; + span.removeClass('loading'); + span.html(browser.label("Unable to connect!")); + browser.showDialog(); + } + }); + }, 1000); + $('#dialog').unbind(); + + return false; + }); + + this.initUploadButton(); +}; + +browser.initUploadButton = function() { + var btn = $('#toolbar a[href="kcact:upload"]'); + if (!this.access.files.upload) { + btn.css('display', 'none'); + return; + } + var top = btn.get(0).offsetTop; + var width = btn.outerWidth(); + var height = btn.outerHeight(); + $('#toolbar').prepend('
' + + '
' + + '' + + '' + + '
' + + '
'); + $('#upload input').css('margin-left', "-" + ($('#upload input').outerWidth() - width) + 'px'); + $('#upload').mouseover(function() { + $('#toolbar a[href="kcact:upload"]').addClass('hover'); + }); + $('#upload').mouseout(function() { + $('#toolbar a[href="kcact:upload"]').removeClass('hover'); + }); +}; + +browser.uploadFile = function(form) { + if (!this.dirWritable) { + browser.alert(this.label("Cannot write to upload folder.")); + $('#upload').detach(); + browser.initUploadButton(); + return; + } + form.elements[1].value = browser.dir; + $('').prependTo(document.body); + $('#loading').html(this.label("Uploading file...")); + $('#loading').css('display', 'inline'); + form.submit(); + $('#uploadResponse').load(function() { + var response = $(this).contents().find('body').html(); + $('#loading').css('display', 'none'); + response = response.split("\n"); + var selected = [], errors = []; + $.each(response, function(i, row) { + if (row.substr(0, 1) == '/') + selected[selected.length] = row.substr(1, row.length - 1) + else + errors[errors.length] = row; + }); + if (errors.length) + browser.alert(errors.join("\n")); + if (!selected.length) + selected = null + browser.refresh(selected); + $('#upload').detach(); + setTimeout(function() { + $('#uploadResponse').detach(); + }, 1); + browser.initUploadButton(); + }); +}; + +browser.maximize = function(button) { + if (window.opener) { + window.moveTo(0, 0); + width = screen.availWidth; + height = screen.availHeight; + if ($.browser.opera) + height -= 50; + window.resizeTo(width, height); + + } else if (browser.opener.TinyMCE) { + var win, ifr, id; + + $('iframe', window.parent.document).each(function() { + if (/^mce_\d+_ifr$/.test($(this).attr('id'))) { + id = parseInt($(this).attr('id').replace(/^mce_(\d+)_ifr$/, "$1")); + win = $('#mce_' + id, window.parent.document); + ifr = $('#mce_' + id + '_ifr', window.parent.document); + } + }); + + if ($(button).hasClass('selected')) { + $(button).removeClass('selected'); + win.css({ + left: browser.maximizeMCE.left + 'px', + top: browser.maximizeMCE.top + 'px', + width: browser.maximizeMCE.width + 'px', + height: browser.maximizeMCE.height + 'px' + }); + ifr.css({ + width: browser.maximizeMCE.width - browser.maximizeMCE.Hspace + 'px', + height: browser.maximizeMCE.height - browser.maximizeMCE.Vspace + 'px' + }); + + } else { + $(button).addClass('selected') + browser.maximizeMCE = { + width: _.nopx(win.css('width')), + height: _.nopx(win.css('height')), + left: win.position().left, + top: win.position().top, + Hspace: _.nopx(win.css('width')) - _.nopx(ifr.css('width')), + Vspace: _.nopx(win.css('height')) - _.nopx(ifr.css('height')) + }; + var width = $(window.parent).width(); + var height = $(window.parent).height(); + win.css({ + left: $(window.parent).scrollLeft() + 'px', + top: $(window.parent).scrollTop() + 'px', + width: width + 'px', + height: height + 'px' + }); + ifr.css({ + width: width - browser.maximizeMCE.Hspace + 'px', + height: height - browser.maximizeMCE.Vspace + 'px' + }); + } + + } else if ($('iframe', window.parent.document).get(0)) { + var ifrm = $('iframe[name="' + window.name + '"]', window.parent.document); + var parent = ifrm.parent(); + var width, height; + if ($(button).hasClass('selected')) { + $(button).removeClass('selected'); + if (browser.maximizeThread) { + clearInterval(browser.maximizeThread); + browser.maximizeThread = null; + } + if (browser.maximizeW) browser.maximizeW = null; + if (browser.maximizeH) browser.maximizeH = null; + $.each($('*', window.parent.document).get(), function(i, e) { + e.style.display = browser.maximizeDisplay[i]; + }); + ifrm.css({ + display: browser.maximizeCSS.display, + position: browser.maximizeCSS.position, + left: browser.maximizeCSS.left, + top: browser.maximizeCSS.top, + width: browser.maximizeCSS.width, + height: browser.maximizeCSS.height + }); + $(window.parent).scrollLeft(browser.maximizeLest); + $(window.parent).scrollTop(browser.maximizeTop); + + } else { + $(button).addClass('selected'); + browser.maximizeCSS = { + display: ifrm.css('display'), + position: ifrm.css('position'), + left: ifrm.css('left'), + top: ifrm.css('top'), + width: ifrm.outerWidth() + 'px', + height: ifrm.outerHeight() + 'px' + }; + browser.maximizeTop = $(window.parent).scrollTop(); + browser.maximizeLeft = $(window.parent).scrollLeft(); + browser.maximizeDisplay = []; + $.each($('*', window.parent.document).get(), function(i, e) { + browser.maximizeDisplay[i] = $(e).css('display'); + $(e).css('display', 'none'); + }); + + ifrm.css('display', 'block'); + ifrm.parents().css('display', 'block'); + var resize = function() { + width = $(window.parent).width(); + height = $(window.parent).height(); + if (!browser.maximizeW || (browser.maximizeW != width) || + !browser.maximizeH || (browser.maximizeH != height) + ) { + browser.maximizeW = width; + browser.maximizeH = height; + ifrm.css({ + width: width + 'px', + height: height + 'px' + }); + browser.resize(); + } + } + ifrm.css('position', 'absolute'); + if ((ifrm.offset().left == ifrm.position().left) && + (ifrm.offset().top == ifrm.position().top) + ) + ifrm.css({left: '0', top: '0'}); + else + ifrm.css({ + left: - ifrm.offset().left + 'px', + top: - ifrm.offset().top + 'px' + }); + + resize(); + browser.maximizeThread = setInterval(resize, 250); + } + } +}; + +browser.refresh = function(selected) { + this.fadeFiles(); + $.ajax({ + type: 'POST', + dataType: 'json', + url: browser.baseGetData('chDir'), + data: {dir:browser.dir}, + async: false, + success: function(data) { + if (browser.check4errors(data)) + return; + browser.dirWritable = data.dirWritable; + browser.files = data.files ? data.files : []; + browser.orderFiles(null, selected); + browser.statusDir(); + }, + error: function() { + $('#files > div').css({opacity:'', filter:''}); + $('#files').html(browser.label("Unknown error.")); + } + }); +}; diff --git a/js/helper.js b/js/helper.js new file mode 100644 index 0000000..4aa29ef --- /dev/null +++ b/js/helper.js @@ -0,0 +1,411 @@ +/** This file is part of KCFinder project + * + * @desc Helper object + * @package KCFinder + * @version 2.52-dev + * @author Pavel Tzonkov + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +var _ = function(id) { + return document.getElementById(id); +}; + +_.nopx = function(val) { + return parseInt(val.replace(/^(\d+)px$/, "$1")); +}; + +_.unselect = function() { + if (document.selection && document.selection.empty) + document.selection.empty() ; + else if (window.getSelection) { + var sel = window.getSelection(); + if (sel && sel.removeAllRanges) + sel.removeAllRanges(); + } +}; + +_.selection = function(field, start, end) { + if (field.createTextRange) { + var selRange = field.createTextRange(); + selRange.collapse(true); + selRange.moveStart('character', start); + selRange.moveEnd('character', end-start); + selRange.select(); + } else if (field.setSelectionRange) { + field.setSelectionRange(start, end); + } else if (field.selectionStart) { + field.selectionStart = start; + field.selectionEnd = end; + } + field.focus(); +}; + +_.htmlValue = function(value) { + return value + .replace(/\&/g, "&") + .replace(/\"/g, """) + .replace(/\'/g, "'"); +}; + +_.htmlData = function(value) { + return value + .replace(/\&/g, "&") + .replace(/\/g, ">") + .replace(/\ /g, " "); +} + +_.jsValue = function(value) { + return value + .replace(/\\/g, "\\\\") + .replace(/\r?\n/, "\\\n") + .replace(/\"/g, "\\\"") + .replace(/\'/g, "\\'"); +}; + +_.basename = function(path) { + var expr = /^.*\/([^\/]+)\/?$/g; + return expr.test(path) + ? path.replace(expr, "$1") + : path; +}; + +_.dirname = function(path) { + var expr = /^(.*)\/[^\/]+\/?$/g; + return expr.test(path) + ? path.replace(expr, "$1") + : ''; +}; + +_.inArray = function(needle, arr) { + if ((typeof arr == 'undefined') || !arr.length || !arr.push) + return false; + for (var i = 0; i < arr.length; i++) + if (arr[i] == needle) + return true; + return false; +}; + +_.getFileExtension = function(filename, toLower) { + if (typeof(toLower) == 'undefined') toLower = true; + if (/^.*\.[^\.]*$/.test(filename)) { + var ext = filename.replace(/^.*\.([^\.]*)$/, "$1"); + return toLower ? ext.toLowerCase(ext) : ext; + } else + return ""; +}; + +_.escapeDirs = function(path) { + var fullDirExpr = /^([a-z]+)\:\/\/([^\/^\:]+)(\:(\d+))?\/(.+)$/, + prefix = ""; + if (fullDirExpr.test(path)) { + var port = path.replace(fullDirExpr, "$4"); + prefix = path.replace(fullDirExpr, "$1://$2") + if (port.length) + prefix += ":" + port; + prefix += "/"; + path = path.replace(fullDirExpr, "$5"); + } + + var dirs = path.split('/'); + var escapePath = ''; + for (var i = 0; i < dirs.length; i++) + escapePath += encodeURIComponent(dirs[i]) + '/'; + + return prefix + escapePath.substr(0, escapePath.length - 1); +}; + +_.outerSpace = function(selector, type, mbp) { + if (!mbp) mbp = "mbp"; + var r = 0; + if (/m/i.test(mbp)) { + var m = _.nopx($(selector).css('margin-' + type)); + if (m) r += m; + } + if (/b/i.test(mbp)) { + var b = _.nopx($(selector).css('border-' + type + '-width')); + if (b) r += b; + } + if (/p/i.test(mbp)) { + var p = _.nopx($(selector).css('padding-' + type)); + if (p) r += p; + } + return r; +}; + +_.outerLeftSpace = function(selector, mbp) { + return _.outerSpace(selector, 'left', mbp); +}; + +_.outerTopSpace = function(selector, mbp) { + return _.outerSpace(selector, 'top', mbp); +}; + +_.outerRightSpace = function(selector, mbp) { + return _.outerSpace(selector, 'right', mbp); +}; + +_.outerBottomSpace = function(selector, mbp) { + return _.outerSpace(selector, 'bottom', mbp); +}; + +_.outerHSpace = function(selector, mbp) { + return (_.outerLeftSpace(selector, mbp) + _.outerRightSpace(selector, mbp)); +}; + +_.outerVSpace = function(selector, mbp) { + return (_.outerTopSpace(selector, mbp) + _.outerBottomSpace(selector, mbp)); +}; + +_.kuki = { + prefix: '', + duration: 356, + domain: '', + path: '', + secure: false, + + set: function(name, value, duration, domain, path, secure) { + name = this.prefix + name; + if (duration == null) duration = this.duration; + if (secure == null) secure = this.secure; + if ((domain == null) && this.domain) domain = this.domain; + if ((path == null) && this.path) path = this.path; + secure = secure ? true : false; + + var date = new Date(); + date.setTime(date.getTime() + (duration * 86400000)); + var expires = date.toGMTString(); + + var str = name + '=' + value + '; expires=' + expires; + if (domain != null) str += '; domain=' + domain; + if (path != null) str += '; path=' + path; + if (secure) str += '; secure'; + + return (document.cookie = str) ? true : false; + }, + + get: function(name) { + name = this.prefix + name; + var nameEQ = name + '='; + var kukis = document.cookie.split(';'); + var kuki; + + for (var i = 0; i < kukis.length; i++) { + kuki = kukis[i]; + while (kuki.charAt(0) == ' ') + kuki = kuki.substring(1, kuki.length); + + if (kuki.indexOf(nameEQ) == 0) + return kuki.substring(nameEQ.length, kuki.length); + } + + return null; + }, + + del: function(name) { + return this.set(name, '', -1); + }, + + isSet: function(name) { + return (this.get(name) != null); + } +}; + +_.md5 = function(string) { + + var RotateLeft = function(lValue, iShiftBits) { + return (lValue<>>(32-iShiftBits)); + }; + + var AddUnsigned = function(lX,lY) { + var lX4, lY4, lX8, lY8, lResult; + lX8 = (lX & 0x80000000); + lY8 = (lY & 0x80000000); + lX4 = (lX & 0x40000000); + lY4 = (lY & 0x40000000); + lResult = (lX & 0x3FFFFFFF) + (lY & 0x3FFFFFFF); + if (lX4 & lY4) + return (lResult ^ 0x80000000 ^ lX8 ^ lY8); + if (lX4 | lY4) + return (lResult & 0x40000000) + ? (lResult ^ 0xC0000000 ^ lX8 ^ lY8) + : (lResult ^ 0x40000000 ^ lX8 ^ lY8); + else + return (lResult ^ lX8 ^ lY8); + }; + + var F = function(x, y, z) { return (x & y) | ((~x) & z); }; + var G = function(x, y, z) { return (x & z) | (y & (~z)); }; + var H = function(x, y, z) { return (x ^ y ^ z); }; + var I = function(x, y, z) { return (y ^ (x | (~z))); }; + + var FF = function(a, b, c, d, x, s, ac) { + a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac)); + return AddUnsigned(RotateLeft(a, s), b); + }; + + var GG = function(a, b, c, d, x, s, ac) { + a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac)); + return AddUnsigned(RotateLeft(a, s), b); + }; + + var HH = function(a, b, c, d, x, s, ac) { + a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac)); + return AddUnsigned(RotateLeft(a, s), b); + }; + + var II = function(a, b, c, d, x, s, ac) { + a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac)); + return AddUnsigned(RotateLeft(a, s), b); + }; + + var ConvertToWordArray = function(string) { + var lWordCount; + var lMessageLength = string.length; + var lNumberOfWords_temp1 = lMessageLength + 8; + var lNumberOfWords_temp2 = (lNumberOfWords_temp1 - (lNumberOfWords_temp1 % 64)) / 64; + var lNumberOfWords = (lNumberOfWords_temp2 + 1) * 16; + var lWordArray = [lNumberOfWords - 1]; + var lBytePosition = 0; + var lByteCount = 0; + while (lByteCount < lMessageLength) { + lWordCount = (lByteCount - (lByteCount % 4)) / 4; + lBytePosition = (lByteCount % 4) * 8; + lWordArray[lWordCount] = (lWordArray[lWordCount] | (string.charCodeAt(lByteCount) << lBytePosition)); + lByteCount++; + } + lWordCount = (lByteCount - (lByteCount % 4)) / 4; + lBytePosition = (lByteCount % 4) * 8; + lWordArray[lWordCount] = lWordArray[lWordCount] | (0x80 << lBytePosition); + lWordArray[lNumberOfWords - 2] = lMessageLength << 3; + lWordArray[lNumberOfWords - 1] = lMessageLength >>> 29; + return lWordArray; + }; + + var WordToHex = function(lValue) { + var WordToHexValue = "", WordToHexValue_temp = "", lByte, lCount; + for (lCount = 0; lCount <= 3; lCount++) { + lByte = (lValue >>> (lCount * 8)) & 255; + WordToHexValue_temp = "0" + lByte.toString(16); + WordToHexValue = WordToHexValue + WordToHexValue_temp.substr(WordToHexValue_temp.length - 2,2); + } + return WordToHexValue; + }; + + var x = []; + var k, AA, BB, CC, DD, a, b, c, d; + var S11 = 7, S12 = 12, S13 = 17, S14 = 22; + var S21 = 5, S22 = 9, S23 = 14, S24 = 20; + var S31 = 4, S32 = 11, S33 = 16, S34 = 23; + var S41 = 6, S42 = 10, S43 = 15, S44 = 21; + + string = _.utf8encode(string); + + x = ConvertToWordArray(string); + + a = 0x67452301; b = 0xEFCDAB89; c = 0x98BADCFE; d = 0x10325476; + + for (k = 0; k < x.length; k += 16) { + AA = a; BB = b; CC = c; DD = d; + a = FF(a, b, c, d, x[k + 0], S11, 0xD76AA478); + d = FF(d, a, b, c, x[k + 1], S12, 0xE8C7B756); + c = FF(c, d, a, b, x[k + 2], S13, 0x242070DB); + b = FF(b, c, d, a, x[k + 3], S14, 0xC1BDCEEE); + a = FF(a, b, c, d, x[k + 4], S11, 0xF57C0FAF); + d = FF(d, a, b, c, x[k + 5], S12, 0x4787C62A); + c = FF(c, d, a, b, x[k + 6], S13, 0xA8304613); + b = FF(b, c, d, a, x[k + 7], S14, 0xFD469501); + a = FF(a, b, c, d, x[k + 8], S11, 0x698098D8); + d = FF(d, a, b, c, x[k + 9], S12, 0x8B44F7AF); + c = FF(c, d, a, b, x[k + 10], S13, 0xFFFF5BB1); + b = FF(b, c, d, a, x[k + 11], S14, 0x895CD7BE); + a = FF(a, b, c, d, x[k + 12], S11, 0x6B901122); + d = FF(d, a, b, c, x[k + 13], S12, 0xFD987193); + c = FF(c, d, a, b, x[k + 14], S13, 0xA679438E); + b = FF(b, c, d, a, x[k + 15], S14, 0x49B40821); + a = GG(a, b, c, d, x[k + 1], S21, 0xF61E2562); + d = GG(d, a, b, c, x[k + 6], S22, 0xC040B340); + c = GG(c, d, a, b, x[k + 11], S23, 0x265E5A51); + b = GG(b, c, d, a, x[k + 0], S24, 0xE9B6C7AA); + a = GG(a, b, c, d, x[k + 5], S21, 0xD62F105D); + d = GG(d, a, b, c, x[k + 10], S22, 0x2441453); + c = GG(c, d, a, b, x[k + 15], S23, 0xD8A1E681); + b = GG(b, c, d, a, x[k + 4], S24, 0xE7D3FBC8); + a = GG(a, b, c, d, x[k + 9], S21, 0x21E1CDE6); + d = GG(d, a, b, c, x[k + 14], S22, 0xC33707D6); + c = GG(c, d, a, b, x[k + 3], S23, 0xF4D50D87); + b = GG(b, c, d, a, x[k + 8], S24, 0x455A14ED); + a = GG(a, b, c, d, x[k + 13], S21, 0xA9E3E905); + d = GG(d, a, b, c, x[k + 2], S22, 0xFCEFA3F8); + c = GG(c, d, a, b, x[k + 7], S23, 0x676F02D9); + b = GG(b, c, d, a, x[k + 12], S24, 0x8D2A4C8A); + a = HH(a, b, c, d, x[k + 5], S31, 0xFFFA3942); + d = HH(d, a, b, c, x[k + 8], S32, 0x8771F681); + c = HH(c, d, a, b, x[k + 11], S33, 0x6D9D6122); + b = HH(b, c, d, a, x[k + 14], S34, 0xFDE5380C); + a = HH(a, b, c, d, x[k + 1], S31, 0xA4BEEA44); + d = HH(d, a, b, c, x[k + 4], S32, 0x4BDECFA9); + c = HH(c, d, a, b, x[k + 7], S33, 0xF6BB4B60); + b = HH(b, c, d, a, x[k + 10], S34, 0xBEBFBC70); + a = HH(a, b, c, d, x[k + 13], S31, 0x289B7EC6); + d = HH(d, a, b, c, x[k + 0], S32, 0xEAA127FA); + c = HH(c, d, a, b, x[k + 3], S33, 0xD4EF3085); + b = HH(b, c, d, a, x[k + 6], S34, 0x4881D05); + a = HH(a, b, c, d, x[k + 9], S31, 0xD9D4D039); + d = HH(d, a, b, c, x[k + 12], S32, 0xE6DB99E5); + c = HH(c, d, a, b, x[k + 15], S33, 0x1FA27CF8); + b = HH(b, c, d, a, x[k + 2], S34, 0xC4AC5665); + a = II(a, b, c, d, x[k + 0], S41, 0xF4292244); + d = II(d, a, b, c, x[k + 7], S42, 0x432AFF97); + c = II(c, d, a, b, x[k + 14], S43, 0xAB9423A7); + b = II(b, c, d, a, x[k + 5], S44, 0xFC93A039); + a = II(a, b, c, d, x[k + 12], S41, 0x655B59C3); + d = II(d, a, b, c, x[k + 3], S42, 0x8F0CCC92); + c = II(c, d, a, b, x[k + 10], S43, 0xFFEFF47D); + b = II(b, c, d, a, x[k + 1], S44, 0x85845DD1); + a = II(a, b, c, d, x[k + 8], S41, 0x6FA87E4F); + d = II(d, a, b, c, x[k + 15], S42, 0xFE2CE6E0); + c = II(c, d, a, b, x[k + 6], S43, 0xA3014314); + b = II(b, c, d, a, x[k + 13], S44, 0x4E0811A1); + a = II(a, b, c, d, x[k + 4], S41, 0xF7537E82); + d = II(d, a, b, c, x[k + 11], S42, 0xBD3AF235); + c = II(c, d, a, b, x[k + 2], S43, 0x2AD7D2BB); + b = II(b, c, d, a, x[k + 9], S44, 0xEB86D391); + a = AddUnsigned(a, AA); + b = AddUnsigned(b, BB); + c = AddUnsigned(c, CC); + d = AddUnsigned(d, DD); + } + + var temp = WordToHex(a) + WordToHex(b) + WordToHex(c) + WordToHex(d); + + return temp.toLowerCase(); +}; + +_.utf8encode = function(string) { + string = string.replace(/\r\n/g,"\n"); + var utftext = ""; + + for (var n = 0; n < string.length; n++) { + + var c = string.charCodeAt(n); + + if (c < 128) { + utftext += String.fromCharCode(c); + } else if((c > 127) && (c < 2048)) { + utftext += String.fromCharCode((c >> 6) | 192); + utftext += String.fromCharCode((c & 63) | 128); + } else { + utftext += String.fromCharCode((c >> 12) | 224); + utftext += String.fromCharCode(((c >> 6) & 63) | 128); + utftext += String.fromCharCode((c & 63) | 128); + } + + } + + return utftext; +}; diff --git a/js/jquery.drag.js b/js/jquery.drag.js new file mode 100644 index 0000000..337995f --- /dev/null +++ b/js/jquery.drag.js @@ -0,0 +1,6 @@ +/*! + * jquery.event.drag - v 2.0.0 + * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com + * Open Source MIT License - http://threedubmedia.com/code/license + */ +(function(f){f.fn.drag=function(b,a,d){var e=typeof b=="string"?b:"",k=f.isFunction(b)?b:f.isFunction(a)?a:null;if(e.indexOf("drag")!==0)e="drag"+e;d=(b==k?a:d)||{};return k?this.bind(e,d,k):this.trigger(e)};var i=f.event,h=i.special,c=h.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:false,drop:true,click:false},datakey:"dragdata",livekey:"livedrag",add:function(b){var a=f.data(this,c.datakey),d=b.data||{};a.related+=1;if(!a.live&&b.selector){a.live=true;i.add(this,"draginit."+ c.livekey,c.delegate)}f.each(c.defaults,function(e){if(d[e]!==undefined)a[e]=d[e]})},remove:function(){f.data(this,c.datakey).related-=1},setup:function(){if(!f.data(this,c.datakey)){var b=f.extend({related:0},c.defaults);f.data(this,c.datakey,b);i.add(this,"mousedown",c.init,b);this.attachEvent&&this.attachEvent("ondragstart",c.dontstart)}},teardown:function(){if(!f.data(this,c.datakey).related){f.removeData(this,c.datakey);i.remove(this,"mousedown",c.init);i.remove(this,"draginit",c.delegate);c.textselect(true); this.detachEvent&&this.detachEvent("ondragstart",c.dontstart)}},init:function(b){var a=b.data,d;if(!(a.which>0&&b.which!=a.which))if(!f(b.target).is(a.not))if(!(a.handle&&!f(b.target).closest(a.handle,b.currentTarget).length)){a.propagates=1;a.interactions=[c.interaction(this,a)];a.target=b.target;a.pageX=b.pageX;a.pageY=b.pageY;a.dragging=null;d=c.hijack(b,"draginit",a);if(a.propagates){if((d=c.flatten(d))&&d.length){a.interactions=[];f.each(d,function(){a.interactions.push(c.interaction(this,a))})}a.propagates= a.interactions.length;a.drop!==false&&h.drop&&h.drop.handler(b,a);c.textselect(false);i.add(document,"mousemove mouseup",c.handler,a);return false}}},interaction:function(b,a){return{drag:b,callback:new c.callback,droppable:[],offset:f(b)[a.relative?"position":"offset"]()||{top:0,left:0}}},handler:function(b){var a=b.data;switch(b.type){case !a.dragging&&"mousemove":if(Math.pow(b.pageX-a.pageX,2)+Math.pow(b.pageY-a.pageY,2)").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),c.body.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write("");b=cl.createElement(a),cl.body.appendChild(b),d=f.css(b,"display"),c.body.removeChild(ck)}cj[a]=d}return cj[a]}function cu(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function ct(){cq=b}function cs(){setTimeout(ct,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g=0===c})}function W(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function O(a,b){return(a&&a!=="*"?a+".":"")+b.replace(A,"`").replace(B,"&")}function N(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;ic)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function L(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function F(){return!0}function E(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function H(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(H,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=d.userAgent,x,y,z,A=Object.prototype.toString,B=Object.prototype.hasOwnProperty,C=Array.prototype.push,D=Array.prototype.slice,E=String.prototype.trim,F=Array.prototype.indexOf,G={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.1",length:0,size:function(){return this.length},toArray:function(){return D.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?C.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(D.apply(this,arguments),"slice",D.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:C,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;y.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!y){y=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",z,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",z),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&H()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):G[A.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!B.call(a,"constructor")&&!B.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||B.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c
a",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};f=c.createElement("select"),g=f.appendChild(c.createElement("option")),h=a.getElementsByTagName("input")[0],j={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},h.checked=!0,j.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,j.optDisabled=!g.disabled;try{delete a.test}catch(s){j.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function b(){j.noCloneEvent=!1,a.detachEvent("onclick",b)}),a.cloneNode(!0).fireEvent("onclick")),h=c.createElement("input"),h.value="t",h.setAttribute("type","radio"),j.radioValue=h.value==="t",h.setAttribute("checked","checked"),a.appendChild(h),k=c.createDocumentFragment(),k.appendChild(a.firstChild),j.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",l=c.createElement("body"),m={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(q in m)l.style[q]=m[q];l.appendChild(a),b.insertBefore(l,b.firstChild),j.appendChecked=h.checked,j.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,j.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
",j.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
t
",n=a.getElementsByTagName("td"),r=n[0].offsetHeight===0,n[0].style.display="",n[1].style.display="none",j.reliableHiddenOffsets=r&&n[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(i=c.createElement("div"),i.style.width="0",i.style.marginRight="0",a.appendChild(i),j.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(i,null)||{marginRight:0}).marginRight,10)||0)===0),l.innerHTML="",b.removeChild(l);if(a.attachEvent)for(q in{submit:1,change:1,focusin:1})p="on"+q,r=p in a,r||(a.setAttribute(p,"return;"),r=typeof a[p]=="function"),j[q+"Bubbles"]=r;return j}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[f.camelCase(c)]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;return(e.value||"").replace(p,"")}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);c=j&&f.attrFix[c]||c,i=f.attrHooks[c],i||(!t.test(c)||typeof d!="boolean"&&d!==b&&d.toLowerCase()!==c.toLowerCase()?v&&(f.nodeName(a,"form")||u.test(c))&&(i=v):i=w);if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j)return i.get(a,c);h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);c=i&&f.propFix[c]||c,h=f.propHooks[c];return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return a[f.propFix[c]||c]?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=b),a.setAttribute(c,c.toLowerCase()));return c}},f.attrHooks.value={get:function(a,b){if(v&&f.nodeName(a,"button"))return v.get(a,b);return a.value},set:function(a,b,c){if(v&&f.nodeName(a,"button"))return v.set(a,b,c);a.value=b}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=Object.prototype.hasOwnProperty,y=/\.(.*)$/,z=/^(?:textarea|input|select)$/i,A=/\./g,B=/ /g,C=/[^\w\s.|`]/g,D=function(a){return a.replace(C,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=E;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=E);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),D).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem +)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},K=function(c){var d=c.target,e,g;if(!!z.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=J(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:K,beforedeactivate:K,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&K.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&K.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",J(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in I)f.event.add(this,c+".specialChange",I[c]);return z.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return z.test(this.nodeName)}},I=f.event.special.change.filters,I.focus=I.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(h=g;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=U.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string")return f.inArray(this[0],a?f(a):this.parent().children());return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(W(c[0])||W(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=T.call(arguments);P.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!V[a]?f.unique(e):e,(this.length>1||R.test(d))&&Q.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var Y=/ jQuery\d+="(?:\d+|null)"/g,Z=/^\s+/,$=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,_=/<([\w:]+)/,ba=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
","
"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Y,""):null;if(typeof a=="string"&&!bc.test(a)&&(f.support.leadingWhitespace||!Z.test(a))&&!bg[(_.exec(a)||["",""])[1].toLowerCase()]){a=a.replace($,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bj(a,d),e=bk(a),g=bk(d);for(h=0;e[h];++h)bj(e[h],g[h])}if(b){bi(a,d);if(c){e=bk(a),g=bk(d);for(h=0;e[h];++h)bi(e[h],g[h])}}return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument|| +b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!bb.test(k))k=b.createTextNode(k);else{k=k.replace($,"<$1>");var l=(_.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=ba.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&Z.test(k)&&o.insertBefore(b.createTextNode(Z.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bp.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bo.test(g)?g.replace(bo,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,c){var d,e,g;c=c.replace(br,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bs.test(d)&&bt.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bE=/%20/g,bF=/\[\]$/,bG=/\r?\n/g,bH=/#.*$/,bI=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bJ=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bK=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bL=/^(?:GET|HEAD)$/,bM=/^\/\//,bN=/\?/,bO=/)<[^<]*)*<\/script>/gi,bP=/^(?:select|textarea)/i,bQ=/\s+/,bR=/([?&])_=[^&]*/,bS=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bT=f.fn.load,bU={},bV={},bW,bX;try{bW=e.href}catch(bY){bW=c.createElement("a"),bW.href="",bW=bW.href}bX=bS.exec(bW.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bT)return bT.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bO,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bP.test(this.nodeName)||bJ.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bG,"\r\n")}}):{name:b.name,value:c.replace(bG,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?f.extend(!0,a,f.ajaxSettings,b):(b=a,a=f.extend(!0,f.ajaxSettings,b));for(var c in{context:1,url:1})c in b?a[c]=b[c]:c in f.ajaxSettings&&(a[c]=f.ajaxSettings[c]);return a},ajaxSettings:{url:bW,isLocal:bK.test(bX[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML}},ajaxPrefilter:bZ(bU),ajaxTransport:bZ(bV),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a?4:0;var o,r,u,w=l?ca(d,v,l):b,x,y;if(a>=200&&a<300||a===304){if(d.ifModified){if(x=v.getResponseHeader("Last-Modified"))f.lastModified[k]=x;if(y=v.getResponseHeader("Etag"))f.etag[k]=y}if(a===304)c="notmodified",o=!0;else try{r=cb(d,w),c="success",o=!0}catch(z){c="parsererror",u=z}}else{u=c;if(!c||a)c="error",a<0&&(a=0)}v.status=a,v.statusText=c,o?h.resolveWith(e,[r,c,v]):h.rejectWith(e,[v,c,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,c]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bI.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bH,"").replace(bM,bX[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bQ),d.crossDomain==null&&(r=bS.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bX[1]&&r[2]==bX[2]&&(r[3]||(r[1]==="http:"?80:443))==(bX[3]||(bX[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bU,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bL.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bN.test(d.url)?"&":"?")+d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bR,"$1_="+x);d.url=y+(y===d.url?(bN.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", */*; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bV,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){status<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bE,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq,cr=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b
";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cy(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){return this[0]?parseFloat(f.css(this[0],d,"padding")):null},f.fn["outer"+c]=function(a){return this[0]?parseFloat(f.css(this[0],d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var h=f.css(e,d),i=parseFloat(h);return f.isNaN(i)?h:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window); \ No newline at end of file diff --git a/js/jquery.rightClick.js b/js/jquery.rightClick.js new file mode 100644 index 0000000..5dbe7f8 --- /dev/null +++ b/js/jquery.rightClick.js @@ -0,0 +1,16 @@ +/*! + * jQuery Right-Click Plugin + * + * Version 1.01 + * + * Cory S.N. LaViska + * A Beautiful Site (http://abeautifulsite.net/) + * 20 December 2008 + * + * Visit http://abeautifulsite.net/notebook/68 for more information + * + * License: + * This plugin is dual-licensed under the GNU General Public License and the MIT License + * and is copyright 2008 A Beautiful Site, LLC. + */ +if(jQuery){(function(){$.extend($.fn,{rightClick:function(a){$(this).each(function(){$(this).mousedown(function(c){var b=c;if($.browser.safari&&navigator.userAgent.indexOf("Mac")!=-1&&parseInt($.browser.version,10)<=525){if(b.button==2){a.call($(this),b);return false}else{return true}}else{$(this).mouseup(function(){$(this).unbind("mouseup");if(b.button==2){a.call($(this),b);return false}else{return true}})}});$(this)[0].oncontextmenu=function(){return false}});return $(this)},rightMouseDown:function(a){$(this).each(function(){$(this).mousedown(function(b){if(b.button==2){a.call($(this),b);return false}else{return true}});$(this)[0].oncontextmenu=function(){return false}});return $(this)},rightMouseUp:function(a){$(this).each(function(){$(this).mouseup(function(b){if(b.button==2){a.call($(this),b);return false}else{return true}});$(this)[0].oncontextmenu=function(){return false}});return $(this)},noContext:function(){$(this).each(function(){$(this)[0].oncontextmenu=function(){return false}});return $(this)}})})(jQuery)}; \ No newline at end of file diff --git a/js_localize.php b/js_localize.php new file mode 100644 index 0000000..6f4ce54 --- /dev/null +++ b/js_localize.php @@ -0,0 +1,40 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +require "core/autoload.php"; +if (function_exists('set_magic_quotes_runtime')) + @set_magic_quotes_runtime(false); +$input = new input(); +if (!isset($input->get['lng']) || ($input->get['lng'] == 'en')) { + header("Content-Type: text/javascript"); + die; +} +$file = "lang/" . $input->get['lng'] . ".php"; +$files = dir::content("lang", array( + 'types' => "file", + 'pattern' => '/^.*\.php$/' +)); +if (!in_array($file, $files)) { + header("Content-Type: text/javascript"); + die; +} +$mtime = @filemtime($file); +if ($mtime) httpCache::checkMTime($mtime); +require $file; +header("Content-Type: text/javascript; charset={$lang['_charset']}"); +foreach ($lang as $english => $native) + if (substr($english, 0, 1) != "_") + echo "browser.labels['" . text::jsValue($english) . "']=\"" . text::jsValue($native) . "\";"; + +?> diff --git a/lang/.htaccess b/lang/.htaccess new file mode 100644 index 0000000..d61b264 --- /dev/null +++ b/lang/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + diff --git a/lang/af.php b/lang/af.php new file mode 100644 index 0000000..1eccc0a --- /dev/null +++ b/lang/af.php @@ -0,0 +1,245 @@ + "af-ZA.UTF-8", + '_charset' => "utf-8", + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%d %B %Y %H:%M", + '_dateTimeMid' => "%d %b %Y %H:%M", + '_dateTimeSmall' => "%d %b %Y %H:%M", + + "You don't have permissions to upload files." => + "Jy het nie toestemming om lêers op te laai nie oplaai nie.", + + "You don't have permissions to browse server." => + "Jy het nie toestemming tot die bediener nie.", + + "Cannot move uploaded file to target folder." => + "Jy kannie die lêer beweeg na die gids toe nie.", + + "Unknown error." => + "Onbekende fout.", + + "The uploaded file exceeds {size} bytes." => + "Die foto's lêer oorskry {size} grepe.", + + "The uploaded file was only partially uploaded." => + "Die foto's lêer is slegs gedeeltelik opgelaai.", + + "No file was uploaded." => + "Geen lêer is opgelaai.", + + "Missing a temporary folder." => + "'N tydelike gids ontbreek.", + + "Failed to write file." => + "Misluk om lêer te kryf.", + + "Denied file extension." => + "Lêer uitbreiding verloën.", + + "Unknown image format/encoding." => + "Onbekende prentjie-formaat / kodering.", + + "The image is too big and/or cannot be resized." => + "Die beeld is te groot en / of kan nie verander word nie.", + + "Cannot create {dir} folder." => + "Kan nie {dir} gids skep nie.", + + "Cannot write to upload folder." => + "Kan nie skryf na die oplaai gids nie.", + + "Cannot read .htaccess" => + "Kan nie .htaccess lees nie.", + + "Incorrect .htaccess file. Cannot rewrite it!" => + "Verkeerde .htaccess lêer. Kan nie herskryf dit!", + + "Cannot fetch content of {dir} folder." => + "Kan nie haal inhoud van {dir} gids nie.", + + "Cannot read upload folder." => + "Kan nie oplaai gids lees nie.", + + "Cannot access or create thumbnails folder." => + "Kan nie toegang tot of duimnaels gids skep.", + + "Cannot access or write to upload folder." => + "Kan nie toegang tot of skryf na oplaai gids nie.", + + "Please enter new folder name." => + "Gee die nuwe gidsnaam.", + + "Unallowed characters in folder name." => + "Ongeoorloofd karakters in gidsnaam.", + + "Folder name shouldn't begins with '.'" => + "Gidsnaam moet nie begin met '.'", + + "Please enter new file name." => + "Gee nuwe lêernaam.", + + "Unallowed characters in file name." => + "Ongeoorloofd karakters in die lêernaam.", + + "File name shouldn't begins with '.'" => + "Lêer naam moet nie begin met '.'", + + "Are you sure you want to delete this file?" => + "Is jy seker jy wil hierdie lêer te verwyder ?", + + "Are you sure you want to delete this folder and all its content?" => + "Is jy seker jy wil hierdie gids en al die inhoud daarin te verwyder ?", + + "Unexisting directory type." => + "Nie Bestaande gids tipe.", + + "Undefined MIME types." => + "Ongedefinieerd MIME-tipes.", + + "Fileinfo PECL extension is missing." => + "Fileinfo PECL uitbreiding is weg.", + + "Opening fileinfo database failed." => + "Opening van fileinfo databasis het misluk.", + + "You can't upload such files." => + "Jy kan nie sulke lêers oplaai.", + + "The file '{file}' does not exist." => + "Die lêer '{file}' bestaan ​​nie.", + + "Cannot read '{file}'." => + "Kan nie '{lêer}' lees nie.", + + "Cannot copy '{file}'." => + "Kan nie '{lêer}' kopieer nie.", + + "Cannot move '{file}'." => + "Kan nie '{lêer}' beweeg nie.", + + "Cannot delete '{file}'." => + "Kan nie '{lêer}' verwyder .", + + "Click to remove from the Clipboard" => + "Klik om te verwyder van die Klembord", + + "This file is already added to the Clipboard." => + "Hierdie lêer is reeds aan die Klembord bygevoeg.", + + "Copy files here" => + "Kopieer lêers hier", + + "Move files here" => + "Skuif lêers hier", + + "Delete files" => + "Verwyder lêers ", + + "Clear the Clipboard" => // + "Vee Klembord Skoon", + + "Are you sure you want to delete all files in the Clipboard?" => + "Is jy seker jy wil al die lêers in die Klembord te verwyder?", + + "Copy {count} files" => + "Kopieer {count} lêers", + + "Move {count} files" => + "Beweeg {count} lêers", + + "Add to Clipboard" => + "Voeg na klembord", + "New folder name:" => "Nuwe gids naam:", + "New file name:" => "Nuwe lêer naam:", + "Folders" => "Gidse", + + "Upload" => "Oplaai", + "Refresh" => "Herlaai", + "Settings" => "Stellings", + "Maximize" => "Maksimaliseer", + "About" => "About", + "files" => "lêers", + "View:" => "Bekyk:", + "Show:" => "Wys:", + "Order by:" => "Sorteer volgens:", + "Thumbnails" => "Duimnaels", + "List" => "Lys", + "Name" => "Naam", + "Size" => "Grootte", + "Date" => "Datum", + "Descending" => "Aflopend", + "Uploading file..." => "Lêer Besig Met Oplaai...", + "Loading image..." => "Besig om beeld te laai...", + "Loading folders..." => "Besig om Gidse te laai...", + "Loading files..." => "Besig om Lêers te laai...", + "New Subfolder..." => "Nuwe subgids...", + "Rename..." => "Naam verander...", + "Delete" => "Verwyder", + "OK" => "REG", + "Cancel" => "Kanselleer", + "Select" => "Kies", + "Select Thumbnail" => "Kies Duimnaelskets", + "View" => "Bekyk", + "Download" => "Aflaai", + 'Clipboard' => "Klembord", + + // VERSION 2 NEW LABELS + + "Cannot rename the folder." => + "Kan nie die gids naam vernader nie.", + + "Non-existing directory type." => + "Nie-bestaande gids tipe.", + + "Cannot delete the folder." => + "Kan nie die gids verwyder nie.", + + "The files in the Clipboard are not readable." => + "Die lêers in die Klembord is nie leesbaar is.", + + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => + "{count} lêers in die Klembord is nie leesbaar is. Wil jy die res te kopieer ?", + + "The files in the Clipboard are not movable." => + "Die lêers in die Klembord kan verskuif word nie.", + + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => + "{count} lêers in die Klembord kan nie verskuif word nie. Wil jy die res te beweeg ?", + + "The files in the Clipboard are not removable." => + "Die lêers in die Klembord kan nie verwyder word nie.", + + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => + "{count} lêers in die Klembord kan nie verwyder word nie. Wil jy die res te verwyder ?", + + "The selected files are not removable." => + "Die geselekteerde lêers kan nie verwyder word nie", + + "{count} selected files are not removable. Do you want to delete the rest?" => + "{count} geselekteerde lêers kan nie verwyder word nie. Wil jy die res te verwyder ?", + + "Are you sure you want to delete all selected files?" => + "Is jy seker jy wil all geselekteerde lêers te verwyder ?", + + "Failed to delete {count} files/folders." => + "Misluk {count} lêers/gidse te verwyder.", + + "A file or folder with that name already exists." => + "'N lêer of gids met daardie naam bestaan ​​reeds.", + + "Inexistant or inaccessible folder." => + "Nie-bestaande of ontoeganklik gids.", + + "selected files" => "geselekteerde lêers", + "Type" => "Tipe", + "Select Thumbnails" => "Kies duimnaels", + "Download files" => "Laai lêers af", +); + +?> \ No newline at end of file diff --git a/lang/bg.php b/lang/bg.php new file mode 100644 index 0000000..030f9df --- /dev/null +++ b/lang/bg.php @@ -0,0 +1,262 @@ + + */ + +$lang = array( + + '_locale' => "bg_BG.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => + "Нямате права за качване.", + + "You don't have permissions to browse server." => + "Нямате права за разглеждане на сървъра.", + + "Cannot move uploaded file to target folder." => + "Файлът не може да се премести в целевата папка.", + + "Unknown error." => + "Непозната грешка.", + + "The uploaded file exceeds {size} bytes." => + "Каченият файл надхвърля {size} байта.", + + "The uploaded file was only partially uploaded." => + "Каченият файл беше качен само частично.", + + "No file was uploaded." => + "Файлът не беше качен", + + "Missing a temporary folder." => + "Липсва временна папка.", + + "Failed to write file." => + "Грешка при записване на файла.", + + "Denied file extension." => + "Забранено файлово разширение.", + + "Unknown image format/encoding." => + "Файлът не може да бъде разпознат като изображение.", + + "The image is too big and/or cannot be resized." => + "Изображението е много голямо и/или не може да бъде преоразмерено.", + + "Cannot create {dir} folder." => + "Невъзможност да се създаде папка {dir}.", + + "Cannot rename the folder." => + "Папката не може да се преимеува.", + + "Cannot write to upload folder." => + "Не е възможно записването на файлове в папката за качване.", + + "Cannot read .htaccess" => + "Не е възможно прочитането на .htaccess", + + "Incorrect .htaccess file. Cannot rewrite it!" => + "Невалиден .htaccess файл. Не може да се презапише автоматично!", + + "Cannot read upload folder." => + "Не е възможно прочитането на папката за качване.", + + "Cannot access or create thumbnails folder." => + "Невъзможен достъп или невъзможно създаване на папката за thumbnails.", + + "Cannot access or write to upload folder." => + "Папката не може да се достъпи или не може да се записва в нея.", + + "Please enter new folder name." => + "Моля въведете име на папката.", + + "Unallowable characters in folder name." => + "Непозволени знаци в името на папката.", + + "Folder name shouldn't begins with '.'" => + "Името на папката не трябва да започва с '.'", + + "Please enter new file name." => + "Моля въведете ново име на файла", + + "Unallowable characters in file name." => + "Непозволени знаци в името на файла.", + + "File name shouldn't begins with '.'" => + "Името на файла не трябва да започва с '.'", + + "Are you sure you want to delete this file?" => + "Наистина ли искате да изтриете този файл?", + + "Are you sure you want to delete this folder and all its content?" => + "Наистина ли искате да изтриете тази папка и цялото й съдържание?", + + "Non-existing directory type." => + "Несъществуващ специален тип на папка.", + + "Undefined MIME types." => + "Не са дефинирани MIME типове.", + + "Fileinfo PECL extension is missing." => + "Липсва Fileinfo PECL разширение.", + + "Opening fileinfo database failed." => + "Грешка при отваряне на fileinfo дефиниции.", + + "You can't upload such files." => + "Не можете да качвате такива файлове.", + + "The file '{file}' does not exist." => + "Фаълът '{file}' не съществува.", + + "Cannot read '{file}'." => + "Файлът '{file}' не може да бъде прочетен.", + + "Cannot copy '{file}'." => + "Файлът '{file}' не може да бъде копиран.", + + "Cannot move '{file}'." => + "Файлът '{file}' не може да бъде преместен.", + + "Cannot delete '{file}'." => + "Файлът '{file}' не може да бъде изтрит.", + + "Cannot delete the folder." => + "Папката не може да бъде изтрита.", + + "Click to remove from the Clipboard" => + "Цъкнете за да премахнете файла от клипборда", + + "This file is already added to the Clipboard." => + "Този файл вече е добавен към клипборда.", + + "The files in the Clipboard are not readable." => + "Файловете в клипборда не могат да се прочетат.", + + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => + "{count} файла в клипборда не могат да се прочетат. Искате ли да копирате останалите?", + + "The files in the Clipboard are not movable." => + "Файловете в клипборда не могат да бъдат преместени.", + + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => + "{count} файла в клипборда не могат да бъдат преместени. Искате ли да преместите останалите?", + + "The files in the Clipboard are not removable." => + "Файловете в клипборда не могат да бъдат изтрити.", + + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => + "{count} файла в клипборда не могат да бъдат изтрити. Искате ли да изтриете останалите?", + + "The selected files are not removable." => + "Избраните файлове не могат да бъдат изтрити.", + + "{count} selected files are not removable. Do you want to delete the rest?" => + "{count} от избраните файлове не могат да бъдат изтрити. Искате ли да изтриете останалите?", + + "Are you sure you want to delete all selected files?" => + "Наистина ли искате да изтриете всички избрани файлове?", + + "Failed to delete {count} files/folders." => + "{count} файла/папки не могат да бъдат изтрити.", + + "A file or folder with that name already exists." => + "Вече има файл или папка с такова име.", + + "Copy files here" => + "Копирай файловете тук", + + "Move files here" => + "Премести файловете тук", + + "Delete files" => + "Изтрий файловете", + + "Clear the Clipboard" => + "Изчисти клипборда", + + "Are you sure you want to delete all files in the Clipboard?" => + "Наистина ли искате да изтриете всички файлове от клипборда?", + + "Copy {count} files" => + "Копирай {count} файла", + + "Move {count} files" => + "Премести {count} файла", + + "Add to Clipboard" => + "Добави към клипборда", + + "Inexistant or inaccessible folder." => + "Несъществуваща или недостъпна папка.", + + "New folder name:" => "Име на папката:", + "New file name:" => "Ново име на файла:", + + "Upload" => "Качи", + "Refresh" => "Актуализирай", + "Settings" => "Настройки", + "Maximize" => "Разпъни", + "About" => "Информация", + "files" => "файла", + "selected files" => "избрани файла", + "View:" => "Изглед:", + "Show:" => "Покажи:", + "Order by:" => "Подреди по:", + "Thumbnails" => "Картинки", + "List" => "Списък", + "Name" => "Име", + "Type" => "Тип", + "Size" => "Размер", + "Date" => "Дата", + "Descending" => "Обратен ред", + "Uploading file..." => "Файлът се качва...", + "Loading image..." => "Изображението се зарежда...", + "Loading folders..." => "Зареждане на папките...", + "Loading files..." => "Зареждане на папката...", + "New Subfolder..." => "Нова подпапка...", + "Rename..." => "Преименуване...", + "Delete" => "Изтрий", + "OK" => "OK", + "Cancel" => "Отказ", + "Select" => "Избери", + "Select Thumbnail" => "Избери малък вариант", + "Select Thumbnails" => "Избери малки варианти", + "View" => "Преглед", + "Download" => "Свали", + "Download files" => "Свали файловете", + "Clipboard" => "Клипборд", + + // SINCE 2.4 + + "Checking for new version..." => "Проверка за нова версия...", + "Unable to connect!" => "Не може да се свърже!", + "Download version {version} now!" => "Свалете версия {version} сега!", + "KCFinder is up to date!" => "KCFinder е актуален!", + "Licenses:" => "Лицензи:", + "Attention" => "Внимание", + "Question" => "Въпрос", + "Yes" => "Да", + "No" => "Не", + + // SINCE 2.41 + + "You cannot rename the extension of files!" => + "Не можете да преименувате разширенията на файловете!", + + // SINCE 2.5 + + "Uploading file {number} of {count}... {progress}" => + "Качване на файл {number} от {count}... {progress}", + + "Failed to upload {filename}!" => "Несполучливо качване на {filename}!", +); + +?> \ No newline at end of file diff --git a/lang/ca.php b/lang/ca.php new file mode 100644 index 0000000..9e9c6c2 --- /dev/null +++ b/lang/ca.php @@ -0,0 +1,128 @@ + "ca_ES.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => "No teniu permisos per pujar arxius.", + "You don't have permissions to browse server." => "No teniu permisos per visualitzar arxius.", + "Cannot move uploaded file to target folder." => "No es pot moure el fitxer pujat al directori destí", + "Unknown error." => "Error desconegut.", + "The uploaded file exceeds {size} bytes." => "El fitxer seleccionat excedeix el pes màxim permès ( {size} bytes ).", + "The uploaded file was only partially uploaded." => "El fitxer seleccionat només s'ha carregat parcialment.", + "No file was uploaded." => "No s'ha carregat cap fitxer.", + "Missing a temporary folder." => "Manca un directori temporal.", + "Failed to write file." => "No s'ha pogut escriure el fitxer.", + "Denied file extension." => "Extensió de fitxer no permesa.", + "Unknown image format/encoding." => "Format d'imatge desconegut.", + "The image is too big and/or cannot be resized." => "La imatge és massa gran i/o no es pot redimensionar.", + "Cannot create {dir} folder." => "No s'ha pogut crear el directori {dir}", + "Cannot rename the folder." => "No es pot reanomenar el directori.", + "Cannot write to upload folder." => "No es pot escriure al directori de càrrega de fitxers.", + "Cannot read .htaccess" => "No s'ha pogut llegir .htaccess.", + "Incorrect .htaccess file. Cannot rewrite it!" => "Fitxer .htaccess incorrecte. No es pot reescriure!", + "Cannot read upload folder." => "No s'ha pogut llegir la carpeta de càrrega de fitxers.", + "Cannot access or create thumbnails folder." => "No s'ha pogut accedir o crear la carpeta de miniatures.", + "Cannot access or write to upload folder." => "No s'ha pogut accedir o escriure la carpeta de càrrega de fitxers.", + "Please enter new folder name." => "Si us plau, introduïu el nom del nou directori.", + "Unallowable characters in folder name." => "Caràcters no permesos en el nom del directori.", + "Folder name shouldn't begins with '.'" => "El nom d'un directori no hauria de començar amb un punt '.'", + "Please enter new file name." => "Si us plau, introduïu el nom del nou fitxer.", + "Unallowable characters in file name." => "Caràcters no permesos en el nom del fitxer.", + "File name shouldn't begins with '.'" => "El nom d'un fitxer no hauria de començar amb un punt '.'", + "Are you sure you want to delete this file?" => "Esteu segur que voleu eliminar aquest fitxer?", + "Are you sure you want to delete this folder and all its content?" => "Esteu segur que voleu eliminar aquest directori i tot el seu contingut?", + "Non-existing directory type." => "Tipus de directori inexistent.", + "Undefined MIME types." => "Tipus MIME no definit.", + "Fileinfo PECL extension is missing." => "Manca arxiu d'informació de l'extensió PECL.", + "Opening fileinfo database failed." => "Error obrint el fitxer d'informació de la base de dades.", + "You can't upload such files." => "No podeu carregar tants fitxers.", + "The file '{file}' does not exist." => "El fitxer '{file}' no existeix.", + "Cannot read '{file}'." => "No s'ha pogut llegir '{file}'.", + "Cannot copy '{file}'." => "No s'ha pogut copiar '{file}'.", + "Cannot move '{file}'." => "No s'ha pogut moure '{file}'.", + "Cannot delete '{file}'." => "No s'ha pogut eliminar '{file}'.", + "Cannot delete the folder." => "No es pot eliminar el directori.", + "Click to remove from the Clipboard" => "Feu clic per eliminar del portapapers", + "This file is already added to the Clipboard." => "Aquest arxiu ja es troba al portapapers.", + "The files in the Clipboard are not readable." => "No es poden llegir els fitxers del portapapers.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} fitxers del portapapers no es poden llegir. Voleu copiar la resta?", + "The files in the Clipboard are not movable." => "No es poden moure els fitxers del portapapers.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} fitxers del portapapers no es poden moure. Voleu moure la resta?", + "The files in the Clipboard are not removable." => "Els fitxers del portapapers no es poden eliminar.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} fitxers del portapapers no es poden eliminar. Voleu eliminar la resta?", + "The selected files are not removable." => "Els fitxers seleccionats no es poden eliminar.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} fitxers dels seleccionats no es poden eliminar. Voleu eliminar la resta?", + "Are you sure you want to delete all selected files?" => "Esteu segur que voleu eliminar els fitxers seleccionats?", + "Failed to delete {count} files/folders." => "Error al eliminar {count} fitxers/directoris.", + "A file or folder with that name already exists." => "Ja existeix un directori o fitxer amb aquest nom.", + "Copy files here" => "Copia els fitxers aquí", + "Move files here" => "Mou els fitxers aquí", + "Delete files" => "Elimina els fitxers", + "Clear the Clipboard" => "Buida el portapapers", + "Are you sure you want to delete all files in the Clipboard?" => "Esteu segur que voleu eliminar tots els fitxers del portapapers?", + "Copy {count} files" => "Copia els {count} fitxers aquí", + "Move {count} files" => "Mou els {count} fitxers aquí", + "Add to Clipboard" => "Afegeix al portapapers", + "Inexistant or inaccessible folder." => "Directori inexistent o inaccessible.", + "New folder name:" => "Nom del nou directori:", + "New file name:" => "Nom del nou fitxer:", + "Upload" => "Carrega arxius", + "Refresh" => "Refresca", + "Settings" => "Opcions", + "Maximize" => "Maximitza", + "About" => "Sobre...", + "files" => "Fitxers", + "selected files" => "Fitxers seleccionats", + "View:" => "Veure:", + "Show:" => "Mostra:", + "Order by:" => "Ordena per:", + "Thumbnails" => "Miniatures", + "List" => "Llistat", + "Name" => "Nom", + "Type" => "Tipus", + "Size" => "Mida", + "Date" => "Data", + "Descending" => "Descendent", + "Uploading file..." => "Carregant fitxer...", + "Loading image..." => "Carregant imatge...", + "Loading folders..." => "Carregant directoris...", + "Loading files..." => "Carregant fitxers...", + "New Subfolder..." => "Nou subdirectori...", + "Rename..." => "Canvia el nom...", + "Delete" => "Elimina", + "OK" => "D'acord", + "Cancel" => "Cancel·la", + "Select" => "Selecciona", + "Select Thumbnail" => "Selecciona miniatura", + "Select Thumbnails" => "Selecciona miniatures", + "View" => "Veure", + "Download" => "Descarrega", + "Download files" => "Descarrega fitxers", + "Clipboard" => "Portapapers", + "Checking for new version..." => "Comprovant actualitzacions...", + "Unable to connect!" => "No es pot connectar!", + "Download version {version} now!" => "Descarregueu la versió {version}!", + "KCFinder is up to date!" => "KCFinder està actualitzat!", + "Licenses:" => "Llicències:", + "Attention" => "Atenció", + "Question" => "Pregunta", + "Yes" => "Sí", + "No" => "No", + "You cannot rename the extension of files!" => "No està permès canviar la extensió al fitxer.", + "Uploading file {number} of {count}... {progress}" => "Carregant arxiu {number} de {count}... {progress}", + "Failed to upload {filename}!" => "Error al carregar {filename}", +); + +?> \ No newline at end of file diff --git a/lang/cs.php b/lang/cs.php new file mode 100644 index 0000000..8cd858c --- /dev/null +++ b/lang/cs.php @@ -0,0 +1,127 @@ + + */ + +$lang = array( + + '_locale' => "cs_CZ.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e.%B.%Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => "Nemáte práva pro nahrávání souborů.", + "You don't have permissions to browse server." => "Nemáte práva pro prohlížení serveru.", + "Cannot move uploaded file to target folder." => "Nelze přesunout soubor do určeného adresáře.", + "Unknown error." => "Neznámá chyba.", + "The uploaded file exceeds {size} bytes." => "Nahraný soubor přesahuje {size} bytů.", + "The uploaded file was only partially uploaded." => "Nahraný soubor byl nahrán pouze částečně.", + "No file was uploaded." => "Žádný soubor nebyl nahrán na server.", + "Missing a temporary folder." => "Chybí dočasný adresář.", + "Failed to write file." => "Soubor se nepodařilo se uložit.", + "Denied file extension." => "Nepodporovaný typ souboru.", + "Unknown image format/encoding." => "Neznámý formát obrázku/encoding.", + "The image is too big and/or cannot be resized." => "Obrázek je příliš velký/nebo nemohl být zmenšen.", + "Cannot create {dir} folder." => "Adresář {dir} nelze vytvořit.", + "Cannot rename the folder." => "Adresář nelze přejmenovat.", + "Cannot write to upload folder." => "Nelze ukládat do adresáře pro nahrávání.", + "Cannot read .htaccess" => "Není možno číst soubor .htaccess", + "Incorrect .htaccess file. Cannot rewrite it!" => "Chybný soubor .htaccess. Soubor nelze přepsat!", + "Cannot read upload folder." => "Nelze číst z adresáře pro nahrávání souborů.", + "Cannot access or create thumbnails folder." => "Adresář pro náhledy nelze vytvořit nebo není přístupný.", + "Cannot access or write to upload folder." => "Nelze přistoupit, nebo zapisovat do adresáře pro nahrávání souborů.", + "Please enter new folder name." => "Vložte prosím nové jméno adresáře.", + "Unallowable characters in folder name." => "Nepovolené znaky v názvu adresáře.", + "Folder name shouldn't begins with '.'" => "Jméno adresáře nesmí začínat znakem '.'", + "Please enter new file name." => "Vložte prosím nové jméno souboru.", + "Unallowable characters in file name." => "Nepovolené znaky v názvu souboru.", + "File name shouldn't begins with '.'" => "Název soubor nesmí začínat znakem '.'", + "Are you sure you want to delete this file?" => "Jste si jistý že chcete smazat tento soubor?", + "Are you sure you want to delete this folder and all its content?" => "Jste si jistý že chcete smazat tento adresář a celý jeho obsah?", + "Non-existing directory type." => "Neexistující typ adresáře.", + "Undefined MIME types." => "Nedefinovaný MIME typ souboru.", + "Fileinfo PECL extension is missing." => "Rozříření PECL pro zjištění informací o souboru chybí.", + "Opening fileinfo database failed." => "Načtení informací o souboru selhalo.", + "You can't upload such files." => "Tyto soubory nemůžete nahrát na server.", + "The file '{file}' does not exist." => "Tento soubor '{file}' neexistuje.", + "Cannot read '{file}'." => "Nelze načíst '{file}'.", + "Cannot copy '{file}'." => "Nelze kopírovat '{file}'.", + "Cannot move '{file}'." => "Nelze přesunout '{file}'.", + "Cannot delete '{file}'." => "Nelze smazat '{file}'.", + "Cannot delete the folder." => "Adresář nelze smazat.", + "Click to remove from the Clipboard" => "Klikněte pro odstranění ze schránky", + "This file is already added to the Clipboard." => "Tento soubor je již ve schránce vložen.", + "The files in the Clipboard are not readable." => "Soubory ve schránce nelze načíst.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} souborů ve schránce nelze načíst. Chcete zkopírovat zbylé soubory?", + "The files in the Clipboard are not movable." => "Soubory ve schránce nelze přesunout.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} souborů ve schránce nelze přesunout. Chcete přesunout zbylé soubory?", + "The files in the Clipboard are not removable." => "Soubory ve schránce nelze smazat.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} souborů ve schránce nelze smazat. Chcete smazat zbylé soubory?", + "The selected files are not removable." => "Označené soubory nelze smazat.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} označených souborů nelze smazat. Chcete smazat zbylé soubory?", + "Are you sure you want to delete all selected files?" => "Jste si jistý že chcete smazat vybrané soubory?", + "Failed to delete {count} files/folders." => "Nebylo smazáno {count} souborů/adresářů.", + "A file or folder with that name already exists." => "Soubor nebo adresář s takovým jménem již existuje.", + "Copy files here" => "Kopírovat soubory na toto místo", + "Move files here" => "Přesunout soubory na toto místo", + "Delete files" => "Smazat soubory", + "Clear the Clipboard" => "Vyčistit schránku", + "Are you sure you want to delete all files in the Clipboard?" => "Jste si jistý že chcete vymazat všechny soubory ze schránky?", + "Copy {count} files" => "Kopírovat {count} souborů", + "Move {count} files" => "Přesunout {count} souborů", + "Add to Clipboard" => "Vložit do schránky", + "Inexistant or inaccessible folder." => "Neexistující nebo nepřístupný adresář.", + "New folder name:" => "Nový název adresáře:", + "New file name:" => "Nový název souboru:", + "Upload" => "Nahrát", + "Refresh" => "Obnovit", + "Settings" => "Nastavení", + "Maximize" => "Maxializovat", + "About" => "O aplikaci", + "files" => "soubory", + "selected files" => "vybrané soubory", + "View:" => "Zobrazit:", + "Show:" => "Ukázat:", + "Order by:" => "Řadit podle:", + "Thumbnails" => "Náhledy", + "List" => "Seznam", + "Name" => "Jméno", + "Type" => "Typ", + "Size" => "Velikost", + "Date" => "Datum", + "Descending" => "Sestupně", + "Uploading file..." => "Nahrávání souboru...", + "Loading image..." => "Načítání obrázku...", + "Loading folders..." => "Načítání adresářů...", + "Loading files..." => "Načítání souborů...", + "New Subfolder..." => "Nový adresář...", + "Rename..." => "Přejmenovat...", + "Delete" => "Smazat", + "OK" => "OK", + "Cancel" => "Zrušit", + "Select" => "Vybrat", + "Select Thumbnail" => "Vybrat náhled", + "Select Thumbnails" => "Vybrat náhled", + "View" => "Zobrazit", + "Download" => "Stažení", + "Download files" => "Stáhnout soubory", + "Clipboard" => "Schránka", + "Checking for new version..." => "Zkontrolovat novou verzi...", + "Unable to connect!" => "Nelze připojit!", + "Download version {version} now!" => "Stáhnout verzi {version} nyní!", + "KCFinder is up to date!" => "KCFinder je aktuální!", + "Licenses:" => "Licence:", + "Attention" => "Upozornění", + "Question" => "Otázka", + "Yes" => "Ano", + "No" => "Ne", + "You cannot rename the extension of files!" => "Nemůžete přejmenovat příponu souborů!", + "Uploading file {number} of {count}... {progress}" => "Nahrávám soubor {number} z {count}... {progress}", + "Failed to upload {filename}!" => "Nepodařilo se nahrát soubor {filename}!", +); + +?> \ No newline at end of file diff --git a/lang/da.php b/lang/da.php new file mode 100644 index 0000000..c9ad9e5 --- /dev/null +++ b/lang/da.php @@ -0,0 +1,242 @@ + **/ + +$lang = array( + + '_locale' => "da_DK.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e.%B.%Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d/%m/%Y %H:%M", + + "You don't have permissions to upload files." => + "Du har ikke tilladelser til at uploade filer.", + + "You don't have permissions to browse server." => + "Du har ikke tilladelser til at se filer.", + + "Cannot move uploaded file to target folder." => + "Kan ikke flytte fil til destinations mappe.", + + "Unknown error." => + "Ukendt fejl.", + + "The uploaded file exceeds {size} bytes." => + "Den uploadede fil overskrider {size} bytes.", + + "The uploaded file was only partially uploaded." => + "Den uploadede fil blev kun delvist uploadet.", + + "No file was uploaded." => + "Ingen fil blev uploadet.", + + "Missing a temporary folder." => + "Mangler en midlertidig mappe.", + + "Failed to write file." => + "Kunne ikke skrive fil.", + + "Denied file extension." => + "N�gtet filtypenavn.", + + "Unknown image format/encoding." => + "Ukendt billedformat / kodning.", + + "The image is too big and/or cannot be resized." => + "Billedet er for stort og / eller kan ikke �ndres.", + + "Cannot create {dir} folder." => + "Kan ikke lave mappen {dir}.", + + "Cannot write to upload folder." => + "Kan ikke skrive til upload mappen.", + + "Cannot read .htaccess" => + "Ikke kan l�se .htaccess", + + "Incorrect .htaccess file. Cannot rewrite it!" => + "Forkert .htaccess fil. Kan ikke omskrive den!", + + "Cannot read upload folder." => + "Kan ikke l�se upload mappen.", + + "Cannot access or create thumbnails folder." => + "Kan ikke f� adgang til eller oprette miniature mappe.", + + "Cannot access or write to upload folder." => + "Kan ikke f� adgang til eller skrive til upload mappe.", + + "Please enter new folder name." => + "Indtast venligst nyt mappe navn.", + + "Unallowable characters in folder name." => + "Ugyldige tegn i mappens navn.", + + "Folder name shouldn't begins with '.'" => + "Mappenavn b�r ikke begynder med '.'", + + "Please enter new file name." => + "Indtast venligst nyt fil navn.", + + "Unallowable characters in file name." => + "Ugyldige tegn i filens navn", + + "File name shouldn't begins with '.'" => + "Fil navnet b�r ikke begynder med '.'", + + "Are you sure you want to delete this file?" => + "Er du sikker p� du vil slette denne fil?", + + "Are you sure you want to delete this folder and all its content?" => + "Er du sikker p� du vil slette denne mappe og al dens indhold?", + + "Inexistant or inaccessible folder." => + "utilg�ngelige mappe.", + + "Undefined MIME types." => + "Udefineret MIME Type.", + + "Fileinfo PECL extension is missing." => + "Fil info PECL udvidelse mangler", + + "Opening fileinfo database failed." => + "�bning af fil info-database mislykkedes.", + + "You can't upload such files." => + "Du kan ikke uploade s�danne filer.", + + "The file '{file}' does not exist." => + "Filen '{file}' eksisterer ikke.", + + "Cannot read '{file}'." => + "Kan ikke l�se '{file}'.", + + "Cannot copy '{file}'." => + "Kan ikke kopi'ere '{file}'.", + + "Cannot move '{file}'." => + "Kan ikke flytte '{file}'.", + + "Cannot delete '{file}'." => + "Kan ikke slette '{file}'.", + + "Click to remove from the Clipboard" => + "Klik for at fjerne fra Udklipsholder.", + + "This file is already added to the Clipboard." => + "Denne fil er allerede f�jet til Udklipsholder.", + + "Copy files here" => + "Kopiere filer her.", + + "Move files here" => + "Flyt filer her.", + + "Delete files" => + "Slet filer.", + + "Clear the Clipboard" => + "Zwischenablage leeren", + + "Are you sure you want to delete all files in the Clipboard?" => + "T�m udklipsholder?", + + "Copy {count} files" => + "Kopier {count} filer", + + "Move {count} files" => + "Flyt {count} filer", + + "Add to Clipboard" => + "Tilf�j til udklipsholder", + + "New folder name:" => + "Nyt mappe navn:", + + "New file name:" => + "Nyt fil navn:", + + "Upload" => "Upload", + "Refresh" => "Genopfriske", + "Settings" => "Indstillinger", + "Maximize" => "Maksimere", + "About" => "Om", + "files" => "filer", + "View:" => "Vis:", + "Show:" => "Vis:", + "Order by:" => "Sorter efter:", + "Thumbnails" => "Miniaturer", + "List" => "Liste", + "Name" => "Navn", + "Size" => "St�rrelse", + "Date" => "Dato", + "Descending" => "Faldende", + "Uploading file..." => "Uploader fil...", + "Loading image..." => "Indl�ser billede...", + "Loading folders..." => "Indl�ser mappe...", + "Loading files..." => "Indl�ser filer...", + "New Subfolder..." => "Ny undermappe...", + "Rename..." => "Omd�b...", + "Delete" => "Slet", + "OK" => "Ok", + "Cancel" => "Fortryd", + "Select" => "V�lg", + "Select Thumbnail" => "V�lg miniature", + "View" => "Vis", + "Download" => "Download", + 'Clipboard' => "Udklipsholder", + + // VERSION 2 NEW LABELS + + "Cannot rename the folder." => + "Kan ikke omd�be mappen.", + + "Non-existing directory type." => + "Ikke-eksisterende bibliotek type.", + + "Cannot delete the folder." => + "Kan ikke slette mappen.", + + "The files in the Clipboard are not readable." => + "Filerne i udklipsholder ikke kan l�ses.", + + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => + "{count} filer i udklipsholder ikke kan l�ses. �nsker du at kopiere de �vrige?", + + "The files in the Clipboard are not movable." => + "Filerne i udklipsholder kan ikke flyttes.", + + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => + "{count} filer i udklipsholder er ikke bev�gelige. �nsker du at flytte resten?", + + "The files in the Clipboard are not removable." => + "Filerne i udklipsholder er ikke flytbare.", + + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => + "{count} filer i udklipsholder er ikke flytbare. �nsker du at slette resten?", + + "The selected files are not removable." => + "De valgte filer er ikke flytbare.", + + "{count} selected files are not removable. Do you want to delete the rest?" => + "{count} valgte filer som ikke kan fjernes. �nsker du at slette resten?", + + "Are you sure you want to delete all selected files?" => + "Er du sikker p� du vil slette alle markerede filer?", + + "Failed to delete {count} files/folders." => + "Kunne ikke slette {count} filer / mapper.", + + "A file or folder with that name already exists." => + "En fil eller mappe med det navn findes allerede.", + + "selected files" => "Valgte filer", + "Type" => "Type", + "Select Thumbnails" => "V�lg Miniaturer", + "Download files" => "Download filer", +); + +?> diff --git a/lang/de.php b/lang/de.php new file mode 100644 index 0000000..00c0b4d --- /dev/null +++ b/lang/de.php @@ -0,0 +1,127 @@ + + */ + +$lang = array( + + '_locale' => "de_DE.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e.%B.%Y %I:%M %p", + '_dateTimeMid' => "%a %e %b %Y %I:%M %p", + '_dateTimeSmall' => "%d/%m/%Y %I:%M %p", + + "You don't have permissions to upload files." => "Du hast keine Berechtigung Dateien hoch zu laden.", + "You don't have permissions to browse server." => "Fehlende Berechtigung.", + "Cannot move uploaded file to target folder." => "Kann hochgeladene Datei nicht in den Zielordner verschieben.", + "Unknown error." => "Unbekannter Fehler.", + "The uploaded file exceeds {size} bytes." => "Die hochgeladene Datei √ºberschreitet die erlaubte Dateigr√∂√üe von {size} bytes.", + "The uploaded file was only partially uploaded." => "Die Datei wurde nur teilweise hochgeladen.", + "No file was uploaded." => "Keine Datei hochgeladen.", + "Missing a temporary folder." => "Tempor√§rer Ordner fehlt.", + "Failed to write file." => "Fehler beim schreiben der Datei.", + "Denied file extension." => "Die Dateiendung ist nicht erlaubt.", + "Unknown image format/encoding." => "Unbekanntes Bildformat/encoding.", + "The image is too big and/or cannot be resized." => "Das Bild ist zu gro√ü und/oder kann nicht verkleinert werden.", + "Cannot create {dir} folder." => "Ordner {dir} kann nicht angelegt werden.", + "Cannot rename the folder." => "Der Ordner kann nicht umbenannt werden.", + "Cannot write to upload folder." => "Kann nicht in den upload Ordner schreiben.", + "Cannot read .htaccess" => "Kann .htaccess Datei nicht lesen", + "Incorrect .htaccess file. Cannot rewrite it!" => "Falsche .htaccess Datei. Die Datei kann nicht geschrieben werden", + "Cannot read upload folder." => "Upload Ordner kann nicht gelesen werden.", + "Cannot access or create thumbnails folder." => "Kann thumbnails Ordner nicht erstellen oder darauf zugreifen.", + "Cannot access or write to upload folder." => "Kann nicht auf den upload Ordner zugreifen oder darin schreiben.", + "Please enter new folder name." => "Bitte einen neuen Ordnernamen angeben.", + "Unallowable characters in folder name." => "Der Ordnername enth√§lt unerlaubte Zeichen.", + "Folder name shouldn't begins with '.'" => "Ordnernamen sollten nicht mit '.' beginnen.", + "Please enter new file name." => "Bitte gib einen neuen Dateinamen an.", + "Unallowable characters in file name." => "Der Dateiname enth√§lt unerlaubte Zeichen", + "File name shouldn't begins with '.'" => "Dateinamen sollten nicht mit '.' beginnen.", + "Are you sure you want to delete this file?" => "Willst Du die Datei wirklich l√∂schen?", + "Are you sure you want to delete this folder and all its content?" => "Willst Du wirklich diesen Ordner und seinen gesamten Inhalt l√∂schen?", + "Non-existing directory type." => "Der Ordner Typ existiert nicht.", + "Undefined MIME types." => "Unbekannte MIME Typen.", + "Fileinfo PECL extension is missing." => "PECL extension f√ºr Dateiinformationen fehlt", + "Opening fileinfo database failed." => "√ñffnen der Dateiinfo Datenbank fehlgeschlagen.", + "You can't upload such files." => "Du kannst solche Dateien nicht hochladen.", + "The file '{file}' does not exist." => "Die Datei '{file}' existiert nicht.", + "Cannot read '{file}'." => "Kann Datei '{file}' nicht lesen.", + "Cannot copy '{file}'." => "Kann Datei '{file}' nicht kopieren.", + "Cannot move '{file}'." => "Kann Datei '{file}' nicht verschieben.", + "Cannot delete '{file}'." => "Kann Datei '{file}' nicht l√∂schen.", + "Cannot delete the folder." => "Der Ordner kann nicht gel√∂scht werden.", + "Click to remove from the Clipboard" => "Zum entfernen aus der Zwischenablage, hier klicken.", + "This file is already added to the Clipboard." => "Diese Datei wurde bereits der Zwischenablage hinzugef√ºgt.", + "The files in the Clipboard are not readable." => "Die Dateien in der Zwischenablage k√∂nnen nicht gelesen werden.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} Dateien in der Zwischenablage sind nicht lesbar. M√∂chtest Du die √úbrigen trotzdem kopieren?", + "The files in the Clipboard are not movable." => "Die Dateien in der Zwischenablage k√∂nnen nicht verschoben werden.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} Dateien in der Zwischenablage sind nicht verschiebbar. M√∂chtest Du die √úbrigen trotzdem verschieben?", + "The files in the Clipboard are not removable." => "Die Dateien in der Zwischenablage k√∂nnen nicht gel√∂scht werden.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} Dateien in der Zwischenablage k√∂nnen nicht gel√∂scht werden. M√∂chtest Du die √úbrigen trotzdem l√∂schen?", + "The selected files are not removable." => "Die ausgew√§hlten Dateien k√∂nnen nicht gel√∂scht werden.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} der ausgew√§hlten Dateien k√∂nnen nicht gel√∂scht werden. M√∂chtest Du die √úbrigen trotzdem l√∂schen?", + "Are you sure you want to delete all selected files?" => "M√∂chtest Du wirklich alle ausgew√§hlten Dateien l√∂schen?", + "Failed to delete {count} files/folders." => "Konnte {count} Dateien/Ordner nicht l√∂schen.", + "A file or folder with that name already exists." => "Eine Datei oder ein Ordner mit dem Namen existiert bereits.", + "Copy files here" => "Kopiere Dateien hier hin.", + "Move files here" => "Verschiebe Dateien hier hin.", + "Delete files" => "L√∂sche Dateien.", + "Clear the Clipboard" => "Zwischenablage leeren", + "Are you sure you want to delete all files in the Clipboard?" => "Willst Du wirklich alle Dateien in der Zwischenablage l√∂schen?", + "Copy {count} files" => "Kopiere {count} Dateien", + "Move {count} files" => "Verschiebe {count} Dateien", + "Add to Clipboard" => "Der Zwischenablage hinzuf√ºgen", + "Inexistant or inaccessible folder." => "Ordnertyp existiert nicht.", + "New folder name:" => "Neuer Ordnername:", + "New file name:" => "Neuer Dateiname:", + "Upload" => "Hochladen", + "Refresh" => "Aktualisieren", + "Settings" => "Einstellungen", + "Maximize" => "Maximieren", + "About" => "√úber", + "files" => "Dateien", + "selected files" => "ausgew√§hlte Dateien", + "View:" => "Ansicht:", + "Show:" => "Zeige:", + "Order by:" => "Ordnen nach:", + "Thumbnails" => "Miniaturansicht", + "List" => "Liste", + "Name" => "Name", + "Type" => "Typ", + "Size" => "Gr√∂√üe", + "Date" => "Datum", + "Descending" => "Absteigend", + "Uploading file..." => "Lade Datei hoch...", + "Loading image..." => "Lade Bild...", + "Loading folders..." => "Lade Ordner...", + "Loading files..." => "Lade Dateien...", + "New Subfolder..." => "Neuer Unterordner...", + "Rename..." => "Umbenennen...", + "Delete" => "L√∂schen", + "OK" => "OK", + "Cancel" => "Abbruch", + "Select" => "Ausw√§hlen", + "Select Thumbnail" => "W√§hle Miniaturansicht", + "Select Thumbnails" => "W√§hle Miniaturansicht", + "View" => "Ansicht", + "Download" => "Download", + "Download files" => "Dateien herunterladen", + "Clipboard" => "Zwischenablage", + "Checking for new version..." => "Nach neuer Version suchen", + "Unable to connect!" => "Kann keine Verbindung herstellen!", + "Download version {version} now!" => "Version {version} herunterladen!", + "KCFinder is up to date!" => "KCFinder ist aktuell!", + "Licenses:" => "Lizenz", + "Attention" => "Achtung", + "Question" => "Frage", + "Yes" => "Ja", + "No" => "Nein", + "You cannot rename the extension of files!" => "Die Umbenennung von Datei-Erweiterungen ist nicht m√∂glich!", + "Uploading file {number} of {count}... {progress}" => "Lade Datei {number} von {count} hinauf ... {progress}", + "Failed to upload {filename}!" => "Upload von {filename} fehlgeschlagen!", +); + +?> \ No newline at end of file diff --git a/lang/el.php b/lang/el.php new file mode 100644 index 0000000..c8eb9ab --- /dev/null +++ b/lang/el.php @@ -0,0 +1,253 @@ + "el_GR.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => + "Δεν έχετε δικαίωμα να ανεβάσετε αρχεία.", + + "You don't have permissions to browse server." => + "Δεν έχετε δικαίωμα να δείτε τα αρχεία στο διακομιστή.", + + "Cannot move uploaded file to target folder." => + "Το αρχείο δε μπορεί να μεταφερθεί στο φάκελο προορισμού.", + + "Unknown error." => + "'Αγνωστο σφάλμα.", + + "The uploaded file exceeds {size} bytes." => + "Το αρχείο υπερβαίνει το μέγεθος των {size} bytes.", + + "The uploaded file was only partially uploaded." => + "Ένα μόνο μέρος του αρχείου ανέβηκε.", + + "No file was uploaded." => + "Κανένα αρχείο δεν ανέβηκε.", + + "Missing a temporary folder." => + "Λείπει ο φάκελος των προσωρινών αρχείων.", + + "Failed to write file." => + "Σφάλμα στη τροποποίηση του αρχείου.", + + "Denied file extension." => + "Δεν επιτρέπονται αυτού του είδους αρχεία.", + + "Unknown image format/encoding." => + "Αγνωστη κωδικοποίηση εικόνας.", + + "The image is too big and/or cannot be resized." => + "Η εικόνα είναι πάρα πολύ μεγάλη και/η δεν μπορεί να αλλάξει μέγεθος.", + + "Cannot create {dir} folder." => + "Αδύνατον να δημιουργηθεί ο φάκελος {dir}.", + + "Cannot write to upload folder." => + "Αδύνατη η εγγραφή στο φάκελο προορισμού.", + + "Cannot read .htaccess" => + "Αδύνατη η ανάγνωση του .htaccess", + + "Incorrect .htaccess file. Cannot rewrite it!" => + "Εσφαλμένο αρχείο .htaccess.Αδύνατη η τροποποίησή του!", + + "Cannot read upload folder." => + "Μη αναγνώσιμος φάκελος προορισμού.", + + "Cannot access or create thumbnails folder." => + "Αδύνατη η πρόσβαση και ανάγνωση του φακέλου με τις μικρογραφίες εικόνων.", + + "Cannot access or write to upload folder." => + "Αδύνατη η πρόσβαση και τροποποίηση του φακέλου προορισμού.", + + "Please enter new folder name." => + "Παρακαλούμε εισάγετε ένα νέο όνομα φακέλου. ", + + "Unallowable characters in folder name." => + "Μη επιτρεπτοί χαρακτήρες στο όνομα φακέλου.", + + "Folder name shouldn't begins with '.'" => + "Το όνομα του φακέλου δε πρέπει να αρχίζει με '.'", + + "Please enter new file name." => + "Παρακαλούμε εισάγετε ένα νέο όνομα αρχείου.", + + "Unallowable characters in file name." => + "Μη επιτρεπτοί χαρακτήρες στο όνομα αρχείου.", + + "File name shouldn't begins with '.'" => + "Το όνομα του αρχείου δε πρέπει να αρχίζει με '.'", + + "Are you sure you want to delete this file?" => + "Σίγουρα θέλετε να διαγράψετε αυτό το αρχείο?", + + "Are you sure you want to delete this folder and all its content?" => + "Σίγουρα θέλετε να διαγράψετε αυτό το φάκελο μαζί με όλα τα περιεχόμενα?", + + "Non-existing directory type." => + "Ανύπαρκτος τύπος φακέλου.", + + "Undefined MIME types." => + "Απροσδιόριστοι τύποι MIME.", + + "Fileinfo PECL extension is missing." => + "Η πληροφορία αρχείου επέκταση PECL δεν υπάρχει.", + + "Opening fileinfo database failed." => + "Η πρόσβαση στις πληροφορίες του αρχείου απέτυχε.", + + "You can't upload such files." => + "Δε μπορείτε να ανεβάσετε τέτοια αρχεία.", + + "The file '{file}' does not exist." => + "Το αρχείο '{file}' δεν υπάρχει.", + + "Cannot read '{file}'." => + "Αρχείο '{file}' μη αναγνώσιμο.", + + "Cannot copy '{file}'." => + "Αδύνατη η αντιγραφή του '{file}'.", + + "Cannot move '{file}'." => + "Αδύνατη η μετακίνηση του '{file}'.", + + "Cannot delete '{file}'." => + "Αδύνατη η διαγραφή του '{file}'.", + + "Click to remove from the Clipboard" => + "Πατήστε για διαγραφή από το Clipboard.", + + "This file is already added to the Clipboard." => + "Αυτό το αρχείο βρίσκεται ήδη στο Clipboard.", + + "Copy files here" => + "Αντιγράψτε αρχεία εδώ.", + + "Move files here" => + "Μετακινήστε αρχεία εδώ.", + + "Delete files" => + "Διαγραφή αρχείων", + + "Clear the Clipboard" => + "Καθαρισμός Clipboard", + + "Are you sure you want to delete all files in the Clipboard?" => + "Σίγουρα θέλετε να διαγράψετε όλα τα αρχεία στο Clipboard?", + + "Copy {count} files" => + "Αντιγραφή {count} αρχείων.", + + "Move {count} files" => + "Μετακίνηση {count} αρχείων.", + + "Add to Clipboard" => + "Προσθήκη στο Clipboard", + + "New folder name:" => "Νέο όνομα φακέλου:", + "New file name:" => "Νέο όνομα αρχείου:", + + "Upload" => "Ανέβασμα", + "Refresh" => "Ανανέωση", + "Settings" => "Ρυθμίσεις", + "Maximize" => "Μεγιστοποίηση", + "About" => "Σχετικά", + "files" => "αρχεία", + "View:" => "Προβολή:", + "Show:" => "Εμφάνιση:", + "Order by:" => "Ταξινόμηση κατά:", + "Thumbnails" => "Μικρογραφίες", + "List" => "Λίστα", + "Name" => "Όνομα", + "Size" => "Μέγεθος", + "Date" => "Ημερομηνία", + "Descending" => "Φθίνουσα", + "Uploading file..." => "Το αρχείο ανεβαίνει...", + "Loading image..." => "Η εικόνα φορτώνει...", + "Loading folders..." => "Οι φάκελοι φορτώνουν...", + "Loading files..." => "Τα αρχεία φορτώνουν...", + "New Subfolder..." => "Νέος υποφάκελος...", + "Rename..." => "Μετονομασία...", + "Delete" => "Διαγραφή", + "OK" => "OK", + "Cancel" => "Ακύρωση", + "Select" => "Επιλογή", + "Select Thumbnail" => "Επιλογή Μικρογραφίας", + "View" => "Προβολή", + "Download" => "Κατέβασμα", + 'Clipboard' => "Clipboard", + + // VERSION 2 NEW LABELS + + "Cannot rename the folder." => + "Αδύνατη η μετονομασία του φακέλου.", + + "Cannot delete the folder." => + "Αδύνατη η διαγραφή του φακέλου.", + + "The files in the Clipboard are not readable." => + "Τα αρχεία στο Clipboard είναι μη αναγνώσιμα.", + + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => + "{count} αρχεία στο Clipboard είναι μη αναγώσιμα.Θέλετε να αντιγράψετε τα υπόλοιπα?", + + "The files in the Clipboard are not movable." => + "Τα αρχεία στο Clipboard είναι αδύνατο να μετακινηθούν.", + + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => + "{count} αρχεία στο Clipboard δεν είναι δυνατό να μετακινηθούν.Θέλετε να μετακινήσετε τα υπόλοιπα?", + + "The files in the Clipboard are not removable." => + "Τα αρχεία στο Clipboard είναι αδύνατο να αφαιρεθούν.", + + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => + "{count} αρχεία στο Clipboard δεν είναι δυνατό να αφαιρεθούν.Θέλετε να αφαιρέσετε τα υπόλοιπα?", + + "The selected files are not removable." => + "Τα επιλεγμένα αρχεία δε μπορούν να αφαιρεθούν.", + + "{count} selected files are not removable. Do you want to delete the rest?" => + "{count} επιλεγμένα αρχεία δεν είναι δυνατό να αφαιρεθούν.Θέλετε να διαγράψετε τα υπόλοιπα?", + + "Are you sure you want to delete all selected files?" => + "Σίγουρα θέλετε να διαγράψετε όλα τα επιλεγμένα αρχεία?", + + "Failed to delete {count} files/folders." => + "Η διαγραφή {count} αρχείων/φακέλων απέτυχε.", + + "A file or folder with that name already exists." => + "Ένα αρχείο ή φάκελος με αυτό το όνομα υπάρχει ήδη.", + + "Inexistant or inaccessible folder." => + "Ανύπαρκτος η μη προσβάσιμος φάκελος.", + + "selected files" => "επιλεγμένα αρχεία", + "Type" => "Τύπος", + "Select Thumbnails" => "Επιλέξτε Μικρογραφίες", + "Download files" => "Κατέβασμα Αρχείων", + + // SINCE 2.4 + + "Checking for new version..." => "Ελεγχος για νέα έκδοση...", + "Unable to connect!" => "Αδύνατη η σύνδεση!", + "Download version {version} now!" => "Κατεβάστε την έκδοση {version} τώρα!", + "KCFinder is up to date!" => "Το KCFinder είναι ενημερωμένο με τη πιο πρόσφατη έκδοση!", + "Licenses:" => "Άδειες:", + "Attention" => "Προσοχή", + "Question" => "Ερώτηση", + "Yes" => "Ναι", + "No" => "Όχι", +); + +?> \ No newline at end of file diff --git a/lang/en.php b/lang/en.php new file mode 100644 index 0000000..9aed4ab --- /dev/null +++ b/lang/en.php @@ -0,0 +1,25 @@ + + * @copyright 2010 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +$lang = array( + '_locale' => "en_US.UTF-8", + '_charset' => "utf-8", + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %B %e, %Y %I:%M %p", + '_dateTimeMid' => "%a %b %e %Y %I:%M %p", + '_dateTimeSmall' => "%m/%d/%Y %I:%M %p", +); + +?> \ No newline at end of file diff --git a/lang/es.php b/lang/es.php new file mode 100644 index 0000000..a86f22e --- /dev/null +++ b/lang/es.php @@ -0,0 +1,127 @@ + "es_ES.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => "No tiene permiso para subir archivos.", + "You don't have permissions to browse server." => "No tiene permiso para visualizar archivos.", + "Cannot move uploaded file to target folder." => "No puede mover archivos al directorio de destino.", + "Unknown error." => "Error desconocido.", + "The uploaded file exceeds {size} bytes." => "El archivo excede el tamaño permitido ({size} bytes).", + "The uploaded file was only partially uploaded." => "El archivo solo fué parcialmente cargado.", + "No file was uploaded." => "El archivo no fué cargado.", + "Missing a temporary folder." => "No se puede encontrar el directorio temporal.", + "Failed to write file." => "No se pudo crear el archivo.", + "Denied file extension." => "Extensión de archivo denegada.", + "Unknown image format/encoding." => "Formato / codificación de imagen desconocido.", + "The image is too big and/or cannot be resized." => "La imagen es muy grande o no se puede redimensionar.", + "Cannot create {dir} folder." => "No se puede crear la carpeta {dir}.", + "Cannot rename the folder." => "No se puede renombrar la carpeta.", + "Cannot write to upload folder." => "No se puede escribir en directorio de carga de archivos.", + "Cannot read .htaccess" => "No se puede leer el archivo .htaccess.", + "Incorrect .htaccess file. Cannot rewrite it!" => "Archivo .htaccess incorrecto. ¡No puede sobreescribirlo!", + "Cannot read upload folder." => "No se puede leer la carpeta de carga de archivos.", + "Cannot access or create thumbnails folder." => "No se puede leer o crear carpeta de miniaturas.", + "Cannot access or write to upload folder." => "No se puede leer o escribir en la carpeta de carga de archivos.", + "Please enter new folder name." => "Por favor introduzca el nombre de la nueva carpeta.", + "Unallowable characters in folder name." => "Caracteres inválidos en el nombre de carpeta.", + "Folder name shouldn't begins with '.'" => "El nombre de carpeta no puede comenzar con punto '.'", + "Please enter new file name." => "Por favor introduzca el nuevo nombre del archivo.", + "Unallowable characters in file name." => "Carácteres inválidos en el nombre de archivo.", + "File name shouldn't begins with '.'" => "El nombre de archivo no puede comenzar con punto '.'", + "Are you sure you want to delete this file?" => "Esta seguro de que desea borrar este archivo?", + "Are you sure you want to delete this folder and all its content?" => "Esta seguro de que desea borrar esta carpeta y todo su contenido?", + "Non-existing directory type." => "El tipo de directorio no existe.", + "Undefined MIME types." => "Tipo MIME no definido.", + "Fileinfo PECL extension is missing." => "Archivo PECL con estructura errónea.", + "Opening fileinfo database failed." => "Error abriendo el archivo de información de la base de datos.", + "You can't upload such files." => "No puede cargar tantos archivos.", + "The file '{file}' does not exist." => "El archivo '{file}' no existe.", + "Cannot read '{file}'." => "No se puede leer '{file}'.", + "Cannot copy '{file}'." => "No se puede copiar '{file}'.", + "Cannot move '{file}'." => "No se puede mover '{file}'.", + "Cannot delete '{file}'." => "No se puede borrar '{file}'.", + "Cannot delete the folder." => "No se puede borrrar la carpeta.", + "Click to remove from the Clipboard" => "Haga Click para borrar del portapapeles", + "This file is already added to the Clipboard." => "Este archivo ya fué agregado al portapapeles.", + "The files in the Clipboard are not readable." => "Los archivos en el portapaleles no son legibles.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} archivos en el portapapeles no son legibles. Desea copiar el resto?", + "The files in the Clipboard are not movable." => "Los archivos en el portapapeles no se pueden mover.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} archivos en el portapapeles no se pueden mover. Desea mover el resto?", + "The files in the Clipboard are not removable." => "Los archivos en el portapapeles no se pueden remover.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} archivos en el portapapeles no se pueden remover. Desea borrar el resto?", + "The selected files are not removable." => "Los archivos seleccionados no son removibles.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} archivos seleccionados no son removibles. Desea borrar el resto?", + "Are you sure you want to delete all selected files?" => "Esta seguro de que desea borrar todos los archivos seleccionados?", + "Failed to delete {count} files/folders." => "Falló al borrar {count} archivos/carpetas.", + "A file or folder with that name already exists." => "Existe una carpeta o archivo con el mismo nombre.", + "Copy files here" => "Copiar archivos aquí", + "Move files here" => "Mover archivos aquí", + "Delete files" => "Borrar archivos", + "Clear the Clipboard" => "Limpiar el portapapeles", + "Are you sure you want to delete all files in the Clipboard?" => "Esta seguro de que desea borrar todos los archivos del portapapeles?", + "Copy {count} files" => "Copiar {count} archivos", + "Move {count} files" => "Mover {count} archivos ", + "Add to Clipboard" => "Agregar al portapapeles", + "Inexistant or inaccessible folder." => "Carpeta inexistente o inaccesible.", + "New folder name:" => "Nuevo nombre de carpeta:", + "New file name:" => "Nuevo nombre de archivo:", + "Upload" => "Cargar", + "Refresh" => "Refrescar", + "Settings" => "Preferencias", + "Maximize" => "Maximizar", + "About" => "Acerca de", + "files" => "Archivos", + "selected files" => "Archivos seleccionados", + "View:" => "Ver:", + "Show:" => "Mostrar:", + "Order by:" => "Ordenar por:", + "Thumbnails" => "Miniaturas", + "List" => "Lista", + "Name" => "Nombre", + "Type" => "Tipo", + "Size" => "Tamaño", + "Date" => "Fecha", + "Descending" => "Decendente", + "Uploading file..." => "Cargando archivo...", + "Loading image..." => "Cargando imagen...", + "Loading folders..." => "Cargando carpetas...", + "Loading files..." => "Cargando archivos...", + "New Subfolder..." => "Nuevo subdirectorio...", + "Rename..." => "Renombrar...", + "Delete" => "Eliminar", + "OK" => "OK", + "Cancel" => "Cancelar", + "Select" => "Seleccionar", + "Select Thumbnail" => "Seleccionar miniatura", + "Select Thumbnails" => "Seleccionar miniaturas", + "View" => "Ver", + "Download" => "Descargar", + "Download files" => "Descargar archivos", + "Clipboard" => "Portapapeles", + "Checking for new version..." => "Verificando nuevas versiones...", + "Unable to connect!" => "¡No se pudo realizar la conexión!", + "Download version {version} now!" => "¡Descarga la versión {version} ahora!", + "KCFinder is up to date!" => "¡KCFinder está actualizado!", + "Licenses:" => "Licencias:", + "Attention" => "Atención", + "Question" => "Pregunta", + "Yes" => "Si", + "No" => "No", + "You cannot rename the extension of files!" => "¡Usted no puede renombrar la extensión de los archivos!", + "Uploading file {number} of {count}... {progress}" => "Cargando archivo {number} de {count}... {progress}", + "Failed to upload {filename}!" => "¡No se pudo cargar el archivo {filename}!", +); + +?> \ No newline at end of file diff --git a/lang/fa.php b/lang/fa.php new file mode 100644 index 0000000..09481e5 --- /dev/null +++ b/lang/fa.php @@ -0,0 +1,267 @@ + + * @copyright 2010 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +$lang = array( + '_locale' => "fa_IR.UTF-8", + '_charset' => "utf-8", + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %B %e, %Y %H:%M", + '_dateTimeMid' => "%a %b %e %Y %H:%M", + '_dateTimeSmall' => "%Y/%m/%d %H:%M", + + "You don't have permissions to upload files." => + ".شما فاقد مجوز برای ارسال فایل ها هستید", + + "You don't have permissions to browse server." => + ".شما فاقد مجوز برای جستجو در سرور هستید", + + "Cannot move uploaded file to target folder." => + ".برنامه نمی تواند فایل بارگذاری شده را انتقال دهد به پوشه مورد نظر", + + "Unknown error." => + ".خطای نامشخص", + + "The uploaded file exceeds {size} bytes." => + ".بایت است {size} حجم فایل بارگذاری شده بیشتر از", + + "The uploaded file was only partially uploaded." => + ".فایل ناقص بارگذاری شد", + + "No file was uploaded." => + ".فایل ارسال نشد", + + "Missing a temporary folder." => + ".پوشه تمپ پیدا نشد", + + "Failed to write file." => + ".خطا در نوشتن فایل", + + "Denied file extension." => + ".پسوند فایل غیر مجاز است", + + "Unknown image format/encoding." => + ".عکس معتبر نیست format/encoding", + + "The image is too big and/or cannot be resized." => + ".عکس انتخابی یا بزرگ است یا تغییر اندازه داده نمی شود", + + "Cannot create {dir} folder." => + ".{dir}مشکل در ساخت پوشه", + + "Cannot write to upload folder." => + ".مشکل در نوشتن اطلاعات در پوشه بارگذاری", + + "Cannot read .htaccess" => + ".htaccess خطا در خواندن فایل", + + "Incorrect .htaccess file. Cannot rewrite it!" => + ".غیرقابل بازنویسی است .htaccess فایل", + + "Cannot read upload folder." => + ".مشکل در خواندن پوشه بارگذاری", + + "Cannot access or create thumbnails folder." => + ".مشکل در دسترسی یا ساخت پوشه تام", + + "Cannot access or write to upload folder." => + ".مشکل در دسترسی برای نوشتن اطلاعات در پوشه بارگذاری", + + "Please enter new folder name." => + ".لطفا نام پوشه جدید را وارد کنید", + + "Unallowable characters in folder name." => + ".نام پوشه دارای حروف غیر مجاز است", + + "Folder name shouldn't begins with '.'" => + ".نام پوشه نباید با '.' شروع شود", + + "Please enter new file name." => + ".لطفا نام فایل جدید را وارد کنید", + + "Unallowable characters in file name." => + ".نام فایل دارای حروف غیر مجاز است", + + "File name shouldn't begins with '.'" => + ".نام فایل نباید با '.' شروع شود", + + "Are you sure you want to delete this file?" => + "آیا از حذف این فایل اطمینان دارید؟", + + "Are you sure you want to delete this folder and all its content?" => + "آیا از حذف این پوشه و تمام محتویات داخل آن اطمینان دارید؟", + + "Inexistant or inaccessible folder." => + "Tipo di cartella non esistente.", + + "Undefined MIME types." => + ".تعریف نشده اند MIME پسوند های ", + + "Fileinfo PECL extension is missing." => + "Manca estensione PECL del file.", + + "Opening fileinfo database failed." => + ".خطا در بازکردن بانک اطلاعاتی مشخصات فایل", + + "You can't upload such files." => + ".شما امکان بارگذاری این فایل ها را ندارید", + + "The file '{file}' does not exist." => + ".موجود نیست '{file}' فایل", + + "Cannot read '{file}'." => + ".'{file}' مشکل در خواندن", + + "Cannot copy '{file}'." => + ".'{file}' نمی توانید کپی کنید", + + "Cannot move '{file}'." => + ".'{file}' نمی توانید انتقال دهید", + + "Cannot delete '{file}'." => + ".'{file}'نمی توانید حذف کنید", + + "Click to remove from the Clipboard" => + ".برای حذف از کلیپ برد کلیک کنید", + + "This file is already added to the Clipboard." => + ".این فایل قبلا در حافظه کلیپ برد افزوده شده است", + + "Copy files here" => + "کپی فایل ها به اینجا", + + "Move files here" => + "انتقال فایل ها به اینجا", + + "Delete files" => + "حذف فایل ها", + + "Clear the Clipboard" => + "پاک کردن حافظه کلیپ برد", + + "Are you sure you want to delete all files in the Clipboard?" => + "آیا از حذف فایل های موجود در کلیپ برد اطمینان دارید؟", + + "Copy {count} files" => + "...تعداد {count} فایل آماده کپی به", + + "Move {count} files" => + "...تعداد {count} فایل آماده انتقال به", + + "Add to Clipboard" => + "افزودن در کلیپ برد", + + "New folder name:" => "نام پوشه جدید:", + "New file name:" => "نام فایل جدید:", + + "Upload" => "ارسال فايل", + "Refresh" => "بارگذاری مجدد", + "Settings" => "تنظيمات", + "Maximize" => "تمام صفحه", + "About" => "درباره", + "files" => "فايل ها", + "View:" => ": نمایش", + "Show:" => ": نمايش", + "Order by:" => ": مرتب کردن بر مبناي", + "Thumbnails" => "نمايش کوچک عکسها", + "List" => "ليست", + "Name" => "نام", + "Size" => "حجم", + "Date" => "تاريخ", + "Type" => "پسوند", + "Descending" => "نزولي", + "Uploading file..." => "... درحال ارسال فایل", + "Loading image..." => "... درحال بارگذاری عکس", + "Loading folders..." => "... درحال بارگذاری پوشه ها", + "Loading files..." => "... درحال بارگذاری فایل ها", + "New Subfolder..." => "...ساخت زیرپوشه جدید", + "Rename..." => "... تغییر نام", + "Delete" => "حذف", + "OK" => "ادامه", + "Cancel" => "انصراف", + "Select" => "انتخاب", + "Select Thumbnail" => "انتخاب عکس با اندازه کوچک", + "View" => "نمایش", + "Download" => "دریافت فایل", + "Clipboard" => "حافضه کلیپ برد", + + // VERSION 2 NEW LABELS + + "Cannot rename the folder." => + ".نام وارد شده تکراری است. پوشه ای با این نام وجود دارد. لطفا نام جدیدی انتخاب کنید", + + "Non-existing directory type." => + ".نوع فهرست وجود ندارد", + + "Cannot delete the folder." => + ".نمی توانید این پوشه را حذف کنید", + + "The files in the Clipboard are not readable." => + ".فایل های موجود در کلیپ برد قابل خواندن نیستند", + + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => + "تعداد {count} فایل موجود در کلیپ برد قابل خواندن نیستند. آیا مایلید بقیه فایل ها کپی شوند؟", + + "The files in the Clipboard are not movable." => + ".فایل های موجود در کلیپ برد غیر قابل انتقال هستند. لطفا دسترسی فایل ها را چک کنید", + + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => + "تعداد {count} فایل از فایل های موجود در کلیپ برد غیر قابل انتقال هستند. آیا مایلید بقیه فایل ها منتقل شوند؟", + + "The files in the Clipboard are not removable." => + ".فایل های موجود در کلیپ برد قابل پاک شدن نیستند. دسترسی فایل ها را چک کنید", + + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => + "تعداد {count} فایل از فایل های موجود در کلیپ برد غیر قابل حذف هستند. آیا مایلید بقیه فایل ها حذف شوند؟", + + "The selected files are not removable." => + ".فایل های انتخاب شده قابل برداشتن نیست", + + "{count} selected files are not removable. Do you want to delete the rest?" => + "تعداد {count} فایل از فایل های انتخابی غیر قابل حذف هستند.آیا مایلید بقیه فایل ها حذف شوند؟", + + "Are you sure you want to delete all selected files?" => + "آیا از حذف تمام فایل های انتخابی اطمینان دارید؟", + + "Failed to delete {count} files/folders." => + ".فایل/پوشه {count} خطا در پاک کردن", + + "A file or folder with that name already exists." => + ".یک پوشه یا فایل با این نام وجود دارد.لطفا نام دیگری انتخاب کنید", + + "selected files" => "فایل های انتخاب شده", + "Select Thumbnails" => "انتخاب عکس های کوچک", + "Download files" => "دریافت فایل ها", + + // SINCE 2.4 + + "Checking for new version..." => "...وجود نسخه جدید را بررسی کن", + "Unable to connect!" => "!مشکل در برقراری ارتباط", + "Download version {version} now!" => "!را دانلود کن {version} همسین حالا نسخه ", + "KCFinder is up to date!" => "!بروز است KCFinder", + "Licenses:" => "مجوز", + "Attention" => "توجه", + "Question" => "پرسش", + "Yes" => "بله", + "No" => "خیر", + + // SINCE 2.41 + + "You cannot rename the extension of files!" => "!شما نمی توانید پسوند فایلها را تغییر دهید", + "Uploading file {number} of {count}... {progress}" => "{progress} ...ارسال شد {count} فایل از {number}", + "Failed to upload {filename}!" => "! {filename} خطا در ارسال" + +); + +?> diff --git a/lang/fi.php b/lang/fi.php new file mode 100644 index 0000000..ab17048 --- /dev/null +++ b/lang/fi.php @@ -0,0 +1,127 @@ + "fi_FI.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => "Sinulla ei ole oikeuksia ladata tiedostoja.", + "You don't have permissions to browse server." => "Sinulla ei ole riittäviä oikeuksia tiedostoselaimeen.", + "Cannot move uploaded file to target folder." => "Ladattua tiedostoa ei voi siirtää kohdekansioon. ", + "Unknown error." => "Tuntematon virhe.", + "The uploaded file exceeds {size} bytes." => "Tiedoston koko ylittää {size} tavua.", + "The uploaded file was only partially uploaded." => "Valitsemasi tiedosto latautui vain osittain.", + "No file was uploaded." => "Yhtään tiedostoja ei ladattu.", + "Missing a temporary folder." => "Puuttuu väliaikainen kansio.", + "Failed to write file." => "Tiedostoon kirjoitus epäonnistui.", + "Denied file extension." => "Kielletty tiedostopääte.", + "Unknown image format/encoding." => "Tuntematon kuvatiedosto/koodaus.", + "The image is too big and/or cannot be resized." => "Kuva on liian iso, koon muuttaminen ei onnistu.", + "Cannot create {dir} folder." => "Kansiota {dir} ei voi luoda.", + "Cannot rename the folder." => "Kansiota ei voi nimetä uudelleen.", + "Cannot write to upload folder." => "Latauskansioon ei voi kirjoittaa.", + "Cannot read .htaccess" => ".htaccess tiedostoa ei voi lukea.", + "Incorrect .htaccess file. Cannot rewrite it!" => "Virheellinen .htaccess tiedosto. Tiedostoon ei voi kirjoittaa.", + "Cannot read upload folder." => "Latauskansiota ei voi lukea.", + "Cannot access or create thumbnails folder." => "Esikatselukuvien kansiota ei voi lukea tai kirjoittaa.", + "Cannot access or write to upload folder." => "Latauskansiota ei voi lukea tai kirjoittaa.", + "Please enter new folder name." => "Kirjoita uuden kansion nimi.", + "Unallowable characters in folder name." => "Kiellettyjä merkkejä kansion nimessä.", + "Folder name shouldn't begins with '.'" => "Kansion nimi ei voi alkaa '.'", + "Please enter new file name." => "Kirjoita uusi tiedostonimi.", + "Unallowable characters in file name." => "Kiellettyjä merkkejä tiedoston nimessä.", + "File name shouldn't begins with '.'" => "Tiedoston nimi ei voi alkaa '.'", + "Are you sure you want to delete this file?" => "Haluatko varmasti poistaa tiedoston?", + "Are you sure you want to delete this folder and all its content?" => "Haluatko varmasti poistaa tiedoston sekä kaiken sen sisällön?", + "Non-existing directory type." => "Hakemisto tyyppi ei ole olemassa.", + "Undefined MIME types." => "Määrittämättömät MIME tyypit.", + "Fileinfo PECL extension is missing." => "Fileinfo PECL pääte puuttuu.", + "Opening fileinfo database failed." => "Opening fileinfo database failed.", + "You can't upload such files." => "Tiedostoja ei voi ladata.", + "The file '{file}' does not exist." => "Tiedostoa '{file}' ei ole luotu.", + "Cannot read '{file}'." => "Tiedostoa '{file}' ei voi lukea.", + "Cannot copy '{file}'." => "Tiedostoa '{file}' ei voi kopioda.", + "Cannot move '{file}'." => "Tiedostoa '{file}' ei voi siirtää.", + "Cannot delete '{file}'." => "Tiedostoa '{file}' ei voi poistaa.", + "Cannot delete the folder." => "Kansiota ei voi poistaa.", + "Click to remove from the Clipboard" => "Klikkaa poistaaksesi Leikepöydältä.", + "This file is already added to the Clipboard." => "Tiedosto on jo lisätty Leikepöydälle.", + "The files in the Clipboard are not readable." => "Leikepöydän tiedostot eivät ole luettavissa.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "Leikepöydällä on {count} tiedostoa joita ei voi lukea. Haluatko kopioida loput?", + "The files in the Clipboard are not movable." => "Leikepöydän tiedostoja ei voi siirtää.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "Leikepöydällä on {count} tiedostoa joita ei voi siirtää. Haluatko siirtää loput?", + "The files in the Clipboard are not removable." => "Leikepöydän tiedostoja ei voi poistaa.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "Leikepöydällä on {count} tiedostoa joita ei voi poistaa. Haluatko siirtää loput?", + "The selected files are not removable." => "Valittuja tiedostoja ei voi poistaa.", + "{count} selected files are not removable. Do you want to delete the rest?" => "Leikepöydällä on {count} tiedostoa joita ei voi poistaa. Haluatko poistaa loput?", + "Are you sure you want to delete all selected files?" => "Haluatko varmasti poistaa kaikki valitut tiedostot?", + "Failed to delete {count} files/folders." => "{count} tiedoston/kansion poistaminen epäonnistui.", + "A file or folder with that name already exists." => "Tiedosto tai kansio nimellä on jo luoto.", + "Copy files here" => "Kopio tähän", + "Move files here" => "Siirrä tähän", + "Delete files" => "Poista tiedostot", + "Clear the Clipboard" => "Pyyhi leikepöytä.", + "Are you sure you want to delete all files in the Clipboard?" => "Haluatko varmasti poistaa kaikki tiedostot Leikepöydältä?", + "Copy {count} files" => "Kopio {count} tiedostoa", + "Move {count} files" => "Siirrä {count} tiedostoa", + "Add to Clipboard" => "Lisää Leikepöydälle", + "Inexistant or inaccessible folder." => "Kansiota ei ole olemassa tai sitä ei voi avata.", + "New folder name:" => "Uusi kansion nimi:", + "New file name:" => "Uusi tiedostonimi:", + "Upload" => "Lataa", + "Refresh" => "Päivitä", + "Settings" => "Asetukset", + "Maximize" => "Koko ruutu", + "About" => "Lisätietoja", + "files" => "tiedostot", + "selected files" => "valitut tiedostot", + "View:" => "Näkymä:", + "Show:" => "Näytä:", + "Order by:" => "Järjestä:", + "Thumbnails" => "Esikatselukuvat", + "List" => "Lista", + "Name" => "Nimi", + "Type" => "Tyyppi", + "Size" => "Koko", + "Date" => "Päiväys", + "Descending" => "Laskeva", + "Uploading file..." => "Siirretään tiedostoa...", + "Loading image..." => "Ladataan tiedostoa...", + "Loading folders..." => "Ladataan kansioita...", + "Loading files..." => "Ladataan tiedostoja...", + "New Subfolder..." => "Uusi alikansio...", + "Rename..." => "Nimeä uudelleen...", + "Delete" => "Poista", + "OK" => "OK", + "Cancel" => "Peru", + "Select" => "Valitse", + "Select Thumbnail" => "Valitse esikatselukuva", + "Select Thumbnails" => "Valitse esikatselukuvat", + "View" => "Näytä", + "Download" => "Lataa", + "Download files" => "Lataa tiedostot", + "Clipboard" => "Leikepöytä", + "Checking for new version..." => "Tarkastetaan uusin versio...", + "Unable to connect!" => "Yhteys epäonnistui!", + "Download version {version} now!" => "Lataa versio {version} nyt!", + "KCFinder is up to date!" => "KCFinder uusin versio on käytössä!", + "Licenses:" => "Lisenssit:", + "Attention" => "Huomio", + "Question" => "Kysymys", + "Yes" => "Kyllä", + "No" => "Ei", + "You cannot rename the extension of files!" => "Et voi nimetä uudelleen tiedostopäätettä!", + "Uploading file {number} of {count}... {progress}" => "Siirretään tiedostoa {number}/{count} ... {progress}", + "Failed to upload {filename}!" => "Siirto epäonnistui {filename}!", +); + +?> \ No newline at end of file diff --git a/lang/fr.php b/lang/fr.php new file mode 100644 index 0000000..ac33d22 --- /dev/null +++ b/lang/fr.php @@ -0,0 +1,128 @@ + "fr_FR.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A %e %B %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d/%m/%Y %H:%M", + + "You don't have permissions to upload files." => "Vous n'avez pas les droits nécessaires pour télécharger des fichiers.", + "You don't have permissions to browse server." => "Vous n'avez pas les droits nécessaires pour parcourir le serveur.", + "Cannot move uploaded file to target folder." => "Impossible de déplacer le fichier téléchargé vers le dossier de destination.", + "Unknown error." => "Erreur inconnue.", + "The uploaded file exceeds {size} bytes." => "Le fichier envoyé dépasse la taille maximale de {size} octects.", + "The uploaded file was only partially uploaded." => "Le fichier n'a été que partiellement téléchargé.", + "No file was uploaded." => "Aucun fichier n'a été téléchargé.", + "Missing a temporary folder." => "Dossier temporaire absent.", + "Failed to write file." => "Impossible de créer le fichier.", + "Denied file extension." => "Extension non autorisée.", + "Unknown image format/encoding." => "Format/encodage d'image inconnu.", + "The image is too big and/or cannot be resized." => "L'image est trop grande et/ou ne peut être redimensionnée.", + "Cannot create {dir} folder." => "Impossible de créer le dossier {dir}.", + "Cannot rename the folder." => "Impossible de renommer le dossier.", + "Cannot write to upload folder." => "Impossible d'écrire dans le dossier de destination.", + "Cannot read .htaccess" => "Impossible de lire le fichier .htaccess", + "Incorrect .htaccess file. Cannot rewrite it!" => "Fichier .htaccess incorrect. Réécriture du fichier impossible!", + "Cannot read upload folder." => "Impossible de lire le dossier de destination.", + "Cannot access or create thumbnails folder." => "Impossible d'accéder ou de créer le dossier des miniatures.", + "Cannot access or write to upload folder." => "Impossible d'accéder ou d'écrire dans le dossier de destination.", + "Please enter new folder name." => "Merci d'entrer le nouveau nom de dossier.", + "Unallowable characters in folder name." => "Caractères non autorisés dans le nom du dossier.", + "Folder name shouldn't begins with '.'" => "Le nom du dossier ne peut pas commencer par '.'", + "Please enter new file name." => "Merci d'entrer le nouveau nom de fichier", + "Unallowable characters in file name." => "Caractères non autorisés dans le nom du fichier.", + "File name shouldn't begins with '.'" => "Le nom du fichier ne peut pas commencer par '.'", + "Are you sure you want to delete this file?" => "Êtes vous sûr du vouloir supprimer ce fichier?", + "Are you sure you want to delete this folder and all its content?" => "Êtes vous sûr du vouloir supprimer ce dossier et tous les fichiers qu'il contient?", + "Non-existing directory type." => "Type de répertoire inexistant.", + "Undefined MIME types." => "Type MIME indéterminé.", + "Fileinfo PECL extension is missing." => "L'extension Fileinfo PECL est manquante.", + "Opening fileinfo database failed." => "Ouverture de la base de données fileinfo echouée.", + "You can't upload such files." => "Vous ne pouvez pas télécharger ce type de fichiers.", + "The file '{file}' does not exist." => "Le fichier '{file}' n'existe pas.", + "Cannot read '{file}'." => "Impossible de lire le fichier '{file}'.", + "Cannot copy '{file}'." => "Impossible de copier le fichier '{file}'.", + "Cannot move '{file}'." => "Impossible de déplacer le fichier '{file}'.", + "Cannot delete '{file}'." => "Impossible de supprimer le fichier '{file}'.", + "Cannot delete the folder." => "Impossible de supprimer le dossier.", + "Click to remove from the Clipboard" => "Cliquez pour enlever du presse-papier", + "This file is already added to the Clipboard." => "Ce fichier a déja été ajouté au presse-papier.", + "The files in the Clipboard are not readable." => "Les fichiers du presse-papier ne sont pas lisibles.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} fichiers dans le presse-papier ne sont pas lisibles. Voulez vous copier le reste?", + "The files in the Clipboard are not movable." => "Les fichiers du presse-papier ne peuvent pas être déplacés.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} fichiers du presse-papier ne peuvent pas être déplacées. Voulez vous déplacer le reste?", + "The files in the Clipboard are not removable." => "Les fichiers du presse-papier ne peuvent pas être enlevés.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} fichiers du presse-papier ne peuvent pas être enlevés. Voulez vous supprimer le reste?", + "The selected files are not removable." => "Les fichiers sélectionnés ne peuvent pas être enlevés.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} fichier sélectionnés ne peuvent pas être enlevés. Voulez vous supprimer le reste?", + "Are you sure you want to delete all selected files?" => "Êtes vous sûr de vouloir supprimer tous les fichiers sélectionnés?", + "Failed to delete {count} files/folders." => "Echec de la suppression de {count} fichiers/dossiers.", + "A file or folder with that name already exists." => "Un fichier/dossier du même nom existe déja.", + "Copy files here" => "Copier les fichiers ici", + "Move files here" => "Déplacer les fichiers ici", + "Delete files" => "Supprimer les fichiers", + "Clear the Clipboard" => "Vider le presse-papier", + "Are you sure you want to delete all files in the Clipboard?" => "Êtes vous sûr de vouloir supprimer tous les fichiers du presse-papier?", + "Copy {count} files" => "Copie de {count} fichiers", + "Move {count} files" => "Déplacement de {count} fichiers", + "Add to Clipboard" => "Ajouter au presse-papier", + "Inexistant or inaccessible folder." => "Dossier inexistant ou innacessible.", + "New folder name:" => "Nom du nouveau dossier:", + "New file name:" => "Nom du nouveau fichier:", + "Upload" => "Envoyer", + "Refresh" => "Actualiser", + "Settings" => "Paramètres", + "Maximize" => "Agrandir", + "About" => "A propos", + "files" => "fichiers", + "selected files" => "fichiers sélectionnés", + "View:" => "Voir:", + "Show:" => "Montrer:", + "Order by:" => "Trier par:", + "Thumbnails" => "Miniatures", + "List" => "Liste", + "Name" => "Nom", + "Type" => "Type", + "Size" => "Taille", + "Date" => "Date", + "Descending" => "Décroissant", + "Uploading file..." => "Téléchargement en cours...", + "Loading image..." => "Chargement de l'image...", + "Loading folders..." => "Chargement des dossiers...", + "Loading files..." => "Chargement des fichiers...", + "New Subfolder..." => "Nouveau sous-dossier...", + "Rename..." => "Renommer...", + "Delete" => "Supprimer", + "OK" => "OK", + "Cancel" => "Annuler", + "Select" => "Sélectionner", + "Select Thumbnail" => "Sélectionner la miniature", + "Select Thumbnails" => "Sélectionner les miniatures", + "View" => "Voir", + "Download" => "Télécharger", + "Download files" => "Télécharger les fichiers", + "Clipboard" => "Presse-papier", + "Checking for new version..." => "Vérifier les mises à jours...", + "Unable to connect!" => "Connexion impossible !", + "Download version {version} now!" => "Télécharger la version {version} maintenant !", + "KCFinder is up to date!" => "KCFinder est à jour !", + "Licenses:" => "Licences:", + "Attention" => "Alerte", + "Question" => "Question", + "Yes" => "Oui", + "No" => "Non", + "You cannot rename the extension of files!" => "Vous ne pouvez modifier l'extension des fichiers !", + "Uploading file {number} of {count}... {progress}" => "Envoi du fichier {number} sur {count}... {progress}", + "Failed to upload {filename}!" => "Échec du téléchargement du fichier {filename} !", +); + +?> \ No newline at end of file diff --git a/lang/hu.php b/lang/hu.php new file mode 100644 index 0000000..3539f4a --- /dev/null +++ b/lang/hu.php @@ -0,0 +1,127 @@ + + */ + +$lang = array( + + '_locale' => "hu_HU.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e.%B.%Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d/%m/%Y %H:%M", + + "You don't have permissions to upload files." => "Nincs jogosultsága fájlokat feltölteni.", + "You don't have permissions to browse server." => "Nincs jogosultsága a kiszolgálón böngészni.", + "Cannot move uploaded file to target folder." => "Nem lehet áthelyezni a feltöltött fájlt a célkönyvtárba.", + "Unknown error." => "Ismeretlen hiba.", + "The uploaded file exceeds {size} bytes." => "A feltöltött fájl mérete meghaladja a {size} bájtot.", + "The uploaded file was only partially uploaded." => "A feltöltendő fájl csak részben sikerült feltölteni.", + "No file was uploaded." => "Nem történt fájlfeltöltés.", + "Missing a temporary folder." => "Hiányzik az ideiglenes könyvtár.", + "Failed to write file." => "Nem sikerült a fájl írása.", + "Denied file extension." => "Tiltott fájlkiterjesztés.", + "Unknown image format/encoding." => "Ismeretlen képformátum vagy kódolás.", + "The image is too big and/or cannot be resized." => "A kép mérete túl nagy és/vagy nem lehet átméretezni.", + "Cannot create {dir} folder." => "Nem lehet létrehozni a {dir} könyvtárat.", + "Cannot rename the folder." => "A könyvtárat nem lehet átnevezni.", + "Cannot write to upload folder." => "Nem lehet írni a feltöltési könyvtárba.", + "Cannot read .htaccess" => "Nem lehet olvasni a .htaccess fájlt", + "Incorrect .htaccess file. Cannot rewrite it!" => "Hibás .htaccess fájl. Nem lehet írni.", + "Cannot read upload folder." => "Nem lehet olvasni a feltöltési könyvtárat.", + "Cannot access or create thumbnails folder." => "Nem lehet elérni vagy létrehozni a bélyegképek könyvtárat.", + "Cannot access or write to upload folder." => "Nem lehet elérni vagy létrehozni a feltöltési könyvtárat.", + "Please enter new folder name." => "Kérem, adja meg az új könyvtár nevét.", + "Unallowable characters in folder name." => "Meg nem engedett karakter(ek) a könyvtár nevében.", + "Folder name shouldn't begins with '.'" => "Könyvtárnév nem kezdődhet '.'-tal", + "Please enter new file name." => "Kérem adja meg az új fájl nevét.", + "Unallowable characters in file name." => "Meg nem engedett karakter(ek) a fájl nevében.", + "File name shouldn't begins with '.'" => "Fájlnév nem kezdődhet '.'-tal", + "Are you sure you want to delete this file?" => "Biztos benne, hogy törölni kívánja ezt a fájlt?", + "Are you sure you want to delete this folder and all its content?" => "Biztos benne hogy törölni kívánja ezt a könyvtárat és minden tartalmát?", + "Non-existing directory type." => "Nem létező könyvtártípus.", + "Undefined MIME types." => "Meghatározatlan MIME típusok.", + "Fileinfo PECL extension is missing." => "Hiányzó PECL Fileinfo PHP kiegészítés.", + "Opening fileinfo database failed." => "Nem sikerült megnyitni a Fileinfo adatbázist.", + "You can't upload such files." => "Nem tölthet fel ilyen fájlokat.", + "The file '{file}' does not exist." => "A '{file}' fájl nem létezik.", + "Cannot read '{file}'." => "A '{file}' fájlt nem lehet olvasni.", + "Cannot copy '{file}'." => "A '{file}' fájlt nem lehet másolni.", + "Cannot move '{file}'." => "A '{file}' fájlt nem lehet áthelyezni.", + "Cannot delete '{file}'." => "A '{file}' fájlt nem lehet törölni.", + "Cannot delete the folder." => "Nem lehet törölni a könyvtárat.", + "Click to remove from the Clipboard" => "kattintson ide, hogy eltávolítsa a vágólapról", + "This file is already added to the Clipboard." => "Ezt a fájlt már hozzáadta a vágólaphoz.", + "The files in the Clipboard are not readable." => "A vágólapon lévő fájlok nem olvashatók.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} fájl a vágólapon nem olvasható. Akarja másolni a többit?", + "The files in the Clipboard are not movable." => "A vágólapon lévő fájlokat nem lehet áthelyezni.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} fájlt a vágólapon nem lehet áthelyezni. Akarja áthelyezni a többit?", + "The files in the Clipboard are not removable." => "A vágólapon lévő fájlokat nem lehet eltávolítani.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} fájlt a vágólapon nem lehet eltávolítani. Akarja törölni a többit?", + "The selected files are not removable." => "A kiválasztott fájlokat nem lehet eltávolítani.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} kiválasztott fájlt nem lehet eltávolítani. Akarja törölni a többit?", + "Are you sure you want to delete all selected files?" => "Biztosan törölni kíván minden kijelölt fájlt?", + "Failed to delete {count} files/folders." => "Nem sikerült törölni {count} fájlt.", + "A file or folder with that name already exists." => "Egy fájl vagy könyvtár már létezik ugyan ezzel a névvel.", + "Copy files here" => "Fájlok másolása ide", + "Move files here" => "Fájlok áthelyezése ide", + "Delete files" => "Fájlok törlése", + "Clear the Clipboard" => "Vágólap ürítése", + "Are you sure you want to delete all files in the Clipboard?" => "Biztosan törölni kívánja a vágólapon lévő összes fájlt?", + "Copy {count} files" => "{count} fájl másolása", + "Move {count} files" => "{count} fájl áthelyezése", + "Add to Clipboard" => "Hozzáadás vágólaphoz", + "Inexistant or inaccessible folder." => "Nem létező vagy elérhetetlen könyvtár.", + "New folder name:" => "Új könyvtár neve:", + "New file name:" => "Új fájl neve:", + "Upload" => "Feltöltés", + "Refresh" => "Frissítés", + "Settings" => "Beállítások", + "Maximize" => "Maximalizálás", + "About" => "Névjegy", + "files" => "fájlok", + "selected files" => "kiválasztott fájlok", + "View:" => "Nézet:", + "Show:" => "Mutat:", + "Order by:" => "Rendezés:", + "Thumbnails" => "Bélyegképek", + "List" => "Lista", + "Name" => "Név", + "Type" => "Típus", + "Size" => "Méret", + "Date" => "Datum", + "Descending" => "Csökkenő", + "Uploading file..." => "Fájl feltöltése...", + "Loading image..." => "Képek betöltése...", + "Loading folders..." => "Könyvtárak betöltése...", + "Loading files..." => "Fájlok betöltése...", + "New Subfolder..." => "Új alkönyvtár...", + "Rename..." => "Átnevezés...", + "Delete" => "Törlés", + "OK" => "OK", + "Cancel" => "Mégse", + "Select" => "Kiválaszt", + "Select Thumbnail" => "Bélyegkép kiválasztása", + "Select Thumbnails" => "Bélyegképek kiválasztása", + "View" => "Nézet", + "Download" => "Letöltés", + "Download files" => "Fájlok letöltése", + "Clipboard" => "Vágólap", + "Checking for new version..." => "Új verzió keresése ...", + "Unable to connect!" => "Nem lehet csatlakozni!", + "Download version {version} now!" => "Töltse le a {version} verziót most!", + "KCFinder is up to date!" => "Ez a KCFinder verzió a legfrissebb", + "Licenses:" => "Licenszek:", + "Attention" => "Figyelem", + "Question" => "Kérdés", + "Yes" => "Igen", + "No" => "Nem", + "You cannot rename the extension of files!" => "Nem változtathatja meg a fájlok kiterjezstését", + "Uploading file {number} of {count}... {progress}" => "A(z) {number}. fájl feltöltése (összesen {count}) ... {progress}", + "Failed to upload {filename}!" => "Nem sikerült feltölteni a '{filename}' fájlt.", +); + +?> \ No newline at end of file diff --git a/lang/it.php b/lang/it.php new file mode 100644 index 0000000..557e5b9 --- /dev/null +++ b/lang/it.php @@ -0,0 +1,127 @@ + "it_IT.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => "Non hai il permesso di caricare files.", + "You don't have permissions to browse server." => "Non hai il permesso di elencare i files.", + "Cannot move uploaded file to target folder." => "Non puoi spostare il file caricato nella cartella di destinazione.", + "Unknown error." => "Errore sconosciuto.", + "The uploaded file exceeds {size} bytes." => "Il file caricato eccede {size} bytes.", + "The uploaded file was only partially uploaded." => "Il file è stato caricato parzialmente.", + "No file was uploaded." => "Nessun file è stato caricato", + "Missing a temporary folder." => "Cartella temporanea non trovata.", + "Failed to write file." => "Scrittura del file fallita.", + "Denied file extension." => "Estensione del file non consentita.", + "Unknown image format/encoding." => "Il format/encoding dell'immagine è sconosciuto.", + "The image is too big and/or cannot be resized." => "L'immagine è troppo grande e/o non può essere rimpicciolita", + "Cannot create {dir} folder." => "La cartella {dir} non può essere creata.", + "Cannot rename the folder." => "Non è possibile rinominare la cartella.", + "Cannot write to upload folder." => "Cartella di destinazione protetta in scrittura.", + "Cannot read .htaccess" => "Impossibile leggere il file .htaccess.", + "Incorrect .htaccess file. Cannot rewrite it!" => "Il file .htaccess è corrotto. Impossibile riscriverlo!", + "Cannot read upload folder." => "Impossibile leggere il contenuto della cartella di destinazione.", + "Cannot access or create thumbnails folder." => "Impossibile creare o accedere alla cartella delle miniature.", + "Cannot access or write to upload folder." => "Impossibile accedere o scrivere nella cartella di destinazione.", + "Please enter new folder name." => "Scrivi il nome della nuova cartella.", + "Unallowable characters in folder name." => "Caratteri non permessi nel nome della cartella.", + "Folder name shouldn't begins with '.'" => "Il nome della cartella non può iniziare con'.'", + "Please enter new file name." => "Inserisci il nuovo nome del file", + "Unallowable characters in file name." => "Caratteri non permessi nel nome del file.", + "File name shouldn't begins with '.'" => "Il nome del file non può iniziare con '.'", + "Are you sure you want to delete this file?" => "Sei sicuro che vuoi cancellare questo file?", + "Are you sure you want to delete this folder and all its content?" => "Sei sicuro di voler cancellare questa cartella e il suo contenuto?", + "Non-existing directory type." => "Il tipo di cartella non esiste.", + "Undefined MIME types." => "Tipo MIME non definito.", + "Fileinfo PECL extension is missing." => "Manca estensione PECL del file.", + "Opening fileinfo database failed." => "Apertura del database delle informazioni del file fallita.", + "You can't upload such files." => "Non è possibile caricare questi files.", + "The file '{file}' does not exist." => "Il file '{file}' non esiste.", + "Cannot read '{file}'." => "Impossibile leggere il file '{file}'.", + "Cannot copy '{file}'." => "Impossibile copiare il file '{file}'.", + "Cannot move '{file}'." => "Impossibile spostare il file '{file}'.", + "Cannot delete '{file}'." => "Impossibile cancellare il file '{file}'.", + "Cannot delete the folder." => "Non è possibile cancellare la cartella.", + "Click to remove from the Clipboard" => "Click per rimuoverlo dalla Clipboard", + "This file is already added to the Clipboard." => "Questo file è già stato aggiunto alla Clipboard.", + "The files in the Clipboard are not readable." => "I files nella Clipboard non sono leggibili.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} files nella Clipboard non sono leggibili. Copiare il resto?", + "The files in the Clipboard are not movable." => "I files nella Clipboard non sono spostabili.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} files nella Clipboard non sono spostabili. Spostare il resto?", + "The files in the Clipboard are not removable." => "I files nella Clipboard non si possono rimuovere.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} files nella Clipboard non si possono rimuovere. Cancellare il resto?", + "The selected files are not removable." => "Il file selezionato non è rimovibile.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} files selezionati non sono rimovibili. Cancellare il resto?", + "Are you sure you want to delete all selected files?" => "Sei sicuro che vuoi cancellare tutti i files selezionati?", + "Failed to delete {count} files/folders." => "Cancellazione fallita {count} files/cartelle.", + "A file or folder with that name already exists." => "Un file o cartella con questo nome già esiste.", + "Copy files here" => "Copia i files qui", + "Move files here" => "Sposta i files qui", + "Delete files" => "Cancella i files", + "Clear the Clipboard" => "Pulisci la Clipboard", + "Are you sure you want to delete all files in the Clipboard?" => "Sei sicuro che vuoi cancellare tutti i files dalla Clipboard?", + "Copy {count} files" => "Copio {count} files", + "Move {count} files" => "Sposto {count} files", + "Add to Clipboard" => "Aggiungi alla Clipboard", + "Inexistant or inaccessible folder." => "La cartella non esiste o è inacessibile.", + "New folder name:" => "Nuovo nome della cartella:", + "New file name:" => "Nuovo nome del file:", + "Upload" => "Carica", + "Refresh" => "Aggiorna", + "Settings" => "Preferenze", + "Maximize" => "Massimizza", + "About" => "Chi siamo", + "files" => "files", + "selected files" => "files selezionati", + "View:" => "Vista:", + "Show:" => "Mostra:", + "Order by:" => "Ordina per:", + "Thumbnails" => "Miniature", + "List" => "Lista", + "Name" => "Nome", + "Type" => "Tipo", + "Size" => "Grandezza", + "Date" => "Data", + "Descending" => "Discendente", + "Uploading file..." => "Carico file...", + "Loading image..." => "Caricamento immagine...", + "Loading folders..." => "Caricamento cartella...", + "Loading files..." => "Caricamento files...", + "New Subfolder..." => "Nuova sottocartella...", + "Rename..." => "Rinomina...", + "Delete" => "Elimina", + "OK" => "OK", + "Cancel" => "Cancella", + "Select" => "Seleziona", + "Select Thumbnail" => "Seleziona miniatura", + "Select Thumbnails" => "Seleziona miniature", + "View" => "Vista", + "Download" => "Scarica", + "Download files" => "Scarica files", + "Clipboard" => "Clipboard", + "Checking for new version..." => "Controllo nuova versione...", + "Unable to connect!" => "Connessione impossibile", + "Download version {version} now!" => "Prelevo la versione {version} adesso!", + "KCFinder is up to date!" => "KCFinder è aggiornato!", + "Licenses:" => "Licenze:", + "Attention" => "Attenzione", + "Question" => "Domanda", + "Yes" => "Si", + "No" => "No", + "You cannot rename the extension of files!" => "Non puoi rinominare l'estensione del file!", + "Uploading file {number} of {count}... {progress}" => "Caricmento del file {number} di {count}... {progress}", + "Failed to upload {filename}!" => "Il caricamento del file {filename} è fallito ", +); + +?> \ No newline at end of file diff --git a/lang/ja.php b/lang/ja.php new file mode 100644 index 0000000..19b7d79 --- /dev/null +++ b/lang/ja.php @@ -0,0 +1,132 @@ + "ja_JP.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%Y/%m/%d %H:%M", + '_dateTimeMid' => "%Y/%m/%d %H:%M", + '_dateTimeSmall' => "%Y/%m/%d %H:%M", + + "You don't have permissions to upload files." => "アップロード権限がありません。", + "You don't have permissions to browse server." => "サーバーを閲覧する権限がありません", + "Cannot move uploaded file to target folder." => "ファイルを移動できません。", + "Unknown error." => "原因不明のエラーです。", + "The uploaded file exceeds {size} bytes." => "アップロードしたファイルは {size} バイトを越えました。", + "The uploaded file was only partially uploaded." => "アップロードしたファイルは、一部のみ処理されました。", + "No file was uploaded." => "ファイルはありません。", + "Missing a temporary folder." => "一時フォルダが見付かりません。", + "Failed to write file." => "ファイルの書き込みに失敗しました。", + "Denied file extension." => "このファイルは扱えません。", + "Unknown image format/encoding." => "この画像ファイルの種別を判定できません。", + "The image is too big and/or cannot be resized." => "画像ファイルのサイズが大き過ぎます。", + "Cannot create {dir} folder." => "「{dir}」フォルダを作成できません。", + "Cannot rename the folder." => "ディレクトリを名前を変更できません", + "Cannot write to upload folder." => "アップロードフォルダに書き込みできません。", + "Cannot read .htaccess" => ".htaccessが読み込めません。", + "Incorrect .htaccess file. Cannot rewrite it!" => "不正な .htaccess ファイルです。再編集できません!", + "Cannot read upload folder." => "アップロードフォルダを読み取れません。", + "Cannot access or create thumbnails folder." => "サムネイルフォルダにアクセス、又はサムネイルフォルダを作成できません。", + "Cannot access or write to upload folder." => "アップロードフォルダにアクセス、又は書き込みできません。", + "Please enter new folder name." => "新しいフォルダ名を入力して下さい。", + "Unallowable characters in folder name." => "フォルダ名に使用できない文字が含まれています。", + "Folder name shouldn't begins with '.'" => "フォルダ名は、'.'で開始しないで下さい。", + "Please enter new file name." => "新しいファイル名を入力して下さい。", + "Unallowable characters in file name." => "ファイル名に使用できない文字が含まれています。", + "File name shouldn't begins with '.'" => "ファイル名は、'.'で開始しないで下さい。", + "Are you sure you want to delete this file?" => "このファイルを本当に削除してもよろしいですか?", + "Are you sure you want to delete this folder and all its content?" => "このフォルダとフォルダ内の全てのコンテンツを本当に削除してもよろしいですか?", + "Non-existing directory type." => "存在しないディレクトリの種類です。", + "Undefined MIME types." => "定義されていないMIMEタイプです。", + "Fileinfo PECL extension is missing." => "Fileinfo PECL 拡張モジュールが見付かりません。", + "Opening fileinfo database failed." => "fileinfo データベースを開くのに失敗しました。", + "You can't upload such files." => "このようなファイルをアップロードできません。", + "The file '{file}' does not exist." => "ファイル「'{file}'」は存在しません。", + "Cannot read '{file}'." => "「'{file}'」を読み取れません。", + "Cannot copy '{file}'." => "「{file}」をコピーできません。", + "Cannot move '{file}'." => "「{file}」を移動できません。", + "Cannot delete '{file}'." => "「'{file}'」を削除できません。", + "Cannot delete the folder." => "ディレクトリを削除できません", + "Click to remove from the Clipboard" => "クリップボードから削除する", + "This file is already added to the Clipboard." => "このファイルは既にクリップボードに追加されています。", + "The files in the Clipboard are not readable." => "クリップボードからファイルを読み取れません", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "クリップボード内の {count} 個のファイルが読み取れません。残りをコピーしてもよろしいですか?", + "The files in the Clipboard are not movable." => "クリップボードからファイルを移動できません", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "クリップボード内の {count} 個のファイルが移動できません。残りを移動してもよろしいですか?", + "The files in the Clipboard are not removable." => "クリップボードを初期化できません", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "クリップボード内の {count} 個のファイルが削除出来ません。残りを削除してもよろしいですか?", + "The selected files are not removable." => "選択したファイルは削除できません。", + "{count} selected files are not removable. Do you want to delete the rest?" => "選択された {count} 個のファイルは削除できません。残りを削除してもよろしいですか?", + "Are you sure you want to delete all selected files?" => "選択された全てのファイルを本当に削除してもよろしいですか?", + "Failed to delete {count} files/folders." => "{count} 個のファイル / フォルダの削除に失敗しました。", + "A file or folder with that name already exists." => "その名前のファイル、又はフォルダは既に存在します。", + "Copy files here" => "ここにコピー", + "Move files here" => "ここに移動", + "Delete files" => "これらを全て削除", + "Clear the Clipboard" => "クリップボードを初期化", + "Are you sure you want to delete all files in the Clipboard?" => "クリップボードに記憶した全てのファイルを実際に削除します。", + "Copy {count} files" => "ファイル({count}個)をここに複写", + "Move {count} files" => "ファイル({count}個)をここに移動", + "Add to Clipboard" => "クリップボードに記憶", + "Inexistant or inaccessible folder." => "存在しない、又はアクセスできないフォルダです。", + "New folder name:" => "フォルダ名(半角英数):", + "New file name:" => "ファイル名(半角英数):", + "Upload" => "アップロード", + "Refresh" => "再表示", + "Settings" => "表示設定", + "Maximize" => "最大化", + "About" => "About", + "files" => "ファイル", + "selected files" => "選択したファイル", + "View:" => "表示スタイル:", + "Show:" => "表示項目:", + "Order by:" => "表示順:", + "Thumbnails" => "サムネイル", + "List" => "リスト", + "Name" => "ファイル名", + "Type" => "タイプ", + "Size" => "サイズ", + "Date" => "日付", + "Descending" => "順序を反転", + "Uploading file..." => "ファイルをアップロード中...", + "Loading image..." => "画像を読み込み中...", + "Loading folders..." => "フォルダを読み込み中...", + "Loading files..." => "読み込み中...", + "New Subfolder..." => "フォルダを作る", + "Rename..." => "名前の変更", + "Delete" => "削除", + "OK" => "OK", + "Cancel" => "キャンセル", + "Select" => "このファイルを選択", + "Select Thumbnail" => "サムネイルを選択", + "Select Thumbnails" => "サムネイルを選択", + "View" => "プレビュー", + "Download" => "ダウンロード", + "Download files" => "ファイルをダウンロードする", + "Clipboard" => "クリップボード", + "Checking for new version..." => "新しいバージョンを確認しています...", + "Unable to connect!" => "接続できませんでした!", + "Download version {version} now!" => "新しいバージョン({version})を今すぐダウンロード!", + "KCFinder is up to date!" => "KCFinderは更新されました!", + "Licenses:" => "ライセンス", + "Attention" => "注意", + "Question" => "確認", + "Yes" => "はい", + "No" => "いいえ", + "You cannot rename the extension of files!" => "ファイルの拡張子を変更できませんでした!", + "Uploading file {number} of {count}... {progress}" => "ファイルをアップロード中({number}/{count})... {progress}", + "Failed to upload {filename}!" => "{filename}のアップロードに失敗しました!", +); + +?> \ No newline at end of file diff --git a/lang/lt.php b/lang/lt.php new file mode 100644 index 0000000..22174d2 --- /dev/null +++ b/lang/lt.php @@ -0,0 +1,127 @@ + + */ + +$lang = array( + + '_locale' => "lt_LT.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%F %T", + '_dateTimeMid' => "%F %T", + '_dateTimeSmall' => "%F %T", + + "You don't have permissions to upload files." => "Jūs neturite teisių įkelti failus", + "You don't have permissions to browse server." => "Jūs neturite teisių naršyti po failus", + "Cannot move uploaded file to target folder." => "Nepavyko įkelti failo į reikiamą katalogą.", + "Unknown error." => "Nežinoma klaida.", + "The uploaded file exceeds {size} bytes." => "Įkeliamas failas viršija {size} baitų(-us).", + "The uploaded file was only partially uploaded." => "Failas buvo tik dalinai įkeltas.", + "No file was uploaded." => "Failas nebuvo įkeltas.", + "Missing a temporary folder." => "Nėra laikino katalogo.", + "Failed to write file." => "Nepavyko įrašyti failo.", + "Denied file extension." => "Draudžiama įkelti šio tipo failus.", + "Unknown image format/encoding." => "Nežinomas paveikslėlio formatas/kodavimas.", + "The image is too big and/or cannot be resized." => "Paveikslėlis yra per didelis ir/arba negali būti sumažintas.", + "Cannot create {dir} folder." => "Nepavyko sukurti {dir} katalogo.", + "Cannot rename the folder." => "Nepavyko pervadinti katalogo.", + "Cannot write to upload folder." => "Nepavyko įrašyti į įkeliamų failų katalogą.", + "Cannot read .htaccess" => "Nepavyko nuskaityti .htaccess failo", + "Incorrect .htaccess file. Cannot rewrite it!" => "Blogas .htaccess failas. Nepavyko jo perrašyti", + "Cannot read upload folder." => "Nepavyko atidaryti įkeliamų failų katalogo.", + "Cannot access or create thumbnails folder." => "Nepavyko atidaryti ar sukurti sumažintų paveikslėlių katalogo.", + "Cannot access or write to upload folder." => "Nepavyko atidaryti ar įrašyti į įkeliamų failų katalogą.", + "Please enter new folder name." => "Įveskite katalogo pavadinimą.", + "Unallowable characters in folder name." => "Katalogo pavadinime yra neleistinų simbolių.", + "Folder name shouldn't begins with '.'" => "Katalogo pavadinimas negali prasidėti '.'", + "Please enter new file name." => "Įveskite failo pavadinimą.", + "Unallowable characters in file name." => "Failo pavadinime yra neleistinų simbolių", + "File name shouldn't begins with '.'" => "Failo pavadinimas negali prasidėti '.'", + "Are you sure you want to delete this file?" => "Ar tikrai ištrinti šį failą?", + "Are you sure you want to delete this folder and all its content?" => "Ar tikrai ištrinti šį katalogą su visu jo turiniu?", + "Non-existing directory type." => "Neegzistuojantis katalogo tipas.", + "Undefined MIME types." => "Nenurodytas MIME tipas.", + "Fileinfo PECL extension is missing." => "Trūksa PECL plėtinio Fileinfo", + "Opening fileinfo database failed." => "Nepavyko atidaryti Fileinfo duomenų bazės.", + "You can't upload such files." => "Negalima įkelti tokių failų.", + "The file '{file}' does not exist." => "Failas '{file}' neegzistuoja.", + "Cannot read '{file}'." => "Nepavyko atidaryti '{file}' failo.", + "Cannot copy '{file}'." => "Nepavyko nukopijuoti '{file}' failo.", + "Cannot move '{file}'." => "Nepavyko perkelti '{file}' failo.", + "Cannot delete '{file}'." => "Nepavyko ištrinti '{file}' failo.", + "Cannot delete the folder." => "Nepavyko ištrinti katalogo.", + "Click to remove from the Clipboard" => "Zum entfernen aus der Zwischenablage, hier klicken.", + "This file is already added to the Clipboard." => "Šis failas jau įkeltas į laikinąją atmintį.", + "The files in the Clipboard are not readable." => "Nepavyko nuskaityti failų iš laikinosios atminties.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "Nepavyko atidaryti {count} failų(-ai) iš laikinosios atminties. Ar kopijuoti likusius?", + "The files in the Clipboard are not movable." => "Nepavyko perkelti failų iš laikinosios atminties.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "Nepavyko perkelti {count} failų(-ai) iš laikinosios atminties. Ar perkelti likusius?", + "The files in the Clipboard are not removable." => "Nepavyko perkelti failų iš laikinosios atminties.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "Nepavyko ištrinti {count} failų(-ai) iš laikinosios atminties. Ar ištrinti likusius?", + "The selected files are not removable." => "Nepavyko perkelti pažymėtų failų.", + "{count} selected files are not removable. Do you want to delete the rest?" => "Nepavyko ištrinti {count} failų(-ai) iš laikinosios atminties. Ar ištrinti likusius?", + "Are you sure you want to delete all selected files?" => "Ar tikrai ištrinti visus pažymėtus failus?", + "Failed to delete {count} files/folders." => "Nepavyko ištrinti {count} failų/katalogų.", + "A file or folder with that name already exists." => "Failas arba katalogas tokiu pavadinimu jau egzistuoja.", + "Copy files here" => "Kopijuoti failus čia.", + "Move files here" => "Perkelti failus čia.", + "Delete files" => "Ištrinti failus.", + "Clear the Clipboard" => "Išvalyti laikinąją atmintį", + "Are you sure you want to delete all files in the Clipboard?" => "Ar tikrai ištrinti visus failus, esančius laikinojoje atmintyje?", + "Copy {count} files" => "Kopijuoti {count} failų(-us)", + "Move {count} files" => "Perkelti {count} failų(-us)", + "Add to Clipboard" => "Įkelti į laikinąją atmintį", + "Inexistant or inaccessible folder." => "Katalogas neegzistuoja arba yra neprieinamas.", + "New folder name:" => "Naujo katalogo pavadinimas:", + "New file name:" => "Naujo failo pavadinimas:", + "Upload" => "Įkelti", + "Refresh" => "Atnaujinti", + "Settings" => "Nustatymai", + "Maximize" => "Padidinti", + "About" => "Apie", + "files" => "Failai", + "selected files" => "Pasirinkti failus", + "View:" => "Peržiūra:", + "Show:" => "Rodyti:", + "Order by:" => "Rikiuoti:", + "Thumbnails" => "Sumažintos iliustracijos", + "List" => "Sąrašas", + "Name" => "Pavadinimas", + "Type" => "Tipas", + "Size" => "Dydis", + "Date" => "Data", + "Descending" => "Mažejančia tvarka", + "Uploading file..." => "Įkeliamas failas...", + "Loading image..." => "Kraunami paveikslėliai...", + "Loading folders..." => "Kraunami katalogai...", + "Loading files..." => "Kraunami failai...", + "New Subfolder..." => "Naujas katalogas...", + "Rename..." => "Pervadinti...", + "Delete" => "Ištrinti", + "OK" => "OK", + "Cancel" => "Atšaukti", + "Select" => "Pažymėti", + "Select Thumbnail" => "Pasirinkti sumažintą paveikslėlį", + "Select Thumbnails" => "Pasirinkti sumažintus paveikslėlius", + "View" => "Peržiūra", + "Download" => "Atsisiųsti", + "Download files" => "Atsisiųsti failus", + "Clipboard" => "Laikinoji atmintis", + "Checking for new version..." => "Tikrinama nauja versija...", + "Unable to connect!" => "Nepavyko prisijungti!", + "Download version {version} now!" => "Siųsti versiją {version} dabar!", + "KCFinder is up to date!" => "KCFinder yra naujausios versijos!", + "Licenses:" => "Licenzijos:", + "Attention" => "Dėmesio", + "Question" => "Klausimas", + "Yes" => "Taip", + "No" => "Ne", + "You cannot rename the extension of files!" => "Negalima keisti failų plėtinių!", + "Uploading file {number} of {count}... {progress}" => "Įkeliamas {number} failas iš {count}... {progress}", + "Failed to upload {filename}!" => "Nepavyko įkelti {filename}!", +); + +?> \ No newline at end of file diff --git a/lang/nl.php b/lang/nl.php new file mode 100644 index 0000000..37d2f08 --- /dev/null +++ b/lang/nl.php @@ -0,0 +1,127 @@ + + */ + +$lang = array( + + '_locale' => "nl_NL.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e.%B.%Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d/%m/%Y %H:%M", + + "You don't have permissions to upload files." => "U heeft geen toestemming om bestanden te uploaden.", + "You don't have permissions to browse server." => "U heeft geen toegang tot de server.", + "Cannot move uploaded file to target folder." => "Het te uploaden bestand kon niet naar de doel folder verplaatst worden.", + "Unknown error." => "Onbekende foutmelding.", + "The uploaded file exceeds {size} bytes." => "De bestandsgrootte van het bestand gaat de limiet ({size}) voorbij.", + "The uploaded file was only partially uploaded." => "Het te uploaden bestand is slechts gedeeltelijk geupload.", + "No file was uploaded." => "Er is geen bestand geupload.", + "Missing a temporary folder." => "Een tijdelijke folder ontbreekt.", + "Failed to write file." => "Poging tot schrijven van bestand is mislukt.", + "Denied file extension." => "De extensie van dit bestand is niet toegestaan.", + "Unknown image format/encoding." => "Onbekende afbeeldingsformaats/-codering.", + "The image is too big and/or cannot be resized." => "De afbeelding is te groot en/of de grootte kan niet aangepast worden.", + "Cannot create {dir} folder." => "Kan de map {dir} niet aanmaken.", + "Cannot rename the folder." => "De folder kan niet hernoemd worden.", + "Cannot write to upload folder." => "Kan niet naar de upload folder schrijven.", + "Cannot read .htaccess" => "Kan .htaccess niet lezen.", + "Incorrect .htaccess file. Cannot rewrite it!" => "Incorrect .htaccess bestand. Bestand kan niet herschreven worden!", + "Cannot read upload folder." => "Upload folder kan niet uitgelezen worden.", + "Cannot access or create thumbnails folder." => "Het is niet mogelijk om een miniatuurweergaven folder aan te maken of te benaderen.", + "Cannot access or write to upload folder." => "Het is niet mogelijk om in de upload folder te schrijven of deze te benaderen.", + "Please enter new folder name." => "Vul a.u.b. een nieuwe foldernaam in.", + "Unallowable characters in folder name." => "Er zijn niet toegestane karakters gebruikt in de foldernaam.", + "Folder name shouldn't begins with '.'" => "Een foldernaam mag niet met '.' beginnen.", + "Please enter new file name." => "Vul a.u.b. een nieuwe bestandsnaam in.", + "Unallowable characters in file name." => "Er zijn niet toegestane karakters gebruikt in de bestandsnaam.", + "File name shouldn't begins with '.'" => "Een bestandsnaam mag niet met '.' beginnen.", + "Are you sure you want to delete this file?" => "Weet u zeker dat u dit bestand wilt verwijderen?", + "Are you sure you want to delete this folder and all its content?" => "Weet u zeker dat u deze folder en alle inhoud ervan wilt verwijderen?", + "Non-existing directory type." => "Het folder type bestaat niet.", + "Undefined MIME types." => "Onbekend MIME type.", + "Fileinfo PECL extension is missing." => "Bestandsinformatie PECL extensie ontbreekt.", + "Opening fileinfo database failed." => "Openen van bestandsinformatie database is mislukt.", + "You can't upload such files." => "Uploaden van dergelijke bestanden is niet mogelijk.", + "The file '{file}' does not exist." => "Het bestand '{file}' bestaat niet.", + "Cannot read '{file}'." => "Kan bestand '{file}' niet lezen.", + "Cannot copy '{file}'." => "Kan bestand '{file}' niet kopieren.", + "Cannot move '{file}'." => "Kan bestand '{file}' niet verplaatsen.", + "Cannot delete '{file}'." => "Kan bestand '{file}' niet verwijderen.", + "Cannot delete the folder." => "De folder kan niet verwijderd worden.", + "Click to remove from the Clipboard" => "Klik om te verwijderen van het klembord.", + "This file is already added to the Clipboard." => "Dit bestand was reeds toegevoegd aan het klembord.", + "The files in the Clipboard are not readable." => "De bestanden op het klembord kunnen niet gelezen worden.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} bestanden op het klembord zijn niet leesbaar. Wilt u de rest toch kopiëren?", + "The files in the Clipboard are not movable." => "De bestanden op het klembord kunnen niet verplaatst worden.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} bestanden op het klembord kunnen niet verplaatst worden. Wilt u de rest toch verplaatsen?", + "The files in the Clipboard are not removable." => "De bestanden op het klembord kunnen niet verwijderd worden.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} bestanden op het klembord kunnen niet verwijderd worden. Wilt u de rest toch verwijderen?", + "The selected files are not removable." => "De geselecteerde bestanden kunnen niet verwijderd worden.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} geselecteerde bestanden kunnen niet verwijderd worden. Wilt u de rest toch verwijderen?", + "Are you sure you want to delete all selected files?" => "Weet u zeker dat u alle geselcteerde bestanden wilt verwijderen?", + "Failed to delete {count} files/folders." => "{count} bestanden/folders konden niet verwijderd worden.", + "A file or folder with that name already exists." => "Er bestaat reeds een bestand of folder met die naam.", + "Copy files here" => "Kopieer bestanden hierheen", + "Move files here" => "Verplaats bestanden hierheen", + "Delete files" => "Verwijder bestanden", + "Clear the Clipboard" => "Klemborg leegmaken", + "Are you sure you want to delete all files in the Clipboard?" => "Weet u zeker dat u alle bestanden op het klembord wilt verwijderen?", + "Copy {count} files" => "Kopieer {count} bestanden", + "Move {count} files" => "Verplaats {count} bestanden", + "Add to Clipboard" => "Voeg toe aan klembord", + "Inexistant or inaccessible folder." => "Folder bestaat niet of kon niet benaderd worden.", + "New folder name:" => "Nieuwe foldernaam:", + "New file name:" => "Nieuwe bestandsnaam:", + "Upload" => "Upload", + "Refresh" => "Verversen", + "Settings" => "Instellingen", + "Maximize" => "Maximaliseren", + "About" => "Over", + "files" => "bestanden", + "selected files" => "geselecteerde bestanden", + "View:" => "Beeld:", + "Show:" => "Weergeven:", + "Order by:" => "Sorteren op:", + "Thumbnails" => "Miniatuurweergaven", + "List" => "Lijst", + "Name" => "Naam", + "Type" => "Type", + "Size" => "Grootte", + "Date" => "Datum", + "Descending" => "Aflopend", + "Uploading file..." => "Bestand uploaden...", + "Loading image..." => "Afbeelding wordt geladen...", + "Loading folders..." => "Folders worden geladen...", + "Loading files..." => "Bestanden worden geladen ...", + "New Subfolder..." => "Nieuwe subfolder...", + "Rename..." => "Hernoemen...", + "Delete" => "Verwijderen", + "OK" => "OK", + "Cancel" => "Annuleren", + "Select" => "Selecteer", + "Select Thumbnail" => "Selecteer miniatuurweergave", + "Select Thumbnails" => "Kies miniatuurweergaven", + "View" => "Beeld", + "Download" => "Download", + "Download files" => "Bestanden downloaden", + "Clipboard" => "Klembord", + "Checking for new version..." => "Zoeken naar een nieuwere versie...", + "Unable to connect!" => "Kan geen verbinding maken!", + "Download version {version} now!" => "Download versie {version} nu!", + "KCFinder is up to date!" => "KCFinder is up to date!", + "Licenses:" => "Licenties:", + "Attention" => "Attentie", + "Question" => "Vraag", + "Yes" => "Ja", + "No" => "Nee", + "You cannot rename the extension of files!" => "U kan de extensie van bestanden niet hernoemen!", + "Uploading file {number} of {count}... {progress}" => "Bestand {number} van de {count} aan het uploaden... {progress}", + "Failed to upload {filename}!" => "Uploaden van {filename} mislukt!", +); + +?> \ No newline at end of file diff --git a/lang/no.php b/lang/no.php new file mode 100644 index 0000000..80aaf6a --- /dev/null +++ b/lang/no.php @@ -0,0 +1,242 @@ + "nb_NO.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => + "Du har ikke tilgang til å laste opp filer", + + "You don't have permissions to browse server." => + "Du har ikke tilgang til å bla igjennom server", + + "Cannot move uploaded file to target folder." => + "Kan ikke flytte fil til denne mappen", + + "Unknown error." => + "Ukjent feil.", + + "The uploaded file exceeds {size} bytes." => + "Filen er for stor.", + + "The uploaded file was only partially uploaded." => + "Opplastning delvis fullført.", + + "No file was uploaded." => + "Ingen filer lastet opp", + + "Missing a temporary folder." => + "Mangler midlertidig mappe.", + + "Failed to write file." => + "Feil ved skriving til fil.", + + "Denied file extension." => + "Feil filformat", + + "Unknown image format/encoding." => + "Ukjent bildeformat.", + + "The image is too big and/or cannot be resized." => + "Bildet er for stort eller kan ikke skaleres ned.", + + "Cannot create {dir} folder." => + "Kan ikke opprette mappe.", + + "Cannot write to upload folder." => + "Ingen tilgang til å skrive til denne mappen.", + + "Cannot read .htaccess" => + "Kan ikke lese .htaccess.", + + "Incorrect .htaccess file. Cannot rewrite it!" => + "Feil! Kan ikke skrive til denne filen", + + "Cannot read upload folder." => + "Kan ikke lese denne mappen.", + + "Cannot access or create thumbnails folder." => + "Ikke tilgang til mappen for miniatyrbilder", + + "Cannot access or write to upload folder." => + "Ikke tilgang til opplastningsmappe.", + + "Please enter new folder name." => + "Skriv inn nytt navn til denne mappen.", + + "Unallowable characters in folder name." => + "Ulovlige tegn i mappenavn.", + + "Folder name shouldn't begins with '.'" => + "Mappenavnet kan ikke begynne med '.'", + + "Please enter new file name." => + "Skriv inn nytt filnavn ", + + "Unallowable characters in file name." => + "Ulovlige tegn i filnavn.", + + "File name shouldn't begins with '.'" => + "Filnavn kan ikke starte med '.'", + + "Are you sure you want to delete this file?" => + "Er du sikker på at du vil slette denne filen?", + + "Are you sure you want to delete this folder and all its content?" => + "Er du sikker på at du vil slette denne mappen og innholdet i den?", + + "Inexistant or inaccessible folder." => + "Kan ikke lese mappe.", + + "Undefined MIME types." => + "Undefined MIME types.", + + "Fileinfo PECL extension is missing." => + "Fileinfo PECL extension is missing.", + + "Opening fileinfo database failed." => + "Opening fileinfo database failed", + + "You can't upload such files." => + "Du kan ikke laste opp denne typen filer", + + "The file '{file}' does not exist." => + "Filen '{file}' finnes ikke.", + + "Cannot read '{file}'." => + "Kan ikke lese '{file}'.", + + "Cannot copy '{file}'." => + "Kan ikke kopiere '{file}'.", + + "Cannot move '{file}'." => + "Kan ikke flytte '{file}'.", + + "Cannot delete '{file}'." => + "Kan ikke slette '{file}'.", + + "Click to remove from the Clipboard" => + "Klikk for å fjerne fra utklippstavle", + + "This file is already added to the Clipboard." => + "Filen finnes allerede på utklippstavlen", + + "Copy files here" => + "Kopier filene til ;", + + "Move files here" => + "Flytt filene til ;", + + "Delete files" => + "Slett filer", + + "Clear the Clipboard" => + "Tøm utklippstavle", + + "Are you sure you want to delete all files in the Clipboard?" => + "Er du sikker på at du vil slette alle filene i utklippstavlen?", + + "Copy {count} files" => + "Kopier {count} filer", + + "Move {count} files" => + "Flytt {count} filer ", + + "Add to Clipboard" => + "Legg til i utklippstavle", + + "New folder name:" => "Nytt mappenavn:", + "New file name:" => "Nytt filnavn:", + + "Upload" => "Last opp", + "Refresh" => "Oppdater", + "Settings" => "Innstillinger", + "Maximize" => "Maksimer", + "About" => "Om/Hjelp", + "files" => "filer", + "View:" => "Vis:", + "Show:" => "Vis:", + "Order by:" => "Sorter etter:", + "Thumbnails" => "Miniatyrbilder", + "List" => "Liste", + "Name" => "Navn", + "Size" => "Størrelse", + "Date" => "Dato", + "Descending" => "Synkende", + "Uploading file..." => "Laster opp fil...", + "Loading image..." => "Laster bilde...", + "Loading folders..." => "Laster mapper...", + "Loading files..." => "Laster filer...", + "New Subfolder..." => "Ny undermappe...", + "Rename..." => "Endre navn...", + "Delete" => "Slett", + "OK" => "OK", + "Cancel" => "Avbryt", + "Select" => "Velg", + "Select Thumbnail" => "Velg miniatyrbilde", + "View" => "Vis", + "Download" => "Last ned", + "Clipboard" => "Utklippstavle", + + // VERSION 2 NEW LABELS + + "Cannot rename the folder." => + "Kan ikke endre navnet på mappen.", + + "Non-existing directory type." => + "Denne finnes ikke.", + + "Cannot delete the folder." => + "Kan ikke slette mappe.", + + "The files in the Clipboard are not readable." => + "Kan ikke lese filene i utklippstavlen.", + + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => + "{count} filer i utklippstavlen kan ikke leses, ønsker du kopiere resten av filene?", + + "The files in the Clipboard are not movable." => + "Filene i utklippstavlen kan ikke flyttes", + + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => + "{count} filer i utklippstavlen kan ikke flyttes, ønsker du å flytte resten?", + + "The files in the Clipboard are not removable." => + "Filene i utklippstavlen kan ikke flyttes.", + + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => + "{count} filer i utklippstavlen kan ikke flyttes, ønsker du å flytte resten?", + + "The selected files are not removable." => + "Merkede filer kan ikke flyttes.", + + "{count} selected files are not removable. Do you want to delete the rest?" => + "{count} filer kan ikke flyttes, ønsker du å flytte resten?", + + "Are you sure you want to delete all selected files?" => + "Er du sikker på at du ønsker å slette alle merkede filer?", + + "Failed to delete {count} files/folders." => + "Feil ved sletting av {count} filer/mapper.", + + "A file or folder with that name already exists." => + "En fil eller mappe finnes allerede med dette navnet", + + "selected files" => "merkede filer", + "Type" => "Type", + "Select Thumbnails" => "Velg miniatyrbilde", + "Download files" => "Last ned filer", +); + +?> \ No newline at end of file diff --git a/lang/pl.php b/lang/pl.php new file mode 100644 index 0000000..413b5f9 --- /dev/null +++ b/lang/pl.php @@ -0,0 +1,127 @@ + "pl_PL.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => "Nie masz zezwolenia na wysyłanie plików.", + "You don't have permissions to browse server." => "Nie masz zezwolenia na przeglądanie serwera.", + "Cannot move uploaded file to target folder." => "Nie można przenieść wysłanego pliku do folderu plików wysłanych.", + "Unknown error." => "Nieokreślony błąd.", + "The uploaded file exceeds {size} bytes." => "Wysyłany plik przekroczył rozmiar {size} bajtów", + "The uploaded file was only partially uploaded." => "Wysyłany plik nie został przesłany w całości.", + "No file was uploaded." => "Żaden plik nie został przesłany", + "Missing a temporary folder." => "Brak katalogu domyślnego.", + "Failed to write file." => "Błąd zapisu pliku.", + "Denied file extension." => "Niedozwolone rozszerzenie pliku.", + "Unknown image format/encoding." => "Nie znany format/kodowanie pliku.", + "The image is too big and/or cannot be resized." => "Obraz jest zbyt duży i/lub nie może zostać zmieniony jego rozmiar.", + "Cannot create {dir} folder." => "Nie można utworzyć katalogu {dir}.", + "Cannot rename the folder." => "Nie można zmienić nazwy katalogu.", + "Cannot write to upload folder." => "Nie można zapisywać do katalogu plików wysłanych.", + "Cannot read .htaccess" => "Nie można odczytać pliku .htaccess", + "Incorrect .htaccess file. Cannot rewrite it!" => "Nie prawidłowy plik .htaccess. Nie można go zapisać!", + "Cannot read upload folder." => "Nie można odczytać katalogu plików wysłanych.", + "Cannot access or create thumbnails folder." => "Nie ma dostępu lub nie można utworzyć katalogu miniatur.", + "Cannot access or write to upload folder." => "Nie ma dostępu lub nie można zapisywać do katalogu plików wysłanych.", + "Please enter new folder name." => "Proszę podać nową nazwę katalogu.", + "Unallowable characters in folder name." => "Niedozwolony znak w nazwie folderu.", + "Folder name shouldn't begins with '.'" => "Nazwa katalogu nie może zaczynać się od '.'", + "Please enter new file name." => "Proszę podać nową nazwę pliku", + "Unallowable characters in file name." => "Nie dozwolony znak w nazwie pliku.", + "File name shouldn't begins with '.'" => "Nazwa pliku nie powinna zaczynać się od '.'", + "Are you sure you want to delete this file?" => "Czy jesteś pewien, że chcesz skasować ten plik?", + "Are you sure you want to delete this folder and all its content?" => "Czy jesteś pewien, że chcesz skasować ten katalog i jego zawartość?", + "Non-existing directory type." => "Nie istniejący katalog.", + "Undefined MIME types." => "Niezidentyfikowany typ MIME.", + "Fileinfo PECL extension is missing." => "Brak rozszerzenia Fileinfo PECL.", + "Opening fileinfo database failed." => "Otwieranie bazy danych fileinfo nie udane.", + "You can't upload such files." => "Nie możesz wysyłać plików tego typu.", + "The file '{file}' does not exist." => "Plik {file} nie istnieje.", + "Cannot read '{file}'." => "Nie można odczytać pliku '{file}'.", + "Cannot copy '{file}'." => "Nie można skopiować pliku '{file}'.", + "Cannot move '{file}'." => "Nie można przenieść pliku '{file}'.", + "Cannot delete '{file}'." => "Nie można usunąć pliku '{file}'.", + "Cannot delete the folder." => "Nie można usunąć katalogu.", + "Click to remove from the Clipboard" => "Kliknij aby usunąć ze Schowka", + "This file is already added to the Clipboard." => "Ten plik już został dodany do Schowka.", + "The files in the Clipboard are not readable." => "Pliki w Schowku nie mogą zostać odczytane.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} plik(i/ów) ze Schowka nie może zostać odczytanych. Czy chcesz skopiować pozostałe?", + "The files in the Clipboard are not movable." => "Pliki w Schowku nie mogą zostać przeniesione.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} plik(i/ów) ze Schowka nie może zostać przeniesionych. Czy chcesz przenieść pozostałe?", + "The files in the Clipboard are not removable." => "Nie można usunąć plików ze Schowka.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} plik(i/ów) ze Schowka nie może zostać usunięty(ch). Czy usunąć pozostałe?", + "The selected files are not removable." => "Wybrane pliki nie mogą zostać usunięte.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} wybrany(ch) plików nie może zostać usunięte. Czy usunąć pozostałe?", + "Are you sure you want to delete all selected files?" => "Czy jesteś pewien że, chcesz usunąć wszystkie wybrane pliki?", + "Failed to delete {count} files/folders." => "Nie udało się usunąć {count} plik(i/ów) / folder(u/ów).", + "A file or folder with that name already exists." => "Plik lub katalog o tej nazwie już istnieje.", + "Copy files here" => "Kopiuj pliki tutaj", + "Move files here" => "Przenieś pliki tutaj", + "Delete files" => "Usuń pliki", + "Clear the Clipboard" => "Wyczyść Schowek", + "Are you sure you want to delete all files in the Clipboard?" => "Czy jesteś pewien, że chcesz usunąć wszystkie pliki ze schowka?", + "Copy {count} files" => "Kopiowanie {count} plików", + "Move {count} files" => "Przenoszenie {count} plików", + "Add to Clipboard" => "Dodaj do Schowka", + "Inexistant or inaccessible folder." => "Nieistniejący lub niedostępny folder.", + "New folder name:" => "Nazwa nowego katalogu:", + "New file name:" => "Nowa nazwa pliku:", + "Upload" => "Wyślij", + "Refresh" => "Odśwież", + "Settings" => "Ustawienia", + "Maximize" => "Maksymalizuj", + "About" => "O...", + "files" => "pliki", + "selected files" => "wybrane pliki", + "View:" => "Widok:", + "Show:" => "Pokaż:", + "Order by:" => "Sortuj według:", + "Thumbnails" => "Miniatury", + "List" => "Lista", + "Name" => "Nazwa", + "Type" => "Typ", + "Size" => "Rozmiar", + "Date" => "Data", + "Descending" => "Malejąco", + "Uploading file..." => "Wysyłanie pliku...", + "Loading image..." => "Ładowanie obrazu...", + "Loading folders..." => "Ładowanie katalogów...", + "Loading files..." => "Ładowanie plików...", + "New Subfolder..." => "Nowy pod-katalog...", + "Rename..." => "Zmień nazwę...", + "Delete" => "Usuń", + "OK" => "OK", + "Cancel" => "Anuluj", + "Select" => "Wybierz", + "Select Thumbnail" => "Wybierz miniaturę", + "Select Thumbnails" => "Wybierz miniatury", + "View" => "Podgląd", + "Download" => "Pobierz", + "Download files" => "Pobierz pliki", + "Clipboard" => "Schowek", + "Checking for new version..." => "Sprawdzanie najnowszej dostępnej wersji ...", + "Unable to connect!" => "Nie udało się nawiązać połączenia!", + "Download version {version} now!" => "Pobierz wersję {version}.", + "KCFinder is up to date!" => "Korzystasz z najnowszej wersji KCFinder!", + "Licenses:" => "Licencja:", + "Attention" => "Uwaga", + "Question" => "Pytanie", + "Yes" => "Tak", + "No" => "Nie", + "You cannot rename the extension of files!" => "Nie możesz zmienić rozszerzeń plików!", + "Uploading file {number} of {count}... {progress}" => "Wysyłanie pliku nr {number} spośród {count} ... {progress}", + "Failed to upload {filename}!" => "Wysyłanie pliku {filename} nie powiodło się!", +); + +?> \ No newline at end of file diff --git a/lang/pt-br.php b/lang/pt-br.php new file mode 100644 index 0000000..8d60953 --- /dev/null +++ b/lang/pt-br.php @@ -0,0 +1,130 @@ + "pt_BR.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => "Você não tem permissões para fazer upload de arquivos.", + "You don't have permissions to browse server." => "Você não tem permissões para procurar no servidor.", + "Cannot move uploaded file to target folder." => "Não é possível mover o arquivo enviado para a pasta de destino.", + "Unknown error." => "Erro desconhecido.", + "The uploaded file exceeds {size} bytes." => "O arquivo enviado excede {size} bytes.", + "The uploaded file was only partially uploaded." => "O arquivo enviado foi apenas parcialmente carregado.", + "No file was uploaded." => "Nenhum arquivo foi transferido.", + "Missing a temporary folder." => "Faltando uma pasta temporária.", + "Failed to write file." => "Falha ao gravar arquivo.", + "Denied file extension." => "Extensão de arquivo não permitida.", + "Unknown image format/encoding." => "Formato de imagem desconhecido/codificação.", + "The image is too big and/or cannot be resized." => "A imagem é muito grande e/ou não pode ser redimensionada.", + "Cannot create {dir} folder." => "Não é possível criar pasta em '{dir}'.", + "Cannot rename the folder." => "Não é possível renomear a pasta.", + "Cannot write to upload folder." => "Não é possível salvar na pasta.", + "Cannot read .htaccess" => "Não é possível ler '.htaccess'.", + "Incorrect .htaccess file. Cannot rewrite it!" => "Arquivo '.htaccess' incorreto. Não é possível alterar.", + "Cannot read upload folder." => "Não é possível ler a pasta de upload.", + "Cannot access or create thumbnails folder." => "Não é possível acessar ou criar pasta de miniaturas.", + "Cannot access or write to upload folder." => "Não é possível acessar ou salvar para a pasta.", + "Please enter new folder name." => "Por favor, digite o nome da nova pasta.", + "Unallowable characters in folder name." => "Caracteres no nome da pasta não Autorizado.", + "Folder name shouldn't begins with '.'" => "Nome da pasta não deve começar com '.'.", + "Please enter new file name." => "Por favor, digite o novo nome de arquivo.", + "Unallowable characters in file name." => "Caracteres no nome do arquivo não Autorizado.", + "File name shouldn't begins with '.'" => "O nome da pasta não deve começar por '.'.", + "Are you sure you want to delete this file?" => "Tem a certeza de que deseja excluir este arquivo?", + "Are you sure you want to delete this folder and all its content?" => "Tem a certeza de que deseja excluir esta pasta e todo o seu conte�do?", + "Non-existing directory type." => "Tipo de diretório não existente.", + "Undefined MIME types." => "Tipos MIME indefinidos.", + "Fileinfo PECL extension is missing." => "Está faltando Informações do arquivo extensão PECL.", + "Opening fileinfo database failed." => "Abrir banco de dados de fileinfo falhou.", + "You can't upload such files." => "Você não pode enviar esses arquivos.", + "The file '{file}' does not exist." => "O arquivo '{file}' não existe.", + "Cannot read '{file}'." => "Não é possível ler '{file}'.", + "Cannot copy '{file}'." => "Não é possível copiar '{file}'.", + "Cannot move '{file}'." => "Não é possível mover '{file}'.", + "Cannot delete '{file}'." => "Não é possível deletar '{file}'.", + "Cannot delete the folder." => "Não é possível excluir a pasta.", + "Click to remove from the Clipboard" => "Clique para remover da área de transferência", + "This file is already added to the Clipboard." => "Este arquivo já foi adicionado à área de transferência.", + "The files in the Clipboard are not readable." => "Os arquivos da área de transferência não podem ser lidos.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} arquivos da área de transferência não podem ser lidos. Você deseja copiar o resto?", + "The files in the Clipboard are not movable." => "Os arquivos da área de transferência não podem ser removidos.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} arquivos da área de transferência não podem ser movidos. Você deseja mover o resto?", + "The files in the Clipboard are not removable." => "Os arquivos da área de transferência não podem ser removidos.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} arquivos da área de transferência não são removíveis. Você deseja excluir o restante?", + "The selected files are not removable." => "Os arquivos selecionados não são removíveis.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} arquivos selecionados não são removíveis. Você deseja excluir o restante?", + "Are you sure you want to delete all selected files?" => "Tem a certeza de que deseja excluir todos os arquivos selecionados?", + "Failed to delete {count} files/folders." => "Não conseguiu excluir {count} arquivos/pastas.", + "A file or folder with that name already exists." => "Já existe um arquivo ou pasta com esse nome.", + "Copy files here" => "Copiar arquivos aqui", + "Move files here" => "Mover arquivos aqui", + "Delete files" => "Deletar arquivos", + "Clear the Clipboard" => "Limpar a área de transferência", + "Are you sure you want to delete all files in the Clipboard?" => "Tem a certeza de que deseja excluir todos os arquivos da área de transferência?", + "Copy {count} files" => "Copiar {count} arquivos", + "Move {count} files" => "Mover {count} arquivos", + "Add to Clipboard" => "Adicionar à área de transferência", + "Inexistant or inaccessible folder." => "Pasta inacessível ou inexistente.", + "New folder name:" => "Nome da nova pasta:", + "New file name:" => "Novo nome do arquivo:", + "Upload" => "Enviar arquivo", + "Refresh" => "Atualizar", + "Settings" => "Configurações", + "Maximize" => "Maximizar", + "About" => "Sobre", + "files" => "Arquivos", + "selected files" => "arquivos selecionados", + "View:" => "Exibir:", + "Show:" => "Mostrar:", + "Order by:" => "Ordenar por:", + "Thumbnails" => "Miniaturas", + "List" => "Lista", + "Name" => "Nome", + "Type" => "Tipo", + "Size" => "Tamanho", + "Date" => "Data", + "Descending" => "Descendente", + "Uploading file..." => "Carregando arquivo...", + "Loading image..." => "Carregando imagem...", + "Loading folders..." => "Carregando pastas...", + "Loading files..." => "Carregando arquivos...", + "New Subfolder..." => "Nova subpasta...", + "Rename..." => "Renomear...", + "Delete" => "Excluir", + "OK" => "OK", + "Cancel" => "Cancelar", + "Select" => "Selecionar", + "Select Thumbnail" => "Selecionar miniatura", + "Select Thumbnails" => "Selecionar miniaturas", + "View" => "Exibir", + "Download" => "Download", + "Download files" => "Baixar arquivos", + "Clipboard" => "área de transferência", + "Checking for new version..." => "Checando por nova versão...", + "Unable to connect!" => "Não foi possível conectar!", + "Download version {version} now!" => "Baixe a versão {version} agora!", + "KCFinder is up to date!" => "KCFinder está atualizado!", + "Licenses:" => "Licenças", + "Attention" => "Atenção", + "Question" => "Pergunta", + "Yes" => "Sim", + "No" => "Não", + "You cannot rename the extension of files!" => "Você não pode renomear a extensão de arquivos!", + "Uploading file {number} of {count}... {progress}" => "Enviando arquivo {number} de {count}... {progress}", + "Failed to upload {filename}!" => "Falha no envio do arquivo {filename}!", +); + +?> \ No newline at end of file diff --git a/lang/pt.php b/lang/pt.php new file mode 100644 index 0000000..f0c7f04 --- /dev/null +++ b/lang/pt.php @@ -0,0 +1,243 @@ + "pt_PT.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => + "Não tem permissão para enviar ficheiros.", + + "You don't have permissions to browse server." => + "Não tem permissão para navegar no servidor.", + + "Cannot move uploaded file to target folder." => + "Não pode mover ficheiros enviados para a pasta definida.", + + "Unknown error." => + "Erro indefinido.", + + "The uploaded file exceeds {size} bytes." => + "O ficheiro enviado tem mais que {size} bytes.", + + "The uploaded file was only partially uploaded." => + "O ficheiro foi apenas enviado parcialmente.", + + "No file was uploaded." => + "Nenhum ficheiro enviado.", + + "Missing a temporary folder." => + "Falta a pasta temporária.", + + "Failed to write file." => + "Não foi possvel guardar o ficheiro.", + + "Denied file extension." => + "Extensão do ficheiro inválida.", + + "Unknown image format/encoding." => + "Formato/codificação da imagem desconhecido.", + + "The image is too big and/or cannot be resized." => + "A imagem é muito grande e não pode ser redimensionada.", + + "Cannot create {dir} folder." => + "Não foi possvel criar a pasta '{dir}'.", + + "Cannot write to upload folder." => + "Não foi possvel guardar o ficheiro.", + + "Cannot read .htaccess" => + "Não foi possvel ler o ficheiro '.htaccess'.", + + "Incorrect .htaccess file. Cannot rewrite it!" => + "Ficheiro '.htaccess' incorrecto. Não foi possvel altera-lo.", + + "Cannot read upload folder." => + "Não foi possvel ler a pasta de upload.", + + "Cannot access or create thumbnails folder." => + "Não foi possvel aceder ou criar a pasta de miniaturas.", + + "Cannot access or write to upload folder." => + "Não foi possvel aceder ou criar a pasta de upload.", + + "Please enter new folder name." => + "Por favor insira o nome da pasta.", + + "Unallowable characters in folder name." => + "Caracteres não autorizados no nome da pasta.", + + "Folder name shouldn't begins with '.'" => + "O nome da pasta não deve comear por '.'.", + + "Please enter new file name." => + "Por favor defina o nome do ficheiro.", + + "Unallowable characters in file name." => + "Caracteres não autorizados no nome do ficheiro.", + + "File name shouldn't begins with '.'" => + "O nome do ficheiro não deve comear por '.'.", + + "Are you sure you want to delete this file?" => + "Tem a certeza que deseja apagar este ficheiro?", + + "Are you sure you want to delete this folder and all its content?" => + "Tem a certeza que deseja apagar esta pasta e todos os seus conteúdos?", + + "Inexistant or inaccessible folder." => + "Pasta inexistente ou inacessvel.", + + "Undefined MIME types." => + "Tipos MIME indefinidos.", + + "Fileinfo PECL extension is missing." => + "Falta a extensão PECL nas informações do ficheiro.", + + "Opening fileinfo database failed." => + "Erro a abrir a informação do ficheiro.", + + "You can't upload such files." => + "Não pode enviar esse tipo de ficheiros.", + + "The file '{file}' does not exist." => + "O ficheiro '{file}' não existe.", + + "Cannot read '{file}'." => + "Não pode ler '{file}'.", + + "Cannot copy '{file}'." => + "Não pode copiar '{file}'.", + + "Cannot move '{file}'." => + "Não pode mover '{file}'.", + + "Cannot delete '{file}'." => + "Não pode apagar '{file}'.", + + "Click to remove from the Clipboard" => + "Clique aqui para remover do Clipboard", + + "This file is already added to the Clipboard." => + "Este ficheiros já foi adicionado ao Clipboard.", + + "Copy files here" => + "Copiar ficheiros para aqui", + + "Move files here" => + "Mover ficheiros para aqui", + + "Delete files" => + "Apagar ficheiros", + + "Clear the Clipboard" => + "Limpar Clipboard", + + "Are you sure you want to delete all files in the Clipboard?" => + "Tem a certeza que deseja apagar todos os ficheiros que estão no Clipboard?", + + "Copy {count} files" => + "Copiar {count} ficheiros", + + "Move {count} files" => + "Mover {count} ficheiros", + + "Add to Clipboard" => + "Adicionar ao Clipboard", + + "New folder name:" => "Nome da pasta:", + "New file name:" => "Nome do ficheiro:", + + "Upload" => "Enviar", + "Refresh" => "Actualizar", + "Settings" => "Preferências", + "Maximize" => "Maximizar", + "About" => "Acerca de", + "files" => "Ficheiros", + "View:" => "Ver:", + "Show:" => "Mostrar:", + "Order by:" => "Ordenar por:", + "Thumbnails" => "Miniatura", + "List" => "Lista", + "Name" => "Nome", + "Size" => "Tamanho", + "Date" => "Data", + "Descending" => "", + "Uploading file..." => "Carregando ficheiro...", + "Loading image..." => "Carregando imagens...", + "Loading folders..." => "Carregando pastas...", + "Loading files..." => "Carregando ficheiros...", + "New Subfolder..." => "Nova pasta...", + "Rename..." => "Alterar nome...", + "Delete" => "Eliminar", + "OK" => "OK", + "Cancel" => "Cancelar", + "Select" => "Seleccionar", + "Select Thumbnail" => "Seleccionar miniatura", + "View" => "Ver", + "Download" => "Sacar", + "Clipboard" => "Clipboard", + + // VERSION 2 NEW LABELS + + "Cannot rename the folder." => + "Não pode alterar o nome da pasta.", + + "Non-existing directory type." => + "Tipo de pasta inexistente.", + + "Cannot delete the folder." => + "Não pode apagar a pasta.", + + "The files in the Clipboard are not readable." => + "Os ficheiros que estão no Clipboard não podem ser copiados.", + + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => + "{count} ficheiros do Clipboard não podem ser copiados. Pretende copiar os restantes?", + + "The files in the Clipboard are not movable." => + "Os ficheiros que estão no Clipboard não podem ser movidos.", + + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => + "{count} ficheiros do Clipboard não podem ser movidos. Pretende mover os restantes?", + + "The files in the Clipboard are not removable." => + "Os ficheiros que estão no Clipboard não podem ser removidos.", + + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => + "{count} ficheiros do Clipboard não podem ser removidos. Pretende apagar os restantes?", + + "The selected files are not removable." => + "Os ficheiros seleccionados não podem ser removidos.", + + "{count} selected files are not removable. Do you want to delete the rest?" => + "Não pode remover {count} ficheiros. Pretende apagar os restantes?", + + "Are you sure you want to delete all selected files?" => + "Tem a certeza que deseja apagar os ficheiros seleccionados?", + + "Failed to delete {count} files/folders." => + "Ocorreu um erro a apagar {count} ficheiros/pastas.", + + "A file or folder with that name already exists." => + "Já existe um ficheiro ou pasta com esse nome.", + + "selected files" => "Ficheiros seleccionados", + "Type" => "Tipo", + "Select Thumbnails" => "Seleccionar miniaturas", + "Download files" => "Sacar ficheiros", +); + +?> diff --git a/lang/ro.php b/lang/ro.php new file mode 100644 index 0000000..ecbe6ac --- /dev/null +++ b/lang/ro.php @@ -0,0 +1,126 @@ + "ro_RO.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => "Nu aveți permisiunea de a încărca fișiere.", + "You don't have permissions to browse server." => "Nu aveți permisiunea de a naviga pe server.", + "Cannot move uploaded file to target folder." => "Fișierul încărcat nu poate fi mutat în dosarul țintă.", + "Unknown error." => "Eroare necunoscută.", + "The uploaded file exceeds {size} bytes." => "Fișierul încărcat depășește {size} biți.", + "The uploaded file was only partially uploaded." => "Fișierul încărcat a fost încărcat doar parțial.", + "No file was uploaded." => "Nu a fost încărcat niciun fișier.", + "Missing a temporary folder." => "Nu există un dosar de fișiere temporare.", + "Failed to write file." => "Fișierul nu a fost scris.", + "Denied file extension." => "Extensie de fișier respinsă.", + "Unknown image format/encoding." => "Format/Codificare imagine necunoscut/ă.", + "The image is too big and/or cannot be resized." => "Imaginea este prea mare și/sau nu poate fi redimensionată.", + "Cannot create {dir} folder." => "Dosarul {dir} nu poate fi creat.", + "Cannot rename the folder." => "Dosarul nu poate fi numit din nou.", + "Cannot write to upload folder." => "Nu se poate scrie la dosarul de încărcare.", + "Cannot read .htaccess" => "Nu se poate citi .htacces", + "Incorrect .htaccess file. Cannot rewrite it!" => "Fișier .htacces incorect. Nu poate fi rescris!", + "Cannot read upload folder." => "Dosarul de încărcare nu poate fi citit.", + "Cannot access or create thumbnails folder." => "Dosarul de imagini în miniatură nu poate fi accesat sau creat.", + "Cannot access or write to upload folder." => "Dosarul de încărcare nu poate fi accesat sau creat.", + "Please enter new folder name." => "Vă rugăm să introduceți un nume de dosar nou.", + "Unallowable characters in folder name." => "Caractere nepermise în numele dosarului.", + "Folder name shouldn't begins with '.'" => "Numele dosarului nu trebuie să înceapă cu '.' ", + "Please enter new file name." => "Vă rugăm să introduceți un nou nume al fișierului.", + "Unallowable characters in file name." => "Caractere nepermise în numele fișierului.", + "File name shouldn't begins with '.'" => "Numele fișierului nu ar trebui să înceapă cu '.' ", + "Are you sure you want to delete this file?" => "Sigur doriți să ștergeți acest fișier?", + "Are you sure you want to delete this folder and all its content?" => "Sigur doriți să ștergeți acest dosar și toate conținuturile sale?", + "Non-existing directory type." => "Tip director non-existent.", + "Undefined MIME types." => "Tipuri MIME nefedinite.", + "Fileinfo PECL extension is missing." => "Extensia PECL lipsește.", + "Opening fileinfo database failed." => "Deschiderea bazei de date fileinfo a eșuat.", + "You can't upload such files." => "Nu puteți încărca asemenea fișiere.", + "The file '{file}' does not exist." => "Fișierul '{file}' nu există.", + "Cannot read '{file}'." => "Fișierul '{file}' nu poate fi citit.", + "Cannot copy '{file}'." => "Fișierul '{file}' nu poate fi copiat.", + "Cannot move '{file}'." => "Fișierul '{file}' nu poate fi mutat.", + "Cannot delete '{file}'." => "Fișierul '{file}' nu poate fi șters.", + "Cannot delete the folder." => "Dosarul nu poate fi șters.", + "Click to remove from the Clipboard" => "Faceți clic pentru a elimina de pe clipboard.", + "This file is already added to the Clipboard." => "Acest fișier este adăugat deja pe clipboard.", + "The files in the Clipboard are not readable." => "Fișierele de pe clipboard nu pot fi citite.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} fișiere de pe clipboard nu pot fi citite. Doriți să copiați restul fișierelor?", + "The files in the Clipboard are not movable." => "Fișierele de pe clipboard nu pot fi mutate.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} fișiere de pe clipboard nu pot fi mutate. Doriți să mutați restul fișierelor?", + "The files in the Clipboard are not removable." => "Fișierele de pe clipboard nu pot fi fi mutate.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} fișiere de pe clipboard nu pot fi înlăturate. Doriți să înlăturați restul fișierelor?", + "The selected files are not removable." => "Fișierele selectate nu pot fi mutate.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} fișiere selectate nu pot fi înlăturate. Doriți să ștergeți restul fișierelor?", + "Are you sure you want to delete all selected files?" => "Sigur doriți să ștergeți toate fișierele selectate?", + "Failed to delete {count} files/folders." => "{count} fișiere/dosare nu au putut fi șterse.", + "A file or folder with that name already exists." => "Există deja un fișier sau dosar cu acest nume.", + "Copy files here" => "Copiați fișierele aici", + "Move files here" => "Mutați fișierele aici", + "Delete files" => "Ștergeți fișierele", + "Clear the Clipboard" => "Eliberare clipboard", + "Are you sure you want to delete all files in the Clipboard?" => "Sigur doriți să ștergeți fișierele de pe clipboard?", + "Copy {count} files" => "Copiați {count} fișiere", + "Move {count} files" => "Mutați {count} fișiere", + "Add to Clipboard" => "Adăugați pe clipboard", + "Inexistant or inaccessible folder." => "Dosar inexistent sau inaccesibil.", + "New folder name:" => "Nume nou dosar:", + "New file name:" => "Nume nou fișier:", + "Upload" => "Încărcare", + "Refresh" => "Reîmprospătare", + "Settings" => "Setări", + "Maximize" => "Maximizare", + "About" => "Despre", + "files" => "fișiere", + "selected files" => "fișiere selectate", + "View:" => "Vizualizare:", + "Show:" => "Afișare:", + "Order by:" => "Ordonare după:", + "Thumbnails" => "Imagini în miniatură", + "List" => "Listă", + "Name" => "Nume", + "Type" => "Tip", + "Size" => "Mărime", + "Date" => "Dată", + "Descending" => "Ordine descrescătoare", + "Uploading file..." => "Încărcare fișier...", + "Loading image..." => "Încărcare imagine...", + "Loading folders..." => "Încărcare dosare...", + "Loading files..." => "Încărcare fișiere...", + "New Subfolder..." => "Sub-dosar nou...", + "Rename..." => "Redenumire...", + "Delete" => "Ștergere", + "OK" => "OK", + "Cancel" => "Anulare", + "Select" => "Selectare", + "Select Thumbnail" => "Selectare imagine în miniatură", + "Select Thumbnails" => "Selectare imagini în miniatură", + "View" => "Vizualizare", + "Download" => "Descărcare", + "Download files" => "Descărcare fișiere", + "Clipboard" => "Clipboard", + "Checking for new version..." => "Verificare versiune nouă...", + "Unable to connect!" => "Conectare imposibilă!", + "Download version {version} now!" => "Descărcați acum versiunea {version}!", + "KCFinder is up to date!" => "KCFinder este actualizat!", + "Licenses:" => "Licențe:", + "Attention" => "Atenție", + "Question" => "Întrebare", + "Yes" => "Da", + "No" => "Nu", + "You cannot rename the extension of files!" => "Nu puteți redenumi extensia fișierelor!", + "Uploading file {number} of {count}... {progress}" => "Încărcare fișier {number} din {count}... {progress}", + "Failed to upload {filename}!" => "Încărcare {filename} eșuată!", +); + +?> \ No newline at end of file diff --git a/lang/ru.php b/lang/ru.php new file mode 100644 index 0000000..13c6a55 --- /dev/null +++ b/lang/ru.php @@ -0,0 +1,128 @@ + "ru_RU.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => "У вас нет прав для загрузки файлов.", + "You don't have permissions to browse server." => "У вас нет прав для просмотра содержимого на сервере.", + "Cannot move uploaded file to target folder." => "Невозможно переместить загруженный файл в папку назначения.", + "Unknown error." => "Неизвестная ошибка.", + "The uploaded file exceeds {size} bytes." => "Загруженный файл превышает размер {size} байт.", + "The uploaded file was only partially uploaded." => "Загруженный файл был загружен только частично.", + "No file was uploaded." => "Файл не был загружен", + "Missing a temporary folder." => "Временная папка не существует.", + "Failed to write file." => "Невозможно записать файл.", + "Denied file extension." => "Файлы этого типа запрещены для загрузки.", + "Unknown image format/encoding." => "Неизвестный формат изображения.", + "The image is too big and/or cannot be resized." => "Изображение слишком большое и/или не может быть уменьшено.", + "Cannot create {dir} folder." => "Невозможно создать папку {dir}.", + "Cannot rename the folder." => "Невозможно переименовать папку.", + "Cannot write to upload folder." => "Невозможно записать в папку загрузки.", + "Cannot read .htaccess" => "Невозможно прочитать файл .htaccess", + "Incorrect .htaccess file. Cannot rewrite it!" => "Неправильный файл .htaccess. Невозможно перезаписать!", + "Cannot read upload folder." => "Невозможно прочитать папку загрузки.", + "Cannot access or create thumbnails folder." => "Нет доступа или невозможно создать папку миниатюр.", + "Cannot access or write to upload folder." => "Нет доступа или невозможно записать в папку загрузки.", + "Please enter new folder name." => "Укажите имя новой папки.", + "Unallowable characters in folder name." => "Недопустимые символы в имени папки.", + "Folder name shouldn't begins with '.'" => "Имя папки не может начинаться с '.'", + "Please enter new file name." => "Укажите новое имя файла", + "Unallowable characters in file name." => "Недопустимые символны в имени файла.", + "File name shouldn't begins with '.'" => "Имя файла не может начинаться с '.'", + "Are you sure you want to delete this file?" => "Вы уверены, что хотите удалить этот файл?", + "Are you sure you want to delete this folder and all its content?" => "Вы уверены, что хотите удалить эту папку и всё её содержимое?", + "Non-existing directory type." => "Несуществующий тип папки.", + "Undefined MIME types." => "Неопределённые типы MIME.", + "Fileinfo PECL extension is missing." => "Расширение Fileinfo PECL отсутствует.", + "Opening fileinfo database failed." => "Невозможно открыть базу данных fileinfo.", + "You can't upload such files." => "Вы не можете загружать файлы этого типа.", + "The file '{file}' does not exist." => "Файл '{file}' не существует.", + "Cannot read '{file}'." => "Невозможно прочитать файл '{file}'.", + "Cannot copy '{file}'." => "Невозможно скопировать файл '{file}'.", + "Cannot move '{file}'." => "Невозможно переместить файл '{file}'.", + "Cannot delete '{file}'." => "Невозможно удалить файл '{file}'.", + "Cannot delete the folder." => "Невозможно удалить папку.", + "Click to remove from the Clipboard" => "Нажмите для удаления из буфера обмена", + "This file is already added to the Clipboard." => "Этот файл уже добавлен в буфер обмена.", + "The files in the Clipboard are not readable." => "Невозможно прочитать файлы в буфере обмена.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "Невозможно прочитать {count} файл(ов) в буфере обмена. Вы хотите скопировать оставшиеся?", + "The files in the Clipboard are not movable." => "Невозможно переместить файлы в буфере обмена.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "Невозможно переместить {count} файл(ов) в буфере обмена. Вы хотите переместить оставшиеся?", + "The files in the Clipboard are not removable." => "Невозможно удалить файлы в буфере обмена.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "Невозможно удалить {count} файл(ов) в буфере обмена. Вы хотите удалить оставшиеся?", + "The selected files are not removable." => "Невозможно удалить выбранные файлы.", + "{count} selected files are not removable. Do you want to delete the rest?" => "Невозможно удалить выбранный(е) {count} файл(ы). Вы хотите удалить оставшиеся?", + "Are you sure you want to delete all selected files?" => "Вы уверены, что хотите удалить все выбранные файлы?", + "Failed to delete {count} files/folders." => "Невозможно удалить {count} файлов/папок.", + "A file or folder with that name already exists." => "Файл или папка с таким именем уже существуют.", + "Copy files here" => "Скопировать файлы сюда", + "Move files here" => "Переместить файлы сюда", + "Delete files" => "Удалить файлы", + "Clear the Clipboard" => "Очистить буфер обмена", + "Are you sure you want to delete all files in the Clipboard?" => "Вы уверены, что хотите удалить все файлы в буфере обмена?", + "Copy {count} files" => "Скопировать {count} файл(ов)", + "Move {count} files" => "Переместить {count} файл(ов)", + "Add to Clipboard" => "Добавить в буфер обмена", + "Inexistant or inaccessible folder." => "Несуществующая или недоступная папка.", + "New folder name:" => "Новое имя папки:", + "New file name:" => "Новое имя файла:", + "Upload" => "Загрузить", + "Refresh" => "Обновить", + "Settings" => "Установки", + "Maximize" => "Развернуть", + "About" => "О скрипте", + "files" => "файлы", + "selected files" => "выбранные файлы", + "View:" => "Просмотр:", + "Show:" => "Показывать:", + "Order by:" => "Упорядочить по:", + "Thumbnails" => "Миниатюры", + "List" => "Список", + "Name" => "Имя", + "Type" => "Тип", + "Size" => "Размер", + "Date" => "Дата", + "Descending" => "По убыванию", + "Uploading file..." => "Загрузка файла...", + "Loading image..." => "Загрузка изображения...", + "Loading folders..." => "Загрузка папок...", + "Loading files..." => "Загрузка файлов...", + "New Subfolder..." => "Создать папку...", + "Rename..." => "Переименовать...", + "Delete" => "Удалить", + "OK" => "OK", + "Cancel" => "Отмена", + "Select" => "Выбрать", + "Select Thumbnail" => "Выбрать миниатюру", + "Select Thumbnails" => "Выбрать миниатюры", + "View" => "Просмотр", + "Download" => "Скачать", + "Download files" => "Скачать файлы", + "Clipboard" => "Буфер обмена", + "Checking for new version..." => "Проверяем наличие обновлений...", + "Unable to connect!" => "Невозможно подключиться!", + "Download version {version} now!" => "Скачать версию {version} сейчас!", + "KCFinder is up to date!" => "Вы используете последнюю версию KCFinder'а!", + "Licenses:" => "Лицензии:", + "Attention" => "Внимание", + "Question" => "Вопрос", + "Yes" => "Да", + "No" => "Нет", + "You cannot rename the extension of files!" => "Вы не можете изменять расширения файлов!", + "Uploading file {number} of {count}... {progress}" => "Загрузка {number} файла из {count}... {progress}", + "Failed to upload {filename}!" => "Неудачная попытка загрузки {filename}!", +); + +?> \ No newline at end of file diff --git a/lang/sk.php b/lang/sk.php new file mode 100644 index 0000000..330fb7f --- /dev/null +++ b/lang/sk.php @@ -0,0 +1,127 @@ + + */ + +$lang = array( + + '_locale' => "sk_SK.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e.%B.%Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => "Nemáte právo nahrávať súbory.", + "You don't have permissions to browse server." => "Nemáte právo prehliadať súbory na serveri.", + "Cannot move uploaded file to target folder." => "Nie je možné presunúť súbor do zvoleného adresára.", + "Unknown error." => "Neznáma chyba.", + "The uploaded file exceeds {size} bytes." => "Nahratý súbor presahuje {size} bytov.", + "The uploaded file was only partially uploaded." => "Nahratý súbor bol nahraný len čiastočne.", + "No file was uploaded." => "Žiadný súbor nebol nahraný na server.", + "Missing a temporary folder." => "Chyba dočasný adresár.", + "Failed to write file." => "Súbor sa nepodarilo uložiť.", + "Denied file extension." => "Nepodporovaný typ súboru.", + "Unknown image format/encoding." => "Neznamý formát obrázku/encoding.", + "The image is too big and/or cannot be resized." => "Obrázok je príliš veľký/alebo nemohol byť zmenšený.", + "Cannot create {dir} folder." => "Adresár {dir} nie je možné vytvoriť.", + "Cannot rename the folder." => "Adresár nie je možné premenovať.", + "Cannot write to upload folder." => "Nie je možné ukladať do adresára pre nahrávánie.", + "Cannot read .htaccess" => "Nie je možné čítať súbor .htaccess", + "Incorrect .htaccess file. Cannot rewrite it!" => "Chybný súbor .htaccess. Súbor nemožno prepísať!", + "Cannot read upload folder." => "Nie je možné čítať z adresára pre nahrávánie súborov.", + "Cannot access or create thumbnails folder." => "Adresár pre náhľady nie je možné vytvoriť alebo nie je prístupný.", + "Cannot access or write to upload folder." => "Nie je možné pristupovať alebo zapisovať do adresára pre nahrávanie súborov.", + "Please enter new folder name." => "Zadajte prosím nové meno adresára.", + "Unallowable characters in folder name." => "Nepovolené znaky v názve adresára.", + "Folder name shouldn't begins with '.'" => "Meno adresára nesmie začínať znakom '.'", + "Please enter new file name." => "Vložte prosím nové meno súboru.", + "Unallowable characters in file name." => "Nepovolené znaky v názve súboru.", + "File name shouldn't begins with '.'" => "Názov súboru nesmie začínať znakom '.'", + "Are you sure you want to delete this file?" => "Ste si istý že chcete vymazať tento súbor?", + "Are you sure you want to delete this folder and all its content?" => "Ste si istý že chcete vymazať tento adresár a celý jeho obsah?", + "Non-existing directory type." => "Neexistujúci typ adresára.", + "Undefined MIME types." => "Nedefinovaný MIME typ súboru.", + "Fileinfo PECL extension is missing." => "Rozšírenie PECL pre zistenie informácií o súbore chýba.", + "Opening fileinfo database failed." => "Načítanie informácií o súbore zlyhalo.", + "You can't upload such files." => "Tieto súbory nemôžete nahrať na server.", + "The file '{file}' does not exist." => "Tento súbor '{file}' neexistuje.", + "Cannot read '{file}'." => "Nie je možné načítať '{file}'.", + "Cannot copy '{file}'." => "Nie je možné kopírovať '{file}'.", + "Cannot move '{file}'." => "Nie je možné presunúť '{file}'.", + "Cannot delete '{file}'." => "Nie je možné vymazať '{file}'.", + "Cannot delete the folder." => "Adresár nie je možné vymazať.", + "Click to remove from the Clipboard" => "Kliknite pre odstránenie zo schránky", + "This file is already added to the Clipboard." => "Tento súbor je už v schránke uložený.", + "The files in the Clipboard are not readable." => "Súbory v schránke nie je možné načítať.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} súborov v schránke nie je možné načítať. Chcete skopírovať ostatné súbory?", + "The files in the Clipboard are not movable." => "Súbory v schránke nie je možné presunúť.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} súborov v schránke nie je možné presunúť. Chcete presunúť ostatné súbory?", + "The files in the Clipboard are not removable." => "Súbory v schránke nie je možné vymazať.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} súborov v schránke nie je možné vymazať. Chcete vymazať ostatné súbory?", + "The selected files are not removable." => "Vybrané súbory nie je možné vymazať.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} vybraných súborov nie je možné vymazať. Chcete vymazať ostatné súbory?", + "Are you sure you want to delete all selected files?" => "Ste si istý že chcete vymazať vybrané súbory?", + "Failed to delete {count} files/folders." => "Nebolo vymazaných {count} súborov/adresárov.", + "A file or folder with that name already exists." => "Soubor alebo adresár s takovým menom už existuje.", + "Copy files here" => "Kopírovať súbory na toto miesto", + "Move files here" => "Presunúť súbory na toto miesto", + "Delete files" => "Vymazať súbory", + "Clear the Clipboard" => "Vyčistiť schránku", + "Are you sure you want to delete all files in the Clipboard?" => "Ste si istý že chcete vymazať všetky súbory zo schránky?", + "Copy {count} files" => "Kopírovať {count} súborov", + "Move {count} files" => "Presunúť {count} súborov", + "Add to Clipboard" => "Vložiť do schránky", + "Inexistant or inaccessible folder." => "Neexistujúci alebo neprístupný adresár.", + "New folder name:" => "Nový názov adresára:", + "New file name:" => "Nový názov súboru:", + "Upload" => "Nahrať", + "Refresh" => "Obnoviť", + "Settings" => "Nastavenia", + "Maximize" => "Maxializovať", + "About" => "O aplikácii", + "files" => "súbory", + "selected files" => "vybrané súbory", + "View:" => "Zobraziť:", + "Show:" => "Ukázať:", + "Order by:" => "Zoradiť podľa:", + "Thumbnails" => "Náhľady", + "List" => "Zoznam", + "Name" => "Meno", + "Type" => "Typ", + "Size" => "Veľkosť", + "Date" => "Dátum", + "Descending" => "Zostupne", + "Uploading file..." => "Nahrávanie súborov...", + "Loading image..." => "Načítanie obrázkov...", + "Loading folders..." => "Načítanie adresárov...", + "Loading files..." => "Načítanie súborov...", + "New Subfolder..." => "Nový adresár...", + "Rename..." => "Premenovať...", + "Delete" => "Zmazať", + "OK" => "OK", + "Cancel" => "Zrušit", + "Select" => "Vybrať", + "Select Thumbnail" => "Vybrať náhľad", + "Select Thumbnails" => "Vybrať náhľad", + "View" => "Zobraziť", + "Download" => "Stahnuť", + "Download files" => "Stiahnuť súbory", + "Clipboard" => "Schránka", + "Checking for new version..." => "Kontrolujem novú verziu...", + "Unable to connect!" => "Pripojenie zlyhalo!", + "Download version {version} now!" => "Stiahnuť verziu {version} teraz!", + "KCFinder is up to date!" => "KCFinder je aktuálny!", + "Licenses:" => "Licencie:", + "Attention" => "Upozornenie", + "Question" => "Otázka", + "Yes" => "Áno", + "No" => "Nie", + "You cannot rename the extension of files!" => "Nemôžete premenovať príponu súborov", + "Uploading file {number} of {count}... {progress}" => "Nahrávam súbor {number} z {count}... {progress}", + "Failed to upload {filename}!" => "Nepodarilo sa nahrať súbor {filename}!", +); + +?> \ No newline at end of file diff --git a/lang/sv.php b/lang/sv.php new file mode 100644 index 0000000..7a5f806 --- /dev/null +++ b/lang/sv.php @@ -0,0 +1,127 @@ + "sv_SE.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "den %e %B %Y", + '_dateTimeMid' => "%e %b %Y", + '_dateTimeSmall' => "%Y-%m-%d %H:%M", + + "You don't have permissions to upload files." => "Du har inte behörighet att ladda upp filer. Kontakta vår support.", + "You don't have permissions to browse server." => "Du har inte behörighet att bläddra server.", + "Cannot move uploaded file to target folder." => "Kan inte flytta upp filen till målmappen.", + "Unknown error." => "Okänt fel.", + "The uploaded file exceeds {size} bytes." => "Den uppladdade filen överstiger {size} byte.", + "The uploaded file was only partially uploaded." => "Den uppladdade filen var endast delvis uppladdat.", + "No file was uploaded." => "Inga filer laddades upp.", + "Missing a temporary folder." => "Saknade en temporär mapp.", + "Failed to write file." => "Misslyckades att skriva fil.", + "Denied file extension." => "Nekad filtillägg.", + "Unknown image format/encoding." => "Okänt bildformat / kodning.", + "The image is too big and/or cannot be resized." => "Bilden är för stor och / eller kan inte ändras.", + "Cannot create {dir} folder." => "Kan inte skapa {dir} mapp.", + "Cannot rename the folder." => "Kan inte byta namn på mappen.", + "Cannot write to upload folder." => "Kan inte laddaup till mappen.", + "Cannot read .htaccess" => "Fel läser inte htacess filen", + "Incorrect .htaccess file. Cannot rewrite it!" => "Fel . htaccess fil. Inte skrivvänlig", + "Cannot read upload folder." => "Kan inte läsa upp mappen.", + "Cannot access or create thumbnails folder." => "Kan inte komma åt eller skapa thumbnails mapp.", + "Cannot access or write to upload folder." => "Kan inte komma åt eller skriva för att ladda upp mappen.", + "Please enter new folder name." => "Vänligen skriv in ny mapp-namn", + "Unallowable characters in folder name." => "Otillåtna tecken i mappnamnet.", + "Folder name shouldn't begins with '.'" => "Mappnamn bör inte börjar med '. \"", + "Please enter new file name." => "Ange nytt filnamn.", + "Unallowable characters in file name." => "Otillåtna tecken i filnamnet.", + "File name shouldn't begins with '.'" => "Filnamn bör inte börjar med '. \"", + "Are you sure you want to delete this file?" => "Är du säker du vill radera filen?", + "Are you sure you want to delete this folder and all its content?" => "Är du säker du vill radera denna mappen ink innehåll?", + "Non-existing directory type." => "Icke-existerande katalog typ.", + "Undefined MIME types." => "Odefinierat MIME-typer.", + "Fileinfo PECL extension is missing." => "Fileinfo PECL förlängning saknas.", + "Opening fileinfo database failed." => "databas öppning misslyckad.", + "You can't upload such files." => "Kan inte ladda upp sådan fil.", + "The file '{file}' does not exist." => "Filen '{file}' finns inte.", + "Cannot read '{file}'." => "Ej läsbar fil : '{file}'. ", + "Cannot copy '{file}'." => "Kan inte kopiera '{file}'.", + "Cannot move '{file}'." => "Kan inte flytta '{file}'.", + "Cannot delete '{file}'." => "Kan inte radera'{file}'.", + "Cannot delete the folder." => "Kan inte radera mappen.", + "Click to remove from the Clipboard" => "Tryck för att radera från Urklipp", + "This file is already added to the Clipboard." => "Den här filen är redan lagts till i Urklipp.", + "The files in the Clipboard are not readable." => "Filerna i Urklipp är inte läsbar.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} filer i Urklipp är inte läsbar. Vill du kopiera resten?", + "The files in the Clipboard are not movable." => "Filerna i Urklipp är inte flyttbara.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} filer i Urklipp är inte rörliga. Vill du flytta resten?", + "The files in the Clipboard are not removable." => "Filerna i Urklipp är inte avtagbara.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} filer i Urklipp är inte avtagbara. Vill du ta bort resten?", + "The selected files are not removable." => "De valda filerna inte tas bort.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} valda filerna inte tas bort. Vill du ta bort resten?", + "Are you sure you want to delete all selected files?" => "Är du säker på att du vill ta bort alla markerade filer?", + "Failed to delete {count} files/folders." => "Misslyckades att radera {count} filer/mappar.", + "A file or folder with that name already exists." => "En fil eller mapp med det namnet finns redan.", + "Copy files here" => "Kopiera filerna här", + "Move files here" => "Flytta filerna här", + "Delete files" => "Radera filer", + "Clear the Clipboard" => "Rensa Urklipp", + "Are you sure you want to delete all files in the Clipboard?" => "Är du säker på att du vill ta bort alla filer i Urklipp?", + "Copy {count} files" => "Kopiera {count} filer", + "Move {count} files" => "Flytta {count} filer", + "Add to Clipboard" => "Lägg till i Urklipp", + "Inexistant or inaccessible folder." => "Inexistant eller otillgängliga mapp.", + "New folder name:" => "Ny mappnamn:", + "New file name:" => "Nytt filnamn:", + "Upload" => "Ladda upp", + "Refresh" => "Uppdatera", + "Settings" => "Inställningar", + "Maximize" => "Maximera", + "About" => "Om", + "files" => "Filer", + "selected files" => "Välj filer", + "View:" => "Se", + "Show:" => "Visa:", + "Order by:" => "Sortera efter:", + "Thumbnails" => "Miniatyr", + "List" => "Lista", + "Name" => "Namn", + "Type" => "Typ", + "Size" => "Storlek", + "Date" => "Datum", + "Descending" => "Fallande", + "Uploading file..." => "Laddar upp fil", + "Loading image..." => "Laddar bilder...", + "Loading folders..." => "Laddar mappar...", + "Loading files..." => "Laddar filer...", + "New Subfolder..." => "Ny undermapp...", + "Rename..." => "Byt namn", + "Delete" => "Radera", + "OK" => "Ok", + "Cancel" => "Avbryt", + "Select" => "Välj", + "Select Thumbnail" => "Välj miniatyr", + "Select Thumbnails" => "Välj miniatyrer", + "View" => "Se", + "Download" => "Ladda ner", + "Download files" => "Ladda ner fil", + "Clipboard" => "Urklipp", + "Checking for new version..." => "Söka efter ny version ...", + "Unable to connect!" => "Kunde inte ansluta! ", + "Download version {version} now!" => "Ladda ner version {version} nu!", + "KCFinder is up to date!" => "KCFinder är uppdaterad!", + "Licenses:" => "Licenser:", + "Attention" => "Uppmärksamhet", + "Question" => "Fråga", + "Yes" => "Ja", + "No" => "Nä", + "You cannot rename the extension of files!" => "Du kan inte byta namn på en förlängning av filer!", + "Uploading file {number} of {count}... {progress}" => "Ladda upp fil {number} av {count} ... {progress}", + "Failed to upload {filename}!" => "Uppladdning misslyckad {filename}!", +); + +?> \ No newline at end of file diff --git a/lang/tr.php b/lang/tr.php new file mode 100644 index 0000000..b36345d --- /dev/null +++ b/lang/tr.php @@ -0,0 +1,127 @@ + + */ + +$lang = array( + + '_locale' => "en_US.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e.%B.%Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d/%m/%Y %H:%M", + + "You don't have permissions to upload files." => "Dosya yüklemek için yetkiniz yok.", + "You don't have permissions to browse server." => "Sunucuyu gezmek için yetkiniz yok.", + "Cannot move uploaded file to target folder." => "Yüklenilen dosyalar hedef klasöre taşınamıyor.", + "Unknown error." => "Bilinmeyen hata.", + "The uploaded file exceeds {size} bytes." => "Gönderilen dosya boyutu, maksimum dosya boyutu limitini ({size} byte) aşıyor.", + "The uploaded file was only partially uploaded." => "Dosyanın sadece bir kısmı yüklendi. Yüklemeyi tekrar deneyin.", + "No file was uploaded." => "Dosya yüklenmedi.", + "Missing a temporary folder." => "Geçici dosya klasörü bulunamıyor. Klasörü kontrol edin.", + "Failed to write file." => "Dosya yazılamıyor. Klasör yetkilerini kontrol edin.", + "Denied file extension." => "Yasaklanmış dosya türü.", + "Unknown image format/encoding." => "Bilinmeyen resim formatı.", + "The image is too big and/or cannot be resized." => "Resim çok büyük ve/veya yeniden boyutlandırılamıyor.", + "Cannot create {dir} folder." => "{dir} klasörü oluşturulamıyor.", + "Cannot rename the folder." => "Klasör adı değiştirilemiyor.", + "Cannot write to upload folder." => "Dosya yükleme klasörüne yazılamıyor. Klasör yetkisini kontrol edin.", + "Cannot read .htaccess" => ".htaccess dosyası okunamıyor", + "Incorrect .htaccess file. Cannot rewrite it!" => "Hatalı .htaccess dosyası. Dosyaya yeniden yazılamıyor.", + "Cannot read upload folder." => "Dosya yükleme klasörü okunamıyor. Klasör yetkilerini kontrol edin.", + "Cannot access or create thumbnails folder." => "Önizleme dosyaları klasörüne erişilemiyor yada oluşturulamıyor.", + "Cannot access or write to upload folder." => "Dosya yükleme klasörüne ulaşılamıyor yada oluşturulamıyor.", + "Please enter new folder name." => "Lütfen yeni klasör adını girin.", + "Unallowable characters in folder name." => "Klasör adında izin verilmeyen karakter kullandınız.", + "Folder name shouldn't begins with '.'" => "Klasör adı '.' ile başlayamaz.", + "Please enter new file name." => "Lütfen yeni dosya adını girin.", + "Unallowable characters in file name." => "Dosya adında izin verilmeyen karakter kullandınız.", + "File name shouldn't begins with '.'" => "Dosya adı '.' ile başlayamaz.", + "Are you sure you want to delete this file?" => "Dosyayı silmek istediğinizden emin misiniz?", + "Are you sure you want to delete this folder and all its content?" => "Bu klasörü ve tüm içeriğini silmek istediğinizden emin misiniz?", + "Non-existing directory type." => "Geçersiz klasör türü.", + "Undefined MIME types." => "Tanımsız MIME türü.", + "Fileinfo PECL extension is missing." => "Dosya Bilgisi PECL uzantısı eksik.", + "Opening fileinfo database failed." => "Dosya Bilgisi veritabanı açılırken hata oluştu.", + "You can't upload such files." => "Bu tür dosyaları yükleyemezsiniz.", + "The file '{file}' does not exist." => "'{file}' dosyası yok.", + "Cannot read '{file}'." => "'{file}' dosyası okunamıyor.", + "Cannot copy '{file}'." => "'{file}' dosyası kopyalanamıyor.", + "Cannot move '{file}'." => "'{file}' dosyası taşınamıyor.", + "Cannot delete '{file}'." => "'{file}' dosyası silinemiyor.", + "Cannot delete the folder." => "Klasör silinemiyor.", + "Click to remove from the Clipboard" => "Panodan çıkarmak için tıklayın", + "This file is already added to the Clipboard." => "Bu dosya zaten panoya eklenmiş.", + "The files in the Clipboard are not readable." => "Panodaki dosyalar okunamıyor.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "Panodaki {count} adet dosya okunamıyor. Geri kalanlarını kopyalamak istiyor musunuz?", + "The files in the Clipboard are not movable." => "Panodaki dosyalar taşınamıyor.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "Panodaki {count} adet dosya taşınamıyor. Geri kalanlarını taşımak istiyor musunuz?", + "The files in the Clipboard are not removable." => "Dosyalar panodan çıkartılamıyor.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} adet dosya panodan çıkartılamıyor. Geri kalanları silmek istiyor musunuz?", + "The selected files are not removable." => "Seçilen dosyalar panodan çıkartılamıyor.", + "{count} selected files are not removable. Do you want to delete the rest?" => "Seçilen dosyaların {count} adedi panodan çıkartılamıyor. Geri kalanları silmek istiyor musunuz?", + "Are you sure you want to delete all selected files?" => "Seçilen tüm dosyaları silmek istediğinizden emin misiniz?", + "Failed to delete {count} files/folders." => "{count} adet dosya/klasör silinemedi.", + "A file or folder with that name already exists." => "Bu isimde bir klasör yada dosya zaten var.", + "Copy files here" => "Dosyaları Buraya Kopyala", + "Move files here" => "Dosyaları Buraya Taşı", + "Delete files" => "Dosyaları Sil", + "Clear the Clipboard" => "Panoyu Temizle", + "Are you sure you want to delete all files in the Clipboard?" => "Panodaki tüm dosyaları silmek istediğinizden emin misiniz?", + "Copy {count} files" => "{count} adet dosyayı kopyala", + "Move {count} files" => "{count} adet dosyayı taşı", + "Add to Clipboard" => "Panoya Ekle", + "Inexistant or inaccessible folder." => "Klasör yok yada ulaşılamıyor.", + "New folder name:" => "Yeni Klasör Adı:", + "New file name:" => "Yeni Dosya Adı:", + "Upload" => "Yükle", + "Refresh" => "Yenile", + "Settings" => "Ayarlar", + "Maximize" => "Pencereyi Büyüt", + "About" => "Hakkında", + "files" => "dosya", + "selected files" => "dosya seçildi", + "View:" => "Görüntüleme:", + "Show:" => "Göster:", + "Order by:" => "Sıralama:", + "Thumbnails" => "Önizleme", + "List" => "Liste", + "Name" => "Ad", + "Type" => "Tür", + "Size" => "Boyut", + "Date" => "Tarih", + "Descending" => "Azalarak", + "Uploading file..." => "Dosya Gönderiliyor...", + "Loading image..." => "Resim Yükleniyor...", + "Loading folders..." => "Klasörler Yükleniyor...", + "Loading files..." => "Dosyalar Yükleniyor...", + "New Subfolder..." => "Yeni Alt Klasör...", + "Rename..." => "İsim Değiştir...", + "Delete" => "Sil", + "OK" => "Tamam", + "Cancel" => "İptal", + "Select" => "Seç", + "Select Thumbnail" => "Önizleme Resmini Seç", + "Select Thumbnails" => "Önizleme Resimlerini Seç", + "View" => "Göster", + "Download" => "İndir", + "Download files" => "Dosyaları İndir", + "Clipboard" => "Pano", + "Checking for new version..." => "Yeni versiyon kontrol ediliyor...", + "Unable to connect!" => "Bağlantı yapılamıyor!", + "Download version {version} now!" => " {version} versiyonunu hemen indir!", + "KCFinder is up to date!" => "KCFinder güncel durumda!", + "Licenses:" => "Lisanslar:", + "Attention" => "Dikkat", + "Question" => "Soru", + "Yes" => "Evet", + "No" => "Hayır", + "You cannot rename the extension of files!" => "Dosya uzantılarını değiştiremezsiniz!", + "Uploading file {number} of {count}... {progress}" => "{number} / {count} dosya yükleniyor... {progress}", + "Failed to upload {filename}!" => "{filename} dosyası yüklenemedi!", +); + +?> \ No newline at end of file diff --git a/lang/uk.php b/lang/uk.php new file mode 100644 index 0000000..5caa120 --- /dev/null +++ b/lang/uk.php @@ -0,0 +1,128 @@ + "uk_UA.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => "У вас нема прав для завантаження файлів.", + "You don't have permissions to browse server." => "У вас нема прав для перегляду вмісту на сервері.", + "Cannot move uploaded file to target folder." => "Неможливо перемістити завантажений файл в папку призначення.", + "Unknown error." => "Невідома помилка.", + "The uploaded file exceeds {size} bytes." => "Завантажений файл перевищує розмір {size} байтів.", + "The uploaded file was only partially uploaded." => "Завантажений файл було завантажено лише частково.", + "No file was uploaded." => "Файл не було завантажено", + "Missing a temporary folder." => "Тимчасова папка не існує.", + "Failed to write file." => "Неможливо записати файл.", + "Denied file extension." => "Файли цього типу заборонені для завантаження.", + "Unknown image format/encoding." => "Невідомий формат зображення.", + "The image is too big and/or cannot be resized." => "Зображення занадто велике і/або не може бути зменшене.", + "Cannot create {dir} folder." => "Неможливо створити папку {dir}.", + "Cannot rename the folder." => "Неможливо перейменувати папку.", + "Cannot write to upload folder." => "Неможливо записати в папку завантаження.", + "Cannot read .htaccess" => "Неможливо прочитати файл .htaccess", + "Incorrect .htaccess file. Cannot rewrite it!" => "Неправильний файл .htaccess. Неможливо перезаписати!", + "Cannot read upload folder." => "Неможливо прочитати папку завантаження.", + "Cannot access or create thumbnails folder." => "Нема доступу або неможливо створити папку мініатюр.", + "Cannot access or write to upload folder." => "Нма доступу або неможливо записати в папку завантаження.", + "Please enter new folder name." => "Вкажіть назву нової папки.", + "Unallowable characters in folder name." => "Недопустимі символи в назві папки.", + "Folder name shouldn't begins with '.'" => "Назва папки не может починатися з '.'", + "Please enter new file name." => "Вкажіть нову назву файла", + "Unallowable characters in file name." => "Недопустимі символи в назві файлу.", + "File name shouldn't begins with '.'" => "Назва файла не може починатися з '.'", + "Are you sure you want to delete this file?" => "Ви впевнені що хочете вилучити цей файл?", + "Are you sure you want to delete this folder and all its content?" => "Ви впевнені що хочете вилучити цю папку і весь її вміст?", + "Non-existing directory type." => "Неіснуючий тип папки.", + "Undefined MIME types." => "Невизначені MIME-типи.", + "Fileinfo PECL extension is missing." => "Розширення Fileinfo PECL відсутнє.", + "Opening fileinfo database failed." => "Неможливо відкрити базу даних fileinfo.", + "You can't upload such files." => "Ви не можете завантажувати файли цього типу.", + "The file '{file}' does not exist." => "Файл '{file}' не існує.", + "Cannot read '{file}'." => "Неможливо прочитати файл '{file}'.", + "Cannot copy '{file}'." => "Неможливо копіювати файл '{file}'.", + "Cannot move '{file}'." => "Неможливо перемістити файл '{file}'.", + "Cannot delete '{file}'." => "Неможливо вилучити файл '{file}'.", + "Cannot delete the folder." => "Неможливо вилучити папку.", + "Click to remove from the Clipboard" => "Натисніть для вилучення з буфера обміну", + "This file is already added to the Clipboard." => "Цей файл вже додано в буфер обміну.", + "The files in the Clipboard are not readable." => "Неможливо прочитати файли в буфері обміну.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "Неможливо прочитати {count} файл(ів) в буфері обміну. Ви хочете копіювати ті які залишилися?", + "The files in the Clipboard are not movable." => "Неможливо перемістити файли в буфері обміну.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "Неможливо перемістити {count} файл(ів) в буфері обміну. Ви хчете перемістити ті які залишилися?", + "The files in the Clipboard are not removable." => "Неможливо вилучити файли в буфері обміну.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "Неможливо вилучити {count} файл(ів) в буфері обміну. Ви хочете вилучити ті які залишилися?", + "The selected files are not removable." => "Неможливо вилучити вибрані файли.", + "{count} selected files are not removable. Do you want to delete the rest?" => "Неможливо вилучити вибраний(ні) {count} файл(и). Ви хочете вилучити ті які залишилися?", + "Are you sure you want to delete all selected files?" => "Ви впевнені що хочете вилучити всі вибрані файли?", + "Failed to delete {count} files/folders." => "Неможливо вилучити {count} файлів/папок.", + "A file or folder with that name already exists." => "Файл або папка з таким іменем вже існують.", + "Copy files here" => "Копіювати файли сюди", + "Move files here" => "Перемістити файли сюда", + "Delete files" => "Вилучити файли", + "Clear the Clipboard" => "Очистити буфер обміну", + "Are you sure you want to delete all files in the Clipboard?" => "Ви впевнені що хочете вилучити всі файли в буфері обміну?", + "Copy {count} files" => "Копіювати {count} файл(ів)", + "Move {count} files" => "Перемістити {count} файл(ів)", + "Add to Clipboard" => "Додати в буфер обміну", + "Inexistant or inaccessible folder." => "Неіснуюча або недоступна папка.", + "New folder name:" => "Нова назва папки:", + "New file name:" => "Нова назва файлу:", + "Upload" => "Завантажити", + "Refresh" => "Оновити", + "Settings" => "Налаштування", + "Maximize" => "Максимізувати", + "About" => "Про скрипт", + "files" => "файли", + "selected files" => "вибрані файли", + "View:" => "Перегляд:", + "Show:" => "Показувати:", + "Order by:" => "Впорядкувати за:", + "Thumbnails" => "Мініатюри", + "List" => "Список", + "Name" => "Назва", + "Type" => "Тип", + "Size" => "Розмір", + "Date" => "Дата", + "Descending" => "По спаданню", + "Uploading file..." => "Завантаження файлу...", + "Loading image..." => "Завантаження зображення...", + "Loading folders..." => "Завантаження папок...", + "Loading files..." => "Завантаження файлів...", + "New Subfolder..." => "Створити папку...", + "Rename..." => "Перейменувати...", + "Delete" => "Вилучити", + "OK" => "OK", + "Cancel" => "Скасувати", + "Select" => "Вибрати", + "Select Thumbnail" => "Вибрати мініатюру", + "Select Thumbnails" => "Вибрати мініатюри", + "View" => "Перегляд", + "Download" => "Зкачати", + "Download files" => "Зкачати файли", + "Clipboard" => "Буфер обміну", + "Checking for new version..." => "Перевіряємо наявність оновлень...", + "Unable to connect!" => "Неможливо підключитися!", + "Download version {version} now!" => "Скачати версію {version} зараз!", + "KCFinder is up to date!" => "Ви використовуєте останню версію KCFinder'а!", + "Licenses:" => "Ліцензії:", + "Attention" => "Увага", + "Question" => "Питання", + "Yes" => "Так", + "No" => "Ні", + "You cannot rename the extension of files!" => "Ви не можете змінювати розширення файлів!", + "Uploading file {number} of {count}... {progress}" => "Завантаження файлу {number} з {count}... {progress}", + "Failed to upload {filename}!" => "Помилка завантаження {filename}!", +); + +?> \ No newline at end of file diff --git a/lang/vi.php b/lang/vi.php new file mode 100644 index 0000000..0119121 --- /dev/null +++ b/lang/vi.php @@ -0,0 +1,127 @@ + "vi_VN.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%d.%m.%Y %H:%M", + + "You don't have permissions to upload files." => "Bạn không có quyền tải lên", + "You don't have permissions to browse server." => "Bạn không có quyền truy cập", + "Cannot move uploaded file to target folder." => "Không thể tải lên thư mục đích", + "Unknown error." => "Lỗi không xác định", + "The uploaded file exceeds {size} bytes." => "Tập tin tải lên lớn hơn {size}", + "The uploaded file was only partially uploaded." => "Các tập tin chỉ được tải lên một phần", + "No file was uploaded." => "Không có tập tin được tải lên", + "Missing a temporary folder." => "Không thấy thư mục tạm", + "Failed to write file." => "Không thể ghi", + "Denied file extension." => "Phần mở rộng không được phép", + "Unknown image format/encoding." => "Không biết định dạng ảnh/mã hóa này", + "The image is too big and/or cannot be resized." => "Hình ảnh quá lơn/hoặc không thể thay đổi kích thước", + "Cannot create {dir} folder." => "Không thể tạo thư mục {dir}", + "Cannot rename the folder." => "Không thể đổi tên thư mục", + "Cannot write to upload folder." => "Không thể ghi vào thư mục", + "Cannot read .htaccess" => "Không thể đọc tập tin .htaccess", + "Incorrect .htaccess file. Cannot rewrite it!" => "không thể ghi tập tin .htaccess", + "Cannot read upload folder." => "Không thể đọc thư mục để tải lên", + "Cannot access or create thumbnails folder." => "Không có quyền truy cập hoặc không thể tạo thư mục", + "Cannot access or write to upload folder." => "Không có quyền truy cập hoặc không thể ghi", + "Please enter new folder name." => "Vui lòng nhập tên thư mục", + "Unallowable characters in folder name." => "Tên thư mục có chứa những ký tự không được phép", + "Folder name shouldn't begins with '.'" => "Thư mục không thể bắt đầu bằng '.'", + "Please enter new file name." => "Vui lòng nhập tên tập tin", + "Unallowable characters in file name." => "Tên tập tin chứa những ký tự không được phép", + "File name shouldn't begins with '.'" => "Tập tin không thể bắt đầu bằng '.'", + "Are you sure you want to delete this file?" => "Bạn có chắc bạn muốn xóa tập tin này?", + "Are you sure you want to delete this folder and all its content?" => "Bạn có chắc bạn muốn xóa thư mục và tất cả nội dung bên trong?", + "Non-existing directory type." => "Không tồn tại thư mục", + "Undefined MIME types." => "Không biết kiểu MIME này", + "Fileinfo PECL extension is missing." => "Fileinfo PECL extension is missing", + "Opening fileinfo database failed." => "Opening fileinfo database failed", + "You can't upload such files." => "Bạn không thể tải các tập tin như vậy.", + "The file '{file}' does not exist." => "Tập tin '{file}' đã có", + "Cannot read '{file}'." => "Không thể đọc '{file}'.", + "Cannot copy '{file}'." => "Không thể sao chép '{file}'.", + "Cannot move '{file}'." => "Không thể di chuyển '{file}'.", + "Cannot delete '{file}'." => "Không thể xóa tập tin '{file}'.", + "Cannot delete the folder." => "Không thể xóa thư mục", + "Click to remove from the Clipboard" => "Không thể xóa từ Bộ nhớ", + "This file is already added to the Clipboard." => "Tập tin đã có trong bộ nhớ", + "The files in the Clipboard are not readable." => "Không thể đọc các tập tin trong Bộ nhớ", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} tập tin trong Bộ nhớ không thể đọc. Bạn chắc chắn muốn sao chép phần còn lại?", + "The files in the Clipboard are not movable." => "Không thể di chuyển các tập tin trong Bộ nhớ", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} tập tin trong Bộ nhớ không thể di chuyển. Bạn chắc chắn muốn di chuyển phần còn lại?", + "The files in the Clipboard are not removable." => "Không thể xóa các tập tin trong Bộ nhớ", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} tập tin trong Bộ nhớ không thể xóa. Bạn chắc chắn muốn xóa phần còn lại?", + "The selected files are not removable." => "Lựa chọn tập tin để xóa", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} tập tin không thể xóa. Bạn chắc chắn muốn xóa phần còn lại?", + "Are you sure you want to delete all selected files?" => "Bạn có chắc bạn muốn xóa tất cả tập tin đựoc chọn?", + "Failed to delete {count} files/folders." => "Không thể xóa {count} tập tin/thư mục", + "A file or folder with that name already exists." => "Đã tồn tại tập tin hoặc thư mục với tên này", + "Copy files here" => "Sao chép ở đây", + "Move files here" => "Di chuyển ở đây", + "Delete files" => "Xóa tập tin", + "Clear the Clipboard" => "Xóa bộ nhớ", + "Are you sure you want to delete all files in the Clipboard?" => "Bạn có chắc bạn muốn xóa tất cả tập tin trong Bộ nhớ?", + "Copy {count} files" => "Sao chep {count} tập tin", + "Move {count} files" => "Di chuyển {count} tập tin", + "Add to Clipboard" => "Thêm vào Bộ nhớ", + "Inexistant or inaccessible folder." => "Thư mục không tồn tại hoặc không thể truy cập", + "New folder name:" => "Tên mới của thư mục", + "New file name:" => "Tên mới của tập tin", + "Upload" => "Tải lên", + "Refresh" => "Làm mới", + "Settings" => "Cấu hình", + "Maximize" => "Tối đa", + "About" => "Giới thiệu", + "files" => "tập tin", + "selected files" => "chọn tập tin", + "View:" => "Xem", + "Show:" => "Hiện", + "Order by:" => "Thứ tự bởi", + "Thumbnails" => "Ảnh thu nhỏ", + "List" => "Danh sách", + "Name" => "Tên", + "Type" => "Kiểu", + "Size" => "Kích thước", + "Date" => "Ngày tháng", + "Descending" => "Giảm dần", + "Uploading file..." => "Đang tải lên", + "Loading image..." => "Đang đọc ảnh", + "Loading folders..." => "Đang đọc thư mục...", + "Loading files..." => "Đang đọc tập tin...", + "New Subfolder..." => "Thư mục con mới...", + "Rename..." => "Đổi tên...", + "Delete" => "Xóa", + "OK" => "Đồng Ý", + "Cancel" => "Hủy", + "Select" => "Chọn", + "Select Thumbnail" => "Chọn ảnh thu nhỏ", + "Select Thumbnails" => "Chọn nhiều ảnh thu nhỏ", + "View" => "Xem", + "Download" => "Tải xuống", + "Download files" => "Tải xuống tập tin", + "Clipboard" => "Bộ nhớ", + "Checking for new version..." => "Kiểm tra phiên bản mới", + "Unable to connect!" => "Không thể kết nối", + "Download version {version} now!" => "Có phiên bản mới {version}, tải về ngay!", + "KCFinder is up to date!" => "Không có cập nhật", + "Licenses:" => "Bản quyền", + "Attention" => "Cảnh báo", + "Question" => "Câu hỏi", + "Yes" => "Có", + "No" => "Không", + "You cannot rename the extension of files!" => "Bạn không thể đổi tên phần mở rộng của các tập tin!", + "Uploading file {number} of {count}... {progress}" => "Đang tải tập tin thứ {number} của {count}... {progress}", + "Failed to upload {filename}!" => "Tải lên thất bại {filename}!", +); + +?> \ No newline at end of file diff --git a/lang/zh-cn.php b/lang/zh-cn.php new file mode 100644 index 0000000..ac68e2e --- /dev/null +++ b/lang/zh-cn.php @@ -0,0 +1,130 @@ + "zh_CN.UTF-8", // UNIX localization code + '_charset' => "utf-8", // Browser charset + + // Date time formats. See http://www.php.net/manual/en/function.strftime.php + '_dateTimeFull' => "%A, %e %B, %Y %H:%M", + '_dateTimeMid' => "%a %e %b %Y %H:%M", + '_dateTimeSmall' => "%Y-%m-%d %H:%M", + + "You don't have permissions to upload files." => "您没有权限上传文件。", + "You don't have permissions to browse server." => "您没有权限查看服务器文件。", + "Cannot move uploaded file to target folder." => "无法移动上传文件到指定文件夹。", + "Unknown error." => "发生不可预知异常。", + "The uploaded file exceeds {size} bytes." => "文件大小超过{size}字节。", + "The uploaded file was only partially uploaded." => "文件未完全上传。", + "No file was uploaded." => "文件未上传。", + "Missing a temporary folder." => "临时文件夹不存在。", + "Failed to write file." => "写入文件失败。", + "Denied file extension." => "禁止的文件扩展名。", + "Unknown image format/encoding." => "无法确认图片格式。", + "The image is too big and/or cannot be resized." => "图片大太,且(或)无法更改大小。", + "Cannot create {dir} folder." => "无法创建{dir}文件夹。", + "Cannot rename the folder." => "无法重命名该文件夹。", + "Cannot write to upload folder." => "无法写入上传文件夹。", + "Cannot read .htaccess" => "文件.htaccess无法读取。", + "Incorrect .htaccess file. Cannot rewrite it!" => "文件.htaccess错误,无法重写。", + "Cannot read upload folder." => "无法读取上传目录。", + "Cannot access or create thumbnails folder." => "无法访问或创建缩略图文件夹。", + "Cannot access or write to upload folder." => "无法访问或写入上传文件夹。", + "Please enter new folder name." => "请输入文件夹名。", + "Unallowable characters in folder name." => "文件夹名含有禁止字符。", + "Folder name shouldn't begins with '.'" => "文件夹名不能以点(.)为首字符。", + "Please enter new file name." => "请输入新文件名。", + "Unallowable characters in file name." => "文件名含有禁止字符。", + "File name shouldn't begins with '.'" => "文件名不能以点(.)为首字符。", + "Are you sure you want to delete this file?" => "是否确认删除该文件?", + "Are you sure you want to delete this folder and all its content?" => "是否确认删除该文件夹以及其子文件和子目录?", + "Non-existing directory type." => "不存在的目录类型。", + "Undefined MIME types." => "未定义的MIME类型。", + "Fileinfo PECL extension is missing." => "文件PECL属性不存在。", + "Opening fileinfo database failed." => "打开文件属性数据库出错。", + "You can't upload such files." => "你无法上传该文件。", + "The file '{file}' does not exist." => "文件{file}不存在。", + "Cannot read '{file}'." => "无法读取文件{file}。", + "Cannot copy '{file}'." => "无法复制文件{file}。", + "Cannot move '{file}'." => "无法移动文件{file}。", + "Cannot delete '{file}'." => "无法删除文件{file}。", + "Cannot delete the folder." => "无法删除该文件夹。", + "Click to remove from the Clipboard" => "点击从剪贴板删除", + "This file is already added to the Clipboard." => "文件已复制到剪贴板。", + "The files in the Clipboard are not readable." => "剪贴板上该文件无法读取。", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "剪贴板{count}个文件无法读取。 是否复制静态文件?", + "The files in the Clipboard are not movable." => "剪贴板上该文件无法移动。", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "剪贴板{count}个文件无法移动。 是否移动静态文件?", + "The files in the Clipboard are not removable." => "剪贴板上该文件无法删除。", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "剪贴板{count}个文件无法删除。 是否删除静态文件?", + "The selected files are not removable." => "选中文件未删除。", + "{count} selected files are not removable. Do you want to delete the rest?" => "选中的{count}个文件未删除。是否删除静态文件?", + "Are you sure you want to delete all selected files?" => "是否确认删除选中文件?", + "Failed to delete {count} files/folders." => "{count}个文件或文件夹无法删除。", + "A file or folder with that name already exists." => "文件或文件夹已存在。", + "Copy files here" => "复制到这里", + "Move files here" => "移动到这里", + "Delete files" => "删除这些文件", + "Clear the Clipboard" => "清除剪贴板", + "Are you sure you want to delete all files in the Clipboard?" => "是否确认删除所有在剪贴板的文件?", + "Copy {count} files" => "复制 {count} 个文件", + "Move {count} files" => "移动 {count} 个文件 ", + "Add to Clipboard" => "添加到剪贴板", + "Inexistant or inaccessible folder." => "不存在或不可访问的文件夹。", + "New folder name:" => "新文件夹名:", + "New file name:" => "新文件夹:", + "Upload" => "上传", + "Refresh" => "刷新", + "Settings" => "设置", + "Maximize" => "最大化", + "About" => "关于", + "files" => "文件", + "selected files" => "选中的文件", + "View:" => "视图:", + "Show:" => "显示:", + "Order by:" => "排序:", + "Thumbnails" => "图标", + "List" => "列表", + "Name" => "文件名", + "Type" => "种类", + "Size" => "大小", + "Date" => "日期", + "Descending" => "降序", + "Uploading file..." => "正在上传文件...", + "Loading image..." => "正在加载图片...", + "Loading folders..." => "正在加载文件夹...", + "Loading files..." => "正在加载文件...", + "New Subfolder..." => "新建文件夹...", + "Rename..." => "重命名...", + "Delete" => "删除", + "OK" => "OK", + "Cancel" => "取消", + "Select" => "选择", + "Select Thumbnail" => "选择缩略图", + "Select Thumbnails" => "选择缩略图", + "View" => "查看", + "Download" => "下载", + "Download files" => "下载文件", + "Clipboard" => "剪贴板", + "Checking for new version..." => "正在检查新版本...", + "Unable to connect!" => "无法链接!", + "Download version {version} now!" => "马上下载{version}版本!", + "KCFinder is up to date!" => "KCFinder已经是最新的!", + "Licenses:" => "许可证", + "Attention" => "注意", + "Question" => "问题", + "Yes" => "是", + "No" => "否", + "You cannot rename the extension of files!" => "禁止修改文件后缀", + "Uploading file {number} of {count}... {progress}" => "正在上传文件{number} / {count}... {progress}", + "Failed to upload {filename}!" => "上传失败{filename}!", +); + +?> \ No newline at end of file diff --git a/lib/.htaccess b/lib/.htaccess new file mode 100644 index 0000000..d61b264 --- /dev/null +++ b/lib/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + diff --git a/lib/class_image.php b/lib/class_image.php new file mode 100644 index 0000000..5f98ca5 --- /dev/null +++ b/lib/class_image.php @@ -0,0 +1,241 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +abstract class image { + const DEFAULT_JPEG_QUALITY = 75; + +/** Image resource or object + * @var mixed */ + protected $image; + +/** Image width in pixels + * @var integer */ + protected $width; + +/** Image height in pixels + * @var integer */ + protected $height; + +/** Init error + * @var bool */ + protected $initError = false; + +/** Driver specific options + * @var array */ + protected $options = array(); + + +/** Magic method which allows read-only access to all protected or private + * class properties + * @param string $property + * @return mixed */ + + final public function __get($property) { + return property_exists($this, $property) ? $this->$property : null; + } + + +/** Constructor. Parameter $image should be: + * 1. An instance of image driver class (copy instance). + * 2. An image represented by the type of the $image property + * (resource or object). + * 3. An array with two elements. First - width, second - height. + * Creates a blank image. + * 4. A filename string. Get image form file. + * Second paramaeter is used by pass some specific image driver options + * @param mixed $image + * @param array $options */ + + public function __construct($image, array $options=array()) { + $this->image = $this->width = $this->height = null; + $imageDetails = $this->buildImage($image); + + if ($imageDetails !== false) + list($this->image, $this->width, $this->height) = $imageDetails; + else + $this->initError = true; + $this->options = $options; + } + + +/** Factory pattern to load selected driver. $image and $options are passed + * to the constructor of the image driver + * @param string $driver + * @param mixed $image + * @return object */ + + final static function factory($driver, $image, array $options=array()) { + $class = "image_$driver"; + return new $class($image, $options); + } + + +/** Checks if the drivers in the array parameter could be used. Returns first + * found one + * @param array $drivers + * @return string */ + + final static function getDriver(array $drivers=array('gd')) { + foreach ($drivers as $driver) { + if (!preg_match('/^[a-z0-9\_]+$/i', $driver)) + continue; + $class = "image_$driver"; + if (class_exists($class) && method_exists($class, "available")) { + eval("\$avail = $class::available();"); + if ($avail) return $driver; + } + } + return false; + } + + +/** Returns an array. Element 0 - image resource. Element 1 - width. Element 2 - height. + * Returns FALSE on failure. + * @param mixed $image + * @return array */ + + final protected function buildImage($image) { + $class = get_class($this); + + if ($image instanceof $class) { + $width = $image->width; + $height = $image->height; + $img = $image->image; + + } elseif (is_array($image)) { + list($key, $width) = each($image); + list($key, $height) = each($image); + $img = $this->getBlankImage($width, $height); + + } else + $img = $this->getImage($image, $width, $height); + + return ($img !== false) + ? array($img, $width, $height) + : false; + } + + +/** Returns calculated proportional width from the given height + * @param integer $resizedHeight + * @return integer */ + + final public function getPropWidth($resizedHeight) { + $width = round(($this->width * $resizedHeight) / $this->height); + if (!$width) $width = 1; + return $width; + } + + +/** Returns calculated proportional height from the given width + * @param integer $resizedWidth + * @return integer */ + + final public function getPropHeight($resizedWidth) { + $height = round(($this->height * $resizedWidth) / $this->width); + if (!$height) $height = 1; + return $height; + } + + +/** Checks if PHP needs some extra extensions to use the image driver. This + * static method should be implemented into driver classes like abstract + * methods + * @return bool */ + static function available() { return false; } + +/** Checks if file is an image. This static method should be implemented into + * driver classes like abstract methods + * @param string $file + * @return bool */ + static function checkImage($file) { return false; } + +/** Resize image. Should return TRUE on success or FALSE on failure + * @param integer $width + * @param integer $height + * @return bool */ + abstract public function resize($width, $height); + +/** Resize image to fit in given resolution. Should returns TRUE on success + * or FALSE on failure. If $background is set, the image size will be + * $width x $height and the empty spaces (if any) will be filled with defined + * color. Background color examples: "#5f5", "#ff67ca", array(255, 255, 255) + * @param integer $width + * @param integer $height + * @param mixed $background + * @return bool */ + abstract public function resizeFit($width, $height, $background=false); + +/** Resize and crop the image to fit in given resolution. Returns TRUE on + * success or FALSE on failure + * @param mixed $src + * @param integer $offset + * @return bool */ + abstract public function resizeCrop($width, $height, $offset=false); + + +/** Rotate image + * @param integer $angle + * @param string $background + * @return bool */ + abstract public function rotate($angle, $background="#000000"); + + abstract public function flipHorizontal(); + + abstract public function flipVertical(); + +/** Apply a PNG or GIF watermark to the image. $top and $left parameters sets + * the offset of the watermark in pixels. Boolean and NULL values are possible + * too. In default case (FALSE, FALSE) the watermark should be applyed to + * the bottom right corner. NULL values means center aligning. If the + * watermark is bigger than the image or it's partialy or fully outside the + * image, it shoudn't be applied + * @param string $file + * @param mixed $top + * @param mixed $left + * @return bool */ + abstract public function watermark($file, $left=false, $top=false); + +/** Should output the image. Second parameter is used to pass some options like + * 'file' - if is set, the output will be written to a file + * 'quality' - compression quality + * It's possible to use extra specific options required by image type ($type) + * @param string $type + * @param array $options + * @return bool */ + abstract public function output($type='jpeg', array $options=array()); + +/** This method should create a blank image with selected size. Should returns + * resource or object related to the created image, which will be passed to + * $image property + * @param integer $width + * @param integer $height + * @return mixed */ + abstract protected function getBlankImage($width, $height); + +/** This method should create an image from source image. Only first parameter + * ($image) is input. Its type should be filename string or a type of the + * $image property. See the constructor reference for details. The + * parametters $width and $height are output only. Should returns resource or + * object related to the created image, which will be passed to $image + * property + * @param mixed $image + * @param integer $width + * @param integer $height + * @return mixed */ + abstract protected function getImage($image, &$width, &$height); + +} + +?> \ No newline at end of file diff --git a/lib/class_image_gd.php b/lib/class_image_gd.php new file mode 100644 index 0000000..72651bb --- /dev/null +++ b/lib/class_image_gd.php @@ -0,0 +1,344 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class image_gd extends image { + + + // ABSTRACT PUBLIC METHODS + + public function resize($width, $height) { + if (!$width) $width = 1; + if (!$height) $height = 1; + return ( + (false !== ($img = new image_gd(array($width, $height)))) && + $img->imageCopyResampled($this) && + (false !== ($this->image = $img->image)) && + (false !== ($this->width = $img->width)) && + (false !== ($this->height = $img->height)) + ); + } + + public function resizeFit($width, $height, $background=false) { + if ((!$width && !$height) || (($width == $this->width) && ($height == $this->height))) + return true; + if (!$width || (($height / $width) < ($this->height / $this->width))) { + $h = $height; + $w = round(($this->width * $h) / $this->height); + } elseif (!$height || (($width / $height) < ($this->width / $this->height))) { + $w = $width; + $h = round(($this->height * $w) / $this->width); + } else { + $w = $width; + $h = $height; + } + if (!$w) $w = 1; + if (!$h) $h = 1; + + if ($background === false) + return $this->resize($w, $h); + + else { + $img = new image_gd(array($width, $height)); + $x = round(($width - $w) / 2); + $y = round(($height - $h) / 2); + + if ((false === $this->resize($w, $h)) || + (false === $img->imageFilledRectangle(0, 0, $width, $height, $background)) || + (false === $img->imageCopyResampled($this->image, $x, $y, 0, 0, $w, $h)) + ) + return false; + + $this->image = $img->image; + $this->width = $width; + $this->height = $height; + + return true; + } + } + + public function resizeCrop($width, $height, $offset=false) { + + if (($this->width / $this->height) > ($width / $height)) { + $h = $height; + $w = ($this->width * $h) / $this->height; + $y = 0; + if ($offset !== false) { + if ($offset > 0) + $offset = -$offset; + if (($w + $offset) <= $width) + $offset = $width - $w; + $x = $offset; + } else + $x = ($width - $w) / 2; + + } else { + $w = $width; + $h = ($this->height * $w) / $this->width; + $x = 0; + if ($offset !== false) { + if ($offset > 0) + $offset = -$offset; + if (($h + $offset) <= $height) + $offset = $height - $h; + $y = $offset; + } else + $y = ($height - $h) / 2; + } + + $x = round($x); + $y = round($y); + $w = round($w); + $h = round($h); + if (!$w) $w = 1; + if (!$h) $h = 1; + + $return = ( + (false !== ($img = new image_gd(array($width, $height))))) && + (false !== ($img->imageCopyResampled($this->image, $x, $y, 0, 0, $w, $h)) + ); + + if ($return) { + $this->image = $img->image; + $this->width = $w; + $this->height = $h; + } + + return $return; + } + + public function rotate($angle, $background="#000000") { + $angle = -$angle; + $img = @imagerotate($this->image, $angle, $this->gdColor($background)); + if ($img === false) + return false; + $this->width = imagesx($img); + $this->height = imagesy($img); + $this->image = $img; + return true; + } + + public function flipHorizontal() { + $img = imagecreatetruecolor($this->width, $this->height); + if (imagecopyresampled($img, $this->image, 0, 0, ($this->width - 1), 0, $this->width, $this->height, -$this->width, $this->height)) + $this->image = $img; + else + return false; + return true; + } + + public function flipVertical() { + $img = imagecreatetruecolor($this->width, $this->height); + if (imagecopyresampled($img, $this->image, 0, 0, 0, ($this->height - 1), $this->width, $this->height, $this->width, -$this->height)) + $this->image = $img; + else + return false; + return true; + } + + public function watermark($file, $left=false, $top=false) { + $info = getimagesize($file); + list($w, $h, $t) = $info; + if (!in_array($t, array(IMAGETYPE_PNG, IMAGETYPE_GIF))) + return false; + $imagecreate = ($t == IMAGETYPE_PNG) ? "imagecreatefrompng" : "imagecreatefromgif"; + + if (!@imagealphablending($this->image, true) || + (false === ($wm = @$imagecreate($file))) + ) + return false; + + $w = imagesx($wm); + $h = imagesy($wm); + $x = + ($left === true) ? 0 : ( + ($left === null) ? round(($this->width - $w) / 2) : ( + (($left === false) || !preg_match('/^\d+$/', $left)) ? ($this->width - $w) : $left)); + $y = + ($top === true) ? 0 : ( + ($top === null) ? round(($this->height - $h) / 2) : ( + (($top === false) || !preg_match('/^\d+$/', $top)) ? ($this->height - $h) : $top)); + + if ((($x + $w) > $this->width) || + (($y + $h) > $this->height) || + ($x < 0) || ($y < 0) + ) + return false; + + if (($wm === false) || !@imagecopy($this->image, $wm, $x, $y, 0, 0, $w, $h)) + return false; + + @imagealphablending($this->image, false); + @imagesavealpha($this->image, true); + return true; + } + + public function output($type='jpeg', array $options=array()) { + $method = "output_$type"; + if (!method_exists($this, $method)) + return false; + return $this->$method($options); + } + + + // ABSTRACT PROTECTED METHODS + + protected function getBlankImage($width, $height) { + return @imagecreatetruecolor($width, $height); + } + + protected function getImage($image, &$width, &$height) { + + if (is_resource($image) && (get_resource_type($image) == "gd")) { + $width = @imagesx($image); + $height = @imagesy($image); + return $image; + + } elseif (is_string($image) && + (false !== (list($width, $height, $t) = @getimagesize($image))) + ) { + $image = + ($t == IMAGETYPE_GIF) ? @imagecreatefromgif($image) : ( + ($t == IMAGETYPE_WBMP) ? @imagecreatefromwbmp($image) : ( + ($t == IMAGETYPE_JPEG) ? @imagecreatefromjpeg($image) : ( + ($t == IMAGETYPE_PNG) ? @imagecreatefrompng($image) : ( + ($t == IMAGETYPE_XBM) ? @imagecreatefromxbm($image) : false + )))); + + return $image; + + } else + return false; + } + + + // PSEUDO-ABSTRACT STATIC METHODS + + static function available() { + return function_exists("imagecreatefromjpeg"); + } + + static function checkImage($file) { + if (!is_string($file) || + ((false === (list($width, $height, $t) = @getimagesize($file)))) + ) + return false; + + $img = + ($t == IMAGETYPE_GIF) ? @imagecreatefromgif($file) : ( + ($t == IMAGETYPE_WBMP) ? @imagecreatefromwbmp($file) : ( + ($t == IMAGETYPE_JPEG) ? @imagecreatefromjpeg($file) : ( + ($t == IMAGETYPE_PNG) ? @imagecreatefrompng($file) : ( + ($t == IMAGETYPE_XBM) ? @imagecreatefromxbm($file) : false + )))); + + return ($img !== false); + } + + + // OWN METHODS + + protected function output_png(array $options=array()) { + $file = isset($options['file']) ? $options['file'] : null; + $quality = isset($options['quality']) ? $options['quality'] : null; + $filters = isset($options['filters']) ? $options['filters'] : null; + if (($file === null) && !headers_sent()) + header("Content-Type: image/png"); + @imagesavealpha($this->image, true); + return imagepng($this->image, $file, $quality, $filters); + } + + protected function output_jpeg(array $options=array()) { + $file = isset($options['file']) ? $options['file'] : null; + $quality = isset($options['quality']) + ? $options['quality'] + : self::DEFAULT_JPEG_QUALITY; + if (($file === null) && !headers_sent()) + header("Content-Type: image/jpeg"); + return imagejpeg($this->image, $file, $quality); + } + + protected function output_gif(array $options=array()) { + $file = isset($options['file']) ? $options['file'] : null; + if (isset($options['file']) && !headers_sent()) + header("Content-Type: image/gif"); + return imagegif($this->image, $file); + } + + protected function gdColor() { + $args = func_get_args(); + + $exprRGB = '/^rgb\(\s*(\d{1,3})\s*\,\s*(\d{1,3})\s*\,\s*(\d{1,3})\s*\)$/i'; + $exprHex1 = '/^\#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i'; + $exprHex2 = '/^\#?([0-9a-f])([0-9a-f])([0-9a-f])$/i'; + $exprByte = '/^([01]?\d?\d|2[0-4]\d|25[0-5])$/'; + + if (!isset($args[0])) + return false; + + if (count($args[0]) == 3) { + list($r, $g, $b) = $args[0]; + + } elseif (preg_match($exprRGB, $args[0], $match)) { + list($tmp, $r, $g, $b) = $match; + + } elseif (preg_match($exprHex1, $args[0], $match)) { + list($tmp, $r, $g, $b) = $match; + $r = hexdec($r); + $g = hexdec($g); + $b = hexdec($b); + + } elseif (preg_match($exprHex2, $args[0], $match)) { + list($tmp, $r, $g, $b) = $match; + $r = hexdec("$r$r"); + $g = hexdec("$g$g"); + $b = hexdec("$b$b"); + + } elseif ((count($args) == 3) && + preg_match($exprByte, $args[0]) && + preg_match($exprByte, $args[1]) && + preg_match($exprByte, $args[2]) + ) { + list($r, $g, $b) = $args; + + } else + return false; + + return imagecolorallocate($this->image, $r, $g, $b); + } + + protected function imageFilledRectangle($x1, $y1, $x2, $y2, $color) { + $color = $this->gdColor($color); + if ($color === false) return false; + return imageFilledRectangle($this->image, $x1, $y1, $x2, $y2, $color); + } + + protected function imageCopyResampled( + $src, $dstX=0, $dstY=0, $srcX=0, $srcY=0, $dstW=null, $dstH=null, $srcW=null, $srcH=null + ) { + $imageDetails = $this->buildImage($src); + + if ($imageDetails === false) + return false; + + list($src, $srcWidth, $srcHeight) = $imageDetails; + + if (is_null($dstW)) $dstW = $this->width - $dstW; + if (is_null($dstH)) $dstH = $this->height - $dstY; + if (is_null($srcW)) $srcW = $srcWidth - $srcX; + if (is_null($srcH)) $srcH = $srcHeight - $srcY; + return imageCopyResampled($this->image, $src, $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH); + } +} + +?> \ No newline at end of file diff --git a/lib/class_image_gmagick.php b/lib/class_image_gmagick.php new file mode 100644 index 0000000..add5ea5 --- /dev/null +++ b/lib/class_image_gmagick.php @@ -0,0 +1,302 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class image_gmagick extends image { + + static $MIMES = array( + //'tif' => "image/tiff" + ); + + + // ABSTRACT PUBLIC METHODS + + public function resize($width, $height) {// + if (!$width) $width = 1; + if (!$height) $height = 1; + try { + $this->image->scaleImage($width, $height); + } catch (Exception $e) { + return false; + } + $this->width = $width; + $this->height = $height; + return true; + } + + public function resizeFit($width, $height, $background=false) {// + if (!$width) $width = 1; + if (!$height) $height = 1; + + try { + $this->image->scaleImage($width, $height, true); + $w = $this->image->getImageWidth(); + $h = $this->image->getImageHeight(); + } catch (Exception $e) { + return false; + } + + if ($background === false) { + $this->width = $w; + $this->height = $h; + return true; + + } else { + try { + $this->image->setImageBackgroundColor($background); + $x = round(($width - $w) / 2); + $y = round(($height - $h) / 2); + $img = new Gmagick(); + $img->newImage($width, $height, $background); + $img->compositeImage($this->image, 1, $x, $y); + } catch (Exception $e) { + return false; + } + $this->image = $img; + $this->width = $width; + $this->height = $height; + return true; + } + } + + public function resizeCrop($width, $height, $offset=false) { + if (!$width) $width = 1; + if (!$height) $height = 1; + + if (($this->width / $this->height) > ($width / $height)) { + $h = $height; + $w = ($this->width * $h) / $this->height; + $y = 0; + if ($offset !== false) { + if ($offset > 0) + $offset = -$offset; + if (($w + $offset) <= $width) + $offset = $width - $w; + $x = $offset; + } else + $x = ($width - $w) / 2; + + } else { + $w = $width; + $h = ($this->height * $w) / $this->width; + $x = 0; + if ($offset !== false) { + if ($offset > 0) + $offset = -$offset; + if (($h + $offset) <= $height) + $offset = $height - $h; + $y = $offset; + } else + $y = ($height - $h) / 2; + } + + $x = round($x); + $y = round($y); + $w = round($w); + $h = round($h); + if (!$w) $w = 1; + if (!$h) $h = 1; + + try { + $this->image->scaleImage($w, $h); + $this->image->cropImage($width, $height, -$x, -$y); + } catch (Exception $e) { + return false; + } + + $this->width = $width; + $this->height = $height; + return true; + } + + public function rotate($angle, $background="#000000") { + try { + $this->image->rotateImage($background, $angle); + $w = $this->image->getImageWidth(); + $h = $this->image->getImageHeight(); + } catch (Exception $e) { + return false; + } + $this->width = $w; + $this->height = $h; + return true; + } + + public function flipHorizontal() { + try { + $this->image->flopImage(); + } catch (Exception $e) { + return false; + } + return true; + } + + public function flipVertical() { + try { + $this->image->flipImage(); + } catch (Exception $e) { + return false; + } + return true; + } + + public function watermark($file, $left=false, $top=false) { + try { + $wm = new Gmagick($file); + $w = $wm->getImageWidth(); + $h = $wm->getImageHeight(); + } catch (Exception $e) { + return false; + } + + $x = + ($left === true) ? 0 : ( + ($left === null) ? round(($this->width - $w) / 2) : ( + (($left === false) || !preg_match('/^\d+$/', $left)) ? ($this->width - $w) : $left)); + $y = + ($top === true) ? 0 : ( + ($top === null) ? round(($this->height - $h) / 2) : ( + (($top === false) || !preg_match('/^\d+$/', $top)) ? ($this->height - $h) : $top)); + + if ((($x + $w) > $this->width) || + (($y + $h) > $this->height) || + ($x < 0) || ($y < 0) + ) + return false; + + try { + $this->image->compositeImage($wm, 1, $x, $y); + } catch (Exception $e) { + return false; + } + return true; + } + + + // ABSTRACT PROTECTED METHODS + + protected function getBlankImage($width, $height) { + try { + $img = new Gmagick(); + $img->newImage($width, $height, "none"); + } catch (Exception $e) { + return false; + } + return $img; + } + + protected function getImage($image, &$width, &$height) { + + if (is_object($image) && ($image instanceof image_gmagick)) { + $width = $image->width; + $height = $image->height; + return $image->image; + + } elseif (is_object($image) && ($image instanceof Gmagick)) { + try { + $w = $image->getImageWidth(); + $h = $image->getImageHeight(); + } catch (Exception $e) { + return false; + } + $width = $w; + $height = $h; + return $image; + + } elseif (is_string($image)) { + try { + $image = new Gmagick($image); + $w = $image->getImageWidth(); + $h = $image->getImageHeight(); + } catch (Exception $e) { + return false; + } + $width = $w; + $height = $h; + return $image; + + } else + return false; + } + + + // PSEUDO-ABSTRACT STATIC METHODS + + static function available() { + return class_exists("Gmagick"); + } + + static function checkImage($file) { + try { + $img = new Gmagic($file); + } catch (Exception $e) { + return false; + } + return true; + } + + + // INHERIT METHODS + + public function output($type="jpeg", array $options=array()) { + $type = strtolower($type); + try { + $this->image->setImageFormat($type); + } catch (Exception $e) { + return false; + } + $method = "optimize_$type"; + if (method_exists($this, $method) && !$this->$method($options)) + return false; + + if (!isset($options['file'])) { + if (!headers_sent()) { + $mime = isset(self::$MIMES[$type]) ? self::$MIMES[$type] : "image/$type"; + header("Content-Type: $mime"); + } + echo $this->image; + + } else { + $file = $options['file'] . ".$type"; + try { + $this->image->writeImage($file); + } catch (Exception $e) { + @unlink($file); + return false; + } + + if (!@rename($file, $options['file'])) { + @unlink($file); + return false; + } + } + + return true; + } + + + // OWN METHODS + + protected function optimize_jpeg(array $options=array()) { + $quality = isset($options['quality']) ? $options['quality'] : self::DEFAULT_JPEG_QUALITY; + try { + $this->image->setCompressionQuality($quality); + } catch (Exception $e) { + return false; + } + return true; + } + +} + +?> \ No newline at end of file diff --git a/lib/class_image_imagick.php b/lib/class_image_imagick.php new file mode 100644 index 0000000..2df92b1 --- /dev/null +++ b/lib/class_image_imagick.php @@ -0,0 +1,305 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class image_imagick extends image { + + static $MIMES = array( + //'tif' => "image/tiff" + ); + + + // ABSTRACT PUBLIC METHODS + + public function resize($width, $height) {// + if (!$width) $width = 1; + if (!$height) $height = 1; + try { + $this->image->scaleImage($width, $height); + } catch (Exception $e) { + return false; + } + $this->width = $width; + $this->height = $height; + return true; + } + + public function resizeFit($width, $height, $background=false) {// + if (!$width) $width = 1; + if (!$height) $height = 1; + + try { + $this->image->scaleImage($width, $height, true); + $size = $this->image->getImageGeometry(); + } catch (Exception $e) { + return false; + } + + if ($background === false) { + $this->width = $size['width']; + $this->height = $size['height']; + return true; + + } else { + try { + $this->image->setImageBackgroundColor($background); + $x = -round(($width - $size['width']) / 2); + $y = -round(($height - $size['height']) / 2); + $this->image->extentImage($width, $height, $x, $y); + } catch (Exception $e) { + return false; + } + $this->width = $width; + $this->height = $height; + return true; + } + } + + public function resizeCrop($width, $height, $offset=false) { + if (!$width) $width = 1; + if (!$height) $height = 1; + + if (($this->width / $this->height) > ($width / $height)) { + $h = $height; + $w = ($this->width * $h) / $this->height; + $y = 0; + if ($offset !== false) { + if ($offset > 0) + $offset = -$offset; + if (($w + $offset) <= $width) + $offset = $width - $w; + $x = $offset; + } else + $x = ($width - $w) / 2; + + } else { + $w = $width; + $h = ($this->height * $w) / $this->width; + $x = 0; + if ($offset !== false) { + if ($offset > 0) + $offset = -$offset; + if (($h + $offset) <= $height) + $offset = $height - $h; + $y = $offset; + } else + $y = ($height - $h) / 2; + } + + $x = round($x); + $y = round($y); + $w = round($w); + $h = round($h); + if (!$w) $w = 1; + if (!$h) $h = 1; + + try { + $this->image->scaleImage($w, $h); + $this->image->cropImage($width, $height, -$x, -$y); + } catch (Exception $e) { + return false; + } + + $this->width = $width; + $this->height = $height; + return true; + } + + public function rotate($angle, $background="#000000") { + try { + $this->image->rotateImage(new ImagickPixel($background), $angle); + $size = $this->image->getImageGeometry(); + } catch (Exception $e) { + return false; + } + $this->width = $size['width']; + $this->height = $size['height']; + return true; + } + + public function flipHorizontal() { + try { + $this->image->flopImage(); + } catch (Exception $e) { + return false; + } + return true; + } + + public function flipVertical() { + try { + $this->image->flipImage(); + } catch (Exception $e) { + return false; + } + return true; + } + + public function watermark($file, $left=false, $top=false) { + try { + $wm = new Imagick($file); + $size = $wm->getImageGeometry(); + } catch (Exception $e) { + return false; + } + + $w = $size['width']; + $h = $size['height']; + $x = + ($left === true) ? 0 : ( + ($left === null) ? round(($this->width - $w) / 2) : ( + (($left === false) || !preg_match('/^\d+$/', $left)) ? ($this->width - $w) : $left)); + $y = + ($top === true) ? 0 : ( + ($top === null) ? round(($this->height - $h) / 2) : ( + (($top === false) || !preg_match('/^\d+$/', $top)) ? ($this->height - $h) : $top)); + + if ((($x + $w) > $this->width) || + (($y + $h) > $this->height) || + ($x < 0) || ($y < 0) + ) + return false; + + try { + $this->image->compositeImage($wm, Imagick::COMPOSITE_DEFAULT, $x, $y); + } catch (Exception $e) { + return false; + } + return true; + } + + + // ABSTRACT PROTECTED METHODS + + protected function getBlankImage($width, $height) { + try { + $img = new Imagick(); + $img->newImage($width, $height, "none"); + $img->setImageCompressionQuality(100); + } catch (Exception $e) { + return false; + } + return $img; + } + + protected function getImage($image, &$width, &$height) { + + if (is_object($image) && ($image instanceof image_imagick)) { + try { + $image->image->setImageCompressionQuality(100); + } catch (Exception $e) { + return false; + } + $width = $image->width; + $height = $image->height; + return $image->image; + + } elseif (is_object($image) && ($image instanceof Imagick)) { + try { + $image->setImageCompressionQuality(100); + $size = $image->getImageGeometry(); + } catch (Exception $e) { + return false; + } + $width = $size['width']; + $height = $size['height']; + return $image; + + } elseif (is_string($image)) { + try { + $image = new Imagick($image); + $image->setImageCompressionQuality(100); + $size = $image->getImageGeometry(); + } catch (Exception $e) { + return false; + } + $width = $size['width']; + $height = $size['height']; + return $image; + + } else + return false; + } + + + // PSEUDO-ABSTRACT STATIC METHODS + + static function available() { + return class_exists("Imagick"); + } + + static function checkImage($file) { + try { + $img = new Imagic($file); + } catch (Exception $e) { + return false; + } + return true; + } + + + // INHERIT METHODS + + public function output($type="jpeg", array $options=array()) { + $type = strtolower($type); + try { + $this->image->setImageFormat($type); + } catch (Exception $e) { + return false; + } + $method = "optimize_$type"; + if (method_exists($this, $method) && !$this->$method($options)) + return false; + + if (!isset($options['file'])) { + if (!headers_sent()) { + $mime = isset(self::$MIMES[$type]) ? self::$MIMES[$type] : "image/$type"; + header("Content-Type: $mime"); + } + echo $this->image; + + } else { + $file = $options['file'] . ".$type"; + try { + $this->image->writeImage($file); + } catch (Exception $e) { + @unlink($file); + return false; + } + + if (!@rename($file, $options['file'])) { + @unlink($file); + return false; + } + } + + return true; + } + + + // OWN METHODS + + protected function optimize_jpeg(array $options=array()) { + $quality = isset($options['quality']) ? $options['quality'] : self::DEFAULT_JPEG_QUALITY; + try { + $this->image->setImageCompression(Imagick::COMPRESSION_JPEG); + $this->image->setImageCompressionQuality($quality); + } catch (Exception $e) { + return false; + } + return true; + } + +} + +?> \ No newline at end of file diff --git a/lib/class_input.php b/lib/class_input.php new file mode 100644 index 0000000..8d6350c --- /dev/null +++ b/lib/class_input.php @@ -0,0 +1,86 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class input { + + /** Filtered $_GET array + * @var array */ + public $get; + + /** Filtered $_POST array + * @var array */ + public $post; + + /** Filtered $_COOKIE array + * @var array */ + public $cookie; + + /** magic_quetes_gpc ini setting flag + * @var bool */ + protected $magic_quotes_gpc; + + /** magic_quetes_sybase ini setting flag + * @var bool */ + protected $magic_quotes_sybase; + + public function __construct() { + $this->magic_quotes_gpc = function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc(); + $this->magic_quotes_sybase = ini_get('magic_quotes_sybase'); + $this->magic_quotes_sybase = $this->magic_quotes_sybase + ? !in_array(strtolower(trim($this->magic_quotes_sybase)), + array('off', 'no', 'false')) + : false; + $_GET = $this->filter($_GET); + $_POST = $this->filter($_POST); + $_COOKIE = $this->filter($_COOKIE); + $this->get = &$_GET; + $this->post = &$_POST; + $this->cookie = &$_COOKIE; + } + + /** Magic method to get non-public properties like public. + * @param string $property + * @return mixed */ + + public function __get($property) { + return property_exists($this, $property) ? $this->$property : null; + } + + /** Filter the given subject. If magic_quotes_gpc and/or magic_quotes_sybase + * ini settings are turned on, the method will remove backslashes from some + * escaped characters. If the subject is an array, elements with non- + * alphanumeric keys will be removed + * @param mixed $subject + * @return mixed */ + + public function filter($subject) { + if ($this->magic_quotes_gpc) { + if (is_array($subject)) { + foreach ($subject as $key => $val) + if (!preg_match('/^[a-z\d_]+$/si', $key)) + unset($subject[$key]); + else + $subject[$key] = $this->filter($val); + } elseif (is_scalar($subject)) + $subject = $this->magic_quotes_sybase + ? str_replace("\\'", "'", $subject) + : stripslashes($subject); + + } + + return $subject; + } +} + +?> \ No newline at end of file diff --git a/lib/class_zipFolder.php b/lib/class_zipFolder.php new file mode 100644 index 0000000..3e44d53 --- /dev/null +++ b/lib/class_zipFolder.php @@ -0,0 +1,60 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class zipFolder { + protected $zip; + protected $root; + protected $ignored; + + function __construct($file, $folder, $ignored=null) { + $this->zip = new ZipArchive(); + + $this->ignored = is_array($ignored) + ? $ignored + : ($ignored ? array($ignored) : array()); + + if ($this->zip->open($file, ZIPARCHIVE::CREATE) !== TRUE) + throw new Exception("cannot open <$file>\n"); + + $folder = rtrim($folder, '/'); + + if (strstr($folder, '/')) { + $this->root = substr($folder, 0, strrpos($folder, '/') + 1); + $folder = substr($folder, strrpos($folder, '/') + 1); + } + + $this->zip($folder); + $this->zip->close(); + } + + function zip($folder, $parent=null) { + $full_path = "{$this->root}$parent$folder"; + $zip_path = "$parent$folder"; + $this->zip->addEmptyDir($zip_path); + $dir = new DirectoryIterator($full_path); + foreach ($dir as $file) + if (!$file->isDot()) { + $filename = $file->getFilename(); + if (!in_array($filename, $this->ignored)) { + if ($file->isDir()) + $this->zip($filename, "$zip_path/"); + else + $this->zip->addFile("$full_path/$filename", "$zip_path/$filename"); + } + } + } +} + +?> \ No newline at end of file diff --git a/lib/helper_dir.php b/lib/helper_dir.php new file mode 100644 index 0000000..99eb6ae --- /dev/null +++ b/lib/helper_dir.php @@ -0,0 +1,161 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class dir { + + /** Checks if the given directory is really writable. The standard PHP + * function is_writable() does not work properly on Windows servers + * @param string $dir + * @return bool */ + + static function isWritable($dir) { + $dir = path::normalize($dir); + if (!is_dir($dir)) + return false; + $i = 0; + do { + $file = "$dir/is_writable_" . md5($i++); + } while (file_exists($file)); + if (!@touch($file)) + return false; + unlink($file); + return true; + } + + /** Recursively delete the given directory. Returns TRUE on success. + * If $firstFailExit parameter is true (default), the method returns the + * path to the first failed file or directory which cannot be deleted. + * If $firstFailExit is false, the method returns an array with failed + * files and directories which cannot be deleted. The third parameter + * $failed is used for internal use only. + * @param string $dir + * @param bool $firstFailExit + * @param array $failed + * @return mixed */ + + static function prune($dir, $firstFailExit=true, array $failed=null) { + if ($failed === null) $failed = array(); + $files = self::content($dir); + if ($files === false) { + if ($firstFailExit) + return $dir; + $failed[] = $dir; + return $failed; + } + + foreach ($files as $file) { + if (is_dir($file)) { + $failed_in = self::prune($file, $firstFailExit, $failed); + if ($failed_in !== true) { + if ($firstFailExit) + return $failed_in; + if (is_array($failed_in)) + $failed = array_merge($failed, $failed_in); + else + $failed[] = $failed_in; + } + } elseif (!@unlink($file)) { + if ($firstFailExit) + return $file; + $failed[] = $file; + } + } + + if (!@rmdir($dir)) { + if ($firstFailExit) + return $dir; + $failed[] = $dir; + } + + return count($failed) ? $failed : true; + } + + /** Get the content of the given directory. Returns an array with filenames + * or FALSE on failure + * @param string $dir + * @param array $options + * @return mixed */ + + static function content($dir, array $options=null) { + + $defaultOptions = array( + 'types' => "all", // Allowed: "all" or possible return values + // of filetype(), or an array with them + 'addPath' => true, // Whether to add directory path to filenames + 'pattern' => '/./', // Regular expression pattern for filename + 'followLinks' => true + ); + + if (!is_dir($dir) || !is_readable($dir)) + return false; + + if (strtoupper(substr(PHP_OS, 0, 3)) == "WIN") + $dir = str_replace("\\", "/", $dir); + $dir = rtrim($dir, "/"); + + $dh = @opendir($dir); + if ($dh === false) + return false; + + if ($options === null) + $options = $defaultOptions; + + foreach ($defaultOptions as $key => $val) + if (!isset($options[$key])) + $options[$key] = $val; + + $files = array(); + while (($file = @readdir($dh)) !== false) { + $type = filetype("$dir/$file"); + + if ($options['followLinks'] && ($type === "link")) { + $lfile = "$dir/$file"; + do { + $ldir = dirname($lfile); + $lfile = @readlink($lfile); + if (substr($lfile, 0, 1) != "/") + $lfile = "$ldir/$lfile"; + $type = filetype($lfile); + } while ($type == "link"); + } + + if ((($type === "dir") && (($file == ".") || ($file == ".."))) || + !preg_match($options['pattern'], $file) + ) + continue; + + if (($options['types'] === "all") || ($type === $options['types']) || + ((is_array($options['types'])) && in_array($type, $options['types'])) + ) + $files[] = $options['addPath'] ? "$dir/$file" : $file; + } + closedir($dh); + usort($files, array("dir", "fileSort")); + return $files; + } + + static function fileSort($a, $b) { + if (function_exists("mb_strtolower")) { + $a = mb_strtolower($a); + $b = mb_strtolower($b); + } else { + $a = strtolower($a); + $b = strtolower($b); + } + if ($a == $b) return 0; + return ($a < $b) ? -1 : 1; + } +} + +?> \ No newline at end of file diff --git a/lib/helper_file.php b/lib/helper_file.php new file mode 100644 index 0000000..8f65f06 --- /dev/null +++ b/lib/helper_file.php @@ -0,0 +1,202 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class file { + + static $MIME = array( + 'ai' => 'application/postscript', + 'aif' => 'audio/x-aiff', + 'aifc' => 'audio/x-aiff', + 'aiff' => 'audio/x-aiff', + 'avi' => 'video/x-msvideo', + 'bin' => 'application/macbinary', + 'bmp' => 'image/bmp', + 'cpt' => 'application/mac-compactpro', + 'css' => 'text/css', + 'csv' => 'text/x-comma-separated-values', + 'dcr' => 'application/x-director', + 'dir' => 'application/x-director', + 'doc' => 'application/msword', + 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'dvi' => 'application/x-dvi', + 'dxr' => 'application/x-director', + 'eml' => 'message/rfc822', + 'eps' => 'application/postscript', + 'flv' => 'video/x-flv', + 'gif' => 'image/gif', + 'gtar' => 'application/x-gtar', + 'gz' => 'application/x-gzip', + 'hqx' => 'application/mac-binhex40', + 'htm' => 'text/html', + 'html' => 'text/html', + 'jpe' => 'image/jpeg', + 'jpeg' => 'image/jpeg', + 'jpg' => 'image/jpeg', + 'js' => 'application/x-javascript', + 'log' => 'text/plain', + 'mid' => 'audio/midi', + 'midi' => 'audio/midi', + 'mif' => 'application/vnd.mif', + 'mov' => 'video/quicktime', + 'movie' => 'video/x-sgi-movie', + 'mp2' => 'audio/mpeg', + 'mp3' => 'audio/mpeg', + 'mpe' => 'video/mpeg', + 'mpeg' => 'video/mpeg', + 'mpg' => 'video/mpeg', + 'mpga' => 'audio/mpeg', + 'oda' => 'application/oda', + 'pdf' => 'application/pdf', + 'php' => 'application/x-httpd-php', + 'php3' => 'application/x-httpd-php', + 'php4' => 'application/x-httpd-php', + 'phps' => 'application/x-httpd-php-source', + 'phtml' => 'application/x-httpd-php', + 'png' => 'image/png', + 'ppt' => 'application/powerpoint', + 'ps' => 'application/postscript', + 'psd' => 'application/x-photoshop', + 'qt' => 'video/quicktime', + 'ra' => 'audio/x-realaudio', + 'ram' => 'audio/x-pn-realaudio', + 'rm' => 'audio/x-pn-realaudio', + 'rpm' => 'audio/x-pn-realaudio-plugin', + 'rtf' => 'text/rtf', + 'rtx' => 'text/richtext', + 'rv' => 'video/vnd.rn-realvideo', + 'shtml' => 'text/html', + 'sit' => 'application/x-stuffit', + 'smi' => 'application/smil', + 'smil' => 'application/smil', + 'swf' => 'application/x-shockwave-flash', + 'tar' => 'application/x-tar', + 'tgz' => 'application/x-tar', + 'text' => 'text/plain', + 'tif' => 'image/tiff', + 'tiff' => 'image/tiff', + 'txt' => 'text/plain', + 'wav' => 'audio/x-wav', + 'wbxml' => 'application/wbxml', + 'wmlc' => 'application/wmlc', + 'word' => 'application/msword', + 'xht' => 'application/xhtml+xml', + 'xhtml' => 'application/xhtml+xml', + 'xl' => 'application/excel', + 'xls' => 'application/excel', + 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'xml' => 'text/xml', + 'xsl' => 'text/xml', + 'zip' => 'application/x-zip' + ); + + /** Checks if the given file is really writable. The standard PHP function + * is_writable() does not work properly on Windows servers. + * @param string $dir + * @return bool */ + + static function isWritable($filename) { + $filename = path::normalize($filename); + if (!is_file($filename) || (false === ($fp = @fopen($filename, 'a+')))) + return false; + fclose($fp); + return true; + } + + /** Get the extension from filename + * @param string $file + * @param bool $toLower + * @return string */ + + static function getExtension($filename, $toLower=true) { + return preg_match('/^.*\.([^\.]*)$/s', $filename, $patt) + ? ($toLower ? strtolower($patt[1]) : $patt[1]) : ""; + } + + /** Get MIME type of the given filename. If Fileinfo PHP extension is + * available the MIME type will be fetched by the file's content. The + * second parameter is optional and defines the magic file path. If you + * skip it, the default one will be loaded. + * If Fileinfo PHP extension is not available the MIME type will be fetched + * by filename extension regarding $MIME property. If the file extension + * does not exist there, returned type will be application/octet-stream + * @param string $filename + * @param string $magic + * @return string */ + + static function getMimeType($filename, $magic=null) { + if (class_exists("finfo")) { + $finfo = ($magic === null) + ? new finfo(FILEINFO_MIME) + : new finfo(FILEINFO_MIME, $magic); + if ($finfo) { + $mime = $finfo->file($filename); + $mime = substr($mime, 0, strrpos($mime, ";")); + return $mime; + } + } + $ext = self::getExtension($filename, true); + return isset(self::$MIME[$ext]) ? self::$MIME[$ext] : "application/octet-stream"; + } + + /** Get inexistant filename based on the given filename. If you skip $dir + * parameter the directory will be fetched from $filename and returned + * value will be full filename path. The third parameter is optional and + * defines the template, the filename will be renamed to. Default template + * is {name}({sufix}){ext}. Examples: + * + * file::getInexistantFilename("/my/directory/myfile.txt"); + * If myfile.txt does not exist - returns the same path to the file + * otherwise returns "/my/directory/myfile(1).txt" + * + * file::getInexistantFilename("myfile.txt", "/my/directory"); + * returns "myfile.txt" or "myfile(1).txt" or "myfile(2).txt" etc... + * + * file::getInexistantFilename("myfile.txt", "/dir", "{name}[{sufix}]{ext}"); + * returns "myfile.txt" or "myfile[1].txt" or "myfile[2].txt" etc... + * + * @param string $filename + * @param string $dir + * @param string $tpl + * @return string */ + + static function getInexistantFilename($filename, $dir=null, $tpl=null) { + if ($tpl === null) $tpl = "{name}({sufix}){ext}"; + $fullPath = ($dir === null); + if ($fullPath) + $dir = path::normalize(dirname($filename)); + else { + $fdir = dirname($filename); + $dir = strlen($fdir) + ? path::normalize("$dir/$fdir") + : path::normalize($dir); + } + $filename = basename($filename); + $ext = self::getExtension($filename, false); + $name = strlen($ext) ? substr($filename, 0, -strlen($ext) - 1) : $filename; + $tpl = str_replace('{name}', $name, $tpl); + $tpl = str_replace('{ext}', (strlen($ext) ? ".$ext" : ""), $tpl); + $i = 1; $file = "$dir/$filename"; + while (file_exists($file)) + $file = "$dir/" . str_replace('{sufix}', $i++, $tpl); + + return $fullPath + ? $file + : (strlen($fdir) + ? "$fdir/" . basename($file) + : basename($file)); + } + +} + +?> \ No newline at end of file diff --git a/lib/helper_httpCache.php b/lib/helper_httpCache.php new file mode 100644 index 0000000..1496300 --- /dev/null +++ b/lib/helper_httpCache.php @@ -0,0 +1,98 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class httpCache { + const DEFAULT_TYPE = "text/html"; + const DEFAULT_EXPIRE = 604800; // in seconds + + /** Cache a file. The $type parameter might define the MIME type of the file + * or path to magic file to autodetect the MIME type. If you skip $type + * parameter the method will try with the default magic file. Autodetection + * of MIME type requires Fileinfo PHP extension used in file::getMimeType() + * @param string $file + * @param string $type + * @param integer $expire + * @param array $headers */ + + static function file($file, $type=null, $expire=null, array $headers=null) { + $mtime = @filemtime($file); + if ($mtime !== false) self::checkMTime($mtime); + + if ($type === null) { + $magic = ((substr($type, 0, 1) == "/") || preg_match('/^[a-z]\:/i', $type)) + ? $type : null; + $type = file::getMimeType($file, $magic); + if (!$type) $type = null; + } + + self::content(@file_get_contents($file), $mtime, $type, $expire, $headers, false); + } + + /** Cache the given $content with $mtime modification time. + * @param binary $content + * @param integer $mtime + * @param string $type + * @param integer $expire + * @param array $headers + * @param bool $checkMTime */ + + static function content($content, $mtime, $type=null, $expire=null, array $headers=null, $checkMTime=true) { + if ($checkMTime) self::checkMTime($mtime); + if ($type === null) $type = self::DEFAULT_TYPE; + if ($expire === null) $expire = self::DEFAULT_EXPIRE; + $size = strlen($content); + $expires = gmdate("D, d M Y H:i:s", time() + $expire) . " GMT"; + header("Content-Type: $type"); + header("Expires: $expires"); + header("Cache-Control: max-age=$expire"); + header("Pragma: !invalid"); + header("Content-Length: $size"); + if ($headers !== null) foreach ($headers as $header) header($header); + echo $content; + } + + /** Check if given modification time is newer than client-side one. If not, + * the method will tell the client to get the content from its own cache. + * Afterwards the script process will be terminated. This feature requires + * the PHP to be configured as Apache module. + * @param integer $mtime */ + + static function checkMTime($mtime, $sendHeaders=null) { + header("Last-Modified: " . gmdate("D, d M Y H:i:s", $mtime) . " GMT"); + + $headers = function_exists("getallheaders") + ? getallheaders() + : (function_exists("apache_request_headers") + ? apache_request_headers() + : false); + + if (is_array($headers) && isset($headers['If-Modified-Since'])) { + $client_mtime = explode(';', $headers['If-Modified-Since']); + $client_mtime = @strtotime($client_mtime[0]); + if ($client_mtime >= $mtime) { + header('HTTP/1.1 304 Not Modified'); + if (is_array($sendHeaders) && count($sendHeaders)) + foreach ($sendHeaders as $header) + header($header); + elseif ($sendHeaders !== null) + header($sendHeaders); + + + die; + } + } + } +} + +?> \ No newline at end of file diff --git a/lib/helper_path.php b/lib/helper_path.php new file mode 100644 index 0000000..91cc46d --- /dev/null +++ b/lib/helper_path.php @@ -0,0 +1,144 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class path { + + /** Get the absolute URL path of the given one. Returns FALSE if the URL + * is not valid or the current directory cannot be resolved (getcwd()) + * @param string $path + * @return string */ + + static function rel2abs_url($path) { + if (substr($path, 0, 1) == "/") return $path; + $dir = @getcwd(); + + if (!isset($_SERVER['DOCUMENT_ROOT']) || ($dir === false)) + return false; + + $dir = self::normalize($dir); + $doc_root = self::normalize($_SERVER['DOCUMENT_ROOT']); + + if (substr($dir, 0, strlen($doc_root)) != $doc_root) + return false; + + $return = self::normalize(substr($dir, strlen($doc_root)) . "/$path"); + if (substr($return, 0, 1) !== "/") + $return = "/$return"; + + return $return; + } + + /** Resolve full filesystem path of given URL. Returns FALSE if the URL + * cannot be resolved + * @param string $url + * @return string */ + + static function url2fullPath($url) { + $url = self::normalize($url); + + $uri = isset($_SERVER['SCRIPT_NAME']) + ? $_SERVER['SCRIPT_NAME'] : (isset($_SERVER['PHP_SELF']) + ? $_SERVER['PHP_SELF'] + : false); + + $uri = self::normalize($uri); + + if (substr($url, 0, 1) !== "/") { + if ($uri === false) return false; + $url = dirname($uri) . "/$url"; + } + + if (isset($_SERVER['DOCUMENT_ROOT'])) { + return self::normalize($_SERVER['DOCUMENT_ROOT'] . "/$url"); + + } else { + if ($uri === false) return false; + + if (isset($_SERVER['SCRIPT_FILENAME'])) { + $scr_filename = self::normalize($_SERVER['SCRIPT_FILENAME']); + return self::normalize(substr($scr_filename, 0, -strlen($uri)) . "/$url"); + } + + $count = count(explode('/', $uri)) - 1; + for ($i = 0, $chdir = ""; $i < $count; $i++) + $chdir .= "../"; + $chdir = self::normalize($chdir); + + $dir = getcwd(); + if (($dir === false) || !@chdir($chdir)) + return false; + $rdir = getcwd(); + chdir($dir); + return ($rdir !== false) ? self::normalize($rdir . "/$url") : false; + } + } + + /** Normalize the given path. On Windows servers backslash will be replaced + * with slash. Remobes unnecessary doble slashes and double dots. Removes + * last slash if it exists. Examples: + * path::normalize("C:\\any\\path\\") returns "C:/any/path" + * path::normalize("/your/path/..//home/") returns "/your/home" + * @param string $path + * @return string */ + + static function normalize($path) { + if (strtoupper(substr(PHP_OS, 0, 3)) == "WIN") { + $path = preg_replace('/([^\\\])\\\([^\\\])/', "$1/$2", $path); + if (substr($path, -1) == "\\") $path = substr($path, 0, -1); + if (substr($path, 0, 1) == "\\") $path = "/" . substr($path, 1); + } + + $path = preg_replace('/\/+/s', "/", $path); + + $path = "/$path"; + if (substr($path, -1) != "/") + $path .= "/"; + + $expr = '/\/([^\/]{1}|[^\.\/]{2}|[^\/]{3,})\/\.\.\//s'; + while (preg_match($expr, $path)) + $path = preg_replace($expr, "/", $path); + + $path = substr($path, 0, -1); + $path = substr($path, 1); + return $path; + } + + /** Encode URL Path + * @param string $path + * @return string */ + + static function urlPathEncode($path) { + $path = self::normalize($path); + $encoded = ""; + foreach (explode("/", $path) as $dir) + $encoded .= rawurlencode($dir) . "/"; + $encoded = substr($encoded, 0, -1); + return $encoded; + } + + /** Decode URL Path + * @param string $path + * @return string */ + + static function urlPathDecode($path) { + $path = self::normalize($path); + $decoded = ""; + foreach (explode("/", $path) as $dir) + $decoded .= rawurldecode($dir) . "/"; + $decoded = substr($decoded, 0, -1); + return $decoded; + } +} + +?> \ No newline at end of file diff --git a/lib/helper_text.php b/lib/helper_text.php new file mode 100644 index 0000000..91430fe --- /dev/null +++ b/lib/helper_text.php @@ -0,0 +1,79 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +class text { + + /** Replace repeated white spaces to single space + * @param string $string + * @return string */ + + static function clearWhitespaces($string) { + return trim(preg_replace('/\s+/s', " ", $string)); + } + + /** Normalize the string for HTML attribute value + * @param string $string + * @return string */ + + static function htmlValue($string) { + return + str_replace('"', """, + str_replace("'", ''', + str_replace('<', '<', + str_replace('&', "&", + $string)))); + } + + /** Normalize the string for JavaScript string value + * @param string $string + * @return string */ + + static function jsValue($string) { + return + preg_replace('/\r?\n/', "\\n", + str_replace('"', "\\\"", + str_replace("'", "\\'", + str_replace("\\", "\\\\", + $string)))); + } + + /** Normalize the string for XML tag content data + * @param string $string + * @param bool $cdata */ + + static function xmlData($string, $cdata=false) { + $string = str_replace("]]>", "]]]]>", $string); + if (!$cdata) + $string = ""; + return $string; + } + + /** Returns compressed content of given CSS code + * @param string $code + * @return string */ + + static function compressCSS($code) { + $code = self::clearWhitespaces($code); + $code = preg_replace('/ ?\{ ?/', "{", $code); + $code = preg_replace('/ ?\} ?/', "}", $code); + $code = preg_replace('/ ?\; ?/', ";", $code); + $code = preg_replace('/ ?\> ?/', ">", $code); + $code = preg_replace('/ ?\, ?/', ",", $code); + $code = preg_replace('/ ?\: ?/', ":", $code); + $code = str_replace(";}", "}", $code); + return $code; + } +} + +?> \ No newline at end of file diff --git a/themes/dark/about.txt b/themes/dark/about.txt new file mode 100644 index 0000000..8cda559 --- /dev/null +++ b/themes/dark/about.txt @@ -0,0 +1,15 @@ +This folder contains files for designing Dark visual theme for KCFinder + +Some Icons are Copyright © Yusuke Kamiyamane. All rights reserved. Licensed under a Creative Commons Attribution 3.0 license. +http://p.yusukekamiyamane.com + +Other icons are taken from default KDE4 visual theme +http://www.kde.org + +Theme Details: + +Project: KCFinder - http://kcfinder.sunhater.com +Version: 1.3 +Author: Dark Preacher +Licenses: GPLv2 - http://www.opensource.org/licenses/gpl-2.0.php + LGPLv2 - http://www.opensource.org/licenses/lgpl-2.1.php diff --git a/themes/dark/img/bg_transparent.png b/themes/dark/img/bg_transparent.png new file mode 100644 index 0000000..3200632 Binary files /dev/null and b/themes/dark/img/bg_transparent.png differ diff --git a/themes/dark/img/cross.png b/themes/dark/img/cross.png new file mode 100644 index 0000000..5cdf6ea Binary files /dev/null and b/themes/dark/img/cross.png differ diff --git a/themes/dark/img/files/big/..png b/themes/dark/img/files/big/..png new file mode 100644 index 0000000..aaff484 Binary files /dev/null and b/themes/dark/img/files/big/..png differ diff --git a/themes/dark/img/files/big/.image.png b/themes/dark/img/files/big/.image.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/dark/img/files/big/.image.png differ diff --git a/themes/dark/img/files/big/avi.png b/themes/dark/img/files/big/avi.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/dark/img/files/big/avi.png differ diff --git a/themes/dark/img/files/big/bat.png b/themes/dark/img/files/big/bat.png new file mode 100644 index 0000000..eaa3dc9 Binary files /dev/null and b/themes/dark/img/files/big/bat.png differ diff --git a/themes/dark/img/files/big/bmp.png b/themes/dark/img/files/big/bmp.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/dark/img/files/big/bmp.png differ diff --git a/themes/dark/img/files/big/bz2.png b/themes/dark/img/files/big/bz2.png new file mode 100644 index 0000000..84eaa19 Binary files /dev/null and b/themes/dark/img/files/big/bz2.png differ diff --git a/themes/dark/img/files/big/ccd.png b/themes/dark/img/files/big/ccd.png new file mode 100644 index 0000000..aa9f4a2 Binary files /dev/null and b/themes/dark/img/files/big/ccd.png differ diff --git a/themes/dark/img/files/big/cgi.png b/themes/dark/img/files/big/cgi.png new file mode 100644 index 0000000..eaa3dc9 Binary files /dev/null and b/themes/dark/img/files/big/cgi.png differ diff --git a/themes/dark/img/files/big/com.png b/themes/dark/img/files/big/com.png new file mode 100644 index 0000000..427a328 Binary files /dev/null and b/themes/dark/img/files/big/com.png differ diff --git a/themes/dark/img/files/big/csh.png b/themes/dark/img/files/big/csh.png new file mode 100644 index 0000000..eaa3dc9 Binary files /dev/null and b/themes/dark/img/files/big/csh.png differ diff --git a/themes/dark/img/files/big/cue.png b/themes/dark/img/files/big/cue.png new file mode 100644 index 0000000..aa9f4a2 Binary files /dev/null and b/themes/dark/img/files/big/cue.png differ diff --git a/themes/dark/img/files/big/deb.png b/themes/dark/img/files/big/deb.png new file mode 100644 index 0000000..14ce82f Binary files /dev/null and b/themes/dark/img/files/big/deb.png differ diff --git a/themes/dark/img/files/big/dll.png b/themes/dark/img/files/big/dll.png new file mode 100644 index 0000000..9e03a48 Binary files /dev/null and b/themes/dark/img/files/big/dll.png differ diff --git a/themes/dark/img/files/big/doc.png b/themes/dark/img/files/big/doc.png new file mode 100644 index 0000000..b544dcc Binary files /dev/null and b/themes/dark/img/files/big/doc.png differ diff --git a/themes/dark/img/files/big/docx.png b/themes/dark/img/files/big/docx.png new file mode 100644 index 0000000..b544dcc Binary files /dev/null and b/themes/dark/img/files/big/docx.png differ diff --git a/themes/dark/img/files/big/exe.png b/themes/dark/img/files/big/exe.png new file mode 100644 index 0000000..427a328 Binary files /dev/null and b/themes/dark/img/files/big/exe.png differ diff --git a/themes/dark/img/files/big/fla.png b/themes/dark/img/files/big/fla.png new file mode 100644 index 0000000..5e7c751 Binary files /dev/null and b/themes/dark/img/files/big/fla.png differ diff --git a/themes/dark/img/files/big/flv.png b/themes/dark/img/files/big/flv.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/dark/img/files/big/flv.png differ diff --git a/themes/dark/img/files/big/fon.png b/themes/dark/img/files/big/fon.png new file mode 100644 index 0000000..3815dac Binary files /dev/null and b/themes/dark/img/files/big/fon.png differ diff --git a/themes/dark/img/files/big/gif.png b/themes/dark/img/files/big/gif.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/dark/img/files/big/gif.png differ diff --git a/themes/dark/img/files/big/gz.png b/themes/dark/img/files/big/gz.png new file mode 100644 index 0000000..84eaa19 Binary files /dev/null and b/themes/dark/img/files/big/gz.png differ diff --git a/themes/dark/img/files/big/htm.png b/themes/dark/img/files/big/htm.png new file mode 100644 index 0000000..4995b6b Binary files /dev/null and b/themes/dark/img/files/big/htm.png differ diff --git a/themes/dark/img/files/big/html.png b/themes/dark/img/files/big/html.png new file mode 100644 index 0000000..4995b6b Binary files /dev/null and b/themes/dark/img/files/big/html.png differ diff --git a/themes/dark/img/files/big/ini.png b/themes/dark/img/files/big/ini.png new file mode 100644 index 0000000..02489bd Binary files /dev/null and b/themes/dark/img/files/big/ini.png differ diff --git a/themes/dark/img/files/big/iso.png b/themes/dark/img/files/big/iso.png new file mode 100644 index 0000000..aa9f4a2 Binary files /dev/null and b/themes/dark/img/files/big/iso.png differ diff --git a/themes/dark/img/files/big/jar.png b/themes/dark/img/files/big/jar.png new file mode 100644 index 0000000..cef54cd Binary files /dev/null and b/themes/dark/img/files/big/jar.png differ diff --git a/themes/dark/img/files/big/java.png b/themes/dark/img/files/big/java.png new file mode 100644 index 0000000..351b5db Binary files /dev/null and b/themes/dark/img/files/big/java.png differ diff --git a/themes/dark/img/files/big/jpeg.png b/themes/dark/img/files/big/jpeg.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/dark/img/files/big/jpeg.png differ diff --git a/themes/dark/img/files/big/jpg.png b/themes/dark/img/files/big/jpg.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/dark/img/files/big/jpg.png differ diff --git a/themes/dark/img/files/big/js.png b/themes/dark/img/files/big/js.png new file mode 100644 index 0000000..fcb1f8f Binary files /dev/null and b/themes/dark/img/files/big/js.png differ diff --git a/themes/dark/img/files/big/mds.png b/themes/dark/img/files/big/mds.png new file mode 100644 index 0000000..aa9f4a2 Binary files /dev/null and b/themes/dark/img/files/big/mds.png differ diff --git a/themes/dark/img/files/big/mdx.png b/themes/dark/img/files/big/mdx.png new file mode 100644 index 0000000..aa9f4a2 Binary files /dev/null and b/themes/dark/img/files/big/mdx.png differ diff --git a/themes/dark/img/files/big/mid.png b/themes/dark/img/files/big/mid.png new file mode 100644 index 0000000..6187bc5 Binary files /dev/null and b/themes/dark/img/files/big/mid.png differ diff --git a/themes/dark/img/files/big/midi.png b/themes/dark/img/files/big/midi.png new file mode 100644 index 0000000..6187bc5 Binary files /dev/null and b/themes/dark/img/files/big/midi.png differ diff --git a/themes/dark/img/files/big/mkv.png b/themes/dark/img/files/big/mkv.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/dark/img/files/big/mkv.png differ diff --git a/themes/dark/img/files/big/mov.png b/themes/dark/img/files/big/mov.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/dark/img/files/big/mov.png differ diff --git a/themes/dark/img/files/big/mp3.png b/themes/dark/img/files/big/mp3.png new file mode 100644 index 0000000..5f4c206 Binary files /dev/null and b/themes/dark/img/files/big/mp3.png differ diff --git a/themes/dark/img/files/big/mpeg.png b/themes/dark/img/files/big/mpeg.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/dark/img/files/big/mpeg.png differ diff --git a/themes/dark/img/files/big/mpg.png b/themes/dark/img/files/big/mpg.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/dark/img/files/big/mpg.png differ diff --git a/themes/dark/img/files/big/nfo.png b/themes/dark/img/files/big/nfo.png new file mode 100644 index 0000000..02489bd Binary files /dev/null and b/themes/dark/img/files/big/nfo.png differ diff --git a/themes/dark/img/files/big/nrg.png b/themes/dark/img/files/big/nrg.png new file mode 100644 index 0000000..aa9f4a2 Binary files /dev/null and b/themes/dark/img/files/big/nrg.png differ diff --git a/themes/dark/img/files/big/ogg.png b/themes/dark/img/files/big/ogg.png new file mode 100644 index 0000000..5f4c206 Binary files /dev/null and b/themes/dark/img/files/big/ogg.png differ diff --git a/themes/dark/img/files/big/pdf.png b/themes/dark/img/files/big/pdf.png new file mode 100644 index 0000000..49cf5e3 Binary files /dev/null and b/themes/dark/img/files/big/pdf.png differ diff --git a/themes/dark/img/files/big/php.png b/themes/dark/img/files/big/php.png new file mode 100644 index 0000000..588bef8 Binary files /dev/null and b/themes/dark/img/files/big/php.png differ diff --git a/themes/dark/img/files/big/phps.png b/themes/dark/img/files/big/phps.png new file mode 100644 index 0000000..588bef8 Binary files /dev/null and b/themes/dark/img/files/big/phps.png differ diff --git a/themes/dark/img/files/big/pl.png b/themes/dark/img/files/big/pl.png new file mode 100644 index 0000000..d3468a5 Binary files /dev/null and b/themes/dark/img/files/big/pl.png differ diff --git a/themes/dark/img/files/big/pm.png b/themes/dark/img/files/big/pm.png new file mode 100644 index 0000000..d3468a5 Binary files /dev/null and b/themes/dark/img/files/big/pm.png differ diff --git a/themes/dark/img/files/big/png.png b/themes/dark/img/files/big/png.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/dark/img/files/big/png.png differ diff --git a/themes/dark/img/files/big/ppt.png b/themes/dark/img/files/big/ppt.png new file mode 100644 index 0000000..ae13c8a Binary files /dev/null and b/themes/dark/img/files/big/ppt.png differ diff --git a/themes/dark/img/files/big/pptx.png b/themes/dark/img/files/big/pptx.png new file mode 100644 index 0000000..ae13c8a Binary files /dev/null and b/themes/dark/img/files/big/pptx.png differ diff --git a/themes/dark/img/files/big/qt.png b/themes/dark/img/files/big/qt.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/dark/img/files/big/qt.png differ diff --git a/themes/dark/img/files/big/rpm.png b/themes/dark/img/files/big/rpm.png new file mode 100644 index 0000000..0708eef Binary files /dev/null and b/themes/dark/img/files/big/rpm.png differ diff --git a/themes/dark/img/files/big/rtf.png b/themes/dark/img/files/big/rtf.png new file mode 100644 index 0000000..02489bd Binary files /dev/null and b/themes/dark/img/files/big/rtf.png differ diff --git a/themes/dark/img/files/big/sh.png b/themes/dark/img/files/big/sh.png new file mode 100644 index 0000000..eaa3dc9 Binary files /dev/null and b/themes/dark/img/files/big/sh.png differ diff --git a/themes/dark/img/files/big/srt.png b/themes/dark/img/files/big/srt.png new file mode 100644 index 0000000..02489bd Binary files /dev/null and b/themes/dark/img/files/big/srt.png differ diff --git a/themes/dark/img/files/big/sub.png b/themes/dark/img/files/big/sub.png new file mode 100644 index 0000000..02489bd Binary files /dev/null and b/themes/dark/img/files/big/sub.png differ diff --git a/themes/dark/img/files/big/swf.png b/themes/dark/img/files/big/swf.png new file mode 100644 index 0000000..45a8208 Binary files /dev/null and b/themes/dark/img/files/big/swf.png differ diff --git a/themes/dark/img/files/big/tgz.png b/themes/dark/img/files/big/tgz.png new file mode 100644 index 0000000..d7e7b5b Binary files /dev/null and b/themes/dark/img/files/big/tgz.png differ diff --git a/themes/dark/img/files/big/tif.png b/themes/dark/img/files/big/tif.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/dark/img/files/big/tif.png differ diff --git a/themes/dark/img/files/big/tiff.png b/themes/dark/img/files/big/tiff.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/dark/img/files/big/tiff.png differ diff --git a/themes/dark/img/files/big/torrent.png b/themes/dark/img/files/big/torrent.png new file mode 100644 index 0000000..0bffac4 Binary files /dev/null and b/themes/dark/img/files/big/torrent.png differ diff --git a/themes/dark/img/files/big/ttf.png b/themes/dark/img/files/big/ttf.png new file mode 100644 index 0000000..4f43e19 Binary files /dev/null and b/themes/dark/img/files/big/ttf.png differ diff --git a/themes/dark/img/files/big/txt.png b/themes/dark/img/files/big/txt.png new file mode 100644 index 0000000..02489bd Binary files /dev/null and b/themes/dark/img/files/big/txt.png differ diff --git a/themes/dark/img/files/big/wav.png b/themes/dark/img/files/big/wav.png new file mode 100644 index 0000000..5f4c206 Binary files /dev/null and b/themes/dark/img/files/big/wav.png differ diff --git a/themes/dark/img/files/big/wma.png b/themes/dark/img/files/big/wma.png new file mode 100644 index 0000000..5f4c206 Binary files /dev/null and b/themes/dark/img/files/big/wma.png differ diff --git a/themes/dark/img/files/big/xls.png b/themes/dark/img/files/big/xls.png new file mode 100644 index 0000000..ddf069f Binary files /dev/null and b/themes/dark/img/files/big/xls.png differ diff --git a/themes/dark/img/files/big/xlsx.png b/themes/dark/img/files/big/xlsx.png new file mode 100644 index 0000000..ddf069f Binary files /dev/null and b/themes/dark/img/files/big/xlsx.png differ diff --git a/themes/dark/img/files/big/zip.png b/themes/dark/img/files/big/zip.png new file mode 100644 index 0000000..84eaa19 Binary files /dev/null and b/themes/dark/img/files/big/zip.png differ diff --git a/themes/dark/img/files/small/..png b/themes/dark/img/files/small/..png new file mode 100644 index 0000000..6b2545a Binary files /dev/null and b/themes/dark/img/files/small/..png differ diff --git a/themes/dark/img/files/small/.image.png b/themes/dark/img/files/small/.image.png new file mode 100644 index 0000000..8f07172 Binary files /dev/null and b/themes/dark/img/files/small/.image.png differ diff --git a/themes/dark/img/files/small/avi.png b/themes/dark/img/files/small/avi.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/dark/img/files/small/avi.png differ diff --git a/themes/dark/img/files/small/bat.png b/themes/dark/img/files/small/bat.png new file mode 100644 index 0000000..7b87884 Binary files /dev/null and b/themes/dark/img/files/small/bat.png differ diff --git a/themes/dark/img/files/small/bmp.png b/themes/dark/img/files/small/bmp.png new file mode 100644 index 0000000..8f07172 Binary files /dev/null and b/themes/dark/img/files/small/bmp.png differ diff --git a/themes/dark/img/files/small/bz2.png b/themes/dark/img/files/small/bz2.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/dark/img/files/small/bz2.png differ diff --git a/themes/dark/img/files/small/ccd.png b/themes/dark/img/files/small/ccd.png new file mode 100644 index 0000000..4e8d91d Binary files /dev/null and b/themes/dark/img/files/small/ccd.png differ diff --git a/themes/dark/img/files/small/cgi.png b/themes/dark/img/files/small/cgi.png new file mode 100644 index 0000000..7b87884 Binary files /dev/null and b/themes/dark/img/files/small/cgi.png differ diff --git a/themes/dark/img/files/small/com.png b/themes/dark/img/files/small/com.png new file mode 100644 index 0000000..2246f30 Binary files /dev/null and b/themes/dark/img/files/small/com.png differ diff --git a/themes/dark/img/files/small/csh.png b/themes/dark/img/files/small/csh.png new file mode 100644 index 0000000..7b87884 Binary files /dev/null and b/themes/dark/img/files/small/csh.png differ diff --git a/themes/dark/img/files/small/cue.png b/themes/dark/img/files/small/cue.png new file mode 100644 index 0000000..4e8d91d Binary files /dev/null and b/themes/dark/img/files/small/cue.png differ diff --git a/themes/dark/img/files/small/deb.png b/themes/dark/img/files/small/deb.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/dark/img/files/small/deb.png differ diff --git a/themes/dark/img/files/small/dll.png b/themes/dark/img/files/small/dll.png new file mode 100644 index 0000000..b1a2f1c Binary files /dev/null and b/themes/dark/img/files/small/dll.png differ diff --git a/themes/dark/img/files/small/doc.png b/themes/dark/img/files/small/doc.png new file mode 100644 index 0000000..069059d Binary files /dev/null and b/themes/dark/img/files/small/doc.png differ diff --git a/themes/dark/img/files/small/docx.png b/themes/dark/img/files/small/docx.png new file mode 100644 index 0000000..069059d Binary files /dev/null and b/themes/dark/img/files/small/docx.png differ diff --git a/themes/dark/img/files/small/exe.png b/themes/dark/img/files/small/exe.png new file mode 100644 index 0000000..2246f30 Binary files /dev/null and b/themes/dark/img/files/small/exe.png differ diff --git a/themes/dark/img/files/small/fla.png b/themes/dark/img/files/small/fla.png new file mode 100644 index 0000000..c50ec52 Binary files /dev/null and b/themes/dark/img/files/small/fla.png differ diff --git a/themes/dark/img/files/small/flv.png b/themes/dark/img/files/small/flv.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/dark/img/files/small/flv.png differ diff --git a/themes/dark/img/files/small/fon.png b/themes/dark/img/files/small/fon.png new file mode 100644 index 0000000..2303efe Binary files /dev/null and b/themes/dark/img/files/small/fon.png differ diff --git a/themes/dark/img/files/small/gif.png b/themes/dark/img/files/small/gif.png new file mode 100644 index 0000000..8f07172 Binary files /dev/null and b/themes/dark/img/files/small/gif.png differ diff --git a/themes/dark/img/files/small/gz.png b/themes/dark/img/files/small/gz.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/dark/img/files/small/gz.png differ diff --git a/themes/dark/img/files/small/htm.png b/themes/dark/img/files/small/htm.png new file mode 100644 index 0000000..cc2f1bf Binary files /dev/null and b/themes/dark/img/files/small/htm.png differ diff --git a/themes/dark/img/files/small/html.png b/themes/dark/img/files/small/html.png new file mode 100644 index 0000000..cc2f1bf Binary files /dev/null and b/themes/dark/img/files/small/html.png differ diff --git a/themes/dark/img/files/small/ini.png b/themes/dark/img/files/small/ini.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/dark/img/files/small/ini.png differ diff --git a/themes/dark/img/files/small/iso.png b/themes/dark/img/files/small/iso.png new file mode 100644 index 0000000..4e8d91d Binary files /dev/null and b/themes/dark/img/files/small/iso.png differ diff --git a/themes/dark/img/files/small/jar.png b/themes/dark/img/files/small/jar.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/dark/img/files/small/jar.png differ diff --git a/themes/dark/img/files/small/java.png b/themes/dark/img/files/small/java.png new file mode 100644 index 0000000..58fa8d0 Binary files /dev/null and b/themes/dark/img/files/small/java.png differ diff --git a/themes/dark/img/files/small/jpeg.png b/themes/dark/img/files/small/jpeg.png new file mode 100644 index 0000000..8f07172 Binary files /dev/null and b/themes/dark/img/files/small/jpeg.png differ diff --git a/themes/dark/img/files/small/jpg.png b/themes/dark/img/files/small/jpg.png new file mode 100644 index 0000000..8f07172 Binary files /dev/null and b/themes/dark/img/files/small/jpg.png differ diff --git a/themes/dark/img/files/small/js.png b/themes/dark/img/files/small/js.png new file mode 100644 index 0000000..db79975 Binary files /dev/null and b/themes/dark/img/files/small/js.png differ diff --git a/themes/dark/img/files/small/mds.png b/themes/dark/img/files/small/mds.png new file mode 100644 index 0000000..4e8d91d Binary files /dev/null and b/themes/dark/img/files/small/mds.png differ diff --git a/themes/dark/img/files/small/mdx.png b/themes/dark/img/files/small/mdx.png new file mode 100644 index 0000000..4e8d91d Binary files /dev/null and b/themes/dark/img/files/small/mdx.png differ diff --git a/themes/dark/img/files/small/mid.png b/themes/dark/img/files/small/mid.png new file mode 100644 index 0000000..1d08c50 Binary files /dev/null and b/themes/dark/img/files/small/mid.png differ diff --git a/themes/dark/img/files/small/midi.png b/themes/dark/img/files/small/midi.png new file mode 100644 index 0000000..1d08c50 Binary files /dev/null and b/themes/dark/img/files/small/midi.png differ diff --git a/themes/dark/img/files/small/mkv.png b/themes/dark/img/files/small/mkv.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/dark/img/files/small/mkv.png differ diff --git a/themes/dark/img/files/small/mov.png b/themes/dark/img/files/small/mov.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/dark/img/files/small/mov.png differ diff --git a/themes/dark/img/files/small/mp3.png b/themes/dark/img/files/small/mp3.png new file mode 100644 index 0000000..1d08c50 Binary files /dev/null and b/themes/dark/img/files/small/mp3.png differ diff --git a/themes/dark/img/files/small/mpeg.png b/themes/dark/img/files/small/mpeg.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/dark/img/files/small/mpeg.png differ diff --git a/themes/dark/img/files/small/mpg.png b/themes/dark/img/files/small/mpg.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/dark/img/files/small/mpg.png differ diff --git a/themes/dark/img/files/small/nfo.png b/themes/dark/img/files/small/nfo.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/dark/img/files/small/nfo.png differ diff --git a/themes/dark/img/files/small/nrg.png b/themes/dark/img/files/small/nrg.png new file mode 100644 index 0000000..4e8d91d Binary files /dev/null and b/themes/dark/img/files/small/nrg.png differ diff --git a/themes/dark/img/files/small/ogg.png b/themes/dark/img/files/small/ogg.png new file mode 100644 index 0000000..017b00d Binary files /dev/null and b/themes/dark/img/files/small/ogg.png differ diff --git a/themes/dark/img/files/small/pdf.png b/themes/dark/img/files/small/pdf.png new file mode 100644 index 0000000..9498f0f Binary files /dev/null and b/themes/dark/img/files/small/pdf.png differ diff --git a/themes/dark/img/files/small/php.png b/themes/dark/img/files/small/php.png new file mode 100644 index 0000000..d73934b Binary files /dev/null and b/themes/dark/img/files/small/php.png differ diff --git a/themes/dark/img/files/small/phps.png b/themes/dark/img/files/small/phps.png new file mode 100644 index 0000000..d73934b Binary files /dev/null and b/themes/dark/img/files/small/phps.png differ diff --git a/themes/dark/img/files/small/pl.png b/themes/dark/img/files/small/pl.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/dark/img/files/small/pl.png differ diff --git a/themes/dark/img/files/small/pm.png b/themes/dark/img/files/small/pm.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/dark/img/files/small/pm.png differ diff --git a/themes/dark/img/files/small/png.png b/themes/dark/img/files/small/png.png new file mode 100644 index 0000000..8f07172 Binary files /dev/null and b/themes/dark/img/files/small/png.png differ diff --git a/themes/dark/img/files/small/ppt.png b/themes/dark/img/files/small/ppt.png new file mode 100644 index 0000000..bdccbb6 Binary files /dev/null and b/themes/dark/img/files/small/ppt.png differ diff --git a/themes/dark/img/files/small/pptx.png b/themes/dark/img/files/small/pptx.png new file mode 100644 index 0000000..bdccbb6 Binary files /dev/null and b/themes/dark/img/files/small/pptx.png differ diff --git a/themes/dark/img/files/small/qt.png b/themes/dark/img/files/small/qt.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/dark/img/files/small/qt.png differ diff --git a/themes/dark/img/files/small/rpm.png b/themes/dark/img/files/small/rpm.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/dark/img/files/small/rpm.png differ diff --git a/themes/dark/img/files/small/rtf.png b/themes/dark/img/files/small/rtf.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/dark/img/files/small/rtf.png differ diff --git a/themes/dark/img/files/small/sh.png b/themes/dark/img/files/small/sh.png new file mode 100644 index 0000000..7b87884 Binary files /dev/null and b/themes/dark/img/files/small/sh.png differ diff --git a/themes/dark/img/files/small/srt.png b/themes/dark/img/files/small/srt.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/dark/img/files/small/srt.png differ diff --git a/themes/dark/img/files/small/sub.png b/themes/dark/img/files/small/sub.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/dark/img/files/small/sub.png differ diff --git a/themes/dark/img/files/small/swf.png b/themes/dark/img/files/small/swf.png new file mode 100644 index 0000000..80e05a3 Binary files /dev/null and b/themes/dark/img/files/small/swf.png differ diff --git a/themes/dark/img/files/small/tgz.png b/themes/dark/img/files/small/tgz.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/dark/img/files/small/tgz.png differ diff --git a/themes/dark/img/files/small/tif.png b/themes/dark/img/files/small/tif.png new file mode 100644 index 0000000..8f07172 Binary files /dev/null and b/themes/dark/img/files/small/tif.png differ diff --git a/themes/dark/img/files/small/tiff.png b/themes/dark/img/files/small/tiff.png new file mode 100644 index 0000000..8f07172 Binary files /dev/null and b/themes/dark/img/files/small/tiff.png differ diff --git a/themes/dark/img/files/small/torrent.png b/themes/dark/img/files/small/torrent.png new file mode 100644 index 0000000..55c04aa Binary files /dev/null and b/themes/dark/img/files/small/torrent.png differ diff --git a/themes/dark/img/files/small/ttf.png b/themes/dark/img/files/small/ttf.png new file mode 100644 index 0000000..ed3e0f6 Binary files /dev/null and b/themes/dark/img/files/small/ttf.png differ diff --git a/themes/dark/img/files/small/txt.png b/themes/dark/img/files/small/txt.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/dark/img/files/small/txt.png differ diff --git a/themes/dark/img/files/small/wav.png b/themes/dark/img/files/small/wav.png new file mode 100644 index 0000000..1d08c50 Binary files /dev/null and b/themes/dark/img/files/small/wav.png differ diff --git a/themes/dark/img/files/small/wma.png b/themes/dark/img/files/small/wma.png new file mode 100644 index 0000000..1d08c50 Binary files /dev/null and b/themes/dark/img/files/small/wma.png differ diff --git a/themes/dark/img/files/small/xls.png b/themes/dark/img/files/small/xls.png new file mode 100644 index 0000000..573d141 Binary files /dev/null and b/themes/dark/img/files/small/xls.png differ diff --git a/themes/dark/img/files/small/xlsx.png b/themes/dark/img/files/small/xlsx.png new file mode 100644 index 0000000..573d141 Binary files /dev/null and b/themes/dark/img/files/small/xlsx.png differ diff --git a/themes/dark/img/files/small/zip.png b/themes/dark/img/files/small/zip.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/dark/img/files/small/zip.png differ diff --git a/themes/dark/img/icons/about.png b/themes/dark/img/icons/about.png new file mode 100644 index 0000000..fa9a60b Binary files /dev/null and b/themes/dark/img/icons/about.png differ diff --git a/themes/dark/img/icons/clipboard-add.png b/themes/dark/img/icons/clipboard-add.png new file mode 100644 index 0000000..2492449 Binary files /dev/null and b/themes/dark/img/icons/clipboard-add.png differ diff --git a/themes/dark/img/icons/clipboard-clear.png b/themes/dark/img/icons/clipboard-clear.png new file mode 100644 index 0000000..b689cff Binary files /dev/null and b/themes/dark/img/icons/clipboard-clear.png differ diff --git a/themes/dark/img/icons/clipboard.png b/themes/dark/img/icons/clipboard.png new file mode 100644 index 0000000..0cf8887 Binary files /dev/null and b/themes/dark/img/icons/clipboard.png differ diff --git a/themes/dark/img/icons/close-clicked.png b/themes/dark/img/icons/close-clicked.png new file mode 100644 index 0000000..fa39b1c Binary files /dev/null and b/themes/dark/img/icons/close-clicked.png differ diff --git a/themes/dark/img/icons/close-hover.png b/themes/dark/img/icons/close-hover.png new file mode 100644 index 0000000..cd7d766 Binary files /dev/null and b/themes/dark/img/icons/close-hover.png differ diff --git a/themes/dark/img/icons/close.png b/themes/dark/img/icons/close.png new file mode 100644 index 0000000..151de43 Binary files /dev/null and b/themes/dark/img/icons/close.png differ diff --git a/themes/dark/img/icons/copy.png b/themes/dark/img/icons/copy.png new file mode 100644 index 0000000..ccfa6bb Binary files /dev/null and b/themes/dark/img/icons/copy.png differ diff --git a/themes/dark/img/icons/delete.png b/themes/dark/img/icons/delete.png new file mode 100644 index 0000000..6b9fa6d Binary files /dev/null and b/themes/dark/img/icons/delete.png differ diff --git a/themes/dark/img/icons/download.png b/themes/dark/img/icons/download.png new file mode 100644 index 0000000..8d5209b Binary files /dev/null and b/themes/dark/img/icons/download.png differ diff --git a/themes/dark/img/icons/folder-new.png b/themes/dark/img/icons/folder-new.png new file mode 100644 index 0000000..c665ac6 Binary files /dev/null and b/themes/dark/img/icons/folder-new.png differ diff --git a/themes/dark/img/icons/maximize.png b/themes/dark/img/icons/maximize.png new file mode 100644 index 0000000..9d81b7f Binary files /dev/null and b/themes/dark/img/icons/maximize.png differ diff --git a/themes/dark/img/icons/move.png b/themes/dark/img/icons/move.png new file mode 100644 index 0000000..20462af Binary files /dev/null and b/themes/dark/img/icons/move.png differ diff --git a/themes/dark/img/icons/refresh.png b/themes/dark/img/icons/refresh.png new file mode 100644 index 0000000..dda7132 Binary files /dev/null and b/themes/dark/img/icons/refresh.png differ diff --git a/themes/dark/img/icons/rename.png b/themes/dark/img/icons/rename.png new file mode 100644 index 0000000..3cfe301 Binary files /dev/null and b/themes/dark/img/icons/rename.png differ diff --git a/themes/dark/img/icons/select.png b/themes/dark/img/icons/select.png new file mode 100644 index 0000000..2414885 Binary files /dev/null and b/themes/dark/img/icons/select.png differ diff --git a/themes/dark/img/icons/settings.png b/themes/dark/img/icons/settings.png new file mode 100644 index 0000000..efc599d Binary files /dev/null and b/themes/dark/img/icons/settings.png differ diff --git a/themes/dark/img/icons/upload.png b/themes/dark/img/icons/upload.png new file mode 100644 index 0000000..4e4f5b8 Binary files /dev/null and b/themes/dark/img/icons/upload.png differ diff --git a/themes/dark/img/icons/view.png b/themes/dark/img/icons/view.png new file mode 100644 index 0000000..7a5ae62 Binary files /dev/null and b/themes/dark/img/icons/view.png differ diff --git a/themes/dark/img/kcf_logo.png b/themes/dark/img/kcf_logo.png new file mode 100644 index 0000000..e829043 Binary files /dev/null and b/themes/dark/img/kcf_logo.png differ diff --git a/themes/dark/img/loading.gif b/themes/dark/img/loading.gif new file mode 100644 index 0000000..c085499 Binary files /dev/null and b/themes/dark/img/loading.gif differ diff --git a/themes/dark/img/question.png b/themes/dark/img/question.png new file mode 100644 index 0000000..09dc996 Binary files /dev/null and b/themes/dark/img/question.png differ diff --git a/themes/dark/img/tree/denied.png b/themes/dark/img/tree/denied.png new file mode 100644 index 0000000..a9d5f4d Binary files /dev/null and b/themes/dark/img/tree/denied.png differ diff --git a/themes/dark/img/tree/folder.png b/themes/dark/img/tree/folder.png new file mode 100644 index 0000000..260b415 Binary files /dev/null and b/themes/dark/img/tree/folder.png differ diff --git a/themes/dark/img/tree/folder_current.png b/themes/dark/img/tree/folder_current.png new file mode 100644 index 0000000..dbaa6ee Binary files /dev/null and b/themes/dark/img/tree/folder_current.png differ diff --git a/themes/dark/img/tree/minus.png b/themes/dark/img/tree/minus.png new file mode 100644 index 0000000..f783a6f Binary files /dev/null and b/themes/dark/img/tree/minus.png differ diff --git a/themes/dark/img/tree/plus.png b/themes/dark/img/tree/plus.png new file mode 100644 index 0000000..79c5ff7 Binary files /dev/null and b/themes/dark/img/tree/plus.png differ diff --git a/themes/dark/init.js b/themes/dark/init.js new file mode 100644 index 0000000..dc64b6d --- /dev/null +++ b/themes/dark/init.js @@ -0,0 +1,4 @@ +// If this file exists in theme directory, it will be loaded in section + +var imgLoading = new Image(); +imgLoading.src = 'themes/dark/img/loading.gif'; diff --git a/themes/dark/style.css b/themes/dark/style.css new file mode 100644 index 0000000..63adb77 --- /dev/null +++ b/themes/dark/style.css @@ -0,0 +1,560 @@ +body { + background: #3B4148; + color: #ffffff; +} + +input { + margin: 0; +} + +input[type="radio"], input[type="checkbox"], label { + cursor: pointer; +} + +input[type="text"] { + border: 1px solid #3B4148; + background: #fff; + padding: 2px; + margin: 0; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + outline-width: 0; +} + +input[type="text"]:hover { + border-color: #69727B; +} + +input[type="text"]:focus { + border-color: #69727B; + box-shadow: 0 0 3px rgba(0,0,0,1); + -moz-box-shadow: 0 0 3px rgba(0,0,0,1); + -webkit-box-shadow: 0 0 3px rgba(0,0,0,1); +} + +input[type="button"], input[type="submit"], input[type="reset"], button { + outline-width: 0; + background: #edeceb; + border: 1px solid #fff; + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + box-shadow: 0 1px 1px rgba(0,0,0,0.6); + -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.6); + -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.6); + color: #222; +} + +input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover, button:hover { + box-shadow: 0 0 1px rgba(0,0,0,0.6); + -moz-box-shadow: 0 0 1px rgba(0,0,0,0.6); + -webkit-box-shadow: 0 0 1px rgba(0,0,0,0.6); +} + +input[type="button"]:focus, input[type="submit"]:focus, input[type="reset"]:focus, button:focus { + box-shadow: 0 0 2px rgba(54,135,226,1); + -moz-box-shadow: 0 0 2px rgba(255,255,255,1); + -webkit-box-shadow: 0 0 2px rgba(54,135,226,1); +} + +fieldset { + margin: 0 5px 5px 0px; + padding: 5px; + border: 1px solid #69727B; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + cursor: default; +} + +fieldset td { + white-space: nowrap; +} + +legend { + margin: 0; + padding:0 3px; + font-weight: bold; +} + +#folders { + margin: 4px 4px 0 4px; + background: #566068; + border: 1px solid #69727B; + border-radius: 6px; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; +} + +#files { + float: left; + margin: 0 4px 0 0; + background: #566068; + border: 1px solid #69727B; + border-radius: 6px; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; +} + +#files.drag { + background: #69727B; +} + +#topic { + padding-left: 12px; +} + + +div.folder { + padding-top: 2px; + margin-top: 4px; + white-space: nowrap; +} + +div.folder a { + text-decoration: none; + cursor: default; + outline: none; + color: #ffffff; +} + +span.folder { + padding: 2px 3px 2px 23px; + outline: none; + background: no-repeat 3px center; + cursor: pointer; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border: 1px solid #566068; +} + +span.brace { + width: 16px; + height: 16px; + outline: none; +} + +span.current { + background-image: url(img/tree/folder_current.png); + background-color: #454C55; + border-color: #3B4148; + color: #fff; +} + +span.regular { + background-image: url(img/tree/folder.png); + background-color: #69727B; +} + +span.regular:hover, span.context { + background-color: #9199A1; + border-color: #69727B +} + +span.opened { + background-image: url(img/tree/minus.png); +} + +span.closed { + background-image: url(img/tree/plus.png); +} + +span.denied { + background-image: url(img/tree/denied.png); +} + +div.file { + padding: 4px; + margin: 3px; + border: 1px solid #3B4148; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + background: #69727B; + color: #000000; +} + +div.file:hover { + background: #9199A1; + border-color: #3B4148; +} + +div.file .name { + margin-top: 4px; + font-weight: normal; + height: 16px; + overflow: hidden; +} + +div.file .time { + font-size: 10px; +} + +div.file .size { + font-size: 10px; +} + +#files div.selected, +#files div.selected:hover { + background-color: #3B4148; + border-color: #69727B; + color: #ffffff; +} + +tr.file > td { + padding: 3px 4px; + background-color: #69727B +} + +tr.file:hover > td { + background-color: #9199A1; +} + +tr.selected > td, +tr.selected:hover > td { + background-color: #3B4148; + color: #fff; +} + +#toolbar { + padding: 5px 0; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + +#toolbar a { + color: #ffffff; + padding: 4px 4px 4px 24px; + margin-right: 5px; + border: 1px solid transparent; + background: no-repeat 2px center; + outline: none; + display: block; + float: left; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; +} + +#toolbar a:hover, +#toolbar a.hover { + background-color: #566068; + border-color: #69727B; + color: #ffffff; +} + +#toolbar a.selected { + background-color: #566068; + border-color: #69727B; +} + +#toolbar a[href="kcact:upload"] { + background-image: url(img/icons/upload.png); +} + +#toolbar a[href="kcact:refresh"] { + background-image: url(img/icons/refresh.png); +} + +#toolbar a[href="kcact:settings"] { + background-image: url(img/icons/settings.png); +} + +#toolbar a[href="kcact:about"] { + background-image: url(img/icons/about.png); +} + +#toolbar a[href="kcact:maximize"] { + background-image: url(img/icons/maximize.png); +} + +#settings { + /*background: #e0dfde;*/ +} + +.box, #loading, #alert { + padding: 5px; + border: 1px solid #69727B; + background: #566068; + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; +} + +.box, #alert { + padding: 8px; + border-color: #69727B; + -moz-box-shadow: 0 0 8px rgba(0,0,0,1); + -webkit-box-shadow: 0 0 8px rgba(0,0,0,1); + box-shadow: 0 0 8px rgba(0,0,0,1); +} + +#loading { + background-image: url(img/loading.gif); + font-weight: normal; + margin-right: 4px; + color: #ffffff; +} + +#alert div.message { + padding: 0 0 0 40px; +} + +#alert { + background: #566068 url(img/cross.png) no-repeat 8px 29px; +} + +#dialog div.question { + padding: 0 0 0 40px; + background: transparent url(img/question.png) no-repeat 0 0; +} + +#alert div.ok, #dialog div.buttons { + padding-top: 5px; + text-align: right; +} + +.menu { + padding: 2px; + border: 1px solid #69727B; + background: #3B4148; + opacity: 0.95; +} + +.menu a { + text-decoration: none; + padding: 3px 3px 3px 22px; + background: no-repeat 2px center; + color: #ffffff; + margin: 0; + background-color: #3B4148; + outline: none; + border: 1px solid transparent; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; +} + +.menu .delimiter { + border-top: 1px solid #69727B; + padding-bottom: 3px; + margin: 3px 2px 0 2px; +} + +.menu a:hover { + background-color: #566068; + border-color: #69727B; +} + +.menu a[href="kcact:refresh"] { + background-image: url(img/icons/refresh.png); +} + +.menu a[href="kcact:mkdir"] { + background-image: url(img/icons/folder-new.png); +} + +.menu a[href="kcact:mvdir"], .menu a[href="kcact:mv"] { + background-image: url(img/icons/rename.png); +} + +.menu a[href="kcact:rmdir"], .menu a[href="kcact:rm"], .menu a[href="kcact:rmcbd"] { + background-image: url(img/icons/delete.png); +} + +.menu a[href="kcact:clpbrdadd"] { + background-image: url(img/icons/clipboard-add.png); +} + +.menu a[href="kcact:pick"], .menu a[href="kcact:pick_thumb"] { + background-image: url(img/icons/select.png); +} + +.menu a[href="kcact:download"] { + background-image: url(img/icons/download.png); +} + +.menu a[href="kcact:view"] { + background-image: url(img/icons/view.png); +} + +.menu a[href="kcact:cpcbd"] { + background-image: url(img/icons/copy.png); +} + +.menu a[href="kcact:mvcbd"] { + background-image: url(img/icons/move.png); +} + +.menu a[href="kcact:clrcbd"] { + background-image: url(img/icons/clipboard-clear.png); +} + +a.denied { + color: #666; + opacity: 0.5; + filter: alpha(opacity:50); + cursor: default; +} + +a.denied:hover { + background-color: #e4e3e2; + border-color: transparent; +} + +#dialog { + -moz-box-shadow: 0 0 5px rgba(0,0,0,0.5); + -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.5); + box-shadow: 0 0 5px rgba(0,0,0,0.5); +} + +#dialog input[type="text"] { + margin: 5px 0; + width: 200px; +} + +#dialog div.slideshow { + border: 1px solid #000; + padding: 5px 5px 3px 5px; + background: #000; + -moz-box-shadow: 0 0 8px rgba(0,0,0,1); + -webkit-box-shadow: 0 0 8px rgba(0,0,0,1); + box-shadow: 0 0 8px rgba(0,0,0,1); +} + +#dialog img { + border: 1px solid #3687e2; + background: url(img/bg_transparent.png); +} + +#loadingDirs { + padding: 5px 0 1px 24px; +} + +.about { + text-align: center; + padding: 6px; +} + +.about div.head { + font-weight: bold; + font-size: 12px; + padding: 3px 0 8px 0; +} + +.about div.head a { + background: url(img/kcf_logo.png) no-repeat left center; + padding: 0 0 0 27px; + font-size: 17px; +} + +.about a { + text-decoration: none; + color: #ffffff; +} + +.about a:hover { + text-decoration: underline; +} + +.about button { + margin-top: 8px; +} + +#clipboard { + padding: 0 4px 1px 0; +} + +#clipboard div { + background: url(img/icons/clipboard.png) no-repeat center center; + border: 1px solid transparent; + padding: 1px; + cursor: pointer; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; +} + +#clipboard div:hover { + background-color: #bfbdbb; + border-color: #a9a59f; +} + +#clipboard.selected div, #clipboard.selected div:hover { + background-color: #c9c7c4; + border-color: #3687e2; +} + +#shadow {background: #000000;} + +button, input[type="submit"], input[type="button"] { +color: #ffffff; +background: #3B4148; +border: 1px solid #69727B; +padding: 3px 5px; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px;} +#checkver { + padding-bottom: 8px; +} +#checkver > span { + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; +} +#checkver > span.loading { + background: url(img/loading.gif); +} + +#checkver span { + padding: 2px; +} + +#checkver a { + font-weight: normal; + padding: 3px 3px 3px 20px; + background: url(img/icons/download.png) no-repeat left center; +} + +div.title { + background: #1a1d1f; + overflow: auto; + text-align: center; + margin: -5px -5px 5px -5px; + padding-left: 19px; + padding-bottom: 2px; + padding-top: 2px; + font-weight: bold; + cursor: move; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + box-shadow: 0 0 1px rgba(0,0,0,0.6); + -moz-box-shadow: 0 0 1px rgba(0,0,0,0.6); + -webkit-box-shadow: 0 0 1px rgba(0,0,0,0.6); +} + +.about div.title { + cursor: default; +} + +span.close, span.clicked { + float: right; + width: 19px; + height: 20px; + background: url(img/icons/close.png) no-repeat left 2px; + margin-top: -3px; + cursor: default; +} + +span.close:hover { + background-image: url(img/icons/close-hover.png); +} + +span.clicked:hover { + background-image: url(img/icons/close-clicked.png); +} \ No newline at end of file diff --git a/themes/oxygen/about.txt b/themes/oxygen/about.txt new file mode 100644 index 0000000..156218e --- /dev/null +++ b/themes/oxygen/about.txt @@ -0,0 +1,11 @@ +This folder contains files for designing Oxygen visual theme for KCFinder +Icons and color schemes are taken from default KDE4 visual theme +http://www.kde.org + +Theme Details: + +Project: KCFinder - http://kcfinder.sunhater.com +Version: 2.52-dev +Author: Pavel Tzonkov +Licenses: GPLv2 - http://www.opensource.org/licenses/gpl-2.0.php + LGPLv2 - http://www.opensource.org/licenses/lgpl-2.1.php diff --git a/themes/oxygen/img/alert.png b/themes/oxygen/img/alert.png new file mode 100644 index 0000000..b2e019d Binary files /dev/null and b/themes/oxygen/img/alert.png differ diff --git a/themes/oxygen/img/bg_transparent.png b/themes/oxygen/img/bg_transparent.png new file mode 100644 index 0000000..3200632 Binary files /dev/null and b/themes/oxygen/img/bg_transparent.png differ diff --git a/themes/oxygen/img/confirm.png b/themes/oxygen/img/confirm.png new file mode 100644 index 0000000..1e9a1cd Binary files /dev/null and b/themes/oxygen/img/confirm.png differ diff --git a/themes/oxygen/img/files/big/..png b/themes/oxygen/img/files/big/..png new file mode 100644 index 0000000..aaff484 Binary files /dev/null and b/themes/oxygen/img/files/big/..png differ diff --git a/themes/oxygen/img/files/big/.image.png b/themes/oxygen/img/files/big/.image.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/oxygen/img/files/big/.image.png differ diff --git a/themes/oxygen/img/files/big/avi.png b/themes/oxygen/img/files/big/avi.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/oxygen/img/files/big/avi.png differ diff --git a/themes/oxygen/img/files/big/bat.png b/themes/oxygen/img/files/big/bat.png new file mode 100644 index 0000000..eaa3dc9 Binary files /dev/null and b/themes/oxygen/img/files/big/bat.png differ diff --git a/themes/oxygen/img/files/big/bmp.png b/themes/oxygen/img/files/big/bmp.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/oxygen/img/files/big/bmp.png differ diff --git a/themes/oxygen/img/files/big/bz2.png b/themes/oxygen/img/files/big/bz2.png new file mode 100644 index 0000000..84eaa19 Binary files /dev/null and b/themes/oxygen/img/files/big/bz2.png differ diff --git a/themes/oxygen/img/files/big/ccd.png b/themes/oxygen/img/files/big/ccd.png new file mode 100644 index 0000000..aa9f4a2 Binary files /dev/null and b/themes/oxygen/img/files/big/ccd.png differ diff --git a/themes/oxygen/img/files/big/cgi.png b/themes/oxygen/img/files/big/cgi.png new file mode 100644 index 0000000..eaa3dc9 Binary files /dev/null and b/themes/oxygen/img/files/big/cgi.png differ diff --git a/themes/oxygen/img/files/big/com.png b/themes/oxygen/img/files/big/com.png new file mode 100644 index 0000000..427a328 Binary files /dev/null and b/themes/oxygen/img/files/big/com.png differ diff --git a/themes/oxygen/img/files/big/csh.png b/themes/oxygen/img/files/big/csh.png new file mode 100644 index 0000000..eaa3dc9 Binary files /dev/null and b/themes/oxygen/img/files/big/csh.png differ diff --git a/themes/oxygen/img/files/big/cue.png b/themes/oxygen/img/files/big/cue.png new file mode 100644 index 0000000..aa9f4a2 Binary files /dev/null and b/themes/oxygen/img/files/big/cue.png differ diff --git a/themes/oxygen/img/files/big/deb.png b/themes/oxygen/img/files/big/deb.png new file mode 100644 index 0000000..14ce82f Binary files /dev/null and b/themes/oxygen/img/files/big/deb.png differ diff --git a/themes/oxygen/img/files/big/dll.png b/themes/oxygen/img/files/big/dll.png new file mode 100644 index 0000000..9e03a48 Binary files /dev/null and b/themes/oxygen/img/files/big/dll.png differ diff --git a/themes/oxygen/img/files/big/doc.png b/themes/oxygen/img/files/big/doc.png new file mode 100644 index 0000000..b544dcc Binary files /dev/null and b/themes/oxygen/img/files/big/doc.png differ diff --git a/themes/oxygen/img/files/big/docx.png b/themes/oxygen/img/files/big/docx.png new file mode 100644 index 0000000..b544dcc Binary files /dev/null and b/themes/oxygen/img/files/big/docx.png differ diff --git a/themes/oxygen/img/files/big/exe.png b/themes/oxygen/img/files/big/exe.png new file mode 100644 index 0000000..427a328 Binary files /dev/null and b/themes/oxygen/img/files/big/exe.png differ diff --git a/themes/oxygen/img/files/big/fla.png b/themes/oxygen/img/files/big/fla.png new file mode 100644 index 0000000..5e7c751 Binary files /dev/null and b/themes/oxygen/img/files/big/fla.png differ diff --git a/themes/oxygen/img/files/big/flv.png b/themes/oxygen/img/files/big/flv.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/oxygen/img/files/big/flv.png differ diff --git a/themes/oxygen/img/files/big/fon.png b/themes/oxygen/img/files/big/fon.png new file mode 100644 index 0000000..3815dac Binary files /dev/null and b/themes/oxygen/img/files/big/fon.png differ diff --git a/themes/oxygen/img/files/big/gif.png b/themes/oxygen/img/files/big/gif.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/oxygen/img/files/big/gif.png differ diff --git a/themes/oxygen/img/files/big/gz.png b/themes/oxygen/img/files/big/gz.png new file mode 100644 index 0000000..84eaa19 Binary files /dev/null and b/themes/oxygen/img/files/big/gz.png differ diff --git a/themes/oxygen/img/files/big/htm.png b/themes/oxygen/img/files/big/htm.png new file mode 100644 index 0000000..4995b6b Binary files /dev/null and b/themes/oxygen/img/files/big/htm.png differ diff --git a/themes/oxygen/img/files/big/html.png b/themes/oxygen/img/files/big/html.png new file mode 100644 index 0000000..4995b6b Binary files /dev/null and b/themes/oxygen/img/files/big/html.png differ diff --git a/themes/oxygen/img/files/big/ini.png b/themes/oxygen/img/files/big/ini.png new file mode 100644 index 0000000..02489bd Binary files /dev/null and b/themes/oxygen/img/files/big/ini.png differ diff --git a/themes/oxygen/img/files/big/iso.png b/themes/oxygen/img/files/big/iso.png new file mode 100644 index 0000000..aa9f4a2 Binary files /dev/null and b/themes/oxygen/img/files/big/iso.png differ diff --git a/themes/oxygen/img/files/big/jar.png b/themes/oxygen/img/files/big/jar.png new file mode 100644 index 0000000..cef54cd Binary files /dev/null and b/themes/oxygen/img/files/big/jar.png differ diff --git a/themes/oxygen/img/files/big/java.png b/themes/oxygen/img/files/big/java.png new file mode 100644 index 0000000..351b5db Binary files /dev/null and b/themes/oxygen/img/files/big/java.png differ diff --git a/themes/oxygen/img/files/big/jpeg.png b/themes/oxygen/img/files/big/jpeg.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/oxygen/img/files/big/jpeg.png differ diff --git a/themes/oxygen/img/files/big/jpg.png b/themes/oxygen/img/files/big/jpg.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/oxygen/img/files/big/jpg.png differ diff --git a/themes/oxygen/img/files/big/js.png b/themes/oxygen/img/files/big/js.png new file mode 100644 index 0000000..fcb1f8f Binary files /dev/null and b/themes/oxygen/img/files/big/js.png differ diff --git a/themes/oxygen/img/files/big/mds.png b/themes/oxygen/img/files/big/mds.png new file mode 100644 index 0000000..aa9f4a2 Binary files /dev/null and b/themes/oxygen/img/files/big/mds.png differ diff --git a/themes/oxygen/img/files/big/mdx.png b/themes/oxygen/img/files/big/mdx.png new file mode 100644 index 0000000..aa9f4a2 Binary files /dev/null and b/themes/oxygen/img/files/big/mdx.png differ diff --git a/themes/oxygen/img/files/big/mid.png b/themes/oxygen/img/files/big/mid.png new file mode 100644 index 0000000..6187bc5 Binary files /dev/null and b/themes/oxygen/img/files/big/mid.png differ diff --git a/themes/oxygen/img/files/big/midi.png b/themes/oxygen/img/files/big/midi.png new file mode 100644 index 0000000..6187bc5 Binary files /dev/null and b/themes/oxygen/img/files/big/midi.png differ diff --git a/themes/oxygen/img/files/big/mkv.png b/themes/oxygen/img/files/big/mkv.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/oxygen/img/files/big/mkv.png differ diff --git a/themes/oxygen/img/files/big/mov.png b/themes/oxygen/img/files/big/mov.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/oxygen/img/files/big/mov.png differ diff --git a/themes/oxygen/img/files/big/mp3.png b/themes/oxygen/img/files/big/mp3.png new file mode 100644 index 0000000..5f4c206 Binary files /dev/null and b/themes/oxygen/img/files/big/mp3.png differ diff --git a/themes/oxygen/img/files/big/mpeg.png b/themes/oxygen/img/files/big/mpeg.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/oxygen/img/files/big/mpeg.png differ diff --git a/themes/oxygen/img/files/big/mpg.png b/themes/oxygen/img/files/big/mpg.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/oxygen/img/files/big/mpg.png differ diff --git a/themes/oxygen/img/files/big/nfo.png b/themes/oxygen/img/files/big/nfo.png new file mode 100644 index 0000000..02489bd Binary files /dev/null and b/themes/oxygen/img/files/big/nfo.png differ diff --git a/themes/oxygen/img/files/big/nrg.png b/themes/oxygen/img/files/big/nrg.png new file mode 100644 index 0000000..aa9f4a2 Binary files /dev/null and b/themes/oxygen/img/files/big/nrg.png differ diff --git a/themes/oxygen/img/files/big/ogg.png b/themes/oxygen/img/files/big/ogg.png new file mode 100644 index 0000000..5f4c206 Binary files /dev/null and b/themes/oxygen/img/files/big/ogg.png differ diff --git a/themes/oxygen/img/files/big/pdf.png b/themes/oxygen/img/files/big/pdf.png new file mode 100644 index 0000000..49cf5e3 Binary files /dev/null and b/themes/oxygen/img/files/big/pdf.png differ diff --git a/themes/oxygen/img/files/big/php.png b/themes/oxygen/img/files/big/php.png new file mode 100644 index 0000000..588bef8 Binary files /dev/null and b/themes/oxygen/img/files/big/php.png differ diff --git a/themes/oxygen/img/files/big/phps.png b/themes/oxygen/img/files/big/phps.png new file mode 100644 index 0000000..588bef8 Binary files /dev/null and b/themes/oxygen/img/files/big/phps.png differ diff --git a/themes/oxygen/img/files/big/pl.png b/themes/oxygen/img/files/big/pl.png new file mode 100644 index 0000000..d3468a5 Binary files /dev/null and b/themes/oxygen/img/files/big/pl.png differ diff --git a/themes/oxygen/img/files/big/pm.png b/themes/oxygen/img/files/big/pm.png new file mode 100644 index 0000000..d3468a5 Binary files /dev/null and b/themes/oxygen/img/files/big/pm.png differ diff --git a/themes/oxygen/img/files/big/png.png b/themes/oxygen/img/files/big/png.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/oxygen/img/files/big/png.png differ diff --git a/themes/oxygen/img/files/big/ppt.png b/themes/oxygen/img/files/big/ppt.png new file mode 100644 index 0000000..ae13c8a Binary files /dev/null and b/themes/oxygen/img/files/big/ppt.png differ diff --git a/themes/oxygen/img/files/big/pptx.png b/themes/oxygen/img/files/big/pptx.png new file mode 100644 index 0000000..ae13c8a Binary files /dev/null and b/themes/oxygen/img/files/big/pptx.png differ diff --git a/themes/oxygen/img/files/big/psd.png b/themes/oxygen/img/files/big/psd.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/oxygen/img/files/big/psd.png differ diff --git a/themes/oxygen/img/files/big/qt.png b/themes/oxygen/img/files/big/qt.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/oxygen/img/files/big/qt.png differ diff --git a/themes/oxygen/img/files/big/rar.png b/themes/oxygen/img/files/big/rar.png new file mode 100644 index 0000000..84eaa19 Binary files /dev/null and b/themes/oxygen/img/files/big/rar.png differ diff --git a/themes/oxygen/img/files/big/rpm.png b/themes/oxygen/img/files/big/rpm.png new file mode 100644 index 0000000..0708eef Binary files /dev/null and b/themes/oxygen/img/files/big/rpm.png differ diff --git a/themes/oxygen/img/files/big/rtf.png b/themes/oxygen/img/files/big/rtf.png new file mode 100644 index 0000000..02489bd Binary files /dev/null and b/themes/oxygen/img/files/big/rtf.png differ diff --git a/themes/oxygen/img/files/big/sh.png b/themes/oxygen/img/files/big/sh.png new file mode 100644 index 0000000..eaa3dc9 Binary files /dev/null and b/themes/oxygen/img/files/big/sh.png differ diff --git a/themes/oxygen/img/files/big/srt.png b/themes/oxygen/img/files/big/srt.png new file mode 100644 index 0000000..02489bd Binary files /dev/null and b/themes/oxygen/img/files/big/srt.png differ diff --git a/themes/oxygen/img/files/big/sub.png b/themes/oxygen/img/files/big/sub.png new file mode 100644 index 0000000..02489bd Binary files /dev/null and b/themes/oxygen/img/files/big/sub.png differ diff --git a/themes/oxygen/img/files/big/swf.png b/themes/oxygen/img/files/big/swf.png new file mode 100644 index 0000000..45a8208 Binary files /dev/null and b/themes/oxygen/img/files/big/swf.png differ diff --git a/themes/oxygen/img/files/big/tgz.png b/themes/oxygen/img/files/big/tgz.png new file mode 100644 index 0000000..d7e7b5b Binary files /dev/null and b/themes/oxygen/img/files/big/tgz.png differ diff --git a/themes/oxygen/img/files/big/tif.png b/themes/oxygen/img/files/big/tif.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/oxygen/img/files/big/tif.png differ diff --git a/themes/oxygen/img/files/big/tiff.png b/themes/oxygen/img/files/big/tiff.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/oxygen/img/files/big/tiff.png differ diff --git a/themes/oxygen/img/files/big/torrent.png b/themes/oxygen/img/files/big/torrent.png new file mode 100644 index 0000000..0bffac4 Binary files /dev/null and b/themes/oxygen/img/files/big/torrent.png differ diff --git a/themes/oxygen/img/files/big/ttf.png b/themes/oxygen/img/files/big/ttf.png new file mode 100644 index 0000000..4f43e19 Binary files /dev/null and b/themes/oxygen/img/files/big/ttf.png differ diff --git a/themes/oxygen/img/files/big/txt.png b/themes/oxygen/img/files/big/txt.png new file mode 100644 index 0000000..02489bd Binary files /dev/null and b/themes/oxygen/img/files/big/txt.png differ diff --git a/themes/oxygen/img/files/big/wav.png b/themes/oxygen/img/files/big/wav.png new file mode 100644 index 0000000..5f4c206 Binary files /dev/null and b/themes/oxygen/img/files/big/wav.png differ diff --git a/themes/oxygen/img/files/big/wma.png b/themes/oxygen/img/files/big/wma.png new file mode 100644 index 0000000..5f4c206 Binary files /dev/null and b/themes/oxygen/img/files/big/wma.png differ diff --git a/themes/oxygen/img/files/big/xls.png b/themes/oxygen/img/files/big/xls.png new file mode 100644 index 0000000..ddf069f Binary files /dev/null and b/themes/oxygen/img/files/big/xls.png differ diff --git a/themes/oxygen/img/files/big/xlsx.png b/themes/oxygen/img/files/big/xlsx.png new file mode 100644 index 0000000..ddf069f Binary files /dev/null and b/themes/oxygen/img/files/big/xlsx.png differ diff --git a/themes/oxygen/img/files/big/zip.png b/themes/oxygen/img/files/big/zip.png new file mode 100644 index 0000000..84eaa19 Binary files /dev/null and b/themes/oxygen/img/files/big/zip.png differ diff --git a/themes/oxygen/img/files/small/..png b/themes/oxygen/img/files/small/..png new file mode 100644 index 0000000..67f4c5f Binary files /dev/null and b/themes/oxygen/img/files/small/..png differ diff --git a/themes/oxygen/img/files/small/.image.png b/themes/oxygen/img/files/small/.image.png new file mode 100644 index 0000000..638dee6 Binary files /dev/null and b/themes/oxygen/img/files/small/.image.png differ diff --git a/themes/oxygen/img/files/small/avi.png b/themes/oxygen/img/files/small/avi.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/oxygen/img/files/small/avi.png differ diff --git a/themes/oxygen/img/files/small/bat.png b/themes/oxygen/img/files/small/bat.png new file mode 100644 index 0000000..7b87884 Binary files /dev/null and b/themes/oxygen/img/files/small/bat.png differ diff --git a/themes/oxygen/img/files/small/bmp.png b/themes/oxygen/img/files/small/bmp.png new file mode 100644 index 0000000..638dee6 Binary files /dev/null and b/themes/oxygen/img/files/small/bmp.png differ diff --git a/themes/oxygen/img/files/small/bz2.png b/themes/oxygen/img/files/small/bz2.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/oxygen/img/files/small/bz2.png differ diff --git a/themes/oxygen/img/files/small/ccd.png b/themes/oxygen/img/files/small/ccd.png new file mode 100644 index 0000000..4e8d91d Binary files /dev/null and b/themes/oxygen/img/files/small/ccd.png differ diff --git a/themes/oxygen/img/files/small/cgi.png b/themes/oxygen/img/files/small/cgi.png new file mode 100644 index 0000000..7b87884 Binary files /dev/null and b/themes/oxygen/img/files/small/cgi.png differ diff --git a/themes/oxygen/img/files/small/com.png b/themes/oxygen/img/files/small/com.png new file mode 100644 index 0000000..2246f30 Binary files /dev/null and b/themes/oxygen/img/files/small/com.png differ diff --git a/themes/oxygen/img/files/small/csh.png b/themes/oxygen/img/files/small/csh.png new file mode 100644 index 0000000..7b87884 Binary files /dev/null and b/themes/oxygen/img/files/small/csh.png differ diff --git a/themes/oxygen/img/files/small/cue.png b/themes/oxygen/img/files/small/cue.png new file mode 100644 index 0000000..4e8d91d Binary files /dev/null and b/themes/oxygen/img/files/small/cue.png differ diff --git a/themes/oxygen/img/files/small/deb.png b/themes/oxygen/img/files/small/deb.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/oxygen/img/files/small/deb.png differ diff --git a/themes/oxygen/img/files/small/dll.png b/themes/oxygen/img/files/small/dll.png new file mode 100644 index 0000000..b1a2f1c Binary files /dev/null and b/themes/oxygen/img/files/small/dll.png differ diff --git a/themes/oxygen/img/files/small/doc.png b/themes/oxygen/img/files/small/doc.png new file mode 100644 index 0000000..069059d Binary files /dev/null and b/themes/oxygen/img/files/small/doc.png differ diff --git a/themes/oxygen/img/files/small/docx.png b/themes/oxygen/img/files/small/docx.png new file mode 100644 index 0000000..069059d Binary files /dev/null and b/themes/oxygen/img/files/small/docx.png differ diff --git a/themes/oxygen/img/files/small/exe.png b/themes/oxygen/img/files/small/exe.png new file mode 100644 index 0000000..2246f30 Binary files /dev/null and b/themes/oxygen/img/files/small/exe.png differ diff --git a/themes/oxygen/img/files/small/fla.png b/themes/oxygen/img/files/small/fla.png new file mode 100644 index 0000000..c50ec52 Binary files /dev/null and b/themes/oxygen/img/files/small/fla.png differ diff --git a/themes/oxygen/img/files/small/flv.png b/themes/oxygen/img/files/small/flv.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/oxygen/img/files/small/flv.png differ diff --git a/themes/oxygen/img/files/small/fon.png b/themes/oxygen/img/files/small/fon.png new file mode 100644 index 0000000..2303efe Binary files /dev/null and b/themes/oxygen/img/files/small/fon.png differ diff --git a/themes/oxygen/img/files/small/gif.png b/themes/oxygen/img/files/small/gif.png new file mode 100644 index 0000000..638dee6 Binary files /dev/null and b/themes/oxygen/img/files/small/gif.png differ diff --git a/themes/oxygen/img/files/small/gz.png b/themes/oxygen/img/files/small/gz.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/oxygen/img/files/small/gz.png differ diff --git a/themes/oxygen/img/files/small/htm.png b/themes/oxygen/img/files/small/htm.png new file mode 100644 index 0000000..cc2f1bf Binary files /dev/null and b/themes/oxygen/img/files/small/htm.png differ diff --git a/themes/oxygen/img/files/small/html.png b/themes/oxygen/img/files/small/html.png new file mode 100644 index 0000000..cc2f1bf Binary files /dev/null and b/themes/oxygen/img/files/small/html.png differ diff --git a/themes/oxygen/img/files/small/ini.png b/themes/oxygen/img/files/small/ini.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/oxygen/img/files/small/ini.png differ diff --git a/themes/oxygen/img/files/small/iso.png b/themes/oxygen/img/files/small/iso.png new file mode 100644 index 0000000..4e8d91d Binary files /dev/null and b/themes/oxygen/img/files/small/iso.png differ diff --git a/themes/oxygen/img/files/small/jar.png b/themes/oxygen/img/files/small/jar.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/oxygen/img/files/small/jar.png differ diff --git a/themes/oxygen/img/files/small/java.png b/themes/oxygen/img/files/small/java.png new file mode 100644 index 0000000..58fa8d0 Binary files /dev/null and b/themes/oxygen/img/files/small/java.png differ diff --git a/themes/oxygen/img/files/small/jpeg.png b/themes/oxygen/img/files/small/jpeg.png new file mode 100644 index 0000000..638dee6 Binary files /dev/null and b/themes/oxygen/img/files/small/jpeg.png differ diff --git a/themes/oxygen/img/files/small/jpg.png b/themes/oxygen/img/files/small/jpg.png new file mode 100644 index 0000000..638dee6 Binary files /dev/null and b/themes/oxygen/img/files/small/jpg.png differ diff --git a/themes/oxygen/img/files/small/js.png b/themes/oxygen/img/files/small/js.png new file mode 100644 index 0000000..db79975 Binary files /dev/null and b/themes/oxygen/img/files/small/js.png differ diff --git a/themes/oxygen/img/files/small/mds.png b/themes/oxygen/img/files/small/mds.png new file mode 100644 index 0000000..4e8d91d Binary files /dev/null and b/themes/oxygen/img/files/small/mds.png differ diff --git a/themes/oxygen/img/files/small/mdx.png b/themes/oxygen/img/files/small/mdx.png new file mode 100644 index 0000000..4e8d91d Binary files /dev/null and b/themes/oxygen/img/files/small/mdx.png differ diff --git a/themes/oxygen/img/files/small/mid.png b/themes/oxygen/img/files/small/mid.png new file mode 100644 index 0000000..e1ed4bd Binary files /dev/null and b/themes/oxygen/img/files/small/mid.png differ diff --git a/themes/oxygen/img/files/small/midi.png b/themes/oxygen/img/files/small/midi.png new file mode 100644 index 0000000..e1ed4bd Binary files /dev/null and b/themes/oxygen/img/files/small/midi.png differ diff --git a/themes/oxygen/img/files/small/mkv.png b/themes/oxygen/img/files/small/mkv.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/oxygen/img/files/small/mkv.png differ diff --git a/themes/oxygen/img/files/small/mov.png b/themes/oxygen/img/files/small/mov.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/oxygen/img/files/small/mov.png differ diff --git a/themes/oxygen/img/files/small/mp3.png b/themes/oxygen/img/files/small/mp3.png new file mode 100644 index 0000000..017b00d Binary files /dev/null and b/themes/oxygen/img/files/small/mp3.png differ diff --git a/themes/oxygen/img/files/small/mpeg.png b/themes/oxygen/img/files/small/mpeg.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/oxygen/img/files/small/mpeg.png differ diff --git a/themes/oxygen/img/files/small/mpg.png b/themes/oxygen/img/files/small/mpg.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/oxygen/img/files/small/mpg.png differ diff --git a/themes/oxygen/img/files/small/nfo.png b/themes/oxygen/img/files/small/nfo.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/oxygen/img/files/small/nfo.png differ diff --git a/themes/oxygen/img/files/small/nrg.png b/themes/oxygen/img/files/small/nrg.png new file mode 100644 index 0000000..4e8d91d Binary files /dev/null and b/themes/oxygen/img/files/small/nrg.png differ diff --git a/themes/oxygen/img/files/small/ogg.png b/themes/oxygen/img/files/small/ogg.png new file mode 100644 index 0000000..017b00d Binary files /dev/null and b/themes/oxygen/img/files/small/ogg.png differ diff --git a/themes/oxygen/img/files/small/pdf.png b/themes/oxygen/img/files/small/pdf.png new file mode 100644 index 0000000..9498f0f Binary files /dev/null and b/themes/oxygen/img/files/small/pdf.png differ diff --git a/themes/oxygen/img/files/small/php.png b/themes/oxygen/img/files/small/php.png new file mode 100644 index 0000000..d73934b Binary files /dev/null and b/themes/oxygen/img/files/small/php.png differ diff --git a/themes/oxygen/img/files/small/phps.png b/themes/oxygen/img/files/small/phps.png new file mode 100644 index 0000000..d73934b Binary files /dev/null and b/themes/oxygen/img/files/small/phps.png differ diff --git a/themes/oxygen/img/files/small/pl.png b/themes/oxygen/img/files/small/pl.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/oxygen/img/files/small/pl.png differ diff --git a/themes/oxygen/img/files/small/pm.png b/themes/oxygen/img/files/small/pm.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/oxygen/img/files/small/pm.png differ diff --git a/themes/oxygen/img/files/small/png.png b/themes/oxygen/img/files/small/png.png new file mode 100644 index 0000000..638dee6 Binary files /dev/null and b/themes/oxygen/img/files/small/png.png differ diff --git a/themes/oxygen/img/files/small/ppt.png b/themes/oxygen/img/files/small/ppt.png new file mode 100644 index 0000000..bdccbb6 Binary files /dev/null and b/themes/oxygen/img/files/small/ppt.png differ diff --git a/themes/oxygen/img/files/small/pptx.png b/themes/oxygen/img/files/small/pptx.png new file mode 100644 index 0000000..bdccbb6 Binary files /dev/null and b/themes/oxygen/img/files/small/pptx.png differ diff --git a/themes/oxygen/img/files/small/psd.png b/themes/oxygen/img/files/small/psd.png new file mode 100644 index 0000000..638dee6 Binary files /dev/null and b/themes/oxygen/img/files/small/psd.png differ diff --git a/themes/oxygen/img/files/small/qt.png b/themes/oxygen/img/files/small/qt.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/oxygen/img/files/small/qt.png differ diff --git a/themes/oxygen/img/files/small/rar.png b/themes/oxygen/img/files/small/rar.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/oxygen/img/files/small/rar.png differ diff --git a/themes/oxygen/img/files/small/rpm.png b/themes/oxygen/img/files/small/rpm.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/oxygen/img/files/small/rpm.png differ diff --git a/themes/oxygen/img/files/small/rtf.png b/themes/oxygen/img/files/small/rtf.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/oxygen/img/files/small/rtf.png differ diff --git a/themes/oxygen/img/files/small/sh.png b/themes/oxygen/img/files/small/sh.png new file mode 100644 index 0000000..7b87884 Binary files /dev/null and b/themes/oxygen/img/files/small/sh.png differ diff --git a/themes/oxygen/img/files/small/srt.png b/themes/oxygen/img/files/small/srt.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/oxygen/img/files/small/srt.png differ diff --git a/themes/oxygen/img/files/small/sub.png b/themes/oxygen/img/files/small/sub.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/oxygen/img/files/small/sub.png differ diff --git a/themes/oxygen/img/files/small/swf.png b/themes/oxygen/img/files/small/swf.png new file mode 100644 index 0000000..80e05a3 Binary files /dev/null and b/themes/oxygen/img/files/small/swf.png differ diff --git a/themes/oxygen/img/files/small/tgz.png b/themes/oxygen/img/files/small/tgz.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/oxygen/img/files/small/tgz.png differ diff --git a/themes/oxygen/img/files/small/tif.png b/themes/oxygen/img/files/small/tif.png new file mode 100644 index 0000000..638dee6 Binary files /dev/null and b/themes/oxygen/img/files/small/tif.png differ diff --git a/themes/oxygen/img/files/small/tiff.png b/themes/oxygen/img/files/small/tiff.png new file mode 100644 index 0000000..638dee6 Binary files /dev/null and b/themes/oxygen/img/files/small/tiff.png differ diff --git a/themes/oxygen/img/files/small/torrent.png b/themes/oxygen/img/files/small/torrent.png new file mode 100644 index 0000000..55c04aa Binary files /dev/null and b/themes/oxygen/img/files/small/torrent.png differ diff --git a/themes/oxygen/img/files/small/ttf.png b/themes/oxygen/img/files/small/ttf.png new file mode 100644 index 0000000..ed3e0f6 Binary files /dev/null and b/themes/oxygen/img/files/small/ttf.png differ diff --git a/themes/oxygen/img/files/small/txt.png b/themes/oxygen/img/files/small/txt.png new file mode 100644 index 0000000..d904593 Binary files /dev/null and b/themes/oxygen/img/files/small/txt.png differ diff --git a/themes/oxygen/img/files/small/wav.png b/themes/oxygen/img/files/small/wav.png new file mode 100644 index 0000000..017b00d Binary files /dev/null and b/themes/oxygen/img/files/small/wav.png differ diff --git a/themes/oxygen/img/files/small/wma.png b/themes/oxygen/img/files/small/wma.png new file mode 100644 index 0000000..017b00d Binary files /dev/null and b/themes/oxygen/img/files/small/wma.png differ diff --git a/themes/oxygen/img/files/small/xls.png b/themes/oxygen/img/files/small/xls.png new file mode 100644 index 0000000..573d141 Binary files /dev/null and b/themes/oxygen/img/files/small/xls.png differ diff --git a/themes/oxygen/img/files/small/xlsx.png b/themes/oxygen/img/files/small/xlsx.png new file mode 100644 index 0000000..573d141 Binary files /dev/null and b/themes/oxygen/img/files/small/xlsx.png differ diff --git a/themes/oxygen/img/files/small/zip.png b/themes/oxygen/img/files/small/zip.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/oxygen/img/files/small/zip.png differ diff --git a/themes/oxygen/img/icons/about.png b/themes/oxygen/img/icons/about.png new file mode 100644 index 0000000..e1eb797 Binary files /dev/null and b/themes/oxygen/img/icons/about.png differ diff --git a/themes/oxygen/img/icons/clipboard-add.png b/themes/oxygen/img/icons/clipboard-add.png new file mode 100644 index 0000000..4654f2b Binary files /dev/null and b/themes/oxygen/img/icons/clipboard-add.png differ diff --git a/themes/oxygen/img/icons/clipboard-clear.png b/themes/oxygen/img/icons/clipboard-clear.png new file mode 100644 index 0000000..e400360 Binary files /dev/null and b/themes/oxygen/img/icons/clipboard-clear.png differ diff --git a/themes/oxygen/img/icons/clipboard.png b/themes/oxygen/img/icons/clipboard.png new file mode 100644 index 0000000..9d3a8fa Binary files /dev/null and b/themes/oxygen/img/icons/clipboard.png differ diff --git a/themes/oxygen/img/icons/close-clicked.png b/themes/oxygen/img/icons/close-clicked.png new file mode 100644 index 0000000..6fb8507 Binary files /dev/null and b/themes/oxygen/img/icons/close-clicked.png differ diff --git a/themes/oxygen/img/icons/close-hover.png b/themes/oxygen/img/icons/close-hover.png new file mode 100644 index 0000000..a5b8306 Binary files /dev/null and b/themes/oxygen/img/icons/close-hover.png differ diff --git a/themes/oxygen/img/icons/close.png b/themes/oxygen/img/icons/close.png new file mode 100644 index 0000000..88516c3 Binary files /dev/null and b/themes/oxygen/img/icons/close.png differ diff --git a/themes/oxygen/img/icons/copy.png b/themes/oxygen/img/icons/copy.png new file mode 100644 index 0000000..5cdeb5f Binary files /dev/null and b/themes/oxygen/img/icons/copy.png differ diff --git a/themes/oxygen/img/icons/delete.png b/themes/oxygen/img/icons/delete.png new file mode 100644 index 0000000..d04a554 Binary files /dev/null and b/themes/oxygen/img/icons/delete.png differ diff --git a/themes/oxygen/img/icons/download.png b/themes/oxygen/img/icons/download.png new file mode 100644 index 0000000..d0746f6 Binary files /dev/null and b/themes/oxygen/img/icons/download.png differ diff --git a/themes/oxygen/img/icons/folder-new.png b/themes/oxygen/img/icons/folder-new.png new file mode 100644 index 0000000..955efbf Binary files /dev/null and b/themes/oxygen/img/icons/folder-new.png differ diff --git a/themes/oxygen/img/icons/maximize.png b/themes/oxygen/img/icons/maximize.png new file mode 100644 index 0000000..d41fc7e Binary files /dev/null and b/themes/oxygen/img/icons/maximize.png differ diff --git a/themes/oxygen/img/icons/move.png b/themes/oxygen/img/icons/move.png new file mode 100644 index 0000000..ebcc0fa Binary files /dev/null and b/themes/oxygen/img/icons/move.png differ diff --git a/themes/oxygen/img/icons/refresh.png b/themes/oxygen/img/icons/refresh.png new file mode 100644 index 0000000..86b6f82 Binary files /dev/null and b/themes/oxygen/img/icons/refresh.png differ diff --git a/themes/oxygen/img/icons/rename.png b/themes/oxygen/img/icons/rename.png new file mode 100644 index 0000000..2323757 Binary files /dev/null and b/themes/oxygen/img/icons/rename.png differ diff --git a/themes/oxygen/img/icons/select.png b/themes/oxygen/img/icons/select.png new file mode 100644 index 0000000..f1d290c Binary files /dev/null and b/themes/oxygen/img/icons/select.png differ diff --git a/themes/oxygen/img/icons/settings.png b/themes/oxygen/img/icons/settings.png new file mode 100644 index 0000000..5ce478b Binary files /dev/null and b/themes/oxygen/img/icons/settings.png differ diff --git a/themes/oxygen/img/icons/upload.png b/themes/oxygen/img/icons/upload.png new file mode 100644 index 0000000..37b1f80 Binary files /dev/null and b/themes/oxygen/img/icons/upload.png differ diff --git a/themes/oxygen/img/icons/view.png b/themes/oxygen/img/icons/view.png new file mode 100644 index 0000000..6b7a682 Binary files /dev/null and b/themes/oxygen/img/icons/view.png differ diff --git a/themes/oxygen/img/kcf_logo.png b/themes/oxygen/img/kcf_logo.png new file mode 100644 index 0000000..e829043 Binary files /dev/null and b/themes/oxygen/img/kcf_logo.png differ diff --git a/themes/oxygen/img/loading.gif b/themes/oxygen/img/loading.gif new file mode 100644 index 0000000..5f5cedc Binary files /dev/null and b/themes/oxygen/img/loading.gif differ diff --git a/themes/oxygen/img/tree/denied.png b/themes/oxygen/img/tree/denied.png new file mode 100644 index 0000000..07b93c1 Binary files /dev/null and b/themes/oxygen/img/tree/denied.png differ diff --git a/themes/oxygen/img/tree/folder.png b/themes/oxygen/img/tree/folder.png new file mode 100644 index 0000000..536da3d Binary files /dev/null and b/themes/oxygen/img/tree/folder.png differ diff --git a/themes/oxygen/img/tree/folder_current.png b/themes/oxygen/img/tree/folder_current.png new file mode 100644 index 0000000..1d2f301 Binary files /dev/null and b/themes/oxygen/img/tree/folder_current.png differ diff --git a/themes/oxygen/img/tree/minus.png b/themes/oxygen/img/tree/minus.png new file mode 100644 index 0000000..af617bb Binary files /dev/null and b/themes/oxygen/img/tree/minus.png differ diff --git a/themes/oxygen/img/tree/plus.png b/themes/oxygen/img/tree/plus.png new file mode 100644 index 0000000..897088b Binary files /dev/null and b/themes/oxygen/img/tree/plus.png differ diff --git a/themes/oxygen/init.js b/themes/oxygen/init.js new file mode 100644 index 0000000..a507231 --- /dev/null +++ b/themes/oxygen/init.js @@ -0,0 +1,4 @@ +// If this file exists in theme directory, it will be loaded in section + +var imgLoading = new Image(); +imgLoading.src = 'themes/oxygen/img/loading.gif'; diff --git a/themes/oxygen/style.css b/themes/oxygen/style.css new file mode 100644 index 0000000..d5c74de --- /dev/null +++ b/themes/oxygen/style.css @@ -0,0 +1,566 @@ +body { + background: #e0dfde; +} + +input { + margin: 0; +} + +input[type="radio"], input[type="checkbox"], label { + cursor: pointer; +} + +input[type="text"] { + border: 1px solid #d3d3d3; + background: #fff; + padding: 2px; + margin: 0; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + box-shadow: 0 -1px 0 rgba(0,0,0,0.5); + -moz-box-shadow: 0 -1px 0 rgba(0,0,0,0.5); + -webkit-box-shadow: 0 -1px 0 rgba(0,0,0,0.5); + outline-width: 0; +} + +input[type="text"]:hover { + box-shadow: 0 -1px 0 rgba(0,0,0,0.2); + -moz-box-shadow: 0 -1px 0 rgba(0,0,0,0.2); + -webkit-box-shadow: 0 -1px 0 rgba(0,0,0,0.2); +} + +input[type="text"]:focus { + border-color: #3687e2; + box-shadow: 0 0 3px rgba(54,135,226,1); + -moz-box-shadow: 0 0 3px rgba(54,135,226,1); + -webkit-box-shadow: 0 0 3px rgba(54,135,226,1); +} + +input[type="button"], input[type="submit"], input[type="reset"], button { + outline-width: 0; + background: #edeceb; + border: 1px solid #fff; + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + box-shadow: 0 1px 1px rgba(0,0,0,0.6); + -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.6); + -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.6); + color: #222; +} + +input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover, button:hover { + box-shadow: 0 0 1px rgba(0,0,0,0.6); + -moz-box-shadow: 0 0 1px rgba(0,0,0,0.6); + -webkit-box-shadow: 0 0 1px rgba(0,0,0,0.6); +} + +input[type="button"]:focus, input[type="submit"]:focus, input[type="reset"]:focus, button:focus { + box-shadow: 0 0 5px rgba(54,135,226,1); + -moz-box-shadow: 0 0 5px rgba(54,135,226,1); + -webkit-box-shadow: 0 0 5px rgba(54,135,226,1); +} + +fieldset { + margin: 0 5px 5px 0px; + padding: 5px; + border: 1px solid #afadaa; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + cursor: default; +} + +fieldset td { + white-space: nowrap; +} + +legend { + margin: 0; + padding:0 3px; + font-weight: bold; +} + +#folders { + margin: 4px 4px 0 4px; + background: #f8f7f6; + border: 1px solid #adaba9; + border-radius: 6px; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; +} + +#files { + float: left; + margin: 0 4px 0 0; + background: #f8f7f6; + border: 1px solid #adaba9; + border-radius: 6px; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; +} + +#files.drag { + background: #ddebf8; +} + +#topic { + padding-left: 12px; +} + + +div.folder { + padding-top: 2px; + margin-top: 4px; + white-space: nowrap; +} + +div.folder a { + text-decoration: none; + cursor: default; + outline: none; + color: #000; +} + +span.folder { + padding: 2px 3px 2px 23px; + outline: none; + background: no-repeat 3px center; + cursor: pointer; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border: 1px solid transparent; +} + +span.brace { + width: 16px; + height: 16px; + outline: none; +} + +span.current { + background-image: url(img/tree/folder_current.png); + background-color: #5b9bda; + border-color: #2973bd; + color: #fff; +} + +span.regular { + background-image: url(img/tree/folder.png); + background-color: #f8f7f6; +} + +span.regular:hover, span.context { + background-color: #ddebf8; + border-color: #cee0f4; + color: #000; +} + +span.opened { + background-image: url(img/tree/minus.png); +} + +span.closed { + background-image: url(img/tree/plus.png); +} + +span.denied { + background-image: url(img/tree/denied.png); +} + +div.file { + padding: 4px; + margin: 3px; + border: 1px solid #aaa; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + background: #fff; +} + +div.file:hover { + background: #ddebf8; + border-color: #a7bed7; +} + +div.file .name { + margin-top: 4px; + font-weight: bold; + height: 16px; + overflow: hidden; +} + +div.file .time { + font-size: 10px; +} + +div.file .size { + font-size: 10px; +} + +#files div.selected, +#files div.selected:hover { + background-color: #5b9bda; + border-color: #2973bd; + color: #fff; +} + +tr.file > td { + padding: 3px 4px; + background-color: #f8f7f6 +} + +tr.file:hover > td { + background-color: #ddebf8; +} + +tr.selected > td, +tr.selected:hover > td { + background-color: #5b9bda; + color: #fff; +} + +#toolbar { + padding: 5px 0; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + +#toolbar a { + color: #000; + padding: 4px 4px 4px 24px; + margin-right: 5px; + border: 1px solid transparent; + background: no-repeat 2px center; + outline: none; + display: block; + float: left; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; +} + +#toolbar a:hover, +#toolbar a.hover { + background-color: #cfcfcf; + border-color: #afadaa; + box-shadow: inset 0 0 3px rgba(175,173,170,1); + -moz-box-shadow: inset 0 0 3px rgba(175,173,170,1); + -webkit-box-shadow: inset 0 0 3px rgba(175,173,170,1); +} + +#toolbar a.selected { + background-color: #eeeeff; + border-color: #3687e2; + box-shadow: inset 0 0 3px rgba(54,135,226,1); + -moz-box-shadow: inset 0 0 3px rgba(54,135,226,1); + -webkit-box-shadow: inset 0 0 3px rgba(54,135,226,1); +} + +#toolbar a[href="kcact:upload"] { + background-image: url(img/icons/upload.png); +} + +#toolbar a[href="kcact:refresh"] { + background-image: url(img/icons/refresh.png); +} + +#toolbar a[href="kcact:settings"] { + background-image: url(img/icons/settings.png); +} + +#toolbar a[href="kcact:about"] { + background-image: url(img/icons/about.png); +} + +#toolbar a[href="kcact:maximize"] { + background-image: url(img/icons/maximize.png); +} + +#settings { + background: #e0dfde; +} + +.box, #loading, #alert { + padding: 5px; + border: 1px solid #3687e2; + background: #e0dfde; + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; +} + +.box, #alert { + padding: 8px; + border-color: #fff; + -moz-box-shadow: 0 0 8px rgba(255,255,255,1); + -webkit-box-shadow: 0 0 8px rgba(255,255,255,1); + box-shadow: 0 0 8px rgba(255,255,255,1); +} + +#loading { + background-image: url(img/loading.gif); + font-weight: bold; + margin-right: 4px; + box-shadow: 0 0 3px rgba(54,135,226,1); + -moz-box-shadow: 0 0 3px rgba(54,135,226,1); + -webkit-box-shadow: 0 0 3px rgba(54,135,226,1); +} + +#alert div.message, #dialog div.question { + padding: 0 0 0 40px; +} + +#alert { + background: #e0dfde url(img/alert.png) no-repeat 8px 29px; +} + +#dialog div.question { + background: #e0dfde url(img/confirm.png) no-repeat 0 0; +} + +#alert div.ok, #dialog div.buttons { + padding-top: 5px; + text-align: right; +} + +.menu { + padding: 2px; + border: 1px solid #acaaa7; + background: #e4e3e2; + opacity: 0.95; +} + +.menu a { + text-decoration: none; + padding: 3px 3px 3px 22px; + background: no-repeat 2px center; + color: #000; + margin: 0; + background-color: #e4e3e2; + outline: none; + border: 1px solid transparent; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; +} + +.menu .delimiter { + border-top: 1px solid #acaaa7; + padding-bottom: 3px; + margin: 3px 2px 0 2px; +} + +.menu a:hover { + background-color: #cfcfcf; + border-color: #afadaa; + box-shadow: inset 0 0 3px rgba(175,173,170,1); + -moz-box-shadow: inset 0 0 3px rgba(175,173,170,1); + -webkit-box-shadow: inset 0 0 3px rgba(175,173,170,1); +} + +.menu a[href="kcact:refresh"] { + background-image: url(img/icons/refresh.png); +} + +.menu a[href="kcact:mkdir"] { + background-image: url(img/icons/folder-new.png); +} + +.menu a[href="kcact:mvdir"], .menu a[href="kcact:mv"] { + background-image: url(img/icons/rename.png); +} + +.menu a[href="kcact:rmdir"], .menu a[href="kcact:rm"], .menu a[href="kcact:rmcbd"] { + background-image: url(img/icons/delete.png); +} + +.menu a[href="kcact:clpbrdadd"] { + background-image: url(img/icons/clipboard-add.png); +} + +.menu a[href="kcact:pick"], .menu a[href="kcact:pick_thumb"] { + background-image: url(img/icons/select.png); +} + +.menu a[href="kcact:download"] { + background-image: url(img/icons/download.png); +} + +.menu a[href="kcact:view"] { + background-image: url(img/icons/view.png); +} + +.menu a[href="kcact:cpcbd"] { + background-image: url(img/icons/copy.png); +} + +.menu a[href="kcact:mvcbd"] { + background-image: url(img/icons/move.png); +} + +.menu a[href="kcact:clrcbd"] { + background-image: url(img/icons/clipboard-clear.png); +} + +a.denied { + color: #666; + opacity: 0.5; + filter: alpha(opacity:50); + cursor: default; +} + +a.denied:hover { + background-color: #e4e3e2; + border-color: transparent; + box-shadow: none; + -moz-box-shadow: none; + -webkit-box-shadow: none; +} + +#dialog { + -moz-box-shadow: 0 0 5px rgba(0,0,0,0.5); + -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.5); + box-shadow: 0 0 5px rgba(0,0,0,0.5); +} + +#dialog input[type="text"] { + margin: 5px 0; + width: 200px; +} + +#dialog div.slideshow { + border: 1px solid #000; + padding: 5px 5px 3px 5px; + background: #000; + -moz-box-shadow: 0 0 8px rgba(255,255,255,1); + -webkit-box-shadow: 0 0 8px rgba(255,255,255,1); + box-shadow: 0 0 8px rgba(255,255,255,1); +} + +#dialog img { + padding: 0; + margin: 0; + background: url(img/bg_transparent.png); +} + +#loadingDirs { + padding: 5px 0 1px 24px; +} + +.about { + text-align: center; +} + +.about div.head { + font-weight: bold; + font-size: 12px; + padding: 3px 0 8px 0; +} + +.about div.head a { + background: url(img/kcf_logo.png) no-repeat left center; + padding: 0 0 0 27px; + font-size: 17px; +} + +.about a { + text-decoration: none; + color: #0055ff; +} + +.about a:hover { + text-decoration: underline; +} + +.about button { + margin-top: 8px; +} + +#clipboard { + padding: 0 4px 1px 0; +} + +#clipboard div { + background: url(img/icons/clipboard.png) no-repeat center center; + border: 1px solid transparent; + padding: 1px; + cursor: pointer; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; +} + +#clipboard div:hover { + background-color: #bfbdbb; + border-color: #a9a59f; +} + +#clipboard.selected div, #clipboard.selected div:hover { + background-color: #c9c7c4; + border-color: #3687e2; +} + +#checkver { + padding-bottom: 8px; +} +#checkver > span { + padding: 2px; + border: 1px solid transparent; + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; +} + +#checkver > span.loading { + background: url(img/loading.gif); + border: 1px solid #3687e2; + box-shadow: 0 0 3px rgba(54,135,226,1); + -moz-box-shadow: 0 0 3px rgba(54,135,226,1); + -webkit-box-shadow: 0 0 3px rgba(54,135,226,1); +} + +#checkver span { + padding: 3px; +} + +#checkver a { + font-weight: normal; + padding: 3px 3px 3px 20px; + background: url(img/icons/download.png) no-repeat left center; +} + +div.title { + overflow: auto; + text-align: center; + margin: -3px -5px 5px -5px; + padding-left: 19px; + padding-bottom: 2px; + border-bottom: 1px solid #bbb; + font-weight: bold; + cursor: move; +} + +.about div.title { + cursor: default; +} + +span.close, span.clicked { + float: right; + width: 19px; + height: 19px; + background: url(img/icons/close.png); + margin-top: -3px; + cursor: default; +} + +span.close:hover { + background: url(img/icons/close-hover.png); +} + +span.clicked:hover { + background: url(img/icons/close-clicked.png); +} \ No newline at end of file diff --git a/tpl/.htaccess b/tpl/.htaccess new file mode 100644 index 0000000..7484f13 --- /dev/null +++ b/tpl/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/tpl/tpl_browser.php b/tpl/tpl_browser.php new file mode 100644 index 0000000..2838e4e --- /dev/null +++ b/tpl/tpl_browser.php @@ -0,0 +1,86 @@ + + + +KCFinder: /<?php echo $this->session['dir'] ?> + + + + + +
+
+
+
+
+
+
+
+
+ +
 
+
+ + diff --git a/tpl/tpl_css.php b/tpl/tpl_css.php new file mode 100644 index 0000000..dbf5d58 --- /dev/null +++ b/tpl/tpl_css.php @@ -0,0 +1,2 @@ +cms}" : "" ) ?>" rel="stylesheet" type="text/css" /> + diff --git a/tpl/tpl_javascript.php b/tpl/tpl_javascript.php new file mode 100644 index 0000000..0d8aeaa --- /dev/null +++ b/tpl/tpl_javascript.php @@ -0,0 +1,45 @@ + + + + + + +opener['TinyMCE']) && $this->opener['TinyMCE']): ?> + + +config['theme']}/init.js")): ?> + + + diff --git a/upload.php b/upload.php new file mode 100644 index 0000000..536fb41 --- /dev/null +++ b/upload.php @@ -0,0 +1,19 @@ + + * @copyright 2010, 2011 KCFinder Project + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @link http://kcfinder.sunhater.com + */ + +require "core/autoload.php"; +$uploader = new uploader(); +$uploader->upload(); + +?> \ No newline at end of file diff --git a/upload/.htaccess b/upload/.htaccess new file mode 100644 index 0000000..33c697e --- /dev/null +++ b/upload/.htaccess @@ -0,0 +1,6 @@ + + php_value engine off + + + php_value engine off +