diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..40734af --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.idea/* +upload/* +[Tt]humbs.db +*.DS_Store diff --git a/README.md b/README.md new file mode 100644 index 0000000..a12afd2 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# KCFinder web file manager +http://kcfinder.sunhater.com +Pavel Tzonkov (sunhater@sunhater.com) + +## Overview +KCFinder is free open-source replacement of 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 into an editor's generated HTML content. + +## Licenses +* GNU General Public License, version 3 +* GNU Lesser General Public License, version 3 + +## Features +* Ajax engine with JSON responses +* Multiple files upload +* Upload files using HTML5 drag and drop from local file manager +* Drag and drop images from external HTML pages. Multiple images can be dropped using selection (Firefox only) +* Download multiple files or a folder as single ZIP file +* Select multiple files with the Ctrl/Command key +* Clipboard for copying, moving and downloading multiple files +* Easy to integrate and configure in web applications +* Option to select and return several files. For custom applications only +* Resize uploaded images. Configurable maximum image resolution +* PNG watermark support +* Configurable thumbnail resolution +* Automaticaly rotate and/or flip uploaded images depending on the orientation info EXIF tag if it exist +* Multiple themes support +* Multilanguage system +* Preview images in full size + +## Compatibility +* KCFinder is officialy tested on Apache 2 web server only, but probably it will work on other web servers. +* PHP 5.3 or better is required. Safe mode should be off. +* At least one of these PHP extensions is required: GD, ImageMagick or GraphicsMagick. +* To work with client-side HTTP cache, the PHP must be installed as Apache module. +* KCFinder supports MIME type recognition for the uploaded files. If you plan to use this feature, you should to load Fileinfo PHP extension. +* PHP ZIP extension should be loaded in order to have an option to download multiple files and directories as single ZIP file. +* Automatic rotating and flipping images requires PHP EXIF extension. diff --git a/adapters/jquery-example.html b/adapters/jquery-example.html new file mode 100644 index 0000000..6cf44e1 --- /dev/null +++ b/adapters/jquery-example.html @@ -0,0 +1,36 @@ + + + KCFinder jQuery Adapter Example + + + + + + +
+ + \ No newline at end of file diff --git a/adapters/jquery-min.js b/adapters/jquery-min.js new file mode 100644 index 0000000..f35ca8e --- /dev/null +++ b/adapters/jquery-min.js @@ -0,0 +1,5 @@ +/*! jQuery adapter for KCFinder + * http://kcfinder.sunhater.com + * Pavel Tzonkov + */ +(function(b){var a="browse.php";b.fn.kcfinder=function(d){var c,f,e=b(this).get(0),h={url:a,lang:"",theme:"",type:"",dir:"",callback:false,callbackMultiple:false},j=b(""),g=["lang","theme","type","dir"];b.extend(true,h,d);c=h.url;c+=(c.indexOf("?")===-1)?"?":"&";for(f in g){f=g[f];if(h[f].length){c+=f+"="+encodeURIComponent(h[f])+"&"}}c=c.substr(0,c.length-1);j.css({margin:0,padding:0,width:b(e).innerWidth(),height:b(e).innerHeight(),border:"none"}).attr({src:c});b(e).html(j);if(b.isFunction(h.callback)||b.isFunction(h.callbackMultiple)){if(!window.KCFinder){window.KCFinder={}}if(b.isFunction(h.callback)){window.KCFinder.callBack=h.callback}else{if(window.KCFinder&&window.KCFinder.callback){delete window.KCFinder.callback}}if(b.isFunction(h.callbackMultiple)){window.KCFinder.callBackMultiple=h.callbackMultiple}else{if(window.KCFinder&&window.KCFinder.callbackMultiple){delete window.KCFinder.callbackMultiple}}}else{if(window.KCFinder){delete window.KCFinder}}}})(jQuery); \ No newline at end of file diff --git a/adapters/jquery.js b/adapters/jquery.js new file mode 100644 index 0000000..1fbd2f0 --- /dev/null +++ b/adapters/jquery.js @@ -0,0 +1,82 @@ +/*! jQuery adapter for KCFinder + * http://kcfinder.sunhater.com + * Pavel Tzonkov + */ +/* BASE USAGE: + *
+ * + */ + +(function($) { + var defaultURL = "browse.php"; // Define here your default URL to KCFinder + + $.fn.kcfinder = function(options) { + + var url, i, + t = $(this).get(0), + + // Default options + o = { + url: defaultURL, + lang: "", + theme: "", + type: "", + dir: "", + callback: false, + callbackMultiple: false + }, + ifr = $(''), + + // GET parameters to parse URL + parse = ['lang', 'theme', 'type', 'dir']; + + $.extend(true, o, options); + + // Parse URL + url = o.url; + url += (url.indexOf('?') === -1) ? '?' : "&"; + for (i in parse) { + i = parse[i]; + if (o[i].length) + url += i + "=" + encodeURIComponent(o[i]) + "&"; + } + url = url.substr(0, url.length - 1); + + // Iframe setup + ifr.css({ + margin: 0, + padding: 0, + width: $(t).innerWidth(), + height: $(t).innerHeight(), + border: "none" + }).attr({ + src: url + }); + + $(t).html(ifr); + + // Callbacks + if ($.isFunction(o.callback) || $.isFunction(o.callbackMultiple)) { + if (!window.KCFinder) + window.KCFinder = {}; + + // Single file callback + if ($.isFunction(o.callback)) + window.KCFinder.callBack = o.callback; + else if (window.KCFinder && window.KCFinder.callback) + delete window.KCFinder.callback; + + // Multiple files callback + if ($.isFunction(o.callbackMultiple)) + window.KCFinder.callBackMultiple = o.callbackMultiple; + else if (window.KCFinder && window.KCFinder.callbackMultiple) + delete window.KCFinder.callbackMultiple; + + // No callbacks + } else if (window.KCFinder) + delete window.KCFinder; + } + +})(jQuery); \ No newline at end of file diff --git a/browse.php b/browse.php index 0d00fd8..7f1f815 100644 --- a/browse.php +++ b/browse.php @@ -4,16 +4,15 @@ * * @desc Browser calling script * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ -require "core/autoload.php"; -$browser = new browser(); +require "core/bootstrap.php"; +$browser = "kcfinder\\browser"; // To execute core/bootstrap.php on older +$browser = new $browser(); // PHP versions (even PHP 4) $browser->action(); - -?> \ No newline at end of file diff --git a/cache/.htaccess b/cache/.htaccess new file mode 100644 index 0000000..d61b264 --- /dev/null +++ b/cache/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + diff --git a/cache/base.css b/cache/base.css new file mode 100644 index 0000000..52b2dbd --- /dev/null +++ b/cache/base.css @@ -0,0 +1 @@ +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}#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;float:left;text-align:center;cursor:default;white-space:nowrap}div.file .thumb{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,#upload input::-webkit-file-upload-button{cursor:pointer}span.brace{padding-left:11px;cursor:default}span.brace.opened,span.brace.closed{cursor:pointer}#menu,#clipboard{position:absolute;display:none;z-index:101;cursor:default}#menu .box,#alert{max-width:350px}#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}#uploadResponse,.file .access,.file .hasThumb{display:none}#resizer{position:absolute;z-index:98;top:0;background:#000;opacity:0;filter:alpha(opacity=0)}#lang{opacity:0;filter:alpha(opacity=0)}.tf-select,.tf-multiple,.tf-file,.tf-radio,.tf-checkbox,.tf-button{cursor:default;overflow:auto;display:-moz-inline-box;display:inline-block;zoom:1;vertical-align:middle}.tf-select .tf-selected{float:left;white-space:nowrap}.tf-select .tf-menu{display:none;position:absolute;max-height:173px;overflow-x:hidden;overflow-y:auto}.tf-select.tf-opened .tf-menu{display:block}.tf-select .tf-button{float:right}.tf-select select,.tf-multiple select{position:absolute;left:-1000000px;opacity:0;filter:alpha(opacity=0)}.tf-select .tf-menu ul,.tf-multiple ul{padding:0;margin:0;list-style-type:none}.tf-select .tf-menu li,.tf-multiple li{padding:0;margin:0}.tf-multiple span,.tf-select .tf-button span{white-space:nowrap}.tf-textarea{resize:none;overflow:auto}.tf-multiple{max-height:118px}.tf-file input,.tf-radio input,.tf-checkbox input,.tf-button input,.tf-button button{position:absolute;opacity:0;filter:alpha(opacity=0);outline:0;margin:0;padding:0}.tf-file{overflow:hidden}.tf-file .tf-info{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;float:right}.tf-file .tf-button{float:right}body.mobile{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none}body.firefox #files>div{overflow:auto;margin-bottom:5px} \ No newline at end of file diff --git a/cache/base.js b/cache/base.js new file mode 100644 index 0000000..1a77eda --- /dev/null +++ b/cache/base.js @@ -0,0 +1,6 @@ +/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ +;!function(d,c){"object"==typeof module&&"object"==typeof module.exports?module.exports=d.document?c(d,!0):function(b){if(!b.document){throw new Error("jQuery requires a window with a document")}return c(b)}:c(d)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m="1.11.0",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++){if(null!=(e=arguments[h])){for(d in e){a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c))}}}return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a){return !1}return !0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a)){return !1}try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf")){return !1}}catch(c){return !1}if(l.ownLast){for(b in a){return j.call(a,b)}}for(b in a){}return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++){if(d=b.apply(a[e],c),d===!1){break}}}else{for(e in a){if(d=b.apply(a[e],c),d===!1){break}}}}else{if(g){for(;f>e;e++){if(d=b.call(a[e],e,a[e]),d===!1){break}}}else{for(e in a){if(d=b.call(a[e],e,a[e]),d===!1){break}}}}return a},trim:k&&!k.call("\ufeff\xa0")?function(a){return null==a?"":k.call(a)}:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g){return g.call(b,a,c)}for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++){if(c in b&&b[c]===a){return c}}}return -1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d){a[e++]=b[d++]}if(c!==c){while(void 0!==b[d]){a[e++]=b[d++]}}return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++){d=!b(a[f],f),d!==h&&e.push(a[f])}return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h){for(;g>f;f++){d=b(a[f],f,c),null!=d&&i.push(d)}}else{for(f in a){d=b(a[f],f,c),null!=d&&i.push(d)}}return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||n.guid++,e):void 0},now:function(){return +new Date},support:l}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++){if(this[b]===a){return b}}return -1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]){}a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a){return d}if(1!==(i=b.nodeType)&&9!==i){return[]}if(n&&!e){if(f=Z.exec(a)){if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode){return d}if(g.id===h){return d.push(g),d}}else{if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h){return d.push(g),d}}}else{if(f[2]){return G.apply(d,b.getElementsByTagName(a)),d}if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName){return G.apply(d,b.getElementsByClassName(h)),d}}}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--){m[j]=q+pb(m[j])}u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v){try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return !!a(b)}catch(c){return !1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--){d.attrHandle[c[e]]=b}}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d){return d}if(c){while(c=c.nextSibling){if(c===b){return -1}}}return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--){c[e=f[g]]&&(c[e]=!(d[e]=c[e]))}})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="
",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++]){1===c.nodeType&&d.push(c)}return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="",a.querySelectorAll("[t^='']").length&&o.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!='']:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b){while(b=b.parentNode){if(b===a){return !0}}}return !1},z=b?function(a,b){if(a===b){return j=!0,0}var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b){return j=!0,0}var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g){return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0}if(f===g){return ib(a,b)}c=a;while(c=c.parentNode){h.unshift(c)}c=b;while(c=c.parentNode){k.unshift(c)}while(h[d]===k[d]){d++}return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b))){try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType){return d}}catch(e){}}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++]){b===a[f]&&(e=d.push(f))}while(e--){a.splice(d[e],1)}}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent){return a.textContent}for(a=a.firstChild;a;a=a.nextSibling){c+=e(a)}}else{if(3===f||4===f){return a.nodeValue}}}else{while(b=a[d++]){c+=e(b)}}return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return !0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return !!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p]){if(h?l.nodeName.toLowerCase()===r:1===l.nodeType){return !1}}o=p="only"===a&&!o&&"nextSibling"}return !0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop()){if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}}else{if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u){m=j[1]}else{while(l=++n&&l&&l[p]||(m=n=0)||o.pop()){if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b)){break}}}}return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--){d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--){(f=g[h])&&(a[h]=!(b[h]=f))}}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do{if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang")){return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-")}}while((b=b.parentNode)&&1===b.nodeType);return !1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling){if(a.nodeType<6){return !1}}return !0},parent:function(a){return !d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2){a.push(c)}return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2){a.push(c)}return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;){a.push(d)}return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++){d+=a[b].value}return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d]){if(1===b.nodeType||e){return a(b,c,f)}}}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d]){if((1===b.nodeType||e)&&a(b,c,g)){return !0}}}else{while(b=b[d]){if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f){return j[2]=h[2]}if(i[d]=j,j[2]=a(b,c,g)){return !0}}}}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--){if(!a[e](b,c,d)){return !1}}return !0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++){(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h))}return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--){(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}}if(f){if(e||a){if(e){j=[],k=r.length;while(k--){(l=r[k])&&j.push(q[k]=l)}e(null,r=[],j,i)}k=r.length;while(k--){(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}}else{r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)}})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return !g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++){if(c=d.relative[a[j].type]){m=[qb(rb(m),c)]}else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++){if(d.relative[a[e].type]){break}}return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||0.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++]){if(o(m,g,i)){j.push(m);break}}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++]){o(r,s,g,i)}if(f){if(p>0){while(q--){r[q]||s[q]||(s[q]=E.call(j))}}s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--){f=ub(b[c]),f[s]?d.push(f):e.push(f)}f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++){db(a,b[d],c)}return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b){return e}a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type]){break}if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a){return G.apply(e,f),e}break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b)){return n.grep(a,function(a,d){return !!b.call(a,d,a)!==c})}if(b.nodeType){return n.grep(a,function(a){return a===b!==c})}if("string"==typeof b){if(w.test(b)){return n.filter(b,a,c)}b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a){return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++){if(n.contains(d[b],this)){return !0}}}))}for(b=0;e>b;b++){n.find(a,d[b],c)}return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return !!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=a.document,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,B=n.fn.init=function(a,b){var c,d;if(!a){return this}if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:A.exec(a),!c||!c[1]&&b){return !b||b.jquery?(b||y).find(a):this.constructor(b).find(a)}if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:z,!0)),v.test(c[1])&&n.isPlainObject(b)){for(c in b){n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c])}}return this}if(d=z.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2]){return y.find(a)}this.length=1,this[0]=d}return this.context=z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};B.prototype=n.fn,y=n(z);var C=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!n(e).is(c))){1===e.nodeType&&d.push(e),e=e[b]}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling){1===a.nodeType&&a!==b&&c.push(a)}return c}}),n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++){if(n.contains(this,c[b])){return !0}}})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++){for(c=this[d];c&&c!==b;c=c.parentNode){if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}}}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function E(a,b){do{a=a[b]}while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return E(a,"nextSibling")},prev:function(a){return E(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(D[a]||(e=n.unique(e)),C.test(a)&&(e=e.reverse())),this.pushStack(e)}});var F=/\S+/g,G={};function H(a){var b=G[a]={};return n.each(a.match(F)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?G[a]||H(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++){if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&n.each(arguments,function(a,c){var d;while((d=n.inArray(c,h,d))>-1){h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return !h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return !i},fireWith:function(a,c){return !h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return !!d}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1){for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++){c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f}}return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){if(a===!0?!--n.readyWait:!n.isReady){if(!z.body){return setTimeout(n.ready)}n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(z,[n]),n.fn.trigger&&n(z).trigger("ready").off("ready"))}}});function J(){z.addEventListener?(z.removeEventListener("DOMContentLoaded",K,!1),a.removeEventListener("load",K,!1)):(z.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(z.addEventListener||"load"===event.type||"complete"===z.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I){if(I=n.Deferred(),"complete"===z.readyState){setTimeout(n.ready)}else{if(z.addEventListener){z.addEventListener("DOMContentLoaded",K,!1),a.addEventListener("load",K,!1)}else{z.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&z.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!n.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}J(),n.ready()}}()}}}return I.promise(b)};var L="undefined",M;for(M in n(l)){break}l.ownLast="0"!==M,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c=z.getElementsByTagName("body")[0];c&&(a=z.createElement("div"),a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",b=z.createElement("div"),c.appendChild(a).appendChild(b),typeof b.style.zoom!==L&&(b.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(l.inlineBlockNeedsLayout=3===b.offsetWidth)&&(c.style.zoom=1)),c.removeChild(a),a=b=null)}),function(){var a=z.createElement("div");if(null==l.deleteExpando){l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}}a=null}(),n.acceptData=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else{c=void 0}}return c}function Q(a){var b;for(b in a){if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b){return !1}}return !0}function R(a,b,d,e){if(n.acceptData(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b){return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}}function S(a,b,c){if(n.acceptData(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--){delete d[b[e]]}if(c?!Q(d):!n.isEmptyObject(d)){return}}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--){d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d]))}n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++){b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)))}}}return e?a:j?b.call(a):i?b(a[0],c):f},X=/^(?:checkbox|radio)$/i;!function(){var a=z.createDocumentFragment(),b=z.createElement("div"),c=z.createElement("input");if(b.setAttribute("className","t"),b.innerHTML="
a",l.leadingWhitespace=3===b.firstChild.nodeType,l.tbody=!b.getElementsByTagName("tbody").length,l.htmlSerialize=!!b.getElementsByTagName("link").length,l.html5Clone="<:nav>"!==z.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,a.appendChild(c),l.appendChecked=c.checked,b.innerHTML="",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,a.appendChild(b),b.innerHTML="",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){l.noCloneEvent=!1}),b.cloneNode(!0).click()),null==l.deleteExpando){l.deleteExpando=!0;try{delete b.test}catch(d){l.deleteExpando=!1}}a=b=c=null}(),function(){var b,c,d=z.createElement("div");for(b in {submit:!0,change:!0,focusin:!0}){c="on"+b,(l[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),l[b+"Bubbles"]=d.attributes[c].expando===!1)}d=null}();var Y=/^(?:input|select|textarea)$/i,Z=/^key/,$=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,ab=/^([^.]*)(?:\.(.+)|)$/;function bb(){return !0}function cb(){return !1}function db(){try{return z.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof n===L||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(F)||[""],h=b.length;while(h--){f=ab.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0)}a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(F)||[""],j=b.length;while(j--){if(h=ab.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--){g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g))}i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else{for(o in k){n.event.remove(a,o+b[j],c,d,!0)}}}n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,m,o=[d||z],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||z,3!==d.nodeType&&8!==d.nodeType&&!_.test(p+n.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[n.expando]?b:new n.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),k=n.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!n.isWindow(d)){for(i=k.delegateType||p,_.test(i+p)||(h=h.parentNode);h;h=h.parentNode){o.push(h),l=h}l===(d.ownerDocument||z)&&o.push(l.defaultView||l.parentWindow||a)}m=0;while((h=o[m++])&&!b.isPropagationStopped()){b.type=m>1?i:k.bindType||p,f=(n._data(h,"events")||{})[b.type]&&n._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&n.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault())}if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&n.acceptData(d)&&g&&d[p]&&!n.isWindow(d)){l=d[g],l&&(d[g]=null),n.event.triggered=p;try{d[p]()}catch(r){}n.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped()){(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((n.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type)){for(;i!=this;i=i.parentNode||this){if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++){d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?n(c,this).index(i)>=0:n.find(c,this,null,[i]).length),e[c]&&e.push(d)}e.length&&g.push({elem:i,handlers:e})}}}return h]","i"),ib=/^\s+/,jb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,kb=/<([\w:]+)/,lb=/\s*$/g,sb={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:l.htmlSerialize?[0,"",""]:[1,"X
","
"]},tb=eb(z),ub=tb.appendChild(z.createElement("div"));sb.optgroup=sb.option,sb.tbody=sb.tfoot=sb.colgroup=sb.caption=sb.thead,sb.th=sb.td;function vb(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==L?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==L?a.querySelectorAll(b||"*"):void 0;if(!f){for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++){!b||n.nodeName(d,b)?f.push(d):n.merge(f,vb(d,b))}}return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function wb(a){X.test(a.type)&&(a.defaultChecked=a.checked)}function xb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function yb(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function zb(a){var b=qb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ab(a,b){for(var c,d=0;null!=(c=a[d]);d++){n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}}function Bb(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h){for(d=0,e=h[c].length;e>d;d++){n.event.add(b,c,h[c][d])}}}g.data&&(g.data=n.extend({},g.data))}}function Cb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events){n.removeEvent(b,d,e.handle)}b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(yb(b).text=a.text,zb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&X.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}n.extend({clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!hb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ub.innerHTML=a.outerHTML,ub.removeChild(f=ub.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a))){for(d=vb(f),h=vb(a),g=0;null!=(e=h[g]);++g){d[g]&&Cb(e,d[g])}}if(b){if(c){for(h=h||vb(a),d=d||vb(f),g=0;null!=(e=h[g]);g++){Bb(e,d[g])}}else{Bb(a,f)}}return d=vb(f,"script"),d.length>0&&Ab(d,!i&&vb(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k,m=a.length,o=eb(b),p=[],q=0;m>q;q++){if(f=a[q],f||0===f){if("object"===n.type(f)){n.merge(p,f.nodeType?[f]:f)}else{if(mb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(kb.exec(f)||["",""])[1].toLowerCase(),k=sb[i]||sb._default,h.innerHTML=k[1]+f.replace(jb,"<$1>")+k[2],e=k[0];while(e--){h=h.lastChild}if(!l.leadingWhitespace&&ib.test(f)&&p.push(b.createTextNode(ib.exec(f)[0])),!l.tbody){f="table"!==i||lb.test(f)?""!==k[1]||lb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--){n.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}}n.merge(p,h.childNodes),h.textContent="";while(h.firstChild){h.removeChild(h.firstChild)}h=o.lastChild}else{p.push(b.createTextNode(f))}}}}h&&o.removeChild(h),l.appendChecked||n.grep(vb(p,"input"),wb),q=0;while(f=p[q++]){if((!d||-1===n.inArray(f,d))&&(g=n.contains(f.ownerDocument,f),h=vb(o.appendChild(f),"script"),g&&Ab(h),c)){e=0;while(f=h[e++]){pb.test(f.type||"")&&c.push(f)}}}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.deleteExpando,m=n.event.special;null!=(d=a[h]);h++){if((b||n.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events){for(e in g.events){m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle)}}j[f]&&(delete j[f],k?delete d[i]:typeof d.removeAttribute!==L?d.removeAttribute(i):d[i]=null,c.push(f))}}}}),n.fn.extend({text:function(a){return W(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++){b||1!==c.nodeType||n.cleanData(vb(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&Ab(vb(c,"script")),c.parentNode.removeChild(c))}return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(vb(a,!1));while(a.firstChild){a.removeChild(a.firstChild)}a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return W(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a){return 1===b.nodeType?b.innerHTML.replace(gb,""):void 0}if(!("string"!=typeof a||nb.test(a)||!l.htmlSerialize&&hb.test(a)||!l.leadingWhitespace&&ib.test(a)||sb[(kb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(jb,"<$1>");try{for(;d>c;c++){b=this[c]||{},1===b.nodeType&&(n.cleanData(vb(b,!1)),b.innerHTML=a)}b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(vb(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,o=k-1,p=a[0],q=n.isFunction(p);if(q||k>1&&"string"==typeof p&&!l.checkClone&&ob.test(p)){return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)})}if(k&&(i=n.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=n.map(vb(i,"script"),yb),f=g.length;k>j;j++){d=i,j!==o&&(d=n.clone(d,!0,!0),f&&n.merge(g,vb(d,"script"))),b.call(this[j],d,j)}if(f){for(h=g[g.length-1].ownerDocument,n.map(g,zb),j=0;f>j;j++){d=g[j],pb.test(d.type||"")&&!n._data(d,"globalEval")&&n.contains(h,d)&&(d.src?n._evalUrl&&n._evalUrl(d.src):n.globalEval((d.text||d.textContent||d.innerHTML||"").replace(rb,"")))}}i=c=null}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],g=n(a),h=g.length-1;h>=d;d++){c=d===h?this:this.clone(!0),n(g[d])[b](c),f.apply(e,c.get())}return this.pushStack(e)}});var Db,Eb={};function Fb(b,c){var d=n(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:n.css(d[0],"display");return d.detach(),e}function Gb(a){var b=z,c=Eb[a];return c||(c=Fb(a,b),"none"!==c&&c||(Db=(Db||n("').prependTo(document.body);$("#loading").html(_.label("Uploading file...")).show();a.submit();$("#uploadResponse").load(function(){var b=$(this).contents().find("body").text();$("#loading").hide();b=b.split("\n");var c=[],d=[];$.each(b,function(e,f){if(f.substr(0,1)=="/"){c[c.length]=f.substr(1,f.length-1)}else{d[d.length]=f}});if(d.length){d=d.join("\n");if(d.replace(/^\s+/g,"").replace(/\s+$/g,"").length){_.alert(d)}}if(!c.length){c=null}_.refresh(c);$("#upload").detach();setTimeout(function(){$("#uploadResponse").detach()},1);_.initUploadButton()})};_.maximize=function(b){if(_.opener.name=="tinymce"){var e=window.parent.document,h=$('iframe[src*="browse.php?opener=tinymce&"]',e),g=parseInt(h.attr("id").replace(/^mce_(\d+)_ifr$/,"$1")),f=$("#mce_"+g,e);if($(b).hasClass("selected")){$(b).removeClass("selected");f.css({left:_.maximizeMCE.left,top:_.maximizeMCE.top,width:_.maximizeMCE.width,height:_.maximizeMCE.height});h.css({width:_.maximizeMCE.width-_.maximizeMCE.Hspace,height:_.maximizeMCE.height-_.maximizeMCE.Vspace})}else{$(b).addClass("selected");_.maximizeMCE={width:parseInt(f.css("width")),height:parseInt(f.css("height")),left:f.position().left,top:f.position().top,Hspace:parseInt(f.css("width"))-parseInt(h.css("width")),Vspace:parseInt(f.css("height"))-parseInt(h.css("height"))};var d=$(window.top).width(),a=$(window.top).height();f.css({left:$(window.parent).scrollLeft(),top:$(window.parent).scrollTop(),width:d,height:a});h.css({width:d-_.maximizeMCE.Hspace,height:a-_.maximizeMCE.Vspace})}}else{if(_.opener.name=="tinymce4"){var e=window.parent.document,h=$('iframe[src*="browse.php?opener=tinymce4&"]',e).parent(),f=h.parent();if($(b).hasClass("selected")){$(b).removeClass("selected");f.css({left:_.maximizeMCE4.left,top:_.maximizeMCE4.top,width:_.maximizeMCE4.width,height:_.maximizeMCE4.height});h.css({width:_.maximizeMCE4.width,height:_.maximizeMCE4.height-_.maximizeMCE4.Vspace})}else{$(b).addClass("selected");_.maximizeMCE4={width:parseInt(f.css("width")),height:parseInt(f.css("height")),left:f.position().left,top:f.position().top,Vspace:f.outerHeight(true)-h.outerHeight(true)-1};var d=$(window.top).width(),a=$(window.top).height();f.css({left:0,top:0,width:d,height:a});h.css({width:d,height:a-_.maximizeMCE4.Vspace})}}else{if(window.opener){window.moveTo(0,0);d=screen.availWidth;a=screen.availHeight;if($.agent.opera){a-=50}window.resizeTo(d,a)}else{if(window.parent){var c=null;$(window.parent.document).find("iframe").each(function(){if(this.src.replace("/?","?")==window.location.href.replace("/?","?")){c=this;return false}});if(c!==null){$(c).toggleFullscreen(window.parent.document)}else{$("body").toggleFullscreen()}}else{$("body").toggleFullscreen()}}}}};_.refresh=function(a){_.fadeFiles();$.ajax({type:"post",dataType:"json",url:_.getURL("chDir"),data:{dir:_.dir},async:false,success:function(b){if(_.check4errors(b)){$("#files > div").css({opacity:"",filter:""});return}_.dirWritable=b.dirWritable;_.files=b.files?b.files:[];_.orderFiles(null,a);_.statusDir()},error:function(){$("#files > div").css({opacity:"",filter:""});$("#files").html(_.label("Unknown error."))}})};_.initSettings=function(){$("#settings fieldset").disableTextSelect();if(!_.shows.length){$('#show input[type="checkbox"]').each(function(c){_.shows[c]=this.name})}var a=_.shows;if(!$.$.kuki.isSet("showname")){$.$.kuki.set("showname","on");$.each(a,function(c,d){if(d!="name"){$.$.kuki.set("show"+d,"off")}})}$('#show input[type="checkbox"]').click(function(){$.$.kuki.set("show"+this.name,this.checked?"on":"off");$("#files .file div."+this.name).css("display",this.checked?"block":"none")});$.each(a,function(c,d){$('#show input[name="'+d+'"]').get(0).checked=($.$.kuki.get("show"+d)=="on")?"checked":""});if(!_.orders.length){$('#order input[type="radio"]').each(function(c){_.orders[c]=this.value})}var b=_.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.value);_.orderFiles()});$('#order input[name="desc"]').click(function(){$.$.kuki.set("orderDesc",this.checked?"on":"off");_.orderFiles()});if(!$.$.kuki.isSet("view")){$.$.kuki.set("view","thumbs")}if($.$.kuki.get("view")=="list"){$("#show").parent().hide()}$('#view input[value="'+$.$.kuki.get("view")+'"]').get(0).checked=true;$("#view input").click(function(){var c=this.value;if($.$.kuki.get("view")!=c){$.$.kuki.set("view",c);if(c=="list"){$("#show").parent().hide()}else{$("#show").parent().show()}}_.fixFilesHeight();_.refresh()});$("#settings fieldset, #settings input, #settings label").transForm();_.initLangs()};_.initLangs=function(){$.each(_.langs,function(c,a){var b=$("");b.val(c).text(a);if(c==_.lang){b.attr({selected:true})}$("#lang").append(b)});$("#lang").change(function(){window.location=_.getURL("browser",this.value)+"&theme="+encodeURIComponent(_.theme)})};_.initFiles=function(){$(document).unbind("keydown").keydown(function(a){return !_.selectAll(a)});$("#files").unbind().scroll(function(){_.menu.hide()}).disableTextSelect();$(".file").unbind().click(function(a){_.selectFile($(this),a)}).rightClick(function(a,b){_.menuFile($(a),b)}).dblclick(function(){_.returnFile($(this))});if($.mobile){$(".file").on("taphold",function(){_.menuFile($(this),{pageX:$(this).offset().left,pageY:$(this).offset().top+$(this).outerHeight()})})}$.each(_.shows,function(a,b){$("#files .file div."+b).css("display",($.$.kuki.get("show"+b)=="off")?"none":"block")});_.statusDir()};_.showFiles=function(b,a){_.fadeFiles();setTimeout(function(){var d=$("
");$.each(_.files,function(g,e){var j,h,c=e.size+"|"+e.mtime;if($.$.kuki.get("view")=="list"){if(!g){d.html("
")}h=$.$.getFileExtension(e.name);if(e.thumb){h=".image"}else{if(!h.length||!e.smallIcon){h="."}}h="themes/"+_.theme+"/img/files/small/"+h+".png";j=$('');j.appendTo(d.find("table"))}else{if(e.thumb){h=_.getURL("thumb")+"&file="+encodeURIComponent(e.name)+"&dir="+encodeURIComponent(_.dir)+"&stamp="+c}else{if(e.smallThumb){h=_.uploadURL+"/"+_.dir+"/"+encodeURIComponent(e.name);h=$.$.escapeDirs(h).replace(/\'/g,"%27")}else{h=e.bigIcon?$.$.getFileExtension(e.name):".";if(!h.length){h="."}h="themes/"+_.theme+"/img/files/big/"+h+".png"}}j=$('
');j.appendTo(d)}j.find(".thumb").css({backgroundImage:'url("'+h+'")'});j.find(".name").text(e.name);j.find(".time").html(e.date);j.find(".size").html(_.humanSize(e.size));j.data(e);if((e.name===a)||$.$.inArray(e.name,a)){j.addClass("selected")}});d.css({opacity:"",filter:""});$("#files").html(d);if(b){b()}_.initFiles();_.fixScrollRadius()},200)};_.selectFile=function(b,h){if(h.ctrlKey||h.metaKey||h.shiftKey){if(h.shiftKey&&!b.hasClass("selected")){var g=b.prev();while(g.get(0)&&!g.hasClass("selected")){g.addClass("selected");g=g.prev()}}b.toggleClass("selected");var c=$(".file.selected").get(),a=0,d;if(!c.length){_.statusDir()}else{$.each(c,function(f,e){a+=$(e).data("size")});a=_.humanSize(a);if(c.length>1){$("#fileinfo").html(c.length+" "+_.label("selected files")+" ("+a+")")}else{d=$(c[0]).data();$("#fileinfo").text(d.name+" ("+_.humanSize(d.size)+", "+d.date+")")}}}else{d=b.data();$(".file").removeClass("selected");b.addClass("selected");$("#fileinfo").text(d.name+" ("+_.humanSize(d.size)+", "+d.date+")")}};_.selectAll=function(c){if((!c.ctrlKey&&!c.metaKey)||((c.keyCode!=65)&&(c.keyCode!=97))){return false}var b=$(".file"),a=0;if(b.length){b.addClass("selected").each(function(){a+=$(this).data("size")});$("#fileinfo").html(b.length+" "+_.label("selected files")+" ("+_.humanSize(a)+")")}return true};_.returnFile=function(c){var b,d,a=c.substr?c:_.uploadURL+"/"+_.dir+"/"+c.data("name");a=$.$.escapeDirs(a);if(_.opener.name=="ckeditor"){_.opener.CKEditor.object.tools.callFunction(_.opener.CKEditor.funcNum,a,"");window.close()}else{if(_.opener.name=="fckeditor"){window.opener.SetUrl(a);window.close()}else{if(_.opener.name=="tinymce"){d=tinyMCEPopup.getWindowArg("window");d.document.getElementById(tinyMCEPopup.getWindowArg("input")).value=a;if(d.getImageData){d.getImageData()}if(typeof(d.ImageDialog)!="undefined"){if(d.ImageDialog.getImageData){d.ImageDialog.getImageData()}if(d.ImageDialog.showPreviewImage){d.ImageDialog.showPreviewImage(a)}}tinyMCEPopup.close()}else{if(_.opener.name=="tinymce4"){d=(window.opener?window.opener:window.parent);$(d.document).find("#"+_.opener.TinyMCE.field).val(a);d.tinyMCE.activeEditor.windowManager.close()}else{if(_.opener.callBack){if(window.opener&&window.opener.KCFinder){_.opener.callBack(a);window.close()}if(window.parent&&window.parent.KCFinder){b=$('#toolbar a[href="kcact:maximize"]');if(b.hasClass("selected")){_.maximize(b)}_.opener.callBack(a)}}else{if(_.opener.callBackMultiple){if(window.opener&&window.opener.KCFinder){_.opener.callBackMultiple([a]);window.close()}if(window.parent&&window.parent.KCFinder){b=$('#toolbar a[href="kcact:maximize"]');if(b.hasClass("selected")){_.maximize(b)}_.opener.callBackMultiple([a])}}}}}}}};_.returnFiles=function(b){if(_.opener.callBackMultiple&&b.length){var a=[];$.each(b,function(d,c){a[d]=_.uploadURL+"/"+_.dir+"/"+$(c).data("name");a[d]=$.$.escapeDirs(a[d])});_.opener.callBackMultiple(a);if(window.opener){window.close()}}};_.returnThumbnails=function(c){if(_.opener.callBackMultiple){var b=[],a=0;$.each(c,function(e,d){if($(d).data("thumb")){b[a]=_.thumbsURL+"/"+_.dir+"/"+$(d).data("name");b[a]=$.$.escapeDirs(b[a++])}});_.opener.callBackMultiple(b);if(window.opener){window.close()}}};_.initFolders=function(){$("#folders").scroll(function(){_.menu.hide()}).disableTextSelect();$("div.folder > a").unbind().click(function(){_.menu.hide();return false});$("div.folder > a > span.brace").unbind().click(function(){if($(this).hasClass("opened")||$(this).hasClass("closed")){_.expandDir($(this).parent())}});$("div.folder > a > span.folder").unbind().click(function(){_.changeDir($(this).parent())}).rightClick(function(a,b){_.menuDir($(a).parent(),b)});if($.mobile){$("div.folder > a > span.folder").on("taphold",function(){_.menuDir($(this).parent(),{pageX:$(this).offset().left+1,pageY:$(this).offset().top+$(this).outerHeight()})})}};_.setTreeData=function(b,c){if(!c){c=""}else{if(c.length&&(c.substr(c.length-1,1)!="/")){c+="/"}}c+=b.name;var a='#folders a[href="kcdir:/'+$.$.escapeDirs(c)+'"]';$(a).data({name:b.name,path:c,readable:b.readable,writable:b.writable,removable:b.removable,hasDirs:b.hasDirs});$(a+" span.folder").addClass(b.current?"current":"regular");if(b.dirs&&b.dirs.length){$(a+" span.brace").addClass("opened");$.each(b.dirs,function(e,d){_.setTreeData(d,c+"/")})}else{if(b.hasDirs){$(a+" span.brace").addClass("closed")}}};_.buildTree=function(a,e){if(!e){e=""}e+=a.name;var b,d='
 '+$.$.htmlData(a.name)+"";if(a.dirs){d+='
';for(var c=0;c'+_.label("Loading folders...")+"
");$("#loadingDirs").hide().show(200,function(){$.ajax({type:"post",dataType:"json",url:_.getURL("expand"),data:{dir:b},async:false,success:function(e){$("#loadingDirs").hide(200,function(){$("#loadingDirs").detach()});if(_.check4errors(e)){return}var d="";$.each(e.dirs,function(g,f){d+='"});if(d.length){a.parent().append('
'+d+"
");var c=$(a.parent().children(".folders").first());c.hide();$(c).show(500,function(){_.fixScrollRadius()});$.each(e.dirs,function(g,f){_.setTreeData(f,b)})}if(e.dirs.length){a.children(".brace").removeClass("closed").addClass("opened")}else{a.children(".brace").removeClass("opened closed")}_.initFolders();_.initDropUpload();_.fixScrollRadius()},error:function(){$("#loadingDirs").detach();_.alert(_.label("Unknown error."));_.fixScrollRadius()}});_.fixScrollRadius()})}}}};_.changeDir=function(a){if(a.children("span.folder").hasClass("regular")){$("div.folder > a > span.folder").removeClass("current regular").addClass("regular");a.children("span.folder").removeClass("regular").addClass("current");$("#files").html(_.label("Loading files..."));$.ajax({type:"post",dataType:"json",url:_.getURL("chDir"),data:{dir:a.data("path")},async:false,success:function(b){if(_.check4errors(b)){return}_.files=b.files;_.orderFiles();_.dir=a.data("path");_.dirWritable=b.dirWritable;_.setTitle("KCFinder: /"+_.dir);_.statusDir();_.initDropUpload()},error:function(){$("#files").html(_.label("Unknown error."))}})}};_.statusDir=function(){var b=0,a=0;for(;b<_.files.length;b++){a+=_.files[b].size}a=_.humanSize(a);$("#fileinfo").html(_.files.length+" "+_.label("files")+" ("+a+")")};_.refreshDir=function(a){var b=a.data("path");if(a.children(".brace").hasClass("opened")||a.children(".brace").hasClass("closed")){a.children(".brace").removeClass("opened").addClass("closed")}a.parent().children(".folders").first().detach();if(b==_.dir.substr(0,b.length)){_.changeDir(a)}_.expandDir(a);return true};_.menu={init:function(){$("#menu").html("
    ").css("display","none")},addItem:function(b,c,d,a){if(typeof a=="undefined"){a=false}$("#menu ul").append('
  • "+c+"
  • ");if(!a&&$.isFunction(d)){$('#menu a[href="'+b+'"]').click(function(){_.menu.hide();return d()})}},addDivider:function(){if($("#menu ul").html().length){$("#menu ul").append("
  • -
  • ")}},show:function(f){var g=$("#menu"),a=$("#menu ul");if(a.html().length){g.find("ul").first().menu();if(typeof f!="undefined"){var d=f.pageX,c=f.pageY,b=$(window);if((g.outerWidth()+d)>b.width()){d=b.width()-g.outerWidth()}if((g.outerHeight()+c)>b.height()){c=b.height()-g.outerHeight()}g.hide().css({left:d,top:c,width:""}).fadeIn("fast")}else{g.fadeIn("fast")}}else{a.detach()}},hide:function(){$("#clipboard").removeClass("selected");$("div.folder > a > span.folder").removeClass("context");$("#menu").hide().css("width","").html("").data("title",null).unbind().click(function(){return false});$(document).unbind("keydown").keydown(function(a){return !_.selectAll(a)})}};_.menuFile=function(b,g){_.menu.init();var f=b.data(),c=$(".file.selected").get();if(b.hasClass("selected")&&c.length&&(c.length>1)){var a=false,h=0,d;$.each(c,function(j,e){d=$(e).data();if(d.thumb){a=true}if(!f.writable){h++}});if(_.opener.callBackMultiple){_.menu.addItem("kcact:pick",_.label("Select"),function(){_.returnFiles(c);return false});if(a){_.menu.addItem("kcact:pick_thumb",_.label("Select Thumbnails"),function(){_.returnThumbnails(c);return false})}}if(f.thumb||f.smallThumb||_.support.zip){_.menu.addDivider();if(f.thumb||f.smallThumb){_.menu.addItem("kcact:view",_.label("View"),function(){_.viewImage(f)})}if(_.support.zip){_.menu.addItem("kcact:download",_.label("Download"),function(){var e=[];$.each(c,function(k,j){e[k]=$(j).data("name")});_.post(_.getURL("downloadSelected"),{dir:_.dir,files:e});return false})}}if(_.access.files.copy||_.access.files.move){_.menu.addDivider();_.menu.addItem("kcact:clpbrdadd",_.label("Add to Clipboard"),function(){var e="";$.each(c,function(l,k){var m=$(k).data(),j=false;for(l=0;l<_.clipboard.length;l++){if((_.clipboard[l].name==m.name)&&(_.clipboard[l].dir==_.dir)){j=true;e+=m.name+": "+_.label("This file is already added to the Clipboard.")+"\n";break}}if(!j){m.dir=_.dir;_.clipboard[_.clipboard.length]=m}});_.initClipboard();if(e.length){_.alert(e.substr(0,e.length-1))}return false})}if(_.access.files["delete"]){_.menu.addDivider();_.menu.addItem("kcact:rm",_.label("Delete"),function(){if($(this).hasClass("denied")){return false}var e=0,k=[];$.each(c,function(m,l){var n=$(l).data();if(!n.writable){e++}else{k[k.length]=_.dir+"/"+n.name}});if(e==c.length){_.alert(_.label("The selected files are not removable."));return false}var j=function(l){_.fadeFiles();$.ajax({type:"post",dataType:"json",url:_.getURL("rm_cbd"),data:{files:k},async:false,success:function(m){if(l){l()}_.check4errors(m);_.refresh()},error:function(){if(l){l()}$("#files > div").css({opacity:"",filter:""});_.alert(_.label("Unknown error."))}})};if(e){_.confirm(_.label("{count} selected files are not removable. Do you want to delete the rest?",{count:e}),j)}else{_.confirm(_.label("Are you sure you want to delete all selected files?"),j)}return false},(h==c.length))}_.menu.show(g)}else{$(".file").removeClass("selected");b.addClass("selected");$("#fileinfo").text(f.name+" ("+_.humanSize(f.size)+", "+f.date+")");if(_.opener.callBack||_.opener.callBackMultiple){_.menu.addItem("kcact:pick",_.label("Select"),function(){_.returnFile(b);return false});if(f.thumb){_.menu.addItem("kcact:pick_thumb",_.label("Select Thumbnail"),function(){_.returnFile(_.thumbsURL+"/"+_.dir+"/"+f.name);return false})}_.menu.addDivider()}if(f.thumb||f.smallThumb){_.menu.addItem("kcact:view",_.label("View"),function(){_.viewImage(f)})}_.menu.addItem("kcact:download",_.label("Download"),function(){$("#menu").html('
    ');$("#downloadForm input").get(0).value=_.dir;$("#downloadForm input").get(1).value=f.name;$("#downloadForm").submit();return false});if(_.access.files.copy||_.access.files.move){_.menu.addDivider();_.menu.addItem("kcact:clpbrdadd",_.label("Add to Clipboard"),function(){for(i=0;i<_.clipboard.length;i++){if((_.clipboard[i].name==f.name)&&(_.clipboard[i].dir==_.dir)){_.alert(_.label("This file is already added to the Clipboard."));return false}}var e=f;e.dir=_.dir;_.clipboard[_.clipboard.length]=e;_.initClipboard();return false})}if(_.access.files.rename||_.access.files["delete"]){_.menu.addDivider()}if(_.access.files.rename){_.menu.addItem("kcact:mv",_.label("Rename..."),function(){if(!f.writable){return false}_.fileNameDialog({dir:_.dir,file:f.name},"newName",f.name,_.getURL("rename"),{title:"New file name:",errEmpty:"Please enter new file name.",errSlash:"Unallowable characters in file name.",errDot:"File name shouldn't begins with '.'"},_.refresh);return false},!f.writable)}if(_.access.files["delete"]){_.menu.addItem("kcact:rm",_.label("Delete"),function(){if(!f.writable){return false}_.confirm(_.label("Are you sure you want to delete this file?"),function(e){$.ajax({type:"post",dataType:"json",url:_.getURL("delete"),data:{dir:_.dir,file:f.name},async:false,success:function(j){if(e){e()}_.clearClipboard();if(_.check4errors(j)){return}_.refresh()},error:function(){if(e){e()}_.alert(_.label("Unknown error."))}})});return false},!f.writable)}_.menu.show(g)}};_.menuDir=function(a,d){_.menu.init();var c=a.data(),b="
      ";if(_.clipboard&&_.clipboard.length){if(_.access.files.copy){_.menu.addItem("kcact:cpcbd",_.label("Copy {count} files",{count:_.clipboard.length}),function(){_.copyClipboard(c.path);return false},!c.writable)}if(_.access.files.move){_.menu.addItem("kcact:mvcbd",_.label("Move {count} files",{count:_.clipboard.length}),function(){_.moveClipboard(c.path);return false},!c.writable)}if(_.access.files.copy||_.access.files.move){_.menu.addDivider()}}_.menu.addItem("kcact:refresh",_.label("Refresh"),function(){_.refreshDir(a);return false});if(_.support.zip){_.menu.addDivider();_.menu.addItem("kcact:download",_.label("Download"),function(){_.post(_.getURL("downloadDir"),{dir:c.path});return false})}if(_.access.dirs.create||_.access.dirs.rename||_.access.dirs["delete"]){_.menu.addDivider()}if(_.access.dirs.create){_.menu.addItem("kcact:mkdir",_.label("New Subfolder..."),function(f){if(!c.writable){return false}_.fileNameDialog({dir:c.path},"newDir","",_.getURL("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(){_.refreshDir(a);_.initDropUpload();if(!c.hasDirs){a.data("hasDirs",true);a.children("span.brace").addClass("closed")}});return false},!c.writable)}if(_.access.dirs.rename){_.menu.addItem("kcact:mvdir",_.label("Rename..."),function(f){if(!c.removable){return false}_.fileNameDialog({dir:c.path},"newName",c.name,_.getURL("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(e){if(!e.name){_.alert(_.label("Unknown error."));return}var g=(c.path==_.dir);a.children("span.folder").text(e.name);a.data("name",e.name);a.data("path",$.$.dirname(c.path)+"/"+e.name);if(g){_.dir=a.data("path")}_.initDropUpload()},true);return false},!c.removable)}if(_.access.dirs["delete"]){_.menu.addItem("kcact:rmdir",_.label("Delete"),function(){if(!c.removable){return false}_.confirm(_.label("Are you sure you want to delete this folder and all its content?"),function(e){$.ajax({type:"post",dataType:"json",url:_.getURL("deleteDir"),data:{dir:c.path},async:false,success:function(f){if(e){e()}if(_.check4errors(f)){return}a.parent().hide(500,function(){var h=a.parent().parent();var g=h.parent().children("a").first();a.parent().detach();if(!h.children("div.folder").get(0)){g.children("span.brace").first().removeClass("opened closed");g.parent().children(".folders").detach();g.data("hasDirs",false)}if(g.data("path")==_.dir.substr(0,g.data("path").length)){_.changeDir(g)}_.initDropUpload()})},error:function(){if(e){e()}_.alert(_.label("Unknown error."))}})});return false},!c.removable)}_.menu.show(d);$("div.folder > a > span.folder").removeClass("context");if(a.children("span.folder").hasClass("regular")){a.children("span.folder").addClass("context")}};_.openClipboard=function(){if(!_.clipboard||!_.clipboard.length){return}if($('#menu a[href="kcact:clrcbd"]').html()){$("#clipboard").removeClass("selected");_.menu.hide();return}setTimeout(function(){_.menu.init();var k=$("#menu"),e=$("#status"),f='
    • ';$.each(_.clipboard,function(a,l){var b=$.$.getFileExtension(l.name);if(l.thumb){b=".image"}else{if(!l.smallIcon||!b.length){b="."}}b="themes/"+_.theme+"/img/files/small/"+b+".png";f+=''+$.$.htmlData($.$.basename(l.name))+""});f+='
    • -
    • ';$("#menu ul").append(f);if(_.support.zip){_.menu.addItem("kcact:download",_.label("Download files"),function(){_.downloadClipboard();return false})}if(_.access.files.copy||_.access.files.move||_.access.files["delete"]){_.menu.addDivider()}if(_.access.files.copy){_.menu.addItem("kcact:cpcbd",_.label("Copy files here"),function(){if(!_.dirWritable){return false}_.copyClipboard(_.dir);return false},!_.dirWritable)}if(_.access.files.move){_.menu.addItem("kcact:mvcbd",_.label("Move files here"),function(){if(!_.dirWritable){return false}_.moveClipboard(_.dir);return false},!_.dirWritable)}if(_.access.files["delete"]){_.menu.addItem("kcact:rmcbd",_.label("Delete files"),function(){_.confirm(_.label("Are you sure you want to delete all files in the Clipboard?"),function(a){if(a){a()}_.deleteClipboard()});return false})}_.menu.addDivider();_.menu.addItem("kcact:clrcbd",_.label("Clear the Clipboard"),function(){_.clearClipboard();return false});$("#clipboard").addClass("selected");_.menu.show();var h=$(window).width()-k.css({width:""}).outerWidth(),g=$(window).height()-k.outerHeight()-e.outerHeight(),j=g+k.outerTopSpace();k.find(".list").css({"max-height":j,"overflow-y":"auto","overflow-x":"hidden",width:""});g=$(window).height()-k.outerHeight(true)-e.outerHeight(true);k.css({left:h-5,top:g}).fadeIn("fast");var d=k.find(".list").outerHeight(),c=k.find(".list div").outerHeight();if(c-d>10){k.css({left:parseInt(k.css("left"))-_.scrollbarWidth}).width(k.width()+_.scrollbarWidth)}},1)};_.viewImage=function(b){var d=new Date().getTime(),f=false,g=[],c=100,i=$(window),h,j,a,e,k=function(o){_.lock=true;var m=$.$.escapeDirs(_.uploadURL+"/"+_.dir+"/"+o.name)+"?ts="+d,l=new Image(),n=$(l),r=function(){_.lock=false;$("#files .file").each(function(){if($(this).data("name")==o.name){_.ssImage=this;return false}});n.hide().appendTo("body");var D=i.width(),M=i.height(),u=n.width(),A=n.height(),I=u,w=A,y=false,z=$('
      '),N=function(O){if(!_.lock){var t=g[O];_.currImg=O;k(t)}},G=function(){N((_.currImg>=g.length-1)?0:(_.currImg+1))},x=function(){N((_.currImg?_.currImg:g.length)-1)},F=function(t){if(_.ssImage){_.selectFile($(_.ssImage),t)}f.dialog("destroy").detach()};n.detach().appendTo(z);if(!f){y=true;var H=function(){f.dialog("destroy").detach()},L=function(){setTimeout(function(){f.find("input").get(0).focus()},100)};f=_.dialog(".","",{draggable:false,nopadding:true,close:H,show:false,hide:false,buttons:[{text:_.label("Previous"),icons:{primary:"ui-icon-triangle-1-w"},click:x},{text:_.label("Next"),icons:{secondary:"ui-icon-triangle-1-e"},click:G},{text:_.label("Select"),icons:{primary:"ui-icon-check"},click:F},{text:_.label("Close"),icons:{primary:"ui-icon-closethick"},click:H}]});f.click(G).css({overflow:"hidden"}).parent().css({width:"auto",height:"auto"});j=f.parent().click(L).rightClick(L).disableTextSelect().addClass("kcfImageViewer");a=j.find(".ui-dialog-titlebar").outerHeight()+j.find(".ui-dialog-buttonpane").outerHeight()+j.outerVSpace("b");e=j.outerHSpace("b");h=j.outerWidth()-e}var J=D-e,v=M-a+1,B=0,s=0,E=u,C=A;if((u>J)||(A>v)){if((v/J)<(A/u)){C=v;E=(u*C)/A}else{E=J;C=(A*E)/u}I=E;w=C}else{if((u');f.find("input").keydown(function(O){if(!_.lock){if(O.metaKey||O.ctrlKey||O.altKey||O.shiftKey){return}var t=O.keyCode;if((t==37)){x()}if((t==39)){G()}if((t==13)||(t==32)){F(O)}}}).get(0).focus();n.css({padding:B+"px 0 0 "+s+"px",width:I,height:w}).show();f.children().first().css({width:E,height:C,display:"none"}).fadeIn(150,function(){p();var t=o.name+" ("+u+" x "+A+")";f.prev().find(".ui-dialog-title").css({width:E-f.prev().find(".ui-dialog-titlebar-close").outerWidth()-20}).text(t).attr({title:t}).css({cursor:"default"})})})};if(y){K()}else{f.children().first().fadeOut(150,K)}},q=function(){if(f){f.prev().addClass("loading").find(".ui-dialog-title").text(_.label("Loading image...")).css({width:"auto"})}else{$("#loading").text(_.label("Loading image...")).show()}},p=function(){if(f){f.prev().removeClass("loading")}$("#loading").hide()};q();l.src=m;if(l.complete){r()}else{l.onload=r;l.onerror=function(){_.lock=false;p();_.alert(_.label("Unknown error."));_.refresh()}}};$.each(_.files,function(m,l){m=g.length;if(l.thumb||l.smallThumb){g[m]=l}if(l.name==b.name){_.currImg=m}});k(b);return false};_.initClipboard=function(){if(!_.clipboard||!_.clipboard.length){return}var b=0,c=$("#clipboard");$.each(_.clipboard,function(d,e){b+=e.size});b=_.humanSize(b);c.disableTextSelect().html('
      ');var a=function(){c.css({left:$(window).width()-c.outerWidth(),top:$(window).height()-c.outerHeight()})};a();c.show();$(window).unbind().resize(function(){_.resize();a()})};_.removeFromClipboard=function(a){if(!_.clipboard||!_.clipboard[a]){return false}if(_.clipboard.length==1){_.clearClipboard();_.menu.hide();return}if(a<_.clipboard.length-1){var b=_.clipboard.slice(a+1);_.clipboard=_.clipboard.slice(0,a);_.clipboard=_.clipboard.concat(b)}else{_.clipboard.pop()}_.initClipboard();_.menu.hide();_.openClipboard();return true};_.copyClipboard=function(b){if(!_.clipboard||!_.clipboard.length){return}var d=[],a=0;for(i=0;i<_.clipboard.length;i++){if(_.clipboard[i].readable){d[i]=_.clipboard[i].dir+"/"+_.clipboard[i].name}else{a++}}if(_.clipboard.length==a){_.alert(_.label("The files in the Clipboard are not readable."));return}var c=function(e){if(b==_.dir){_.fadeFiles()}$.ajax({type:"post",dataType:"json",url:_.getURL("cp_cbd"),data:{dir:b,files:d},async:false,success:function(f){if(e){e()}_.check4errors(f);_.clearClipboard();if(b==_.dir){_.refresh()}},error:function(){if(e){e()}$("#files > div").css({opacity:"",filter:""});_.alert(_.label("Unknown error."))}})};if(a){_.confirm(_.label("{count} files in the Clipboard are not readable. Do you want to copy the rest?",{count:a}),c)}else{c()}};_.moveClipboard=function(b){if(!_.clipboard||!_.clipboard.length){return}var d=[],a=0;for(i=0;i<_.clipboard.length;i++){if(_.clipboard[i].readable&&_.clipboard[i].writable){d[i]=_.clipboard[i].dir+"/"+_.clipboard[i].name}else{a++}}if(_.clipboard.length==a){_.alert(_.label("The files in the Clipboard are not movable."));return}var c=function(e){_.fadeFiles();$.ajax({type:"post",dataType:"json",url:_.getURL("mv_cbd"),data:{dir:b,files:d},async:false,success:function(f){if(e){e()}_.check4errors(f);_.clearClipboard();_.refresh()},error:function(){if(e){e()}$("#files > div").css({opacity:"",filter:""});_.alert(_.label("Unknown error."))}})};if(a){_.confirm(_.label("{count} files in the Clipboard are not movable. Do you want to move the rest?",{count:a}),c)}else{c()}};_.deleteClipboard=function(){if(!_.clipboard||!_.clipboard.length){return}var c=[],a=0;for(i=0;i<_.clipboard.length;i++){if(_.clipboard[i].readable&&_.clipboard[i].writable){c[i]=_.clipboard[i].dir+"/"+_.clipboard[i].name}else{a++}}if(_.clipboard.length==a){_.alert(_.label("The files in the Clipboard are not removable."));return}var b=function(d){_.fadeFiles();$.ajax({type:"post",dataType:"json",url:_.getURL("rm_cbd"),data:{files:c},async:false,success:function(e){if(d){d()}_.check4errors(e);_.clearClipboard();_.refresh()},error:function(){if(d){d()}$("#files > div").css({opacity:"",filter:""});_.alert(_.label("Unknown error."))}})};if(a){_.confirm(_.label("{count} files in the Clipboard are not removable. Do you want to delete the rest?",{count:a}),b)}else{b()}};_.downloadClipboard=function(){if(!_.clipboard||!_.clipboard.length){return}var a=[];for(i=0;i<_.clipboard.length;i++){if(_.clipboard[i].readable){a[i]=_.clipboard[i].dir+"/"+_.clipboard[i].name}}if(a.length){_.post(_.getURL("downloadClipboard"),{files:a})}};_.clearClipboard=function(){$("#clipboard").html("");_.clipboard=[]};_.initDropUpload=function(){if(!_.access.files.upload){return}var b=$("#files"),d=$("#folders").find("div.folder > a"),g,j,e,c,k,l=function(m){e=c=0;k=[];var i=m.dataTransfer.files;for(g=0;g
       
       
       
    ');j.find(".bar.count").progressbar({max:i.length,value:0});j.find(".bar.size").progressbar({max:e,value:0});j.find(".info").css("padding","5px 0").first().css("paddingTop",0);j.find(".info").last().css("paddingBottom",0);j=_.dialog(_.label("Uploading files"),j,{closeOnEscape:false,buttons:[]});j.parent().css("paddingBottom",0).find(".ui-dialog-titlebar button").css("visibility","hidden").get(0).disabled=true;return true},f={param:"upload[]",maxFilesize:_.dropUploadMaxFilesize,begin:function(n,i,m){j.find(".info.count").html(_.label("Uploading file {current} of {count}",{current:i,count:m}));j.find(".info.size").html(_.label("Uploaded {uploaded} of {total}",{uploaded:_.humanSize(c),total:_.humanSize(e)}));j.find(".info.errors").html(_.label("Errors:")+" "+k.length);j.find(".bar.count").progressbar({value:i});j.find(".bar.size").progressbar({value:c})},success:function(o,m,n){c+=o.file.size;var i=o.responseText;if(i.substr(0,1)!="/"){k.push($.$.htmlData(i))}},error:function(n,i,m){c+=n.file.size;k.push($.$.htmlData(n.file.name+": "+_.label("Failed to upload {filename}!",{filename:n.file.name})))},abort:function(n,m,i){c+=n.file.size;k.push($.$.htmlData(n.file.name+": "+_.label("Failed to upload {filename}!",{filename:n.file.name})))},filesizeCallback:function(n,m,i){c+=n.file.size;k.push($.$.htmlData(n.file.name+": "+_.label("The uploaded file exceeds {size} bytes.",{size:_.dropUploadMaxFilesize})))},finish:function(){_.refresh();j.find(".bar.size").progressbar({value:c});j.find(".info.size").html(_.label("Uploaded: {uploaded} of {total}",{uploaded:_.humanSize(c),total:_.humanSize(e)}));j.find(".info.errors").html(_.label("Errors:")+" "+k.length);var i=k;setTimeout(function(){j.dialog("destroy").detach();if(i.length){_.alert(i.join("
    "))}},500)}},h={ajax:{success:function(i){_.refresh();if(i.error){_.alert(i.error);return}},error:function(){_.refresh();_.alert(_.label("Unknown error."))},abort:function(){_.refresh()}}},a="&dir="+encodeURIComponent(_.dir);b.shDropUpload($.extend(f,{url:_.getURL("upload")+a,precheck:function(i){if(!$("#folders span.current").first().parent().data("writable")){_.alert(_.label("Cannot write to upload folder."));return false}return l(i)}}),$.extend(true,h,{ajax:{url:_.getURL("dragUrl")+a}}));d.each(function(){var m=this,i="&dir="+encodeURIComponent($(m).data("path"));$(m).shDropUpload($.extend(f,{url:_.getURL("upload")+i,precheck:function(n){if(!$(m).data("writable")){_.alert(_.label("Cannot write to upload folder."));return false}return l(n)}}),$.extend(true,h,{ajax:{url:_.getURL("dragUrl")+i}}))})};_.orderFiles=function(f,e){var b=$.$.kuki.get("order"),g=($.$.kuki.get("orderDesc")=="on"),c,d,a;if(!_.files||!_.files.sort){_.files=[]}_.files=_.files.sort(function(i,h){if(!b){b="name"}if(b=="date"){c=i.mtime;d=h.mtime}else{if(b=="type"){c=$.$.getFileExtension(i.name);d=$.$.getFileExtension(h.name)}else{if(b=="size"){c=i.size;d=h.size}else{c=i[b].toLowerCase();d=h[b].toLowerCase()}}}if((b=="size")||(b=="date")){if(cd){return g?-1:1}}if(c==d){c=i.name.toLowerCase();d=h.name.toLowerCase();a=[c,d];a=a.sort();return(a[0]==c)?-1:1}a=[c,d];a=a.sort();if(a[0]==c){return g?1:-1}return g?-1:1});_.showFiles(f,e);_.initFiles()};_.humanSize=function(a){if(a<1024){a=a.toString()+" B"}else{if(a<1048576){a/=1024;a=parseInt(a).toString()+" KB"}else{if(a<1073741824){a/=1048576;a=parseInt(a).toString()+" MB"}else{if(a<1099511627776){a/=1073741824;a=parseInt(a).toString()+" GB"}else{a/=1099511627776;a=parseInt(a).toString()+" TB"}}}}return a};_.getURL=function(a,c){if(!c){c=_.lang}var b="browse.php?type="+encodeURIComponent(_.type)+"&lng="+encodeURIComponent(c);if(_.opener.name){b+="&opener="+encodeURIComponent(_.opener.name)}if(a){b+="&act="+encodeURIComponent(a)}if(_.cms){b+="&cms="+encodeURIComponent(_.cms)}return b};_.label=function(b,c){var a=_.labels[b]?_.labels[b]:b;if(c){$.each(c,function(d,e){a=a.replace("{"+d+"}",e)})}return a};_.check4errors=function(a){if(!a.error){return false}var b=a.error.join?a.error.join("\n"):a.error;_.alert(b);return true};_.post=function(a,c){var b='
    ';$.each(c,function(d,e){if($.isArray(e)){$.each(e,function(g,f){b+=''})}else{b+=''}});b+="
    ";$("#menu").html(b).show();$("#postForm").get(0).submit()};_.fadeFiles=function(){$("#files > div").css({opacity:"0.4",filter:"alpha(opacity=40)"})}; \ No newline at end of file diff --git a/cache/theme_dark.css b/cache/theme_dark.css new file mode 100644 index 0000000..bde5f16 --- /dev/null +++ b/cache/theme_dark.css @@ -0,0 +1 @@ +.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:alpha(opacity=0)}.ui-front{z-index:100}.ui-widget .ui-widget,.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-size:1em}.ui-widget-content{border:1px solid #888;background:#000;color:#aaa}.ui-widget-content a{color:#aaa}.ui-widget-header{border:1px solid #4685b3;color:#fff;font-weight:bold;background:#184977;background:-webkit-linear-gradient(top,#184977,#4685b3);background:-moz-linear-gradient(top,#184977,#4685b3);background:-ms-linear-gradient(top,#184977,#4685b3);background:-o-linear-gradient(top,#184977,#4685b3);background:linear-gradient(to bottom,#184977,#4685b3)}.ui-widget-header a{color:#fff}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default,.ui-widget.ui-state-disabled{transition:.2s;border:1px solid #555;background:#333;background:-webkit-linear-gradient(top,#555,#111);background:-moz-linear-gradient(top,#555,#111);background:-ms-linear-gradient(top,#555,#111);background:-o-linear-gradient(top,#555,#111);background:linear-gradient(to bottom,#555,#111);font-weight:bold;color:#aaa}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{transition:.2s;background:-webkit-linear-gradient(top,#111,#555);background:-moz-linear-gradient(top,#111,#555);background:-ms-linear-gradient(top,#111,#555);background:-o-linear-gradient(top,#111,#555);background:linear-gradient(to bottom,#111,#555)}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active,.ui-menu .ui-state-focus{transition:.2s;border:1px solid #184977;background:#4685b3;background:-webkit-linear-gradient(top,#184977,#4685b3);background:-moz-linear-gradient(top,#184977,#4685b3);background:-ms-linear-gradient(top,#184977,#4685b3);background:-o-linear-gradient(top,#184977,#4685b3);background:linear-gradient(to bottom,#184977,#4685b3);font-weight:bold;color:#fff}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited,.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{transition:.2s;color:#fff;text-decoration:none}.ui-menu .ui-state-active{transition:.2s;border-color:#6b6b6b;background:#6b6b6b;background:-webkit-linear-gradient(top,#6b6b6b,#ababab);background:-moz-linear-gradient(top,#6b6b6b,#ababab);background:-ms-linear-gradient(top,#6b6b6b,#ababab);background:-o-linear-gradient(top,#6b6b6b,#ababab);background:linear-gradient(to bottom,#6b6b6b,#ababab)}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #d5bc2c;box-shadow:inset 0 0 5px #d5bc2c;background:#fff6bf;color:#aaa}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cf7f7f;box-shadow:inset 0 0 5px #cf7f7f;background:#fac4c4;color:#aaa}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a,.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a,.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#aaa}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.5;filter:alpha(opacity=50);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.50;filter:alpha(opacity=50);background-image:none}.ui-state-disabled .ui-icon{filter:alpha(opacity=50)}.ui-state-disabled{cursor:default !important}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin-top:2px;padding:6px;min-height:0}.ui-accordion .ui-accordion-icons,.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:24px}.ui-accordion .ui-accordion-noicons{padding-left:5px}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:5px;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:pointer}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:36px}.ui-button-icons-only{width:50px}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:6px 10px}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:6px;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:6px 10px 6px 28px}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:6px 28px 6px 10px}.ui-button-text-icons .ui-button-text{padding-left:28px;padding-right:28px}input.ui-button{padding:6px 10px}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:7px}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:7px}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-buttonset{margin:0;overflow:auto}.ui-buttonset .ui-button{margin:0;float:left}.ui-datepicker{width:19em;display:none;padding:10px}.ui-datepicker .ui-datepicker-header{position:relative;padding:2px 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:4px;width:20px;height:20px}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:3px}.ui-datepicker .ui-datepicker-prev{left:4px}.ui-datepicker .ui-datepicker-next{right:4px}.ui-datepicker .ui-datepicker-prev-hover{left:3px}.ui-datepicker .ui-datepicker-next-hover{right:3px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 10px;padding:4px 0;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:-2px 2px;padding:0;outline:0}.ui-datepicker table{width:100%;border-collapse:collapse;margin:0;font-size:1em}.ui-datepicker th{padding:3px;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:2px 3px;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:10px -11px -11px -11px;padding:10px;border:1px solid #184977;background:#e4f5ff;overflow:auto}.ui-datepicker .ui-datepicker-buttonpane button{float:right;cursor:pointer;width:auto;overflow:visible;margin:0;padding:6px 10px;font-weight:bold;opacity:1;filter:alpha(opacity=100)}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto;padding:10px}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group .ui-datepicker-header{margin:0}.ui-datepicker-multi .ui-datepicker-group.ui-datepicker-group-last{margin-right:0}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;font-size:0;width:100px}th.ui-datepicker-week-col{color:#215b82}td.ui-datepicker-week-col{text-align:right;padding-right:7px;color:#215b82}td.ui-datepicker-other-month a.ui-state-default{font-weight:bold}th.ui-datepicker-week-end{color:#f44}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{position:absolute;top:0;left:0;padding:4px;outline:0;box-shadow:0 0 10px #000}.ui-dialog .ui-dialog-titlebar{padding:5px 10px;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:0;padding:1px 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:21px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:1em;margin:0 -4px;background:0;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;padding:10px}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:0 0 0 5px;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{margin-top:-3px;position:absolute}.ui-menu .ui-menu-item{margin:0;padding:0;width:100%;list-style-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}.ui-menu .ui-menu-divider{margin:1px 10px 1px 10px;height:0;font-size:0;line-height:0;border-width:1px 0 0 0;border-color:#777}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:5px 10px;line-height:1.5;min-height:0;font-weight:normal;border-radius:0}.ui-menu .ui-menu-item a.ui-state-focus,.ui-menu .ui-menu-item a.ui-state-active{font-weight:normal;margin:-1px;transition:none}.ui-menu .ui-state-disabled{font-weight:normal;line-height:1.5}.ui-menu .ui-state-disabled a{cursor:default}.ui-menu.ui-corner-all.sh-menu{border-radius:4px}.ui-menu.ui-corner-all,.ui-menu.sh-menu.ui-autocomplete.ui-corner-all{border-radius:0}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}.ui-menu .ui-icon{position:absolute;top:.2em;left:.2em}.ui-menu .ui-menu-icon{position:static;float:right}.ui-progressbar{height:2.1em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{height:100%;filter:alpha(opacity=25);opacity:.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-slider{position:relative;text-align:left;margin:0 13px;border-radius:15px}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:18px;height:18px;border-radius:9px;cursor:default;box-shadow:0 0 3px #aaa,inset 0 0 7px #fff,inset 0 0 3px #fff}.ui-slider .ui-slider-handle.ui-state-active{box-shadow:0 0 3px #4685b3,inset 0 0 7px #fff,inset 0 0 3px #fff}.ui-slider .ui-slider-range{position:absolute;z-index:1;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:10px}.ui-slider-horizontal .ui-slider-handle{top:-5px;margin-left:-9px}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:10px;height:150px}.ui-slider-vertical .ui-slider-handle{left:-5px;margin-left:0;margin-bottom:-9px}.ui-slider-vertical .ui-slider-range{left:-1px;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-spinner.ui-widget{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle;background:#fff;background:-webkit-linear-gradient(top,#f0f0f0,#fff);background:-moz-linear-gradient(top,#f0f0f0,#fff);background:-ms-linear-gradient(top,#f0f0f0,#fff);background:-o-linear-gradient(top,#f0f0f0,#fff);background:linear-gradient(to bottom,#f0f0f0,#fff)}.ui-spinner-input{border:0;color:inherit;padding:0;margin:6px 24px 6px 10px;vertical-align:middle;outline:0;background:transparent}.ui-spinner-input{color:#aaa}.ui-spinner-input:focus{color:#000}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:0;border-bottom:0;border-right:0}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative}.ui-tabs .ui-tabs-nav{margin:0;padding:3px 3px 0 3px}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px 3px 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav li a{float:left;padding:6px 10px;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text}.ui-tabs .ui-tabs-nav li a,.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em;background:0}body .ui-tooltip{padding:6px 10px;position:absolute;z-index:9999;max-width:300px;color:gray;border-color:#a5a5a5;box-shadow:inset 0 0 4px #a5a5a5,0 0 4px #a5a5a5;background:-webkit-linear-gradient(top,#ddd,#fff);background:-moz-linear-gradient(top,#ddd,#fff);background:-ms-linear-gradient(top,#ddd,#fff);background:-o-linear-gradient(top,#ddd,#fff);background:linear-gradient(to bottom,#ddd,#fff)}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;width:16px;height:16px}.ui-icon,.ui-button.ui-state-active .ui-icon,.ui-dialog .ui-dialog-titlebar-close .ui-icon{background-image:url(img/ui-icons_white.png)}.ui-button .ui-icon{background-image:url(img/ui-icons_grey.png)}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl,.ui-menu .ui-menu-item.ui-menu-item-first a{border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr,.ui-menu .ui-menu-item.ui-menu-item-first a{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl,.ui-menu .ui-menu-item.ui-menu-item-last a,.ui-dialog-buttonpane,.ui-datepicker-multi .ui-datepicker-group-first .ui-datepicker-header,.ui-datepicker .ui-datepicker-buttonpane{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br,.ui-menu .ui-menu-item.ui-menu-item-last a,.ui-dialog-buttonpane,.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker .ui-datepicker-buttonpane{border-bottom-right-radius:4px}.ui-widget-overlay{background:rgba(255,255,255,.5)}.ui-widget-shadow{margin:-7px 0 0 -7px;padding:7px;background:rgba(0,0,0,.3);border-radius:8px}.ui-accordion-content-active,.ui-tabs,.ui-slider-range,.ui-datepicker,.ui-dialog{border-color:#4d637c}.ui-slider .ui-slider-range{border:1px solid #4685b3;top:-1px}.ui-progressbar{overflow:visible}.ui-progressbar-value{border:1px solid #4685b3;margin-top:-1px}.ui-button{box-shadow:inset 0 0 3px #555,inset 0 0 6px #555,0 0 3px #000,0 0 2px #000}.ui-button.ui-state-active{box-shadow:inset 0 0 3px #88b9da,0 0 3px #000,0 0 2px #000}.ui-widget-header,.ui-menu-item .ui-state-focus{box-shadow:inset 0 0 3px #88b9da}.ui-state-default,.ui-state-focus,.ui-state-active,.ui-widget-header,fieldset.sh-uniform label,fieldset.sh-uniform legend{text-shadow:1px 0 rgba(0,0,0,.2),-1px 0 rgba(0,0,0,.2),0 -1px rgba(0,0,0,.2),0 1px rgba(0,0,0,.2),1px 1px rgba(0,0,0,.2),-1px -1px rgba(0,0,0,.2),1px -1px rgba(0,0,0,.2),-1px 1px rgba(0,0,0,.2)}.ui-tabs .ui-state-active,.ui-datepicker .ui-state-highlight{text-shadow:none}.ui-datepicker .ui-state-highlight{color:#215b82;border-color:#4685b3;box-shadow:inset 0 0 4px #4685b3;background:#fff;background:-webkit-linear-gradient(top,#dfeef8,#fff);background:-moz-linear-gradient(top,#dfeef8,#fff);background:-ms-linear-gradient(top,#dfeef8,#fff);background:-o-linear-gradient(top,#dfeef8,#fff);background:linear-gradient(to bottom,#dfeef8,#fff)}.ui-progressbar,.ui-slider,.ui-menu{box-shadow:inset 0 0 4px #666,0 0 3px #000,0 0 6px #000;background:#000;background:-webkit-linear-gradient(top,#111,#444);background:-moz-linear-gradient(top,#111,#444);background:-ms-linear-gradient(top,#111,#444);background:-o-linear-gradient(top,#111,#444);background:linear-gradient(to bottom,#111,#444)}.ui-slider,.ui-spinner,.ui-progressbar,.ui-menu{border-color:#555}.ui-datepicker-calendar .ui-state-default{border-radius:3px}.ui-tabs .ui-tabs-nav{margin:-1px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding-left:3px}.ui-tabs-active.ui-state-active{background:#fff;background:-webkit-linear-gradient(top,#ccc,#ddd,#eee,#fff,#fff,#fff);background:-moz-linear-gradient(top,#ccc,#ddd,#eee,#fff,#fff,#fff);background:-ms-linear-gradient(top,#ccc,#ddd,#eee,#fff,#fff,#fff);background:-o-linear-gradient(top,#ccc,#ddd,#eee,#fff,#fff,#fff);background:linear-gradient(to bottom,#ccc,#ddd,#eee,#fff,#fff,#fff);box-shadow:inset 0 0 5px #fff,inset 0 0 5px #fff,inset 0 0 5px #fff}.ui-tabs-active.ui-state-active a{color:#215b82}.ui-state-default,.ui-state-default a{outline:0}.ui-datepicker-header,.ui-dialog-titlebar{border-bottom-right-radius:0;border-bottom-left-radius:0;margin:-5px -5px 0 -5px}.ui-datepicker-header{margin:-11px -11px 5px -11px}.ui-datepicker-header a:hover{cursor:pointer}.ui-dialog-titlebar-close.ui-state-default{border-color:transparent;background:0;box-shadow:none}.ui-dialog-titlebar-close.ui-state-default.ui-state-hover{transition:.2s;border:1px solid #555;background:#333;background:-webkit-linear-gradient(top,#555,#111);background:-moz-linear-gradient(top,#555,#111);background:-ms-linear-gradient(top,#555,#111);background:-o-linear-gradient(top,#555,#111);background:linear-gradient(to bottom,#555,#111);box-shadow:inset 0 0 3px #555,inset 0 0 6px #555,0 0 3px #000,0 0 2px #000}.ui-dialog-buttonpane{background:#202d3e;box-shadow:inset 0 0 3px #000,inset 0 0 2px #000;border-top-color:#4d637c;margin:0 -4px -4px -4px;padding:0}.tf-select,.tf-input,.tf-textarea,.tf-multiple,.tf-label,.tf-fieldset legend,.tf-file,.tf-file input,.tf-radio,.tf-checkbox,.tf-button,.tf-input.tf-color,.tf-input.tf-range{font-size:13px;cursor:pointer}.tf-select .tf-selected,.tf-input,.tf-multiple,.tf-textarea,.tf-file .tf-info,.tf-radio,.tf-checkbox{background:#000;background:-webkit-linear-gradient(top,#111,#333);background:-moz-linear-gradient(top,#111,#333);background:-ms-linear-gradient(top,#111,#333);background:-o-linear-gradient(top,#111,#333);background:linear-gradient(to bottom,#111,#333);box-shadow:inset 0 0 4px #555;border:1px solid #666;color:#aaa;border-radius:4px;color:#6b6b6b;padding:6px 10px}.tf-select.tf-focused .tf-selected,.tf-select .tf-menu,.tf-multiple.tf-focused,.tf-input:focus,.tf-textarea:focus,.tf-file.tf-focused .tf-info,.tf-radio.tf-focused,.tf-checkbox.tf-focused{background:#202d3e;background:-webkit-linear-gradient(top,#131427,#273446);background:-moz-linear-gradient(top,#131427,#273446);background:-ms-linear-gradient(top,#131427,#273446);background:-o-linear-gradient(top,#131427,#273446);background:linear-gradient(to bottom,#131427,#273446);box-shadow:inset 0 0 4px #4d637c;border:1px solid #4d637c;color:#fff}.tf-button,.tf-file .tf-button{background:#333;background:-webkit-linear-gradient(top,#555,#111);background:-moz-linear-gradient(top,#555,#111);background:-ms-linear-gradient(top,#555,#111);background:-o-linear-gradient(top,#555,#111);background:linear-gradient(to bottom,#555,#111);box-shadow:inset 0 0 7px #555,inset 0 0 3px #555,0 0 3px #000,0 0 6px #000;border:1px solid #555;border-radius:4px;padding:6px 10px}.tf-file .tf-button,.tf-select .tf-button{box-shadow:inset 0 0 7px #555,inset 0 0 3px #555}.tf-file.tf-focused .tf-button,.tf-button.tf-focused,.tf-select.tf-focused .tf-button{background:#4685b3;background:-webkit-linear-gradient(top,#4685b3,#184977);background:-moz-linear-gradient(top,#4685b3,#184977);background:-ms-linear-gradient(top,#4685b3,#184977);background:-o-linear-gradient(top,#4685b3,#184977);background:linear-gradient(to bottom,#4685b3,#184977);box-shadow:inset 0 0 7px #4e9ed4,inset 0 0 3px #4e9ed4,0 0 3px #000,0 0 6px #000;border-color:#4685b3;color:#fff}.tf-file.tf-focused .tf-button,.tf-select.tf-focused .tf-button{box-shadow:inset 0 0 7px #4e9ed4,inset 0 0 3px #4e9ed4}.tf-select .tf-menu .tf-hover,.tf-multiple .tf-hover,.tf-multiple .tf-selected,.tf-button{color:#fff;text-shadow:1px 0 rgba(0,0,0,.2),-1px 0 rgba(0,0,0,.2),0 -1px rgba(0,0,0,.2),0 1px rgba(0,0,0,.2),1px 1px rgba(0,0,0,.2),-1px -1px rgba(0,0,0,.2),1px -1px rgba(0,0,0,.2),-1px 1px rgba(0,0,0,.2)}.tf-select .tf-selected{border-radius:4px 0 0 4px}.tf-select .tf-button{border-left:0;border-radius:0 4px 4px 0}.tf-select .tf-button span{display:block;background:url('img/ui-icons_grey.png') -64px -15px;width:16px;margin-left:4px;margin-right:5px}.tf-select.tf-focused .tf-button span{background-image:url('img/ui-icons_white.png')}.tf-select .tf-menu{border-radius:0 0 4px 4px}.tf-select .tf-menu div,.tf-multiple div{border:1px solid transparent;border-left-width:0;border-right-width:0;padding:6px 10px;margin-top:-1px}.tf-select .tf-menu .tf-hover,.tf-multiple.tf-focused .tf-hover,.tf-multiple.tf-focused .tf-selected,.tf-select.tf-opened.tf-focused .tf-button{border-color:#4685b3;background:#4685b3;background:-webkit-linear-gradient(top,#184977,#4685b3);background:-moz-linear-gradient(top,#184977,#4685b3);background:-ms-linear-gradient(top,#184977,#4685b3);background:-o-linear-gradient(top,#184977,#4685b3);background:linear-gradient(to bottom,#184977,#4685b3);box-shadow:inset 0 0 7px #4e9ed4,inset 0 0 3px #4e9ed4}.tf-select.tf-opened .tf-button{background:#111;background:-webkit-linear-gradient(top,#555,#111);background:-moz-linear-gradient(top,#555,#111);background:-ms-linear-gradient(top,#555,#111);background:-o-linear-gradient(top,#555,#111);background:linear-gradient(to bottom,#555,#111);box-shadow:inset 0 0 7px #555,inset 0 0 3px #555}.tf-select .tf-menu .tf-group-last,.tf-select .tf-menu div.tf-last{border-bottom-width:0}.tf-select .tf-menu ul{overflow:hidden}.tf-select .tf-menu li.tf-last{margin-bottom:-1px}.tf-select .tf-menu .tf-last{border-radius:0 0 4px 4px}.tf-select.tf-opened .tf-selected{border-radius:4px 0 0 0}.tf-select.tf-opened .tf-button{border-radius:0 4px 0 0}.tf-select .tf-menu li,.tf-multiple.tf-focused li{border-bottom:1px solid #54b0e0;border-top:1px solid #54b0e0;margin:-1px 0}.tf-select .tf-menu li>span,.tf-multiple li>span,.tf-multiple.tf-focused li>span{display:block;padding:6px 10px;text-align:center;font-weight:bold;color:#6b6b6b;background:#a7deff;border-bottom:1px solid #54b0e0;cursor:default;white-space:nowrap}.tf-multiple{padding:0}.tf-multiple li{border:1px solid #54b0e0;border-right:0;border-left:0;margin:-1px 0}.tf-multiple li>span{color:#70a5d1;border-color:#54b0e0;background:#c1ddf5}.tf-multiple .tf-hover,.tf-multiple .tf-selected,.tf-multiple.tf-focused .tf-hover{background:#4685b3;background:-webkit-linear-gradient(top,#184977,#4685b3);background:-moz-linear-gradient(top,#184977,#4685b3);background:-ms-linear-gradient(top,#184977,#4685b3);background:-o-linear-gradient(top,#184977,#4685b3);background:linear-gradient(to bottom,#184977,#4685b3);box-shadow:inset 0 0 7px #4e9ed4,inset 0 0 3px #4e9ed4;border-color:#4685b3}.tf-multiple .tf-hover,.tf-multiple .tf-selected{border:1px solid #54b0e0;border-left:0;border-right:0}.tf-multiple div.tf-first{border-top:0;border-radius:4px 4px 0 0;margin-top:0}.tf-multiple div.tf-last{border-bottom:0;border-radius:0 0 4px 4px}.tf-multiple .tf-group-first{border-top:0;margin-top:0}.tf-multiple li.tf-last,.tf-multiple .tf-group-last{border-bottom:0}.tf-file{width:200px;padding:0;overflow:auto}.tf-file .tf-info,.tf-file.tf-focused .tf-info{padding:6px 10px;border-radius:4px 0 0 4px;border-right:0}.tf-file .tf-button{border-radius:0 4px 4px 0;color:transparent;text-shadow:none;padding:6px 8px}.tf-file .tf-button span{margin:0 0 0 -4px;width:16px;height:16px;display:block;overflow:hidden;background:url('img/ui-icons_grey.png') -16px -96px}.tf-file .tf-button:after{content:"\00a0"}.tf-file input::-webkit-file-upload-button{cursor:pointer}.tf-radio{width:15px;height:15px;padding:0;border-radius:8px}.tf-radio input{width:17px;height:17px;margin:-1px 0 0 -1px;cursor:pointer}.tf-radio span{width:15px;height:15px;display:block;float:right}.tf-radio.tf-checked span{background:url('img/ui-icons_grey.png') -80px -145px}.tf-radio.tf-checked.tf-focused span{background-image:url('img/ui-icons_white.png')}.tf-checkbox{padding:0;width:15px;height:15px;border-radius:3px}.tf-checkbox input{width:17px;height:17px;margin:-1px 0 0 -1px;cursor:pointer}.tf-checkbox.tf-checked span{width:15px;height:15px;display:block;background:url('img/ui-icons_grey.png') -64px -145px;float:right}.tf-checkbox.tf-focused.tf-checked span{background-image:url('img/ui-icons_white.png')}.tf-button{overflow:hidden;padding:0}.tf-button span{margin:3px 7px;float:right}.tf-button input,.tf-button button{cursor:pointer}.tf-input,.tf-textarea{outline:0;cursor:text;margin:0}.tf-input::-webkit-input-placeholder,.tf-textarea::-webkit-input-placeholder{color:#aaa}.tf-input:-moz-placeholder,.tf-textarea:-moz-placeholder{color:#aaa}.tf-input::-moz-placeholder,.tf-textarea::-moz-placeholder{color:#aaa}.tf-input:-ms-input-placeholder,.tf-textarea:-ms-input-placeholder{color:#aaa}.tf-input:focus::-webkit-input-placeholder,.tf-textarea:focus::-webkit-input-placeholder{color:#184977}.tf-input:focus:-moz-placeholder,.tf-textarea:focus:-moz-placeholder{color:#184977}.tf-input:focus::-moz-placeholder,.tf-textarea:focus::-moz-placeholder{color:#184977}.tf-input:focus:-ms-input-placeholder,.tf-textarea:focus:-ms-input-placeholder{color:#184977}.tf-fieldset{color:#aaa;border:1px solid #425064;border-radius:4px;background:#202d3e;box-shadow:inset 0 0 3px #000,inset 0 0 6px #000,0 0 3px #425064,0 0 2px #425064;margin:0 10px 10px 0;padding:10px}.tf-fieldset legend{font-weight:bold;color:#aaa}.tf-label{color:#aaa}.tf-label.tf-focused{color:#fff}.tf-disabled{opacity:.5;filter:alpha(opacity=50)}.tf-disabled,.tf-disabled input,.tf-disabled button,.tf-disabled * *.tf-disabled{cursor:default}.tf-file.tf-disabled input::-webkit-file-upload-button{cursor:pointer}.tf-fieldset.tf-disabled,.tf-form.tf-disabled{opacity:1;filter:alpha(opacity=100)}.tf-input.tf-color{width:30px;padding:0;height:24px}.tf-input.tf-number{text-align:right}.tf-input.tf-range{height:9px;margin:8px 0 7px 0}.tf-input.tf-search,.tf-input.tf-search.tf-readOnly{border-radius:11px}.tf-input.tf-datetime,.tf-input.tf-datetime-local,.tf-input.tf-month,.tf-input.tf-time,.tf-input.tf-week,.tf-input.tf-datetime:focus,.tf-input.tf-datetime-local:focus,.tf-input.tf-month:focus,.tf-input.tf-time:focus,.tf-input.tf-week:focus{padding:1px 5px}*{font-size:13px}body{background:#000;color:#aaa}fieldset td{white-space:nowrap}#folders{margin:5px 5px 0 5px}#files{margin-right:5px}#toolbar a:hover,#toolbar a.hover,span.current,span.regular:hover,span.context,a.drag>span.folder,#clipboard div:hover,div.file:hover,#files div.selected,#files div.selected:hover,tr.selected>td,tr.selected:hover>td,#menu .list div a:hover,#toolbar a.selected{color:#fff;text-shadow:1px 0 rgba(0,0,0,.2),-1px 0 rgba(0,0,0,.2),0 -1px rgba(0,0,0,.2),0 1px rgba(0,0,0,.2),1px 1px rgba(0,0,0,.2),-1px -1px rgba(0,0,0,.2),1px -1px rgba(0,0,0,.2),-1px 1px rgba(0,0,0,.2)}#files div{text-shadow:1px 0 rgba(0,0,0,.2),-1px 0 rgba(0,0,0,.2),0 -1px rgba(0,0,0,.2),0 1px rgba(0,0,0,.2),1px 1px rgba(0,0,0,.2),-1px -1px rgba(0,0,0,.2),1px -1px rgba(0,0,0,.2),-1px 1px rgba(0,0,0,.2)}#files,#folders,#toolbar a.selected{color:#aaa;border:1px solid #425064;border-radius:4px;background:#202d3e;box-shadow:inset 0 0 3px #000,inset 0 0 6px #000,0 0 3px #425064,0 0 2px #425064}#toolbar{padding:5px 0}#toolbar a{color:#949494;margin-right:5px;border:1px solid transparent;outline:0;display:block;float:left;border-radius:4px;padding:0}#toolbar a>span{padding:6px 10px 6px 26px;diaplay:block;float:left;background:no-repeat 6px center}#toolbar a:hover,#toolbar a.hover{color:#fff;border-color:#184977;background:#4685b3;background:-webkit-linear-gradient(top,#4685b3,#184977);background:-moz-linear-gradient(top,#4685b3,#184977);background:-ms-linear-gradient(top,#4685b3,#184977);background:-o-linear-gradient(top,#4685b3,#184977);background:linear-gradient(to bottom,#4685b3,#184977);box-shadow:inset 0 0 3px #88b9da}#toolbar a[href="kcact:upload"] span{background-image:url(img/icons/upload.png)}#toolbar a[href="kcact:refresh"] span{background-image:url(img/icons/refresh.png)}#toolbar a[href="kcact:settings"] span{background-image:url(img/icons/settings.png)}#toolbar a[href="kcact:about"] span{background-image:url(img/icons/about.png)}#toolbar a[href="kcact:maximize"] span{background-image:url(img/icons/maximize.png)}#settings label{cursor:pointer}#settings fieldset{margin-right:5px;margin-bottom:6px;margin-top:-5px;padding:6px}div.folder{padding-top:2px;margin-top:5px;white-space:nowrap}div.folder a{text-decoration:none;cursor:default;outline:0;color:#aaa}span.folder{padding:2px 3px 2px 23px;outline:0;background:no-repeat 3px center;cursor:pointer;border-radius:3px;border:1px solid transparent}span.brace{width:16px;height:16px;outline:0}span.current{transition:.3s;background-image:url(img/tree/folder.png);background-color:#306999;border-color:#306999;box-shadow:inset 0 0 7px #8fd6ea,inset 0 0 3px #8fd6ea,0 0 2px #000,0 0 1px #000}span.regular{transition:.3s;background-image:url(img/tree/folder.png);background-color:transparent}span.regular:hover,span.context,a.drag>span.folder,#clipboard div:hover{transition:.3s;background-color:#333;border-color:#777;box-shadow:inset 0 0 7px #777,inset 0 0 3px #777,0 0 2px #000,0 0 1px #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 transparent;border-radius:4px}div.file:hover{box-shadow:inset 0 0 7px #555,inset 0 0 3px #555,0 0 3px #000,0 0 6px #000;background:#000;background:-webkit-linear-gradient(top,#111,#555);background:-moz-linear-gradient(top,#111,#555);background:-ms-linear-gradient(top,#111,#555);background:-o-linear-gradient(top,#111,#555);background:linear-gradient(to bottom,#111,#555);border-color:#555}div.file .name{margin-top:4px;font-weight:bold;height:16px;overflow:hidden;padding-bottom:2px}div.file .time{font-size:10px}div.file .size{font-size:10px}#files div.selected,#files div.selected:hover{border-color:#4685b3;background:#4685b3;background:-webkit-linear-gradient(top,#4685b3,#184977);background:-moz-linear-gradient(top,#4685b3,#184977);background:-ms-linear-gradient(top,#4685b3,#184977);background:-o-linear-gradient(top,#4685b3,#184977);background:linear-gradient(to bottom,#4685b3,#184977);box-shadow:inset 0 0 7px #4e9ed4,inset 0 0 3px #4e9ed4,0 0 3px #000,0 0 6px #000}tr.file>td{padding:3px 4px}tr.file:hover>td{background-color:#000;transition:none}tr.selected>td,tr.selected:hover>td{transition:.3s;background-color:#2d5277}tr.file td.name{background-position:2px center;padding-left:22px}a.denied{color:#666;opacity:.5;filter:alpha(opacity:50);cursor:default}a.denied:hover{background-color:#e4e3e2;border-color:transparent;box-shadow:none}#menu .ui-menu a span{background:left center no-repeat;padding-left:20px;white-space:nowrap}#menu a[href="kcact:refresh"] span{background-image:url(img/icons/refresh.png)}#menu a[href="kcact:mkdir"] span{background-image:url(img/icons/folder-new.png)}#menu a[href="kcact:mvdir"] span,#menu a[href="kcact:mv"] span{background-image:url(img/icons/rename.png)}#menu a[href="kcact:rmdir"] span,#menu a[href="kcact:rm"] span,#menu a[href="kcact:rmcbd"] span{background-image:url(img/icons/delete.png)}#menu a[href="kcact:clpbrdadd"] span{background-image:url(img/icons/clipboard-add.png)}#menu a[href="kcact:pick"] span,#menu a[href="kcact:pick_thumb"] span{background-image:url(img/icons/select.png)}#menu a[href="kcact:download"] span{background-image:url(img/icons/download.png)}#menu a[href="kcact:view"] span{background-image:url(img/icons/view.png)}#menu a[href="kcact:cpcbd"] span{background-image:url(img/icons/copy.png)}#menu a[href="kcact:mvcbd"] span{background-image:url(img/icons/move.png)}#menu a[href="kcact:clrcbd"] span{background-image:url(img/icons/clipboard-clear.png)}#clipboard{margin-left:-3px;padding:2px}#clipboard div{background:url(img/icons/clipboard.png) no-repeat center center;border:1px solid transparent;padding:2px;cursor:pointer;border-radius:4px}#clipboard.selected div,#clipboard.selected div:hover{background-color:#306999;border-color:#306999;box-shadow:inset 0 0 7px #8fd6ea,inset 0 0 3px #8fd6ea}#menu .list a,#menu .list a.ui-state-focus{margin:-1px 0 0 -1px;padding:6px 10px;border:1px solid transparent;background:0;border-radius:0;text-shadow:none;box-shadow:none}#menu .list a.first,#menu .list a.first.ui-state-focus{border-radius:4px 4px 0 0}#menu .list a:hover{border-color:#4685b3;background:#4685b3;background:-webkit-linear-gradient(top,#184977,#4685b3);background:-moz-linear-gradient(top,#184977,#4685b3);background:-ms-linear-gradient(top,#184977,#4685b3);background:-o-linear-gradient(top,#184977,#4685b3);background:linear-gradient(to bottom,#184977,#4685b3);box-shadow:inset 0 0 7px #4e9ed4,inset 0 0 3px #4e9ed4}#menu .list{overflow:hidden;max-height:1px;margin-bottom:-1px;padding-bottom:1px}#menu li.div-files{margin:0 0 1px 0}.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;outline:0}.about a{text-decoration:none;color:#3665b4}.about a:hover{text-decoration:underline}#checkver{margin:5px 0 10px 0}#loading,#checkver>span.loading{background:url(img/loading.gif);border:1px solid #425064;box-shadow:inset 0 0 3px #000,inset 0 0 6px #000,0 0 3px #425064,0 0 2px #425064;padding:6px 10px;border-radius:4px;color:#aaa}#checkver a{font-weight:normal;padding:3px 3px 3px 20px;background:url(img/icons/download.png) no-repeat left center}.kcfImageViewer .ui-dialog-content{background:#000;cursor:pointer}.kcfImageViewer .img{background:url(img/bg_transparent.png)}.ui-dialog-titlebar.loading{background:url(img/loading.gif);box-shadow:inset 0 0 3px #000,inset 0 0 6px #000;border-color:#425064}.ui-dialog-titlebar.loading .ui-dialog-title{color:#aaa;font-weight:normal}.ui-dialog-titlebar.loading .ui-dialog-titlebar-close .ui-button-icon-primary.ui-icon.ui-icon-closethick{background-image:url(img/ui-icons_grey.png)}#settings .tf-select{margin:3px 5px 6px 0}#settings .tf-selected{padding-top:10px;padding-bottom:11px}#settings .tf-select .tf-button{padding-top:7px;padding-bottom:8px}#loading{margin-right:5px}#loadingDirs{padding:5px 0 1px 24px}#files.drag{background:#ddebf8}#resizer{background:#fff}div.selector#uniform-lang{margin:8px 6px 6px 0}body.msie fieldset,body.trident.rv fieldset{border-radius:0} \ No newline at end of file diff --git a/cache/theme_dark.js b/cache/theme_dark.js new file mode 100644 index 0000000..628d36f --- /dev/null +++ b/cache/theme_dark.js @@ -0,0 +1 @@ +$.each(["loading.gif","ui-icons_black.png","ui-icons_grey.png","ui-icons_white.png"],function(b,a){new Image().src="themes/dark/img/"+a}); \ No newline at end of file diff --git a/cache/theme_default.css b/cache/theme_default.css new file mode 100644 index 0000000..8df51fa --- /dev/null +++ b/cache/theme_default.css @@ -0,0 +1 @@ +.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:alpha(opacity=0)}.ui-front{z-index:100}.ui-widget .ui-widget,.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-size:1em}.ui-widget-content{border:1px solid #888;background:#fff;color:#6b6b6b}.ui-widget-content a{color:#6b6b6b}.ui-widget-header{border:1px solid #1b79b8;color:#fff;font-weight:bold;background:#1b79b8;background:-webkit-linear-gradient(top,#1b79b8,#59b5f2);background:-moz-linear-gradient(top,#1b79b8,#59b5f2);background:-ms-linear-gradient(top,#1b79b8,#59b5f2);background:-o-linear-gradient(top,#1b79b8,#59b5f2);background:linear-gradient(to bottom,#1b79b8,#59b5f2)}.ui-widget-header a{color:#fff}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default,.ui-widget.ui-state-disabled{transition:.2s;border:1px solid #6b6b6b;background:#6b6b6b;background:-webkit-linear-gradient(top,#ababab,#6b6b6b);background:-moz-linear-gradient(top,#ababab,#6b6b6b);background:-ms-linear-gradient(top,#ababab,#6b6b6b);background:-o-linear-gradient(top,#ababab,#6b6b6b);background:linear-gradient(to bottom,#ababab,#6b6b6b);font-weight:bold;color:#fff}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{transition:.2s;border:1px solid #6b6b6b;background:#6b6b6b;background:-webkit-linear-gradient(top,#6b6b6b,#ababab);background:-moz-linear-gradient(top,#6b6b6b,#ababab);background:-ms-linear-gradient(top,#6b6b6b,#ababab);background:-o-linear-gradient(top,#6b6b6b,#ababab);background:linear-gradient(to bottom,#6b6b6b,#ababab);font-weight:bold;color:#fff}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active,.ui-menu .ui-state-focus{transition:.2s;border:1px solid #1b79b8;background:#1b79b8;background:-webkit-linear-gradient(top,#1b79b8,#59b5f2);background:-moz-linear-gradient(top,#1b79b8,#59b5f2);background:-ms-linear-gradient(top,#1b79b8,#59b5f2);background:-o-linear-gradient(top,#1b79b8,#59b5f2);background:linear-gradient(to bottom,#1b79b8,#59b5f2);font-weight:bold;color:#fff}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited,.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{transition:.2s;color:#fff;text-decoration:none}.ui-menu .ui-state-active{transition:.2s;border-color:#6b6b6b;background:#6b6b6b;background:-webkit-linear-gradient(top,#6b6b6b,#ababab);background:-moz-linear-gradient(top,#6b6b6b,#ababab);background:-ms-linear-gradient(top,#6b6b6b,#ababab);background:-o-linear-gradient(top,#6b6b6b,#ababab);background:linear-gradient(to bottom,#6b6b6b,#ababab)}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #d5bc2c;box-shadow:inset 0 0 5px #d5bc2c;background:#fff6bf;color:#6b6b6b}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cf7f7f;box-shadow:inset 0 0 5px #cf7f7f;background:#fac4c4;color:#6b6b6b}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a,.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a,.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#6b6b6b}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.5;filter:alpha(opacity=50);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.50;filter:alpha(opacity=50);background-image:none}.ui-state-disabled .ui-icon{filter:alpha(opacity=50)}.ui-state-disabled{cursor:default !important}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin-top:2px;padding:6px;min-height:0}.ui-accordion .ui-accordion-icons,.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:24px}.ui-accordion .ui-accordion-noicons{padding-left:5px}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:5px;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:pointer}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:36px}.ui-button-icons-only{width:50px}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:6px 10px}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:6px;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:6px 10px 6px 28px}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:6px 28px 6px 10px}.ui-button-text-icons .ui-button-text{padding-left:28px;padding-right:28px}input.ui-button{padding:6px 10px}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:7px}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:7px}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-buttonset{margin:0;overflow:auto}.ui-buttonset .ui-button{margin:0;float:left}.ui-datepicker{width:19em;width:19em;display:none;padding:10px}.ui-datepicker .ui-datepicker-header{position:relative;padding:2px 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:4px;width:20px;height:20px}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:3px}.ui-datepicker .ui-datepicker-prev{left:4px}.ui-datepicker .ui-datepicker-next{right:4px}.ui-datepicker .ui-datepicker-prev-hover{left:3px}.ui-datepicker .ui-datepicker-next-hover{right:3px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 10px;padding:4px 0;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:-2px 2px;padding:0;outline:0}.ui-datepicker table{width:100%;border-collapse:collapse;margin:0;font-size:1em}.ui-datepicker th{padding:3px;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:2px 3px;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:10px -11px -11px -11px;padding:10px;border:1px solid #1b79b8;background:#e4f5ff;overflow:auto}.ui-datepicker .ui-datepicker-buttonpane button{float:right;cursor:pointer;width:auto;overflow:visible;margin:0;padding:6px 10px;font-weight:bold;opacity:1;filter:alpha(opacity=100)}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto;padding:10px}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group .ui-datepicker-header{margin:0}.ui-datepicker-multi .ui-datepicker-group.ui-datepicker-group-last{margin-right:0}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;font-size:0;width:100px}th.ui-datepicker-week-col{color:#215b82}td.ui-datepicker-week-col{text-align:right;padding-right:7px;color:#215b82}td.ui-datepicker-other-month a.ui-state-default{font-weight:bold}th.ui-datepicker-week-end{color:#f44}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{position:absolute;top:0;left:0;padding:4px;outline:0;box-shadow:0 0 10px #000}.ui-dialog .ui-dialog-titlebar{padding:5px 10px;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:0;padding:1px 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:21px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:1em;margin:0 -4px;background:0;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;padding:10px}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:0 0 0 5px;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{margin-top:-3px;position:absolute}.ui-menu .ui-menu-item{margin:0;padding:0;width:100%;list-style-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}.ui-menu .ui-menu-divider{margin:1px 10px 1px 10px;height:0;font-size:0;line-height:0;border-width:1px 0 0 0;border-color:#bbb}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:5px 10px;line-height:1.5;min-height:0;font-weight:normal;border-radius:0}.ui-menu .ui-menu-item a.ui-state-focus,.ui-menu .ui-menu-item a.ui-state-active{font-weight:normal;margin:-1px;transition:none}.ui-menu .ui-state-disabled{font-weight:normal;line-height:1.5}.ui-menu .ui-state-disabled a{cursor:default}.ui-menu.ui-corner-all.sh-menu{border-radius:4px}.ui-menu.ui-corner-all,.ui-menu.sh-menu.ui-autocomplete.ui-corner-all{border-radius:0}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}.ui-menu .ui-icon{position:absolute;top:.2em;left:.2em}.ui-menu .ui-menu-icon{position:static;float:right}.ui-progressbar{height:2.1em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{height:100%;filter:alpha(opacity=25);opacity:.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-slider{position:relative;text-align:left;margin:0 13px;border-radius:15px}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:18px;height:18px;border-radius:9px;cursor:default;box-shadow:0 0 3px #6b6b6b,inset 0 0 7px #fff,inset 0 0 3px #fff}.ui-slider .ui-slider-handle.ui-state-active{box-shadow:0 0 3px #1b79b8,inset 0 0 7px #fff,inset 0 0 3px #fff}.ui-slider .ui-slider-range{position:absolute;z-index:1;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:10px}.ui-slider-horizontal .ui-slider-handle{top:-5px;margin-left:-9px}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:10px;height:150px}.ui-slider-vertical .ui-slider-handle{left:-5px;margin-left:0;margin-bottom:-9px}.ui-slider-vertical .ui-slider-range{left:-1px;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-spinner.ui-widget{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle;background:#fff;background:-webkit-linear-gradient(top,#f0f0f0,#fff);background:-moz-linear-gradient(top,#f0f0f0,#fff);background:-ms-linear-gradient(top,#f0f0f0,#fff);background:-o-linear-gradient(top,#f0f0f0,#fff);background:linear-gradient(to bottom,#f0f0f0,#fff)}.ui-spinner-input{border:0;color:inherit;padding:0;margin:6px 24px 6px 10px;vertical-align:middle;outline:0;background:transparent}.ui-spinner-input{color:#6b6b6b}.ui-spinner-input:focus{color:#000}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:0;border-bottom:0;border-right:0}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative}.ui-tabs .ui-tabs-nav{margin:0;padding:3px 3px 0 3px}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px 3px 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav li a{float:left;padding:6px 10px;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text}.ui-tabs .ui-tabs-nav li a,.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em;background:0}body .ui-tooltip{padding:6px 10px;position:absolute;z-index:9999;max-width:300px;color:gray;border-color:#a5a5a5;box-shadow:inset 0 0 4px #a5a5a5,0 0 4px #a5a5a5;background:-webkit-linear-gradient(top,#ddd,#fff);background:-moz-linear-gradient(top,#ddd,#fff);background:-ms-linear-gradient(top,#ddd,#fff);background:-o-linear-gradient(top,#ddd,#fff);background:linear-gradient(to bottom,#ddd,#fff)}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon,.ui-state-highlight .ui-icon,.ui-state-error .ui-icon,.ui-state-error-text .ui-icon,.ui-icon.ui-icon-black{background-image:url(img/ui-icons_black.png)}.ui-widget-header .ui-icon,.ui-state-default .ui-icon,.ui-state-hover .ui-icon,.ui-state-focus .ui-icon,.ui-state-active .ui-icon,.ui-icon.ui-icon-white{background-image:url(img/ui-icons_white.png)}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl,.ui-menu .ui-menu-item.ui-menu-item-first a{border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr,.ui-menu .ui-menu-item.ui-menu-item-first a{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl,.ui-menu .ui-menu-item.ui-menu-item-last a,.ui-dialog-buttonpane,.ui-datepicker-multi .ui-datepicker-group-first .ui-datepicker-header,.ui-datepicker .ui-datepicker-buttonpane{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br,.ui-menu .ui-menu-item.ui-menu-item-last a,.ui-dialog-buttonpane,.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker .ui-datepicker-buttonpane{border-bottom-right-radius:4px}.ui-widget-overlay{background:rgba(255,255,255,.5)}.ui-widget-shadow{margin:-7px 0 0 -7px;padding:7px;background:rgba(0,0,0,.3);border-radius:8px}.ui-accordion-content-active,.ui-tabs,.ui-slider-range,.ui-datepicker,.ui-dialog{border-color:#1b79b8}.ui-slider .ui-slider-range{border:1px solid #1b79b8;top:-1px}.ui-progressbar{overflow:visible}.ui-progressbar-value{border:1px solid #1b79b8;margin-top:-1px}.ui-accordion-header,.ui-tabs-nav,.ui-button,.ui-tabs li,.ui-slider-handle,.ui-slider-range,.ui-datepicker-header,.ui-datepicker-header a:hover,.ui-datepicker-calendar .ui-state-default,.ui-progressbar-value,.ui-menu .ui-menu-item a.ui-state-focus,.ui-menu .ui-menu-item a.ui-state-active,.ui-dialog-titlebar,.ui-dialog-titlebar-close.ui-state-default.ui-state-hover,.ui-datepicker .ui-datepicker-buttonpane button{box-shadow:inset 0 0 7px #fff,inset 0 0 3px #fff}.ui-spinner,.ui-menu{box-shadow:inset 0 0 4px #6b6b6b}.ui-accordion-content,.ui-tabs,.ui-dialog-content,.ui-dialog-buttonpane,.ui-datepicker,.ui-datepicker .ui-datepicker-buttonpane{box-shadow:inset 0 0 4px #1b79b8}.ui-state-default,.ui-state-focus,.ui-state-active,.ui-widget-header{text-shadow:1px 0 rgba(0,0,0,.2),-1px 0 rgba(0,0,0,.2),0 -1px rgba(0,0,0,.2),0 1px rgba(0,0,0,.2),1px 1px rgba(0,0,0,.2),-1px -1px rgba(0,0,0,.2),1px -1px rgba(0,0,0,.2),-1px 1px rgba(0,0,0,.2)}.ui-tabs .ui-state-active,.ui-datepicker .ui-state-highlight{text-shadow:none}.ui-datepicker .ui-state-highlight{color:#215b82;border-color:#1b79b8;box-shadow:inset 0 0 4px #1b79b8;background:#fff;background:-webkit-linear-gradient(top,#dfeef8,#fff);background:-moz-linear-gradient(top,#dfeef8,#fff);background:-ms-linear-gradient(top,#dfeef8,#fff);background:-o-linear-gradient(top,#dfeef8,#fff);background:linear-gradient(to bottom,#dfeef8,#fff)}.ui-progressbar,.ui-slider,.ui-menu{box-shadow:inset 0 0 4px #6b6b6b;background:#fff;background:-webkit-linear-gradient(top,#f0f0f0,#fff);background:-moz-linear-gradient(top,#f0f0f0,#fff);background:-ms-linear-gradient(top,#f0f0f0,#fff);background:-o-linear-gradient(top,#f0f0f0,#fff);background:linear-gradient(to bottom,#f0f0f0,#fff)}.ui-slider,.ui-spinner,.ui-progressbar,.ui-menu{border-color:#6b6b6b}.ui-datepicker-calendar .ui-state-default{border-radius:3px}.ui-tabs .ui-tabs-nav{margin:-1px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding-left:3px}.ui-tabs-active.ui-state-active{background:#fff;background:-webkit-linear-gradient(top,#ccc,#ddd,#eee,#fff,#fff,#fff);background:-moz-linear-gradient(top,#ccc,#ddd,#eee,#fff,#fff,#fff);background:-ms-linear-gradient(top,#ccc,#ddd,#eee,#fff,#fff,#fff);background:-o-linear-gradient(top,#ccc,#ddd,#eee,#fff,#fff,#fff);background:linear-gradient(to bottom,#ccc,#ddd,#eee,#fff,#fff,#fff);box-shadow:inset 0 0 5px #fff,inset 0 0 5px #fff,inset 0 0 5px #fff}.ui-tabs-active.ui-state-active a{color:#215b82}.ui-state-default,.ui-state-default a{outline:0}.ui-datepicker-header,.ui-dialog-titlebar{border-bottom-right-radius:0;border-bottom-left-radius:0;margin:-5px -5px 0 -5px}.ui-datepicker-header{margin:-11px -11px 5px -11px}.ui-datepicker-header a:hover{cursor:pointer}.ui-dialog-titlebar-close.ui-state-default{border-color:transparent;background:0;box-shadow:none}.ui-dialog-titlebar-close.ui-state-default.ui-state-hover{border-color:#6b6b6b;background:#6b6b6b}.ui-dialog-buttonpane{background:#e4f5ff;border-top-color:#1b79b8;margin:0 -4px -4px -4px;padding:0}.tf-select,.tf-input,.tf-textarea,.tf-multiple,.tf-label,.tf-fieldset legend,.tf-file,.tf-file input,.tf-radio,.tf-checkbox,.tf-button,.tf-input.tf-color,.tf-input.tf-range{font-size:13px;cursor:pointer}.tf-select .tf-selected,.tf-input,.tf-multiple,.tf-textarea,.tf-file .tf-info,.tf-radio,.tf-checkbox{background:#f0f0f0;background:-webkit-linear-gradient(top,#e3e3e3,#fff);background:-moz-linear-gradient(top,#e3e3e3,#fff);background:-ms-linear-gradient(top,#e3e3e3,#fff);background:-o-linear-gradient(top,#e3e3e3,#fff);background:linear-gradient(to bottom,#e3e3e3,#fff);box-shadow:inset 0 0 2px #6b6b6b;border:1px solid #6b6b6b;border-radius:4px;color:#6b6b6b;padding:6px 10px}.tf-select.tf-focused .tf-selected,.tf-select .tf-menu,.tf-multiple.tf-focused,.tf-input:focus,.tf-textarea:focus,.tf-file.tf-focused .tf-info,.tf-radio.tf-focused,.tf-checkbox.tf-focused{background:#d2eaf6;background:-webkit-linear-gradient(top,#d2eaf6,#fff);background:-moz-linear-gradient(top,#d2eaf6,#fff);background:-ms-linear-gradient(top,#d2eaf6,#fff);background:-o-linear-gradient(top,#d2eaf6,#fff);background:linear-gradient(to bottom,#d2eaf6,#fff);box-shadow:inset 0 0 2px #1b79b8;border:1px solid #1b79b8;color:#1b79b8}.tf-button,.tf-file .tf-button{background:#6b6b6b;background:-webkit-linear-gradient(top,#ababab,#6b6b6b);background:-moz-linear-gradient(top,#ababab,#6b6b6b);background:-ms-linear-gradient(top,#ababab,#6b6b6b);background:-o-linear-gradient(top,#ababab,#6b6b6b);background:linear-gradient(to bottom,#ababab,#6b6b6b);box-shadow:inset 0 0 7px #fff,inset 0 0 3px #fff;border:1px solid #6b6b6b;border-radius:4px;padding:6px 10px}.tf-file.tf-focused .tf-button,.tf-button.tf-focused,.tf-select.tf-focused .tf-button{background:#1b79b8;background:-webkit-linear-gradient(top,#59b5f2,#1b79b8);background:-moz-linear-gradient(top,#59b5f2,#1b79b8);background:-ms-linear-gradient(top,#59b5f2,#1b79b8);background:-o-linear-gradient(top,#59b5f2,#1b79b8);background:linear-gradient(to bottom,#59b5f2,#1b79b8);border-color:#1b79b8}.tf-select .tf-menu .tf-hover,.tf-multiple .tf-hover,.tf-multiple .tf-selected,.tf-button{color:#fff;text-shadow:1px 0 rgba(0,0,0,.2),-1px 0 rgba(0,0,0,.2),0 -1px rgba(0,0,0,.2),0 1px rgba(0,0,0,.2),1px 1px rgba(0,0,0,.2),-1px -1px rgba(0,0,0,.2),1px -1px rgba(0,0,0,.2),-1px 1px rgba(0,0,0,.2)}.tf-select .tf-selected{border-radius:4px 0 0 4px}.tf-select .tf-button{border-left:0;border-radius:0 4px 4px 0}.tf-select .tf-button span{display:block;background:url('img/ui-icons_white.png') -64px -15px;width:16px;margin-left:4px;margin-right:5px}.tf-select .tf-menu{border-radius:0 0 4px 4px}.tf-select .tf-menu div,.tf-multiple div{border:1px solid transparent;border-left-width:0;border-right-width:0;padding:6px 10px;margin-top:-1px}.tf-select .tf-menu .tf-hover,.tf-multiple.tf-focused .tf-hover,.tf-multiple.tf-focused .tf-selected,.tf-select.tf-opened.tf-focused .tf-button{border-color:#1b79b8;background:#59b5f2;background:-webkit-linear-gradient(top,#1b79b8,#59b5f2);background:-moz-linear-gradient(top,#1b79b8,#59b5f2);background:-ms-linear-gradient(top,#1b79b8,#59b5f2);background:-o-linear-gradient(top,#1b79b8,#59b5f2);background:linear-gradient(to bottom,#1b79b8,#59b5f2);box-shadow:inset 0 0 7px #fff,inset 0 0 3px #fff}.tf-select.tf-opened .tf-button{background:#ababab;background:-webkit-linear-gradient(top,#6b6b6b,#ababab);background:-moz-linear-gradient(top,#6b6b6b,#ababab);background:-ms-linear-gradient(top,#6b6b6b,#ababab);background:-o-linear-gradient(top,#6b6b6b,#ababab);background:linear-gradient(to bottom,#6b6b6b,#ababab)}.tf-select .tf-menu .tf-group-last,.tf-select .tf-menu div.tf-last{border-bottom-width:0}.tf-select .tf-menu ul{overflow:hidden}.tf-select .tf-menu li.tf-last{margin-bottom:-1px}.tf-select .tf-menu .tf-last{border-radius:0 0 4px 4px}.tf-select.tf-opened .tf-selected{border-radius:4px 0 0 0}.tf-select.tf-opened .tf-button{border-radius:0 4px 0 0}.tf-select .tf-menu li,.tf-multiple.tf-focused li{border-bottom:1px solid #54b0e0;border-top:1px solid #54b0e0;margin:-1px 0}.tf-select .tf-menu li>span,.tf-multiple li>span,.tf-multiple.tf-focused li>span{display:block;padding:6px 10px;text-align:center;font-weight:bold;color:#6b6b6b;background:#a7deff;border-bottom:1px solid #54b0e0;cursor:default;white-space:nowrap}.tf-multiple{padding:0}.tf-multiple li{border:1px solid #54b0e0;border-right:0;border-left:0;margin:-1px 0}.tf-multiple li>span{color:#70a5d1;border-color:#54b0e0;background:#c1ddf5}.tf-multiple .tf-hover,.tf-multiple .tf-selected,.tf-multiple.tf-focused .tf-hover{background:#b7def2;background:-webkit-linear-gradient(top,#54b0e0,#b7def2);background:-moz-linear-gradient(top,#54b0e0,#b7def2);background:-ms-linear-gradient(top,#54b0e0,#b7def2);background:-o-linear-gradient(top,#54b0e0,#b7def2);background:linear-gradient(to bottom,#54b0e0,#b7def2);box-shadow:inset 0 0 2px #fff,inset 0 0 2px #fff;border-color:#54b0e0}.tf-multiple .tf-hover,.tf-multiple .tf-selected{border:1px solid #54b0e0;border-left:0;border-right:0}.tf-multiple div.tf-first{border-top:0;border-radius:4px 4px 0 0;margin-top:0}.tf-multiple div.tf-last{border-bottom:0;border-radius:0 0 4px 4px}.tf-multiple .tf-group-first{border-top:0;margin-top:0}.tf-multiple li.tf-last,.tf-multiple .tf-group-last{border-bottom:0}.tf-file{width:200px;padding:0;overflow:auto}.tf-file .tf-info,.tf-file.tf-focused .tf-info{padding:6px 10px;border-radius:4px 0 0 4px;border-right:0}.tf-file .tf-button{border-radius:0 4px 4px 0;color:transparent;text-shadow:none;padding:6px 8px}.tf-file .tf-button span{margin:0 0 0 -4px;width:16px;height:16px;display:block;overflow:hidden;background:url('img/ui-icons_white.png') -16px -96px}.tf-file .tf-button:after{content:"\00a0"}.tf-file input::-webkit-file-upload-button{cursor:pointer}.tf-radio{width:15px;height:15px;padding:0;border-radius:8px}.tf-radio input{width:17px;height:17px;margin:-1px 0 0 -1px;cursor:pointer}.tf-radio span{width:15px;height:15px;display:block;float:right}.tf-radio.tf-checked span{background:url('img/ui-icons_black.png') -80px -145px}.tf-radio.tf-checked.tf-focused span{background-image:url('img/ui-icons_blue.png')}.tf-checkbox{padding:0;width:15px;height:15px;border-radius:3px}.tf-checkbox input{width:17px;height:17px;margin:-1px 0 0 -1px;cursor:pointer}.tf-checkbox.tf-checked span{width:15px;height:15px;display:block;background:url('img/ui-icons_black.png') -64px -145px;float:right}.tf-checkbox.tf-focused.tf-checked span{background-image:url('img/ui-icons_blue.png')}.tf-button{overflow:hidden;padding:0}.tf-button span{margin:3px 7px;float:right}.tf-button input,.tf-button button{cursor:pointer}.tf-input,.tf-textarea{outline:0;cursor:text;margin:0}.tf-input::-webkit-input-placeholder,.tf-textarea::-webkit-input-placeholder{color:#bbb}.tf-input:-moz-placeholder,.tf-textarea:-moz-placeholder{color:#aaa}.tf-input::-moz-placeholder,.tf-textarea::-moz-placeholder{color:#aaa}.tf-input:-ms-input-placeholder,.tf-textarea:-ms-input-placeholder{color:#bbb}.tf-input:focus::-webkit-input-placeholder,.tf-textarea:focus::-webkit-input-placeholder{color:#abc7d6}.tf-input:focus:-moz-placeholder,.tf-textarea:focus:-moz-placeholder{color:#54b0e0}.tf-input:focus::-moz-placeholder,.tf-textarea:focus::-moz-placeholder{color:#54b0e0}.tf-input:focus:-ms-input-placeholder,.tf-textarea:focus:-ms-input-placeholder{color:#abc7d6}.tf-input.tf-readOnly::-webkit-input-placeholder,.tf-textarea.tf-readOnly::-webkit-input-placeholder{color:#d4d4d4}.tf-input.tf-readOnly:-moz-placeholder,.tf-textarea.tf-readOnly:-moz-placeholder{color:#dedede}.tf-input.tf-readOnly::-moz-placeholder,.tf-textarea.tf-readOnly::-moz-placeholder{color:#dedede}.tf-input.tf-readOnly:-ms-input-placeholder,.tf-textarea.tf-readOnly:-ms-input-placeholder{color:#d4d4d4}.tf-input.tf-readOnly:focus::-webkit-input-placeholder,.tf-textarea.tf-readOnly:focus::-webkit-input-placeholder{color:#d4d4d4}.tf-input.tf-readOnly:focus:-moz-placeholder,.tf-textarea.tf-readOnly:focus:-moz-placeholder{color:#dedede}.tf-input.tf-readOnly:focus::-moz-placeholder,.tf-textarea.tf-readOnly:focus::-moz-placeholder{color:#dedede}.tf-input.tf-readOnly:focus:-ms-input-placeholder,.tf-textarea.tf-readOnly:focus:-ms-input-placeholder{color:#d4d4d4}.tf-fieldset{border:1px solid #6b6b6b;box-shadow:inset 0 0 4px #6b6b6b;border-radius:4px;background:#fff;background:-webkit-linear-gradient(top,#e3e3e3,#fff);background:-moz-linear-gradient(top,#e3e3e3,#fff);background:-ms-linear-gradient(top,#e3e3e3,#fff);background:-o-linear-gradient(top,#e3e3e3,#fff);background:linear-gradient(to bottom,#e3e3e3,#fff);margin:0 10px 10px 0;padding:10px}.tf-fieldset legend{font-weight:bold;color:#6b6b6b;text-shadow:1px 0 rgba(255,255,255,.5),-1px 0 rgba(255,255,255,.5),0 -1px rgba(255,255,255,.5),0 1px rgba(255,255,255,.5),1px 1px rgba(255,255,255,.5),-1px -1px rgba(255,255,255,.5),1px -1px rgba(255,255,255,.5),-1px 1px rgba(255,255,255,.5),0 0 5px #fff}.tf-label{color:#6b6b6b;margin:0 3px}.tf-label.tf-focused{color:#1b79b8}.tf-disabled{opacity:.5;filter:alpha(opacity=50)}.tf-disabled,.tf-disabled input,.tf-disabled button,.tf-disabled * *.tf-disabled{cursor:default}.tf-file.tf-disabled input::-webkit-file-upload-button{cursor:pointer}.tf-fieldset.tf-disabled,.tf-form.tf-disabled{opacity:1;filter:alpha(opacity=100)}.tf-input.tf-color{width:30px;padding:0;height:24px}.tf-input.tf-number{text-align:right}.tf-input.tf-range{height:9px;margin:8px 0 7px 0}.tf-input.tf-search,.tf-input.tf-search.tf-readOnly{border-radius:11px}.tf-input.tf-datetime,.tf-input.tf-datetime-local,.tf-input.tf-month,.tf-input.tf-time,.tf-input.tf-week,.tf-input.tf-datetime:focus,.tf-input.tf-datetime-local:focus,.tf-input.tf-month:focus,.tf-input.tf-time:focus,.tf-input.tf-week:focus{padding:1px 5px}*{font-size:13px}body{background:#e0e0e0;color:#6b6b6b}fieldset td{white-space:nowrap}#folders{margin:5px 5px 0 5px}#files{margin-right:5px}#toolbar a:hover,#toolbar a.hover,span.current,span.regular:hover,span.context,a.drag>span.folder,#clipboard div:hover,div.file:hover,#files div.selected,#files div.selected:hover,tr.selected>td,tr.selected:hover>td,#menu .list div a:hover{color:#fff;text-shadow:1px 0 rgba(0,0,0,.2),-1px 0 rgba(0,0,0,.2),0 -1px rgba(0,0,0,.2),0 1px rgba(0,0,0,.2),1px 1px rgba(0,0,0,.2),-1px -1px rgba(0,0,0,.2),1px -1px rgba(0,0,0,.2),-1px 1px rgba(0,0,0,.2)}#files,#folders,#toolbar a.selected{border:1px solid #6b6b6b;box-shadow:inset 0 0 4px #6b6b6b;border-radius:4px;background:#fff;background:-webkit-linear-gradient(top,#f0f0f0,#fff);background:-moz-linear-gradient(top,#f0f0f0,#fff);background:-ms-linear-gradient(top,#f0f0f0,#fff);background:-o-linear-gradient(top,#f0f0f0,#fff);background:linear-gradient(to bottom,#f0f0f0,#fff)}#toolbar{padding:5px 0}#toolbar a{color:#6b6b6b;margin-right:5px;border:1px solid transparent;outline:0;display:block;float:left;border-radius:4px;padding:0;background:#e0e0e0}#toolbar a>span{padding:6px 10px 6px 26px;diaplay:block;float:left;background:no-repeat 6px center}#toolbar a:hover,#toolbar a.hover{border-color:#1b79b8;background:#1b79b8;background:-webkit-linear-gradient(top,#59b5f2,#1b79b8);background:-moz-linear-gradient(top,#59b5f2,#1b79b8);background:-ms-linear-gradient(top,#59b5f2,#1b79b8);background:-o-linear-gradient(top,#59b5f2,#1b79b8);background:linear-gradient(to bottom,#59b5f2,#1b79b8);box-shadow:inset 0 0 7px #fff,inset 0 0 3px #fff}#toolbar a[href="kcact:upload"] span{background-image:url(img/icons/upload.png)}#toolbar a[href="kcact:refresh"] span{background-image:url(img/icons/refresh.png)}#toolbar a[href="kcact:settings"] span{background-image:url(img/icons/settings.png)}#toolbar a[href="kcact:about"] span{background-image:url(img/icons/about.png)}#toolbar a[href="kcact:maximize"] span{background-image:url(img/icons/maximize.png)}#settings label{cursor:pointer}#settings fieldset{margin-right:5px;margin-bottom:6px;margin-top:-5px;padding:6px}div.folder{padding-top:2px;margin-top:4px;white-space:nowrap}div.folder a{text-decoration:none;cursor:default;outline:0;color:#6b6b6b}span.folder{padding:2px 3px 2px 23px;outline:0;background:no-repeat 3px center;cursor:pointer;border-radius:3px;border:1px solid transparent}span.brace{width:16px;height:16px;outline:0}span.current{transition:.3s;background-image:url(img/tree/folder.png);background-color:#3b98d6;border-color:#3b98d6;box-shadow:inset 0 0 7px #fff,inset 0 0 3px #fff}span.regular{transition:.3s;background-image:url(img/tree/folder.png);background-color:transparent}span.regular:hover,span.context,a.drag>span.folder,#clipboard div:hover{transition:.3s;background-color:#c6c6c6;border-color:#c6c6c6;box-shadow:inset 0 0 7px #fff,inset 0 0 3px #fff}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 transparent;border-radius:4px}div.file:hover{border-color:#aaa;box-shadow:inset 0 0 7px #fff,inset 0 0 3px #fff;background:#c6c6c6;background:-webkit-linear-gradient(top,#e7e7e7,#c6c6c6);background:-moz-linear-gradient(top,#e7e7e7,#c6c6c6);background:-ms-linear-gradient(top,#e7e7e7,#c6c6c6);background:-o-linear-gradient(top,#e7e7e7,#c6c6c6);background:linear-gradient(to bottom,#e7e7e7,#c6c6c6)}div.file .name{margin-top:4px;font-weight:bold;height:16px;overflow:hidden;padding-bottom:2px}div.file .time{font-size:10px}div.file .size{font-size:10px}#files div.selected,#files div.selected:hover{border-color:#3b98d6;background:#3b98d6;background:-webkit-linear-gradient(top,#7dc2f2,#3b98d6);background:-moz-linear-gradient(top,#7dc2f2,#3b98d6);background:-ms-linear-gradient(top,#7dc2f2,#3b98d6);background:-o-linear-gradient(top,#7dc2f2,#3b98d6);background:linear-gradient(to bottom,#7dc2f2,#3b98d6);box-shadow:inset 0 0 7px #fff,inset 0 0 3px #fff}tr.file>td{padding:3px 4px}tr.file:hover>td{background-color:#ddebf8;transition:none}tr.selected>td,tr.selected:hover>td{transition:.3s;background-color:#5b9bda}tr.file td.name{background-position:2px center;padding-left:22px}a.denied{color:#666;opacity:.5;filter:alpha(opacity:50);cursor:default}a.denied:hover{background-color:#e4e3e2;border-color:transparent;box-shadow:none}#menu .ui-menu a span{background:left center no-repeat;padding-left:20px;white-space:nowrap}#menu a[href="kcact:refresh"] span{background-image:url(img/icons/refresh.png)}#menu a[href="kcact:mkdir"] span{background-image:url(img/icons/folder-new.png)}#menu a[href="kcact:mvdir"] span,#menu a[href="kcact:mv"] span{background-image:url(img/icons/rename.png)}#menu a[href="kcact:rmdir"] span,#menu a[href="kcact:rm"] span,#menu a[href="kcact:rmcbd"] span{background-image:url(img/icons/delete.png)}#menu a[href="kcact:clpbrdadd"] span{background-image:url(img/icons/clipboard-add.png)}#menu a[href="kcact:pick"] span,#menu a[href="kcact:pick_thumb"] span{background-image:url(img/icons/select.png)}#menu a[href="kcact:download"] span{background-image:url(img/icons/download.png)}#menu a[href="kcact:view"] span{background-image:url(img/icons/view.png)}#menu a[href="kcact:cpcbd"] span{background-image:url(img/icons/copy.png)}#menu a[href="kcact:mvcbd"] span{background-image:url(img/icons/move.png)}#menu a[href="kcact:clrcbd"] span{background-image:url(img/icons/clipboard-clear.png)}#clipboard{margin-left:-3px;padding:2px}#clipboard div{background:url(img/icons/clipboard.png) no-repeat center center;border:1px solid transparent;padding:2px;cursor:pointer;border-radius:4px}#clipboard.selected div,#clipboard.selected div:hover{background-color:#3b98d6;border-color:#3b98d6;box-shadow:inset 0 0 7px #fff,inset 0 0 3px #fff}#menu .list a,#menu .list a.ui-state-focus{margin:-1px 0 0 -1px;padding:6px 10px;border:1px solid transparent;background:0;border-radius:0;text-shadow:none;box-shadow:none;color:#6b6b6b}#menu .list a.first,#menu .list a.first.ui-state-focus{border-radius:4px 4px 0 0}#menu .list a:hover{border-color:#1b79b8;background:#1b79b8;background:-webkit-linear-gradient(top,#1b79b8,#59b5f2);background:-moz-linear-gradient(top,#1b79b8,#59b5f2);background:-ms-linear-gradient(top,#1b79b8,#59b5f2);background:-o-linear-gradient(top,#1b79b8,#59b5f2);background:linear-gradient(to bottom,#1b79b8,#59b5f2);box-shadow:inset 0 0 7px #fff,inset 0 0 3px #fff}#menu .list{overflow:hidden;max-height:1px;margin-bottom:-1px;padding-bottom:1px}#menu li.div-files{margin:0 0 1px 0}.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;outline:0}.about a{text-decoration:none;color:#05f}.about a:hover{text-decoration:underline}#checkver{margin:5px 0 10px 0}#loading,#checkver>span.loading{background:url(img/loading.gif);border:1px solid #3687e2;box-shadow:0 0 3px #3687e2,inset 0 0 4px #fff,inset 0 0 5px #fff;padding:6px 10px;border-radius:4px}#checkver a{font-weight:normal;padding:3px 3px 3px 20px;background:url(img/icons/download.png) no-repeat left center}.kcfImageViewer .ui-dialog-content{cursor:pointer}.kcfImageViewer .img{background:url(img/bg_transparent.png)}.ui-dialog-titlebar.loading{background:url(img/loading.gif)}.ui-dialog-titlebar.loading .ui-dialog-title{color:#6b6b6b;text-shadow:none;font-weight:normal}.ui-dialog-titlebar.loading .ui-dialog-titlebar-close .ui-button-icon-primary.ui-icon.ui-icon-closethick{background-image:url(img/ui-icons_black.png)}#loading{margin-right:5px}#loadingDirs{padding:5px 0 1px 24px}#files.drag{background:#ddebf8}#settings .tf-select{margin:3px 5px 6px 0}#settings .tf-selected{padding-top:10px;padding-bottom:11px}#settings .tf-select .tf-button{padding-top:7px;padding-bottom:8px}body.msie fieldset,body.trident.rv fieldset{border-radius:0} \ No newline at end of file diff --git a/cache/theme_default.js b/cache/theme_default.js new file mode 100644 index 0000000..2c4652d --- /dev/null +++ b/cache/theme_default.js @@ -0,0 +1 @@ +$.each(["loading.gif","ui-icons_black.png","ui-icons_blue.png","ui-icons_white.png"],function(b,a){new Image().src="themes/default/img/"+a}); \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..da925e4 --- /dev/null +++ b/composer.json @@ -0,0 +1,48 @@ +{ + "name": "sunhater/kcfinder", + "description": "KCFinder web file manager", + "version": "3.20-test2", + "type": "library", + "keywords": [ + "kcfinder", + "finder", + "file", + "manager", + "explorer", + "file manager", + "file explorer" + ], + "homepage": "http://kcfinder.sunhater.com", + "time": "2014-08-24", + "license": [ + "GPL-3.0+", + "LGPL-3.0+" + ], + "authors": [ + { + "name": "Pavel Tzonkov", + "email": "sunhater@sunhater.com", + "homepage": "http://sunhater.com", + "role": "Developer" + } + ], + "support": { + "email": "sunhater@sunhater.com", + "issues": "https://github.com/sunhater/kcfinder/issues", + "source": "https://github.com/sunhater/kcfinder" + }, + "require": { + "php": ">=5.3.0", + "ext-gd": "*" + }, + "suggest": { + "ext-fileinfo": "*", + "ext-exif": "*", + "ext-curl": "*", + "ext-http": "*", + "ext-sockets": "*", + "ext-imagick": "*", + "ext-gmagick": "*", + "ext-zip": "*" + } +} \ No newline at end of file diff --git a/conf/.htaccess b/conf/.htaccess new file mode 100644 index 0000000..d61b264 --- /dev/null +++ b/conf/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + diff --git a/config.php b/conf/config.php similarity index 70% rename from config.php rename to conf/config.php index 4b0c005..7636437 100644 --- a/config.php +++ b/conf/config.php @@ -4,27 +4,27 @@ * * @desc Base configuration file * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @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 +/* IMPORTANT!!! Do not comment or remove uncommented settings in this file + even if you are using session configuration. + See http://kcfinder.sunhater.com/install for setting descriptions */ -$_CONFIG = array( +return array( // GENERAL SETTINGS - 'disabled' => false, - 'theme' => "oxygen", + 'disabled' => true, 'uploadURL' => "upload", 'uploadDir' => "", + 'theme' => "default", 'types' => array( @@ -84,7 +84,7 @@ ) ), - 'deniedExts' => "exe com msi bat php phps phtml php3 php4 cgi pl", + 'deniedExts' => "exe com msi bat cgi pl php phps phtml php3 php4 php5 php6 py pyc pyo pcgi pcgi3 pcgi4 pcgi5 pchi6", // MISC SETTINGS @@ -108,15 +108,11 @@ // THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION SETTINGS + '_sessionVar' => "KCFINDER", '_check4htaccess' => true, + '_normalizeFilenames' => false, + '_dropUploadMaxFilesize' => 10485760, //'_tinyMCEPath' => "/tiny_mce", - - '_sessionVar' => &$_SESSION['KCFINDER'], - //'_sessionLifetime' => 30, - //'_sessionDir' => "/full/directory/path", - - //'_sessionDomain' => ".mysite.com", - //'_sessionPath' => "/my/path", + //'_cssMinCmd' => "java -jar /path/to/yuicompressor.jar --type css {file}", + //'_jsMinCmd' => "java -jar /path/to/yuicompressor.jar --type js {file}", ); - -?> \ No newline at end of file diff --git a/conf/upload.htaccess b/conf/upload.htaccess new file mode 100644 index 0000000..48dd490 --- /dev/null +++ b/conf/upload.htaccess @@ -0,0 +1,21 @@ + + php_flag engine Off + + + php_flag engine Off + + + php_flag engine Off + + + Options -ExecCGI + + +RemoveHandler .cgi .pl .py .pyc .pyo .phtml .php .php3 .php4 .php5 .php6 .pcgi .pcgi3 .pcgi4 .pcgi5 .pchi6 .inc +RemoveType .cgi .pl .py .pyc .pyo .phtml .php .php3 .php4 .php5 .php6 .pcgi .pcgi3 .pcgi4 .pcgi5 .pchi6 .inc +SetHandler None +SetHandler default-handler + +# Remove both lines below if you want to render HTML files from the upload folder +AddType text/plain .html +AddType text/plain .htm diff --git a/core/autoload.php b/core/autoload.php index ae2f4df..8d1fbcf 100644 --- a/core/autoload.php +++ b/core/autoload.php @@ -2,195 +2,32 @@ /** This file is part of KCFinder project * - * @desc This file is included first, before each other + * @desc Autoload Classes * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @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. */ +spl_autoload_register(function($path) { + $path = explode("\\", $path); -// 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; - } + if (count($path) == 1) + return; - // 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); - } + list($ns, $class) = $path; - // 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; + if ($ns == "kcfinder") { + if (in_array($class, array("uploader", "browser", "minifier", "session"))) + require "core/class/$class.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"; } -} - -new SessionSaveHandler(); - -*/ - - -// PUT YOUR ADDITIONAL CODE HERE - -?> \ No newline at end of file +}); diff --git a/core/bootstrap.php b/core/bootstrap.php new file mode 100644 index 0000000..69b7fdf --- /dev/null +++ b/core/bootstrap.php @@ -0,0 +1,179 @@ + + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + * + * 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 conf/config.php via $GLOBALS + * array. It's recommended to use constants instead. + */ + + +// PHP VERSION CHECK +if (!preg_match('/^(\d+\.\d+)/', PHP_VERSION, $ver) || ($ver[1] < 5.3)) + die("You are using PHP " . PHP_VERSION . " when KCFinder require at least version 5.3.0! 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']) && + (basename($_GET['cms']) == $_GET['cms']) && + is_file("integration/{$_GET['cms']}.php") +) + require "integration/{$_GET['cms']}.php"; + + +// REGISTER AUTOLOAD FUNCTION +require "core/autoload.php"; + + +// json_encode() IMPLEMENTATION IF JSON EXTENSION IS MISSING +if (!function_exists("json_encode")) { + + 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[] = json_encode((string) $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 '"' . + str_replace('/', "\\/", + str_replace("\t", "\\t", + str_replace("\r", "\\r", + str_replace("\n", "\\n", + str_replace('"', "\\\"", + str_replace("\\", "\\\\", + $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 diff --git a/core/browser.php b/core/class/browser.php similarity index 69% rename from core/browser.php rename to core/class/browser.php index 370fc88..0f648e4 100644 --- a/core/browser.php +++ b/core/class/browser.php @@ -4,14 +4,16 @@ * * @desc Browser actions class * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + class browser extends uploader { protected $action; protected $thumbsDir; @@ -20,29 +22,33 @@ class browser extends uploader { 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; + // SECURITY CHECK INPUT DIRECTORY + if (isset($_POST['dir'])) { + $dir = $this->checkInputDir($_POST['dir'], true, false); + if ($dir === false) unset($_POST['dir']); + $_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; + if (isset($_GET['dir'])) { + $dir = $this->checkInputDir($_GET['dir'], true, false); + if ($dir === false) unset($_GET['dir']); + $_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) || + if (!$this->config['disabled'] && ( - !is_dir("$thumbsDir/{$this->type}") && - !@mkdir("$thumbsDir/{$this->type}", $this->config['dirPerms']) + ( + !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."); @@ -51,27 +57,29 @@ public function __construct() { $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 (!$this->config['disabled']) { + $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']}") + if (isset($_GET['theme']) && + $this->checkFilename($_GET['theme']) && + is_dir("themes/{$_GET['theme']}") ) - $this->config['theme'] = $this->get['theme']; + $this->config['theme'] = $_GET['theme']; } public function action() { - $act = isset($this->get['act']) ? $this->get['act'] : "browser"; + $act = isset($_GET['act']) ? $_GET['act'] : "browser"; if (!method_exists($this, "act_$act")) $act = "browser"; $this->action = $act; @@ -99,9 +107,12 @@ public function action() { } $this->session['dir'] = path::normalize($this->session['dir']); + // Render the browser if ($act == "browser") { header("X-UA-Compatible: chrome=1"); header("Content-Type: text/html; charset={$this->charset}"); + + // Ajax requests } elseif ( (substr($act, 0, 8) != "download") && !in_array($act, array("thumb", "upload")) @@ -115,12 +126,11 @@ public function action() { } 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']}"); - + if (isset($_GET['dir'])) { + $dir = "{$this->typeDir}/{$_GET['dir']}"; + if ($this->checkFilePath($dir) && is_dir($dir) && is_readable($dir)) + $this->session['dir'] = path::normalize("{$this->type}/{$_GET['dir']}"); + } return $this->output(); } @@ -140,34 +150,44 @@ protected function act_init() { } 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) + if (!isset($_GET['file']) || + !isset($_GET['dir']) || + !$this->checkFilename($_GET['file']) + ) $this->sendDefaultThumb(); - $file = "{$this->thumbsDir}/{$this->type}/{$this->get['dir']}/$file"; + + $dir = $this->getDir(); + $file = "{$this->thumbsTypeDir}/{$_GET['dir']}/${_GET['file']}"; + + // Create thumbnail if (!is_file($file) || !is_readable($file)) { - $file = "{$this->config['uploadDir']}/{$this->type}/{$this->get['dir']}/" . basename($file); + $file = "$dir/{$_GET['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)) && + + $img = new fastImage($file); + $type = $img->getType(); + $img->close(); + + if (in_array($type, array("gif", "jpeg", "png")) && ($image->width <= $this->config['thumbWidth']) && ($image->height <= $this->config['thumbHeight']) ) { - $mime = - ($type == IMAGETYPE_GIF) ? "gif" : ( - ($type == IMAGETYPE_PNG) ? "png" : "jpeg"); - $mime = "image/$mime"; + $mime = "image/$type"; httpCache::file($file, $mime); } else $this->sendDefaultThumb($file); + + // Get type from already-existing thumbnail + } else { + $img = new fastImage($file); + $type = $img->getType(); + $img->close(); } - httpCache::file($file, "image/jpeg"); + httpCache::file($file, "image/$type"); } protected function act_expand() { @@ -176,7 +196,7 @@ protected function act_expand() { protected function act_chDir() { $this->postDir(); // Just for existing check - $this->session['dir'] = $this->type . "/" . $this->post['dir']; + $this->session['dir'] = "{$this->type}/{$_POST['dir']}"; $dirWritable = dir::isWritable("{$this->config['uploadDir']}/{$this->session['dir']}"); return json_encode(array( 'files' => $this->getFiles($this->session['dir']), @@ -186,13 +206,14 @@ protected function act_chDir() { protected function act_newDir() { if (!$this->config['access']['dirs']['create'] || - !isset($this->post['dir']) || - !isset($this->post['newDir']) + !isset($_POST['dir']) || + !isset($_POST['newDir']) || + !$this->checkFilename($_POST['newDir']) ) $this->errorMsg("Unknown error."); $dir = $this->postDir(); - $newDir = $this->normalizeDirname(trim($this->post['newDir'])); + $newDir = $this->normalizeDirname(trim($_POST['newDir'])); if (!strlen($newDir)) $this->errorMsg("Please enter new folder name."); if (preg_match('/[\/\\\\]/s', $newDir)) @@ -202,19 +223,21 @@ protected function act_newDir() { 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)); + $this->errorMsg("Cannot create {dir} folder.", array('dir' => $this->htmlData($newDir))); return true; } protected function act_renameDir() { if (!$this->config['access']['dirs']['rename'] || - !isset($this->post['dir']) || - !isset($this->post['newName']) + !isset($_POST['dir']) || + !strlen(rtrim(rtrim(trim($_POST['dir']), "/"), "\\")) || + !isset($_POST['newName']) || + !$this->checkFilename($_POST['newName']) ) $this->errorMsg("Unknown error."); $dir = $this->postDir(); - $newName = $this->normalizeDirname(trim($this->post['newName'])); + $newName = $this->normalizeDirname(trim($_POST['newName'])); if (!strlen($newName)) $this->errorMsg("Please enter new folder name."); if (preg_match('/[\/\\\\]/s', $newName)) @@ -223,7 +246,7 @@ protected function act_renameDir() { $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']}"; + $thumbDir = "$this->thumbsTypeDir/{$_POST['dir']}"; if (is_dir($thumbDir)) @rename($thumbDir, dirname($thumbDir) . "/$newName"); return json_encode(array('name' => $newName)); @@ -231,8 +254,8 @@ protected function act_renameDir() { protected function act_deleteDir() { if (!$this->config['access']['dirs']['delete'] || - !isset($this->post['dir']) || - !strlen(trim($this->post['dir'])) + !isset($_POST['dir']) || + !strlen(rtrim(rtrim(trim($_POST['dir']), "/"), "\\")) ) $this->errorMsg("Unknown error."); @@ -244,18 +267,20 @@ protected function act_deleteDir() { if (is_array($result) && count($result)) $this->errorMsg("Failed to delete {count} files/folders.", array('count' => count($result))); - $thumbDir = "$this->thumbsTypeDir/{$this->post['dir']}"; + $thumbDir = "$this->thumbsTypeDir/{$_POST['dir']}"; if (is_dir($thumbDir)) dir::prune($thumbDir); return true; } protected function act_upload() { + header("Content-Type: text/plain; charset={$this->charset}"); + if (!$this->config['access']['files']['upload'] || - !isset($this->post['dir']) + (!isset($_POST['dir']) && !isset($_GET['dir'])) ) $this->errorMsg("Unknown error."); - $dir = $this->postDir(); + $dir = isset($_GET['dir']) ? $this->getDir() : $this->postDir(); if (!dir::isWritable($dir)) $this->errorMsg("Cannot access or write to upload folder."); @@ -274,11 +299,34 @@ protected function act_upload() { return $this->moveUploadFile($this->file, $dir); } + protected function act_dragUrl() { + if (!$this->config['access']['files']['upload'] || + !isset($_GET['dir']) || + !isset($_POST['url']) || + !isset($_POST['type']) + ) + $this->errorMsg("Unknown error."); + + $dir = $this->getDir(); + + if (!dir::isWritable($dir)) + $this->errorMsg("Cannot access or write to upload folder."); + + if (is_array($_POST['url'])) + foreach ($_POST['url'] as $url) + $this->downloadURL($url, $dir); + else + $this->downloadURL($_POST['url'], $dir); + + return true; + } + protected function act_download() { $dir = $this->postDir(); - if (!isset($this->post['dir']) || - !isset($this->post['file']) || - (false === ($file = "$dir/{$this->post['file']}")) || + if (!isset($_POST['dir']) || + !isset($_POST['file']) || + !$this->checkFilename($_POST['file']) || + (false === ($file = "$dir/{$_POST['file']}")) || !file_exists($file) || !is_readable($file) ) $this->errorMsg("Unknown error."); @@ -288,8 +336,8 @@ protected function act_download() { 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-Disposition: attachment; filename="' . str_replace('"', "_", $_POST['file']) . '"'); + header("Content-Transfer-Encoding: binary"); header("Content-Length: " . filesize($file)); readfile($file); die; @@ -298,23 +346,25 @@ protected function act_download() { 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']}")) || + !isset($_POST['dir']) || + !isset($_POST['file']) || + !isset($_POST['newName']) || + !$this->checkFilename($_POST['file']) || + !$this->checkFilename($_POST['newName']) || + (false === ($file = "$dir/{$_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) + (file::getExtension($_POST['file'], true) !== + file::getExtension($_POST['newName'], true) ) ) $this->errorMsg("You cannot rename the extension of files!"); - $newName = $this->normalizeFilename(trim($this->post['newName'])); + $newName = $this->normalizeFilename(trim($_POST['newName'])); if (!strlen($newName)) $this->errorMsg("Please enter new file name."); if (preg_match('/[\/\\\\]/s', $newName)) @@ -330,8 +380,8 @@ protected function act_rename() { if (!@rename($file, $newName)) $this->errorMsg("Unknown error."); - $thumbDir = "{$this->thumbsTypeDir}/{$this->post['dir']}"; - $thumbFile = "$thumbDir/{$this->post['file']}"; + $thumbDir = "{$this->thumbsTypeDir}/{$_POST['dir']}"; + $thumbFile = "$thumbDir/{$_POST['file']}"; if (file_exists($thumbFile)) @rename($thumbFile, "$thumbDir/" . basename($newName)); @@ -341,15 +391,16 @@ protected function act_rename() { 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']}")) || + !isset($_POST['dir']) || + !isset($_POST['file']) || + !$this->checkFilename($_POST['file']) || + (false === ($file = "$dir/{$_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']}"; + $thumb = "{$this->thumbsTypeDir}/{$_POST['dir']}/{$_POST['file']}"; if (file_exists($thumb)) @unlink($thumb); return true; } @@ -357,32 +408,33 @@ protected function act_delete() { protected function act_cp_cbd() { $dir = $this->postDir(); if (!$this->config['access']['files']['copy'] || - !isset($this->post['dir']) || + !isset($_POST['dir']) || !is_dir($dir) || !is_readable($dir) || !dir::isWritable($dir) || - !isset($this->post['files']) || !is_array($this->post['files']) || - !count($this->post['files']) + !isset($_POST['files']) || !is_array($_POST['files']) || + !count($_POST['files']) ) $this->errorMsg("Unknown error."); $error = array(); - foreach($this->post['files'] as $file) { + foreach($_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"; + if (!$this->checkFilePath($path)) continue; $base = basename($file); - $replace = array('file' => $base); + $replace = array('file' => $this->htmlData($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 '.'"); + $error[] = $this->htmlData($base) . ": " . $this->label("File name shouldn't begins with '.'"); elseif (!$this->validateExtension($ext, $type)) - $error[] = "$base: " . $this->label("Denied file extension."); + $error[] = $this->htmlData($base) . ": " . $this->label("Denied file extension."); elseif (file_exists("$dir/$base")) - $error[] = "$base: " . $this->label("A file or folder with that name already exists."); + $error[] = $this->htmlData($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")) @@ -392,7 +444,7 @@ protected function act_cp_cbd() { @chmod("$dir/$base", $this->config['filePerms']); $fromThumb = "{$this->thumbsDir}/$file"; if (is_file($fromThumb) && is_readable($fromThumb)) { - $toThumb = "{$this->thumbsTypeDir}/{$this->post['dir']}"; + $toThumb = "{$this->thumbsTypeDir}/{$_POST['dir']}"; if (!is_dir($toThumb)) @mkdir($toThumb, $this->config['dirPerms'], true); $toThumb .= "/$base"; @@ -408,32 +460,33 @@ protected function act_cp_cbd() { protected function act_mv_cbd() { $dir = $this->postDir(); if (!$this->config['access']['files']['move'] || - !isset($this->post['dir']) || + !isset($_POST['dir']) || !is_dir($dir) || !is_readable($dir) || !dir::isWritable($dir) || - !isset($this->post['files']) || !is_array($this->post['files']) || - !count($this->post['files']) + !isset($_POST['files']) || !is_array($_POST['files']) || + !count($_POST['files']) ) $this->errorMsg("Unknown error."); $error = array(); - foreach($this->post['files'] as $file) { + foreach($_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"; + if (!$this->checkFilePath($path)) continue; $base = basename($file); - $replace = array('file' => $base); + $replace = array('file' => $this->htmlData($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 '.'"); + $error[] = $this->htmlData($base) . ": " . $this->label("File name shouldn't begins with '.'"); elseif (!$this->validateExtension($ext, $type)) - $error[] = "$base: " . $this->label("Denied file extension."); + $error[] = $this->htmlData($base) . ": " . $this->label("Denied file extension."); elseif (file_exists("$dir/$base")) - $error[] = "$base: " . $this->label("A file or folder with that name already exists."); + $error[] = $this->htmlData($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")) @@ -443,7 +496,7 @@ protected function act_mv_cbd() { @chmod("$dir/$base", $this->config['filePerms']); $fromThumb = "{$this->thumbsDir}/$file"; if (is_file($fromThumb) && is_readable($fromThumb)) { - $toThumb = "{$this->thumbsTypeDir}/{$this->post['dir']}"; + $toThumb = "{$this->thumbsTypeDir}/{$_POST['dir']}"; if (!is_dir($toThumb)) @mkdir($toThumb, $this->config['dirPerms'], true); $toThumb .= "/$base"; @@ -458,22 +511,23 @@ protected function act_mv_cbd() { protected function act_rm_cbd() { if (!$this->config['access']['files']['delete'] || - !isset($this->post['files']) || - !is_array($this->post['files']) || - !count($this->post['files']) + !isset($_POST['files']) || + !is_array($_POST['files']) || + !count($_POST['files']) ) $this->errorMsg("Unknown error."); $error = array(); - foreach($this->post['files'] as $file) { + foreach($_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"; + if (!$this->checkFilePath($path)) continue; $base = basename($file); - $replace = array('file' => $base); + $replace = array('file' => $this->htmlData($base)); if (!is_file($path)) $error[] = $this->label("The file '{file}' does not exist.", $replace); elseif (!@unlink($path)) @@ -490,7 +544,7 @@ protected function act_rm_cbd() { protected function act_downloadDir() { $dir = $this->postDir(); - if (!isset($this->post['dir']) || $this->config['denyZipDownload']) + if (!isset($_POST['dir']) || $this->config['denyZipDownload']) $this->errorMsg("Unknown error."); $filename = basename($dir) . ".zip"; do { @@ -508,20 +562,20 @@ protected function act_downloadDir() { protected function act_downloadSelected() { $dir = $this->postDir(); - if (!isset($this->post['dir']) || - !isset($this->post['files']) || - !is_array($this->post['files']) || + if (!isset($_POST['dir']) || + !isset($_POST['files']) || + !is_array($_POST['files']) || $this->config['denyZipDownload'] ) $this->errorMsg("Unknown error."); $zipFiles = array(); - foreach ($this->post['files'] as $file) { + foreach ($_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)) + if (!is_file($file) || !is_readable($file) || !$this->checkFilePath($file)) continue; $zipFiles[] = $file; } @@ -531,8 +585,8 @@ protected function act_downloadSelected() { $file = "{$this->config['uploadDir']}/$file.zip"; } while (file_exists($file)); - $zip = new ZipArchive(); - $res = $zip->open($file, ZipArchive::CREATE); + $zip = new \ZipArchive(); + $res = $zip->open($file, \ZipArchive::CREATE); if ($res === TRUE) { foreach ($zipFiles as $cfile) $zip->addFile($cfile, basename($cfile)); @@ -547,14 +601,14 @@ protected function act_downloadSelected() { } protected function act_downloadClipboard() { - if (!isset($this->post['files']) || - !is_array($this->post['files']) || + if (!isset($_POST['files']) || + !is_array($_POST['files']) || $this->config['denyZipDownload'] ) $this->errorMsg("Unknown error."); $zipFiles = array(); - foreach ($this->post['files'] as $file) { + foreach ($_POST['files'] as $file) { $file = path::normalize($file); if ((substr($file, 0, 1) == ".")) continue; @@ -563,7 +617,7 @@ protected function act_downloadClipboard() { if ($type != $this->type) continue; $file = $this->config['uploadDir'] . "/$file"; - if (!is_file($file) || !is_readable($file)) + if (!is_file($file) || !is_readable($file) || !$this->checkFilePath($file)) continue; $zipFiles[] = $file; } @@ -573,8 +627,8 @@ protected function act_downloadClipboard() { $file = "{$this->config['uploadDir']}/$file.zip"; } while (file_exists($file)); - $zip = new ZipArchive(); - $res = $zip->open($file, ZipArchive::CREATE); + $zip = new \ZipArchive(); + $res = $zip->open($file, \ZipArchive::CREATE); if ($res === TRUE) { foreach ($zipFiles as $cfile) $zip->addFile($cfile, basename($cfile)); @@ -599,62 +653,9 @@ protected function act_check4Update() { ) 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); - } + $ver = phpGet::get("http://kcfinder.sunhater.com/checkVersion.php"); - if (isset($ver) && preg_match($pattern, $ver)) { + if (isset($ver) && preg_match('/^\d+\.\d+$/', $ver)) { $this->session['checkVersion'] = $ver; $this->session['checkVersionTime'] = time(); return json_encode(array('version' => $ver)); @@ -679,7 +680,7 @@ protected function moveUploadFile($file, $dir) { !@copy($file['tmp_name'], $target) ) { @unlink($file['tmp_name']); - return "{$file['name']}: " . $this->label("Cannot move uploaded file to target folder."); + return $this->htmlData($file['name']) . ": " . $this->label("Cannot move uploaded file to target folder."); } elseif (function_exists('chmod')) chmod($target, $this->config['filePerms']); @@ -708,18 +709,27 @@ protected function getFiles($dir) { 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)); + + $img = new fastImage($file); + $type = $img->getType(); + + if ($type !== false) { + $size = $img->getSize($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($type, array("gif", "jpeg", "png")); + } else + $smallThumb = false; } else $smallThumb = false; + $img->close(); + $stat = stat($file); if ($stat === false) continue; $name = basename($file); @@ -780,8 +790,10 @@ protected function getTree($dir, $index=0) { protected function postDir($existent=true) { $dir = $this->typeDir; - if (isset($this->post['dir'])) - $dir .= "/" . $this->post['dir']; + if (isset($_POST['dir'])) + $dir .= "/" . $_POST['dir']; + if (!$this->checkFilePath($dir)) + $this->errorMsg("Unknown error."); if ($existent && (!is_dir($dir) || !is_readable($dir))) $this->errorMsg("Inexistant or inaccessible folder."); return $dir; @@ -789,8 +801,10 @@ protected function postDir($existent=true) { protected function getDir($existent=true) { $dir = $this->typeDir; - if (isset($this->get['dir'])) - $dir .= "/" . $this->get['dir']; + if (isset($_GET['dir'])) + $dir .= "/" . $_GET['dir']; + if (!$this->checkFilePath($dir)) + $this->errorMsg("Unknown error."); if ($existent && (!is_dir($dir) || !is_readable($dir))) $this->errorMsg("Inexistant or inaccessible folder."); return $dir; @@ -868,6 +882,57 @@ protected function errorMsg($message, array $data=null) { die(json_encode(array('error' => $message))); } } -} -?> \ No newline at end of file + protected function htmlData($str) { + return htmlentities($str, null, strtoupper($this->charset)); + } + + protected function downloadURL($url, $dir) { + + if (!preg_match(phpGet::$urlExpr, $url, $match)) + return; + + if ((isset($match[7]) && strlen($match[7]))) + $furl = explode("&", $match[7]); + + $filename = isset($furl) + ? basename($furl[0]) + : "web_image.jpg"; + + $file = tempnam(sys_get_temp_dir(), $filename); + + if (phpGet::get($url, $file)) + $this->moveUploadFile(array( + 'name' => $filename, + 'tmp_name' => $file, + 'error' => UPLOAD_ERR_OK + ), $dir); + else + @unlink($file); + } + + protected function getLangs() { + if (isset($this->session['langs'])) + return $this->session['langs']; + + $files = dir::content("lang", array( + 'pattern' => '/^[a-z]{2,3}(\-[a-z]{2})?\.php$/', + 'types' => "file" + )); + + $langs = array(); + if (is_array($files)) + foreach ($files as $file) { + include $file; + $id = substr(basename($file), 0, -4); + $langs[$id] = isset($lang['_native']) + ? $lang['_native'] + : (isset($lang['_lang']) + ? $lang['_lang'] + : $id); + } + + $this->session['langs'] = $langs; + return $langs; + } +} diff --git a/core/class/minifier.php b/core/class/minifier.php new file mode 100644 index 0000000..bbe0db7 --- /dev/null +++ b/core/class/minifier.php @@ -0,0 +1,111 @@ + + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +namespace kcfinder; + +class minifier { + + protected $config; + protected $type = "js"; + protected $minCmd = ""; + protected $mime = array( + 'js' => "text/javascript", + 'css' => "text/css" + ); + + public function __construct($type=null) { + $this->config = require("conf/config.php"); + $type = strtolower($type); + if (isset($this->mime[$type])) + $this->type = $type; + if (isset($this->config["_{$this->type}MinCmd"])) + $this->minCmd = $this->config["_{$this->type}MinCmd"]; + } + + public function minify($cacheFile=null, $dir=null) { + if ($dir === null) + $dir = dirname($_SERVER['SCRIPT_FILENAME']); + + // MODIFICATION TIME FILES + $mtFiles = array( + __FILE__, + $_SERVER['SCRIPT_FILENAME'], + "conf/config.php" + ); + + // GET SOURCE CODE FILES + $files = dir::content($dir, array( + 'types' => "file", + 'pattern' => '/^.*\.' . $this->type . '$/' + )); + + // GET NEWEST MODIFICATION TIME + $mtime = 0; + foreach (array_merge($mtFiles, $files) as $file) { + $fmtime = filemtime($file); + if ($fmtime > $mtime) + $mtime = $fmtime; + } + + $header = "Content-Type: {$this->mime[$this->type]}"; + + // GET SOURCE CODE FROM CLIENT HTTP CACHE IF EXISTS + httpCache::checkMTime($mtime, $header); + + // OUTPUT SOURCE CODE + header($header); + + // GET SOURCE CODE FROM SERVER-SIDE CACHE + if (($cacheFile !== null) && + file_exists($cacheFile) && + ( + (filemtime($cacheFile) >= $mtime) || + !is_writable($cacheFile) // if cache file cannot be modified + ) // the script will output it always + ) { // with its distribution content + readfile($cacheFile); + die; + } + + // MINIFY AND JOIN SOURCE CODE + $source = ""; + foreach ($files as $file) { + + if (strlen($this->minCmd) && (substr($file, 4, 1) != "_")) { + $cmd = str_replace("{file}", $file, $this->minCmd); + $source .= `$cmd`; + + } else + $source .= file_get_contents($file); + } + + // UPDATE SERVER-SIDE CACHE + if (($cacheFile !== null) && + ( + is_writable($cacheFile) || + ( + !file_exists($cacheFile) && + dir::isWritable(dirname($cacheFile)) + ) + ) + ) { + file_put_contents($cacheFile, $source); + touch($cacheFile, $mtime); + } + + // OUTPUT SOURCE CODE + echo $source; + + } +} diff --git a/core/class/session.php b/core/class/session.php new file mode 100644 index 0000000..918a016 --- /dev/null +++ b/core/class/session.php @@ -0,0 +1,76 @@ + + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +namespace kcfinder; + +class session { + + const SESSION_VAR = "_sessionVar"; + public $values; + protected $config; + + public function __construct($configFile) { + + // Start session if it is not already started + if (!session_id()) + session_start(); + + $config = require($configFile); + + // _sessionVar option is set + if (isset($config[self::SESSION_VAR])) { + $session = &$config[self::SESSION_VAR]; + + // _sessionVar option is string + if (is_string($session)) + $session = &$_SESSION[$session]; + + if (!is_array($session)) + $session = array(); + + // Use global _SESSION array if _sessionVar option is not set + } else + $session = &$_SESSION; + + // Securing the session + $stamp = array( + 'ip' => $_SERVER['REMOTE_ADDR'], + 'agent' => md5($_SERVER['HTTP_USER_AGENT']) + ); + if (!isset($session['stamp'])) + $session['stamp'] = $stamp; + elseif (!is_array($session['stamp']) || ($session['stamp'] !== $stamp)) { + // Destroy session if user agent is different (e.g. after browser update) + if ($session['stamp']['ip'] === $stamp['ip']) + session_destroy(); + die; + } + + // Load session configuration + foreach ($config as $key => $val) + $this->config[$key] = ((substr($key, 0, 1) != "_") && isset($session[$key])) + ? $session[$key] + : $val; + + // Session data goes to 'self' element + if (!isset($session['self'])) + $session['self'] = array(); + $this->values = &$session['self']; + } + + public function getConfig() { + return $this->config; + } + +} diff --git a/core/uploader.php b/core/class/uploader.php similarity index 73% rename from core/uploader.php rename to core/class/uploader.php index 42414fc..447d0ff 100644 --- a/core/uploader.php +++ b/core/class/uploader.php @@ -4,18 +4,20 @@ * * @desc Uploader class * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + class uploader { /** Release version */ - const VERSION = "2.52"; + const VERSION = "3.20-test2"; /** Config session-overrided settings * @var array */ @@ -26,9 +28,6 @@ class uploader { 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(); @@ -60,7 +59,7 @@ class uploader { /** The language got from $_GET['lng'] or $_GET['lang'] or... Please see next property * @var string */ - protected $lang = 'en'; + protected $lang = "en"; /** Possible language $_GET keys * @var array */ @@ -80,23 +79,11 @@ class uploader { * @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']) +/** CMS integration property (got from $_GET['cms']) * @var string */ protected $cms = ""; @@ -109,57 +96,21 @@ public function __get($property) { 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")) + // SET CMS INTEGRATION PROPERTY + if (isset($_GET['cms']) && + $this->checkFilename($_GET['cms']) && + is_file("integration/{$_GET['cms']}.php") ) - $this->cms = $this->get['cms']; + $this->cms = $_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: if (!session_id()) 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; + // CONFIG & SESSION SETUP + $session = new session("conf/config.php"); + $this->config = $session->getConfig(); + $this->session = &$session->values; // IMAGE DRIVER INIT if (isset($this->config['imageDriversPriority'])) { @@ -172,7 +123,7 @@ public function __construct() { if ((!isset($driver) || ($driver === false)) && (image::getDriver(array($this->imageDriver)) === false) ) - die("Cannot find any of the supported PHP image extensions!"); + $this->backMsg("Cannot find any of the supported PHP image extensions!"); // WATERMARK INIT if (isset($this->config['watermark']) && is_string($this->config['watermark'])) @@ -183,10 +134,10 @@ public function __construct() { $firstType = array_keys($this->types); $firstType = $firstType[0]; $this->type = ( - isset($this->get['type']) && - isset($this->types[$this->get['type']]) + isset($_GET['type']) && + isset($this->types[$_GET['type']]) ) - ? $this->get['type'] : $firstType; + ? $_GET['type'] : $firstType; // LOAD TYPE DIRECTORY SPECIFIC CONFIGURATION IF EXISTS if (is_array($this->types[$this->type])) { @@ -228,7 +179,7 @@ public function __construct() { } elseif ($this->config['uploadURL'] == "/") { $this->config['uploadDir'] = strlen($this->config['uploadDir']) ? path::normalize($this->config['uploadDir']) - : path::normalize($_SERVER['DOCUMENT_ROOT']); + : path::normalize(realpath($_SERVER['DOCUMENT_ROOT'])); $this->typeDir = "{$this->config['uploadDir']}/{$this->type}"; $this->typeURL = "/{$this->type}"; @@ -243,52 +194,71 @@ public function __construct() { $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; + if (isset($_GET['CKEditorFuncNum'])) { + $this->opener['name'] = "ckeditor"; + $this->opener['CKEditor'] = array('funcNum' => $_GET['CKEditorFuncNum']); + + } elseif (isset($_GET['opener'])) { + $this->opener['name'] = $_GET['opener']; + + if ($_GET['opener'] == "tinymce") { + if (!isset($this->config['_tinyMCEPath']) || !strlen($this->config['_tinyMCEPath'])) + $this->opener['name'] = false; + + } elseif ($_GET['opener'] == "tinymce4") { + if (!isset($_GET['field'])) + $this->opener['name'] = false; + else + $this->opener['TinyMCE'] = array('field' => $_GET['field']); + } + + } else + $this->opener['name'] = false; // 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") + if (isset($_GET[$key]) && + preg_match('/^[a-z][a-z\._\-]*$/i', $_GET[$key]) && + file_exists("lang/" . strtolower($_GET[$key]) . ".php") ) { - $this->lang = $this->get[$key]; + $this->lang = $_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!"); + // IF BROWSER IS ENABLED + if (!$this->config['disabled']) { + + // TRY TO CREATE UPLOAD DIRECTORY IF NOT EXISTS + if (!$this->config['disabled'] && !is_dir($this->config['uploadDir'])) + @mkdir($this->config['uploadDir'], $this->config['dirPerms']); + + // CHECK & MAKE DEFAULT .htaccess + if (isset($this->config['_check4htaccess']) && + $this->config['_check4htaccess'] + ) { + $htaccess = "{$this->config['uploadDir']}/.htaccess"; + $original = $this->get_htaccess(); + if (!file_exists($htaccess)) { + if (!@file_put_contents($htaccess, $original)) + $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 != $original) && !@file_put_contents($htaccess, $original)) + $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."); + // 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() { @@ -304,8 +274,8 @@ public function upload() { $message = ""; $dir = "{$this->typeDir}/"; - if (isset($this->get['dir']) && - (false !== ($gdir = $this->checkInputDir($this->get['dir']))) + if (isset($_GET['dir']) && + (false !== ($gdir = $this->checkInputDir($_GET['dir']))) ) { $udir = path::normalize("$dir$gdir"); if (substr($udir, 0, strlen($dir)) !== $dir) @@ -354,25 +324,57 @@ public function upload() { if (strlen($message) && method_exists($this, 'errorMsg')) $this->errorMsg($message); - $this->callBack($url, $message); + else + $this->callBack($url, $message); } protected function normalizeFilename($filename) { + if (isset($this->config['filenameChangeChars']) && is_array($this->config['filenameChangeChars']) ) $filename = strtr($filename, $this->config['filenameChangeChars']); + + if (isset($this->config['_normalizeFilenames']) && $this->config['_normalizeFilenames']) + $filename = file::normalizeFilename($filename); + return $filename; } protected function normalizeDirname($dirname) { + if (isset($this->config['dirnameChangeChars']) && is_array($this->config['dirnameChangeChars']) ) $dirname = strtr($dirname, $this->config['dirnameChangeChars']); + + if (isset($this->config['_normalizeFilenames']) && $this->config['_normalizeFilenames']) + $dirname = file::normalizeFilename($dirname); + return $dirname; } + protected function checkFilePath($file) { + $rPath = realpath($file); + if (strtoupper(substr(PHP_OS, 0, 3)) == "WIN") + $rPath = str_replace("\\", "/", $rPath); + return (substr($rPath, 0, strlen($this->typeDir)) === $this->typeDir); + } + + protected function checkFilename($file) { + + if ((basename($file) !== $file) || + ( + isset($this->config['_normalizeFilenames']) && + $this->config['_normalizeFilenames'] && + preg_match('/[^0-9a-z\.\- _]/si', $file) + ) + ) + return false; + + return true; + } + protected function checkUploadedFile(array $aFile=null) { $config = &$this->config; $file = ($aFile === null) ? $this->file : $aFile; @@ -404,7 +406,7 @@ protected function checkUploadedFile(array $aFile=null) { 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'])) : ( + array('size' => $_GET['MAX_FILE_SIZE'])) : ( ($file['error'] == UPLOAD_ERR_PARTIAL) ? $this->label("The uploaded file was only partially uploaded.") : ( ($file['error'] == UPLOAD_ERR_NO_FILE) ? @@ -421,14 +423,17 @@ protected function checkUploadedFile(array $aFile=null) { return $this->label("File name shouldn't begins with '.'"); // EXTENSION CHECK - elseif (!$this->validateExtension($extension, $this->type)) + elseif ( + (substr($file['name'], -1) == ".") || + !$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"; + $class = __NAMESPACE__ . "\\type_$type"; + if (class_exists($class)) { $type = new $class(); $cfg = $config; $cfg['filename'] = $file['name']; @@ -544,7 +549,6 @@ protected function imageResize($image, $file=null) { ) return true; - // PROPORTIONAL RESIZE if ((!$this->config['maxImageWidth'] || !$this->config['maxImageHeight'])) { @@ -585,7 +589,7 @@ protected function imageResize($image, $file=null) { if (($orientation >= 2) && ($orientation <= 8) && ($this->imageDriver == "imagick")) try { $img->image->setImageProperty('exif:Orientation', "1"); - } catch (Exception $e) {} + } catch (\Exception $e) {} // WATERMARK if (isset($this->config['watermark']['file']) && @@ -612,6 +616,13 @@ protected function makeThumb($file, $overwrite=true) { if ($img->initError) return true; + $fimg = new fastImage($file); + $type = $fimg->getType(); + $fimg->close(); + + if ($type === false) + return true; + $thumb = substr($file, strlen($this->config['uploadDir'])); $thumb = $this->config['uploadDir'] . "/" . $this->config['thumbsDir'] . "/" . $thumb; $thumb = path::normalize($thumb); @@ -626,9 +637,8 @@ protected function makeThumb($file, $overwrite=true) { 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))) + if (in_array($type, array("gif", "jpeg", "png"))) return true; // Resize image @@ -636,10 +646,12 @@ protected function makeThumb($file, $overwrite=true) { return false; // Save thumbnail - return $img->output("jpeg", array( - 'file' => $thumb, - 'quality' => $this->config['jpegQuality'] - )); + $options = array('file' => $thumb); + if ($type == "gif") + $type = "jpeg"; + if ($type == "jpeg") + $options['quality'] = $this->config['jpegQuality']; + return $img->output($type, $options); } protected function localize($langCode) { @@ -667,62 +679,88 @@ protected function label($string, array $data=null) { 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']); + $tmp_name = isset($this->file['tmp_name']) ? $this->file['tmp_name'] : false; + + if ($tmp_name) { + $tmp_name = (is_array($tmp_name) && isset($tmp_name[0])) + ? $tmp_name[0] + : $tmp_name; + + if (file_exists($tmp_name)) + @unlink($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; + + if ((get_class($this) == "kcfinder\\browser") && ($this->action != "browser")) + return; + + if (isset($this->opener['name'])) { + $method = "callBack_{$this->opener['name']}"; + if (method_exists($this, $method)) + $js = $this->$method($url, $message); + } + + if (!isset($js)) + $js = $this->callBack_default($url, $message); + header("Content-Type: text/html; charset={$this->charset}"); + echo "$js"; + } -?> - - - -"; + } + protected function callBack_fckeditor($url, $message) { + $n = strlen($message) ? 1 : 0; + return ""; + } + + protected function callBack_tinymce($url, $message) { + return $this->callBack_default($url, $message); + } + + protected function callBack_tinymce4($url, $message) { + return $this->callBack_default($url, $message); + } + + protected function callBack_default($url, $message) { + return ""; } protected function get_htaccess() { - return " - php_value engine off - - - php_value engine off - -"; + return file_get_contents("conf/upload.htaccess"); } } - -?> diff --git a/core/types/type_img.php b/core/types/type_img.php index a2089b8..c03ca7d 100644 --- a/core/types/type_img.php +++ b/core/types/type_img.php @@ -4,14 +4,16 @@ * * @desc Image detection class * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + class type_img { public function checkFile($file, array $config) { @@ -27,5 +29,3 @@ public function checkFile($file, array $config) { return true; } } - -?> \ No newline at end of file diff --git a/core/types/type_mime.php b/core/types/type_mime.php index 0b9a0d0..9fc734d 100644 --- a/core/types/type_mime.php +++ b/core/types/type_mime.php @@ -4,14 +4,16 @@ * * @desc MIME type detection class * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + class type_mime { public function checkFile($file, array $config) { @@ -22,8 +24,8 @@ public function checkFile($file, array $config) { return "Undefined MIME types."; $finfo = strlen($config['mime_magic']) - ? new finfo(FILEINFO_MIME, $config['mime_magic']) - : new finfo(FILEINFO_MIME); + ? new \finfo(FILEINFO_MIME, $config['mime_magic']) + : new \finfo(FILEINFO_MIME); if (!$finfo) return "Opening fileinfo database failed."; @@ -43,5 +45,3 @@ public function checkFile($file, array $config) { : true; } } - -?> \ No newline at end of file diff --git a/css.php b/css/000.base.css similarity index 62% rename from css.php rename to css/000.base.css index fcf0830..7ff23cd 100644 --- a/css.php +++ b/css/000.base.css @@ -1,25 +1,3 @@ - - * @copyright 2010-2014 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; } @@ -30,7 +8,7 @@ } a { - cursor:pointer; + cursor: pointer; } * { @@ -42,10 +20,6 @@ border-collapse: collapse; } -#all { - vvisibility: hidden; -} - #left { float: left; display: block; @@ -104,7 +78,6 @@ div.file { overflow-x: hidden; - width: px; float: left; text-align: center; cursor: default; @@ -112,8 +85,6 @@ } div.file .thumb { - width: px; - height: px; background: no-repeat center center; } @@ -160,17 +131,12 @@ position: absolute; overflow: hidden; opacity: 0; - filter: alpha(opacity:0); + filter: alpha(opacity=0); } - -#upload input { +#upload input, #upload input::-webkit-file-upload-button { cursor: pointer; } -#uploadResponse { - display: none; -} - span.brace { padding-left: 11px; cursor: default; @@ -180,37 +146,17 @@ 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 { +#menu, #clipboard { position: absolute; display: none; z-index: 101; cursor: default; } -#dialog .box, #alert { +#menu .box, #alert { max-width: 350px; } -#alert { - z-index: 102; -} - -#alert div.message { - overflow-y: auto; - overflow-x: hidden; -} - #clipboard { z-index: 99; } @@ -236,22 +182,22 @@ white-space: nowrap; } -.file .access, .file .hasThumb { +#uploadResponse, +.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); + filter: alpha(opacity=0); } - div { + overflow: auto; + margin-bottom: 5px; +} \ No newline at end of file diff --git a/css/index.php b/css/index.php new file mode 100644 index 0000000..256a7b5 --- /dev/null +++ b/css/index.php @@ -0,0 +1,20 @@ + + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +namespace kcfinder; + +chdir(".."); +require "core/autoload.php"; +$min = new minifier("css"); +$min->minify("cache/base.css"); diff --git a/doc/Changelog b/doc/Changelog deleted file mode 100644 index 4191861..0000000 --- a/doc/Changelog +++ /dev/null @@ -1,141 +0,0 @@ - -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/Changelog.md b/doc/Changelog.md new file mode 100644 index 0000000..f7674ec --- /dev/null +++ b/doc/Changelog.md @@ -0,0 +1,184 @@ +3.20-test2: 2014-08-24 +---------------------- +* jQuery adapter added +* Session handling improvements. Now `_sessionVar` option could get arrays by reference +* Session related ini options in `conf/config.php` are removed and no more supported +* Removed redundant closing tags in PHP files + +3.20-test1: 2014-08-19 +---------------------- +* "`DOCUMENT_ROOT` is symlink" bugfix +* Uniform is replaced with my alternative - transForm (http://jquery.sunhater.com/transForm) +* Improved image viewer +* Improved drag & drop upload functionality. Progress bars in a dialog box. +* Supports drag & drop images from external html page +* Language dropdown in settings toolbar +* No border-radius when scrollbar(s) exists into files and folders panes +* `_dropUploadMaxFilesize` option is added. (Drag & dropping bigger files cause crash the web browser) +* `composer.json` file added +* 4 new labels to translate + +3.12: 2014-07-09 +---------------- +* XSS security fix +* Performance fix +* taphold event added. Emulates right-click on touchscreen devices +* Click with `Shift` key functionality added +* Minor fixes + +3.11: 2014-04-21 +---------------- +* "Unknown error." fixes when using `_normalizeFilenames` setting and upon new folder creation + +3.10: 2014-04-16 +---------------- +* Important secirity fixes + +3.0: 2014-04-08 +--------------- +* Minor fixes + +3.0-pre1: 2014-04-02 +-------------------- +* Now KCFinder requires PHP >= 5.3 becouse of using namespace: `kcfinder` +* Support CSS & JavaScript minifier (on the fly) +* jQuery UI & Uniform support. New theme & theme engine (old themes are not supported) +* Improvements in JavaScript code to be well compressed and faster +* Keep PNG transparency in generated thumbnails +* New image viewer + +2.54: 2014-03-12 +---------------- +* Performance fix only + +2.53: 2014-02-22 +---------------- +* Session start fix +* TinyMCE 4 support + +2.52: 2014-01-20 +---------------- +* Various image drivers support (`gd`, `imagemagick`, `graphicsmagic`) +* Auto-rotate images based on EXIF data +* PNG watermark support + +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 + +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 + +2.41: 2010-07-24 +---------------- +* Directory types engine improvement +* New `denyExtensionRename` config setting added + +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 + +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` + +2.31: 2010-07-01 +---------------- +* Proportional uploaded image resize bugfix +* Slideshow bugfixes +* Other small bugfixes + +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 + +2.21: 2010-11-19 +---------------- +* Bugfixes only + +2.2: 2010-07-27 +--------------- +* Many bugfixes +* Read-only config option + +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 + +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 + +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 + +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 + +1.5: 2010-05-30 +--------------- +* Filenames with spaces download bugfix +* FCKEditor direct upload bugfix +* Thumbnail generation bugfixes + +1.4: 2010-05-24 +--------------- +* Client-side caching bugfix +* Custom integrations - `window.KCFinder.callBack()` +* Security fixes + +1.3: 2010-05-06 +--------------- +* Another session bugfix. Now session configuratin works! +* Show filename by default bugfix +* Loading box on top right corner + +1.2: 2010-05-03 +--------------- +* Thumbnail generation bugfix +* Session bugfix +* other small bugfixes diff --git a/doc/LICENSE.GPL b/doc/LICENSE.GPL index c968251..20d40b6 100644 --- a/doc/LICENSE.GPL +++ b/doc/LICENSE.GPL @@ -1,285 +1,626 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - Preamble + 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 + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. 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. +them 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. + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. 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. +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. 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. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. 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 + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey 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; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of 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 + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If 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 +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU 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 + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + 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. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +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. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + 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 @@ -287,15 +628,15 @@ 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 +state 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 + 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 + the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -304,37 +645,30 @@ the "copyright" line and a pointer to where the full notice is found. 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 - + along with this program. If not, see . 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: + If the program does terminal interaction, 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'. + Copyright (C) + This program 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. +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU 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 Lesser General +Public License instead of this License. But first, please read +. \ No newline at end of file diff --git a/doc/LICENSE.LGPL b/doc/LICENSE.LGPL index 9a3408f..02bbb60 100644 --- a/doc/LICENSE.LGPL +++ b/doc/LICENSE.LGPL @@ -1,167 +1,165 @@ -GNU Lesser General Public License -Version 2.1, February 1999 + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 - 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. + Copyright (C) 2007 Free Software Foundation, Inc. + 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 + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. -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. + 0. Additional Definitions. -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. + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. -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! + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + 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 that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU 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 as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. \ No newline at end of file diff --git a/doc/README b/doc/README deleted file mode 100644 index 2ddaad8..0000000 --- a/doc/README +++ /dev/null @@ -1,78 +0,0 @@ -[===========================< KCFinder 2.52 >================================] -[ ] -[ Copyright 2010-2014 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/favicon.ico b/favicon.ico new file mode 100644 index 0000000..e40e047 Binary files /dev/null and b/favicon.ico differ diff --git a/index.php b/index.php new file mode 100644 index 0000000..15a4b5e --- /dev/null +++ b/index.php @@ -0,0 +1,2 @@ + + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ +class BolmerCMS{ + protected static $authenticated = false; + static function checkAuth() { + $current_cwd = getcwd(); + if ( ! self::$authenticated) { + define('BOLMER_API_MODE', true); + define('IN_MANAGER_MODE', true); + $init = realpath(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__))))))."/index.php"); + include_once($init); + $type = getService('user', true)->getLoginUserType(); + if($type=='manager'){ + self::$authenticated = true; + if (!isset($_SESSION['KCFINDER'])) { + $_SESSION['KCFINDER'] = array(); + } + if(!isset($_SESSION['KCFINDER']['disabled'])) { + $_SESSION['KCFINDER']['disabled'] = false; + } + $_SESSION['KCFINDER']['_check4htaccess'] = false; + $_SESSION['KCFINDER']['uploadURL'] = '/assets/'; + $_SESSION['KCFINDER']['uploadDir'] = BOLMER_BASE_PATH.'assets/'; + $_SESSION['KCFINDER']['theme'] = 'default'; + } + } + + chdir($current_cwd); + return self::$authenticated; + } +} +\kcfinder\cms\BolmerCMS::checkAuth(); \ No newline at end of file diff --git a/integration/drupal.php b/integration/drupal.php index 9791138..e5db5f9 100644 --- a/integration/drupal.php +++ b/integration/drupal.php @@ -4,11 +4,11 @@ * * @desc CMS integration code: Drupal * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Dany Alejandro Cabrera * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ @@ -92,7 +92,7 @@ function CheckAuthentication($drupal_path) { 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'); + $_SESSION['KCFINDER']['theme'] = variable_get('kcfinder_theme', 'default'); //echo '
    uploadURL: ' . $_SESSION['KCFINDER']['uploadURL']
    ; //echo '
    uploadDir: ' . $_SESSION['KCFINDER']['uploadDir']
    ; @@ -109,7 +109,3 @@ function CheckAuthentication($drupal_path) { } CheckAuthentication(get_drupal_path()); - -spl_autoload_register('__autoload'); - -?> \ No newline at end of file diff --git a/integration/laraveladministrator.php b/integration/laraveladministrator.php new file mode 100644 index 0000000..195aa5b --- /dev/null +++ b/integration/laraveladministrator.php @@ -0,0 +1,136 @@ + + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +class LaravelAdministrator { + protected static $authenticated = false; + protected static $bootstrapAutoload = '/bootstrap/autoload.php'; + protected static $bootstrapStart = '/bootstrap/start.php'; + + static function getLaravelPath() { + + //absolute path method + if (!empty($_SERVER['SCRIPT_FILENAME'])) { + $laravelPath = dirname(dirname(dirname(dirname(dirname(dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME'])))))))); + if (!file_exists($laravelPath . self::$bootstrapAutoload)) { + $laravelPath = dirname(dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME'])))); + $depth = 3; + do { + $laravelPath = dirname($laravelPath); + $depth++; + $autoloadFound = file_exists($laravelPath . self::$bootstrapAutoload); + } while (!$autoloadFound && $depth < 10); + } + else { + $autoloadFound = true; + } + } + + //relative path method + if (!isset($autoloadFound) || !$autoloadFound) { + $laravelPath = '../../../../../../..'; + if (!file_exists($laravelPath . self::$bootstrapAutoload)) { + $laravelPath = '../../..'; + $depth = 3; + do { + $laravelPath .= '/..'; + $depth++; + } while (!($autoloadFound = file_exists($laravelPath . self::$bootstrapAutoload)) && $depth < 10); + } + else { + $autoloadFound = true; + } + } + + return $laravelPath; + } + + static function runIntegration() { + + $laravelPath = self::getLaravelPath(); + + if(file_exists($laravelPath . '/bootstrap/autoload.php')) { + $currentCwd = getcwd(); + + // Simulate being in the laravel root folder so we can share the session (is this really needed?) + // chdir($laravelPath); + + // bootstrap + require $laravelPath.'/bootstrap/autoload.php'; + $app = require_once $laravelPath.'/bootstrap/start.php'; + $app->boot(); //Boot the application's service providers. + + //get the admin check closure that should be supplied in the admin config + $permission = \Illuminate\Support\Facades\Config::get('administrator::administrator.permission'); + $hasPermission = $permission(); + self::$authenticated = $hasPermission; + + //start session if not started already + if (session_id() == "") { + session_start(); + $iStartedTheSession = true; + } + + if (!isset($_SESSION['KCFINDER'])) { + $_SESSION['KCFINDER'] = array(); + } + + //if this is a simple true value, user is logged in + if ($hasPermission == true) { + + $configFactory = \Illuminate\Support\Facades\App::make('admin_config_factory'); + $modelName = \Illuminate\Support\Facades\Input::get('model'); + $fieldName = \Illuminate\Support\Facades\Input::get('field'); + + if(!empty($modelName) && !empty($fieldName)) { + + $modelConfig = $configFactory->make($modelName, true); + $modelConfigOptions = $modelConfig->getOption('edit_fields'); + $kcfinderOptions = $modelConfigOptions[$fieldName]["kcfinder"]; + + //allow users to use an option called 'enabled' instead of 'disabled' + if(isset($kcfinderOptions["enabled"])) { + $kcfinderOptions["disabled"] = !$kcfinderOptions["enabled"]; + } + + //save all options to the session + foreach ($kcfinderOptions as $optKey => $optValue) { + $_SESSION['KCFINDER'][$optKey] = $optValue; + } + + self::$authenticated = !$_SESSION['KCFINDER']['disabled']; + + } + } + else { + //clean and reset the session variable + $_SESSION['KCFINDER'] = array(); + } + + //close the session if I started it + if (isset($iStartedTheSession)) { + session_write_close(); + } + + // chdir($currentCwd); + return self::$authenticated; + } + else { + die("The integration service for 'Laravel Administrator' failed. Laravel root path not found!"); + } + + } + +} + +\kcfinder\integration\LaravelAdministrator::runIntegration(); diff --git a/js/000._jquery.js b/js/000._jquery.js new file mode 100644 index 0000000..046e93a --- /dev/null +++ b/js/000._jquery.js @@ -0,0 +1,4 @@ +/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m="1.11.0",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(l.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:k&&!k.call("\ufeff\xa0")?function(a){return null==a?"":k.call(a)}:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||n.guid++,e):void 0},now:function(){return+new Date},support:l}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="
    ",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="",a.querySelectorAll("[t^='']").length&&o.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!='']:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=a.document,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,B=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:A.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:z,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=z.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return y.find(a);this.length=1,this[0]=d}return this.context=z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};B.prototype=n.fn,y=n(z);var C=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!n(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function E(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return E(a,"nextSibling")},prev:function(a){return E(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(D[a]||(e=n.unique(e)),C.test(a)&&(e=e.reverse())),this.pushStack(e)}});var F=/\S+/g,G={};function H(a){var b=G[a]={};return n.each(a.match(F)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?G[a]||H(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&n.each(arguments,function(a,c){var d;while((d=n.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){if(a===!0?!--n.readyWait:!n.isReady){if(!z.body)return setTimeout(n.ready);n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(z,[n]),n.fn.trigger&&n(z).trigger("ready").off("ready"))}}});function J(){z.addEventListener?(z.removeEventListener("DOMContentLoaded",K,!1),a.removeEventListener("load",K,!1)):(z.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(z.addEventListener||"load"===event.type||"complete"===z.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===z.readyState)setTimeout(n.ready);else if(z.addEventListener)z.addEventListener("DOMContentLoaded",K,!1),a.addEventListener("load",K,!1);else{z.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&z.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!n.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}J(),n.ready()}}()}return I.promise(b)};var L="undefined",M;for(M in n(l))break;l.ownLast="0"!==M,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c=z.getElementsByTagName("body")[0];c&&(a=z.createElement("div"),a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",b=z.createElement("div"),c.appendChild(a).appendChild(b),typeof b.style.zoom!==L&&(b.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(l.inlineBlockNeedsLayout=3===b.offsetWidth)&&(c.style.zoom=1)),c.removeChild(a),a=b=null)}),function(){var a=z.createElement("div");if(null==l.deleteExpando){l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}}a=null}(),n.acceptData=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(n.acceptData(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f +}}function S(a,b,c){if(n.acceptData(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d]));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},X=/^(?:checkbox|radio)$/i;!function(){var a=z.createDocumentFragment(),b=z.createElement("div"),c=z.createElement("input");if(b.setAttribute("className","t"),b.innerHTML="
    a",l.leadingWhitespace=3===b.firstChild.nodeType,l.tbody=!b.getElementsByTagName("tbody").length,l.htmlSerialize=!!b.getElementsByTagName("link").length,l.html5Clone="<:nav>"!==z.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,a.appendChild(c),l.appendChecked=c.checked,b.innerHTML="",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,a.appendChild(b),b.innerHTML="",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){l.noCloneEvent=!1}),b.cloneNode(!0).click()),null==l.deleteExpando){l.deleteExpando=!0;try{delete b.test}catch(d){l.deleteExpando=!1}}a=b=c=null}(),function(){var b,c,d=z.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),l[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var Y=/^(?:input|select|textarea)$/i,Z=/^key/,$=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,ab=/^([^.]*)(?:\.(.+)|)$/;function bb(){return!0}function cb(){return!1}function db(){try{return z.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof n===L||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(F)||[""],h=b.length;while(h--)f=ab.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(F)||[""],j=b.length;while(j--)if(h=ab.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,m,o=[d||z],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||z,3!==d.nodeType&&8!==d.nodeType&&!_.test(p+n.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[n.expando]?b:new n.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),k=n.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!n.isWindow(d)){for(i=k.delegateType||p,_.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||z)&&o.push(l.defaultView||l.parentWindow||a)}m=0;while((h=o[m++])&&!b.isPropagationStopped())b.type=m>1?i:k.bindType||p,f=(n._data(h,"events")||{})[b.type]&&n._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&n.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&n.acceptData(d)&&g&&d[p]&&!n.isWindow(d)){l=d[g],l&&(d[g]=null),n.event.triggered=p;try{d[p]()}catch(r){}n.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((n.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?n(c,this).index(i)>=0:n.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h]","i"),ib=/^\s+/,jb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,kb=/<([\w:]+)/,lb=/\s*$/g,sb={option:[1,""],legend:[1,"
    ","
    "],area:[1,"",""],param:[1,"",""],thead:[1,"","
    "],tr:[2,"","
    "],col:[2,"","
    "],td:[3,"","
    "],_default:l.htmlSerialize?[0,"",""]:[1,"X
    ","
    "]},tb=eb(z),ub=tb.appendChild(z.createElement("div"));sb.optgroup=sb.option,sb.tbody=sb.tfoot=sb.colgroup=sb.caption=sb.thead,sb.th=sb.td;function vb(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==L?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==L?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,vb(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function wb(a){X.test(a.type)&&(a.defaultChecked=a.checked)}function xb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function yb(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function zb(a){var b=qb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ab(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}function Bb(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Cb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(yb(b).text=a.text,zb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&X.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}n.extend({clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!hb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ub.innerHTML=a.outerHTML,ub.removeChild(f=ub.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=vb(f),h=vb(a),g=0;null!=(e=h[g]);++g)d[g]&&Cb(e,d[g]);if(b)if(c)for(h=h||vb(a),d=d||vb(f),g=0;null!=(e=h[g]);g++)Bb(e,d[g]);else Bb(a,f);return d=vb(f,"script"),d.length>0&&Ab(d,!i&&vb(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k,m=a.length,o=eb(b),p=[],q=0;m>q;q++)if(f=a[q],f||0===f)if("object"===n.type(f))n.merge(p,f.nodeType?[f]:f);else if(mb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(kb.exec(f)||["",""])[1].toLowerCase(),k=sb[i]||sb._default,h.innerHTML=k[1]+f.replace(jb,"<$1>")+k[2],e=k[0];while(e--)h=h.lastChild;if(!l.leadingWhitespace&&ib.test(f)&&p.push(b.createTextNode(ib.exec(f)[0])),!l.tbody){f="table"!==i||lb.test(f)?""!==k[1]||lb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)n.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}n.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),l.appendChecked||n.grep(vb(p,"input"),wb),q=0;while(f=p[q++])if((!d||-1===n.inArray(f,d))&&(g=n.contains(f.ownerDocument,f),h=vb(o.appendChild(f),"script"),g&&Ab(h),c)){e=0;while(f=h[e++])pb.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.deleteExpando,m=n.event.special;null!=(d=a[h]);h++)if((b||n.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k?delete d[i]:typeof d.removeAttribute!==L?d.removeAttribute(i):d[i]=null,c.push(f))}}}),n.fn.extend({text:function(a){return W(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(vb(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&Ab(vb(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(vb(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return W(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(gb,""):void 0;if(!("string"!=typeof a||nb.test(a)||!l.htmlSerialize&&hb.test(a)||!l.leadingWhitespace&&ib.test(a)||sb[(kb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(jb,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(vb(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(vb(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,o=k-1,p=a[0],q=n.isFunction(p);if(q||k>1&&"string"==typeof p&&!l.checkClone&&ob.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(k&&(i=n.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=n.map(vb(i,"script"),yb),f=g.length;k>j;j++)d=i,j!==o&&(d=n.clone(d,!0,!0),f&&n.merge(g,vb(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,n.map(g,zb),j=0;f>j;j++)d=g[j],pb.test(d.type||"")&&!n._data(d,"globalEval")&&n.contains(h,d)&&(d.src?n._evalUrl&&n._evalUrl(d.src):n.globalEval((d.text||d.textContent||d.innerHTML||"").replace(rb,"")));i=c=null}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],g=n(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Db,Eb={};function Fb(b,c){var d=n(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:n.css(d[0],"display");return d.detach(),e}function Gb(a){var b=z,c=Eb[a];return c||(c=Fb(a,b),"none"!==c&&c||(Db=(Db||n("').prependTo(document.body); + $('#loading').html(_.label("Uploading file...")).show(); + form.submit(); + $('#uploadResponse').load(function() { + var response = $(this).contents().find('body').text(); + $('#loading').hide(); + 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) { + errors = errors.join("\n"); + if (errors.replace(/^\s+/g, "").replace(/\s+$/g, "").length) + _.alert(errors); + } + if (!selected.length) + selected = null; + _.refresh(selected); + $('#upload').detach(); + setTimeout(function() { + $('#uploadResponse').detach(); + }, 1); + _.initUploadButton(); + }); +}; + +_.maximize = function(button) { + + // TINYMCE 3 + if (_.opener.name == "tinymce") { + + var par = window.parent.document, + ifr = $('iframe[src*="browse.php?opener=tinymce&"]', par), + id = parseInt(ifr.attr('id').replace(/^mce_(\d+)_ifr$/, "$1")), + win = $('#mce_' + id, par); + + if ($(button).hasClass('selected')) { + $(button).removeClass('selected'); + win.css({ + left: _.maximizeMCE.left, + top: _.maximizeMCE.top, + width: _.maximizeMCE.width, + height: _.maximizeMCE.height + }); + ifr.css({ + width: _.maximizeMCE.width - _.maximizeMCE.Hspace, + height: _.maximizeMCE.height - _.maximizeMCE.Vspace + }); + + } else { + $(button).addClass('selected') + _.maximizeMCE = { + width: parseInt(win.css('width')), + height: parseInt(win.css('height')), + left: win.position().left, + top: win.position().top, + Hspace: parseInt(win.css('width')) - parseInt(ifr.css('width')), + Vspace: parseInt(win.css('height')) - parseInt(ifr.css('height')) + }; + var width = $(window.top).width(), + height = $(window.top).height(); + win.css({ + left: $(window.parent).scrollLeft(), + top: $(window.parent).scrollTop(), + width: width, + height: height + }); + ifr.css({ + width: width - _.maximizeMCE.Hspace, + height: height - _.maximizeMCE.Vspace + }); + } + + // TINYMCE 4 + } else if (_.opener.name == "tinymce4") { + + var par = window.parent.document, + ifr = $('iframe[src*="browse.php?opener=tinymce4&"]', par).parent(), + win = ifr.parent(); + + if ($(button).hasClass('selected')) { + $(button).removeClass('selected'); + + win.css({ + left: _.maximizeMCE4.left, + top: _.maximizeMCE4.top, + width: _.maximizeMCE4.width, + height: _.maximizeMCE4.height + }); + + ifr.css({ + width: _.maximizeMCE4.width, + height: _.maximizeMCE4.height - _.maximizeMCE4.Vspace + }); + + } else { + $(button).addClass('selected'); + + _.maximizeMCE4 = { + width: parseInt(win.css('width')), + height: parseInt(win.css('height')), + left: win.position().left, + top: win.position().top, + Vspace: win.outerHeight(true) - ifr.outerHeight(true) - 1 + }; + + var width = $(window.top).width(), + height = $(window.top).height(); + + win.css({ + left: 0, + top: 0, + width: width, + height: height + }); + + ifr.css({ + width: width, + height: height - _.maximizeMCE4.Vspace + }); + } + + // PUPUP WINDOW + } else if (window.opener) { + window.moveTo(0, 0); + width = screen.availWidth; + height = screen.availHeight; + if ($.agent.opera) + height -= 50; + window.resizeTo(width, height); + + } else { + if (window.parent) { + var el = null; + $(window.parent.document).find('iframe').each(function() { + if (this.src.replace('/?', '?') == window.location.href.replace('/?', '?')) { + el = this; + return false; + } + }); + + // IFRAME + if (el !== null) + $(el).toggleFullscreen(window.parent.document); + + // SELF WINDOW + else + $('body').toggleFullscreen(); + + } else + $('body').toggleFullscreen(); + } +}; + +_.refresh = function(selected) { + _.fadeFiles(); + $.ajax({ + type: "post", + dataType: "json", + url: _.getURL("chDir"), + data: {dir: _.dir}, + async: false, + success: function(data) { + if (_.check4errors(data)) { + $('#files > div').css({opacity: "", filter: ""}); + return; + } + _.dirWritable = data.dirWritable; + _.files = data.files ? data.files : []; + _.orderFiles(null, selected); + _.statusDir(); + }, + error: function() { + $('#files > div').css({opacity: "", filter: ""}); + $('#files').html(_.label("Unknown error.")); + } + }); +}; diff --git a/js/070.settings.js b/js/070.settings.js new file mode 100644 index 0000000..5d6886b --- /dev/null +++ b/js/070.settings.js @@ -0,0 +1,101 @@ +/** This file is part of KCFinder project + * + * @desc Settings panel functionality + * @package KCFinder + * @version 3.12 + * @author Pavel Tzonkov + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +_.initSettings = function() { + $('#settings fieldset').disableTextSelect(); + + if (!_.shows.length) + $('#show input[type="checkbox"]').each(function(i) { + _.shows[i] = this.name; + }); + + var shows = _.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() { + $.$.kuki.set('show' + this.name, this.checked ? "on" : "off") + $('#files .file div.' + this.name).css('display', this.checked ? "block" : "none"); + }); + + $.each(shows, function(i, val) { + $('#show input[name="' + val + '"]').get(0).checked = ($.$.kuki.get('show' + val) == "on") ? "checked" : ""; + }); + + if (!_.orders.length) + $('#order input[type="radio"]').each(function(i) { + _.orders[i] = this.value; + }) + + var orders = _.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.value); + _.orderFiles(); + }); + + $('#order input[name="desc"]').click(function() { + $.$.kuki.set('orderDesc', this.checked ? 'on' : "off"); + _.orderFiles(); + }); + + if (!$.$.kuki.isSet('view')) + $.$.kuki.set('view', "thumbs"); + + if ($.$.kuki.get('view') == "list") + $('#show').parent().hide(); + + $('#view input[value="' + $.$.kuki.get('view') + '"]').get(0).checked = true; + + $('#view input').click(function() { + var view = this.value; + if ($.$.kuki.get('view') != view) { + $.$.kuki.set('view', view); + if (view == "list") + $('#show').parent().hide(); + else + $('#show').parent().show(); + } + _.fixFilesHeight(); + _.refresh(); + }); + $('#settings fieldset, #settings input, #settings label').transForm(); + _.initLangs(); +}; + + +_.initLangs = function() { + $.each(_.langs, function(id, lng) { + var opt = $(''); + opt.val(id).text(lng); + if (id == _.lang) + opt.attr({selected: true}); + $('#lang').append(opt); + }); + $('#lang').change(function() { + window.location = _.getURL("browser", this.value) + "&theme=" + encodeURIComponent(_.theme); + }); +} \ No newline at end of file diff --git a/js/080.files.js b/js/080.files.js new file mode 100644 index 0000000..f3b5507 --- /dev/null +++ b/js/080.files.js @@ -0,0 +1,249 @@ +/** This file is part of KCFinder project + * + * @desc File related functionality + * @package KCFinder + * @version 3.12 + * @author Pavel Tzonkov + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +_.initFiles = function() { + $(document).unbind('keydown').keydown(function(e) { + return !_.selectAll(e); + }); + $('#files').unbind().scroll(function() { + _.menu.hide(); + }).disableTextSelect(); + + $('.file').unbind().click(function(e) { + _.selectFile($(this), e); + + }).rightClick(function(el, e) { + _.menuFile($(el), e); + }).dblclick(function() { + _.returnFile($(this)); + }); + + if ($.mobile) + $('.file').on('taphold', function() { + _.menuFile($(this), { + pageX: $(this).offset().left, + pageY: $(this).offset().top + $(this).outerHeight() + }); + }); + + $.each(_.shows, function(i, val) { + $('#files .file div.' + val).css('display', ($.$.kuki.get('show' + val) == "off") ? "none" : "block"); + }); + _.statusDir(); +}; + +_.showFiles = function(callBack, selected) { + _.fadeFiles(); + setTimeout(function() { + var c = $('
    '); + + $.each(_.files, function(i, file) { + var f, icon, + stamp = file.size + "|" + file.mtime; + + // List + if ($.$.kuki.get('view') == "list") { + if (!i) c.html('
    '); + + icon = $.$.getFileExtension(file.name); + if (file.thumb) + icon = ".image"; + else if (!icon.length || !file.smallIcon) + icon = "."; + icon = "themes/" + _.theme + "/img/files/small/" + icon + ".png"; + + f = $(''); + f.appendTo(c.find('table')); + + // Thumbnails + } else { + if (file.thumb) + icon = _.getURL('thumb') + "&file=" + encodeURIComponent(file.name) + "&dir=" + encodeURIComponent(_.dir) + "&stamp=" + stamp; + else if (file.smallThumb) { + icon = _.uploadURL + "/" + _.dir + "/" + encodeURIComponent(file.name); + icon = $.$.escapeDirs(icon).replace(/\'/g, "%27"); + } else { + icon = file.bigIcon ? $.$.getFileExtension(file.name) : "."; + if (!icon.length) icon = "."; + icon = "themes/" + _.theme + "/img/files/big/" + icon + ".png"; + } + f = $('
    '); + f.appendTo(c); + } + + f.find('.thumb').css({backgroundImage: 'url("' + icon + '")'}); + f.find('.name').text(file.name); + f.find('.time').html(file.date); + f.find('.size').html(_.humanSize(file.size)); + f.data(file); + + if ((file.name === selected) || $.$.inArray(file.name, selected)) + f.addClass('selected'); + }); + + c.css({opacity:'', filter:''}); + $('#files').html(c); + + if (callBack) callBack(); + _.initFiles(); + _.fixScrollRadius(); + }, 200); +}; + +_.selectFile = function(file, e) { + + // Click with Ctrl, Meta or Shift key + if (e.ctrlKey || e.metaKey || e.shiftKey) { + + // Click with Shift key + if (e.shiftKey && !file.hasClass('selected')) { + var f = file.prev(); + while (f.get(0) && !f.hasClass('selected')) { + f.addClass('selected'); + f = f.prev(); + } + } + + file.toggleClass('selected'); + + // Update statusbar + var files = $('.file.selected').get(), + size = 0, data; + if (!files.length) + _.statusDir(); + else { + $.each(files, function(i, cfile) { + size += $(cfile).data('size'); + }); + size = _.humanSize(size); + if (files.length > 1) + $('#fileinfo').html(files.length + " " + _.label("selected files") + " (" + size + ")"); + else { + data = $(files[0]).data(); + $('#fileinfo').text(data.name + " (" + _.humanSize(data.size) + ", " + data.date + ")"); + } + } + + // Normal click + } else { + data = file.data(); + $('.file').removeClass('selected'); + file.addClass('selected'); + $('#fileinfo').text(data.name + " (" + _.humanSize(data.size) + ", " + data.date + ")"); + } +}; + +_.selectAll = function(e) { + if ((!e.ctrlKey && !e.metaKey) || ((e.keyCode != 65) && (e.keyCode != 97))) // Ctrl-A + return false; + + var files = $('.file'), + size = 0; + + if (files.length) { + + files.addClass('selected').each(function() { + size += $(this).data('size'); + }); + + $('#fileinfo').html(files.length + " " + _.label("selected files") + " (" + _.humanSize(size) + ")"); + } + + return true; +}; + +_.returnFile = function(file) { + + var button, win, fileURL = file.substr + ? file : _.uploadURL + "/" + _.dir + "/" + file.data('name'); + fileURL = $.$.escapeDirs(fileURL); + + if (_.opener.name == "ckeditor") { + _.opener.CKEditor.object.tools.callFunction(_.opener.CKEditor.funcNum, fileURL, ""); + window.close(); + + } else if (_.opener.name == "fckeditor") { + window.opener.SetUrl(fileURL) ; + window.close() ; + + } else if (_.opener.name == "tinymce") { + 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 (_.opener.name == "tinymce4") { + win = (window.opener ? window.opener : window.parent); + $(win.document).find('#' + _.opener.TinyMCE.field).val(fileURL); + win.tinyMCE.activeEditor.windowManager.close(); + + } else if (_.opener.callBack) { + + if (window.opener && window.opener.KCFinder) { + _.opener.callBack(fileURL); + window.close(); + } + + if (window.parent && window.parent.KCFinder) { + button = $('#toolbar a[href="kcact:maximize"]'); + if (button.hasClass('selected')) + _.maximize(button); + _.opener.callBack(fileURL); + } + + } else if (_.opener.callBackMultiple) { + if (window.opener && window.opener.KCFinder) { + _.opener.callBackMultiple([fileURL]); + window.close(); + } + + if (window.parent && window.parent.KCFinder) { + button = $('#toolbar a[href="kcact:maximize"]'); + if (button.hasClass('selected')) + _.maximize(button); + _.opener.callBackMultiple([fileURL]); + } + + } +}; + +_.returnFiles = function(files) { + if (_.opener.callBackMultiple && files.length) { + var rfiles = []; + $.each(files, function(i, file) { + rfiles[i] = _.uploadURL + "/" + _.dir + "/" + $(file).data('name'); + rfiles[i] = $.$.escapeDirs(rfiles[i]); + }); + _.opener.callBackMultiple(rfiles); + if (window.opener) window.close() + } +}; + +_.returnThumbnails = function(files) { + if (_.opener.callBackMultiple) { + var rfiles = [], j = 0; + $.each(files, function(i, file) { + if ($(file).data('thumb')) { + rfiles[j] = _.thumbsURL + "/" + _.dir + "/" + $(file).data('name'); + rfiles[j] = $.$.escapeDirs(rfiles[j++]); + } + }); + _.opener.callBackMultiple(rfiles); + if (window.opener) window.close() + } +}; diff --git a/js/090.folders.js b/js/090.folders.js new file mode 100644 index 0000000..792113f --- /dev/null +++ b/js/090.folders.js @@ -0,0 +1,193 @@ +/** This file is part of KCFinder project + * + * @desc Folder related functionality + * @package KCFinder + * @version 3.12 + * @author Pavel Tzonkov + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +_.initFolders = function() { + $('#folders').scroll(function() { + _.menu.hide(); + }).disableTextSelect(); + $('div.folder > a').unbind().click(function() { + _.menu.hide(); + return false; + }); + $('div.folder > a > span.brace').unbind().click(function() { + if ($(this).hasClass('opened') || $(this).hasClass('closed')) + _.expandDir($(this).parent()); + }); + $('div.folder > a > span.folder').unbind().click(function() { + _.changeDir($(this).parent()); + }).rightClick(function(el, e) { + _.menuDir($(el).parent(), e); + }); + if ($.mobile) + $('div.folder > a > span.folder').on('taphold', function() { + _.menuDir($(this).parent(), { + pageX: $(this).offset().left + 1, + pageY: $(this).offset().top + $(this).outerHeight() + }); + }); + +}; + +_.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) { + _.setTreeData(cdir, path + "/"); + }); + } else if (data.hasDirs) + $(selector + ' span.brace').addClass('closed'); +}; + +_.buildTree = function(root, path) { + if (!path) path = ""; + path += root.name; + var cdir, html = '
     ' + $.$.htmlData(root.name) + ''; + if (root.dirs) { + html += '
    '; + for (var i = 0; i < root.dirs.length; i++) { + cdir = root.dirs[i]; + html += _.buildTree(cdir, path + "/"); + } + html += '
    '; + } + html += '
    '; + return html; +}; + +_.expandDir = function(dir) { + var path = dir.data('path'); + if (dir.children('.brace').hasClass('opened')) { + dir.parent().children('.folders').hide(500, function() { + if (path == _.dir.substr(0, path.length)) + _.changeDir(dir); + _.fixScrollRadius(); + }); + dir.children('.brace').removeClass('opened').addClass('closed'); + } else { + if (dir.parent().children('.folders').get(0)) { + dir.parent().children('.folders').show(500, function() { + _.fixScrollRadius(); + }); + dir.children('.brace').removeClass('closed').addClass('opened'); + } else if (!$('#loadingDirs').get(0)) { + dir.parent().append('
    ' + _.label("Loading folders...") + '
    '); + $('#loadingDirs').hide().show(200, function() { + $.ajax({ + type: "post", + dataType: "json", + url: _.getURL("expand"), + data: {dir: path}, + async: false, + success: function(data) { + $('#loadingDirs').hide(200, function() { + $('#loadingDirs').detach(); + }); + if (_.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.hide(); + $(folders).show(500, function() { + _.fixScrollRadius(); + }); + $.each(data.dirs, function(i, cdir) { + _.setTreeData(cdir, path); + }); + } + if (data.dirs.length) + dir.children('.brace').removeClass('closed').addClass('opened'); + else + dir.children('.brace').removeClass('opened closed'); + _.initFolders(); + _.initDropUpload(); + _.fixScrollRadius(); + }, + error: function() { + $('#loadingDirs').detach(); + _.alert(_.label("Unknown error.")); + _.fixScrollRadius(); + } + }); + _.fixScrollRadius(); + }); + } + } +}; + +_.changeDir = function(dir) { + if (dir.children('span.folder').hasClass('regular')) { + $('div.folder > a > span.folder').removeClass('current regular').addClass('regular'); + dir.children('span.folder').removeClass('regular').addClass('current'); + $('#files').html(_.label("Loading files...")); + $.ajax({ + type: "post", + dataType: "json", + url: _.getURL("chDir"), + data: {dir: dir.data('path')}, + async: false, + success: function(data) { + if (_.check4errors(data)) + return; + _.files = data.files; + _.orderFiles(); + _.dir = dir.data('path'); + _.dirWritable = data.dirWritable; + _.setTitle("KCFinder: /" + _.dir); + _.statusDir(); + _.initDropUpload(); + }, + error: function() { + $('#files').html(_.label("Unknown error.")); + } + }); + } +}; + +_.statusDir = function() { + var i = 0, size = 0; + for (; i < _.files.length; i++) + size += _.files[i].size; + size = _.humanSize(size); + $('#fileinfo').html(_.files.length + " " + _.label("files") + " (" + size + ")"); +}; + +_.refreshDir = function(dir) { + var path = dir.data('path'); + if (dir.children('.brace').hasClass('opened') || dir.children('.brace').hasClass('closed')) + dir.children('.brace').removeClass('opened').addClass('closed'); + dir.parent().children('.folders').first().detach(); + if (path == _.dir.substr(0, path.length)) + _.changeDir(dir); + _.expandDir(dir); + return true; +}; diff --git a/js/091.menus.js b/js/091.menus.js new file mode 100644 index 0000000..b6f093d --- /dev/null +++ b/js/091.menus.js @@ -0,0 +1,589 @@ +/** This file is part of KCFinder project + * + * @desc Context menus + * @package KCFinder + * @version 3.12 + * @author Pavel Tzonkov + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +_.menu = { + + init: function() { + $('#menu').html("
      ").css('display', 'none'); + }, + + addItem: function(href, label, callback, denied) { + if (typeof denied == "undefined") + denied = false; + + $('#menu ul').append('
    • ' + label + '
    • '); + + if (!denied && $.isFunction(callback)) + $('#menu a[href="' + href + '"]').click(function() { + _.menu.hide(); + return callback(); + }); + }, + + addDivider: function() { + if ($('#menu ul').html().length) + $('#menu ul').append("
    • -
    • "); + }, + + show: function(e) { + var dlg = $('#menu'), + ul = $('#menu ul'); + if (ul.html().length) { + dlg.find('ul').first().menu(); + if (typeof e != "undefined") { + var left = e.pageX, + top = e.pageY, + win = $(window); + + if ((dlg.outerWidth() + left) > win.width()) + left = win.width() - dlg.outerWidth(); + + if ((dlg.outerHeight() + top) > win.height()) + top = win.height() - dlg.outerHeight(); + + dlg.hide().css({ + left: left, + top: top, + width: "" + }).fadeIn('fast'); + } else + dlg.fadeIn('fast'); + } else + ul.detach(); + }, + + hide: function() { + $('#clipboard').removeClass('selected'); + $('div.folder > a > span.folder').removeClass('context'); + $('#menu').hide().css('width', "").html("").data('title', null).unbind().click(function() { + return false; + }); + $(document).unbind('keydown').keydown(function(e) { + return !_.selectAll(e); + }); + } +}; + +// FILE CONTEXT MENU +_.menuFile = function(file, e) { + _.menu.init(); + + var data = file.data(), + files = $('.file.selected').get(); + + // MULTIPLE FILES MENU + if (file.hasClass('selected') && files.length && (files.length > 1)) { + var thumb = false, + notWritable = 0, + cdata; + + $.each(files, function(i, cfile) { + cdata = $(cfile).data(); + if (cdata.thumb) thumb = true; + if (!data.writable) notWritable++; + }); + + if (_.opener.callBackMultiple) { + + // SELECT FILES + _.menu.addItem("kcact:pick", _.label("Select"), function() { + _.returnFiles(files); + return false; + }); + + // SELECT THUMBNAILS + if (thumb) + _.menu.addItem("kcact:pick_thumb", _.label("Select Thumbnails"), function() { + _.returnThumbnails(files); + return false; + }); + } + + if (data.thumb || data.smallThumb || _.support.zip) { + + _.menu.addDivider(); + + // VIEW IMAGE + if (data.thumb || data.smallThumb) + _.menu.addItem("kcact:view", _.label("View"), function() { + _.viewImage(data); + }); + + // DOWNLOAD + if (_.support.zip) + _.menu.addItem("kcact:download", _.label("Download"), function() { + var pfiles = []; + $.each(files, function(i, cfile) { + pfiles[i] = $(cfile).data('name'); + }); + _.post(_.getURL('downloadSelected'), {dir:_.dir, files:pfiles}); + return false; + }); + } + + // ADD TO CLIPBOARD + if (_.access.files.copy || _.access.files.move) { + _.menu.addDivider(); + _.menu.addItem("kcact:clpbrdadd", _.label("Add to Clipboard"), function() { + var msg = ''; + $.each(files, function(i, cfile) { + var cdata = $(cfile).data(), + failed = false; + for (i = 0; i < _.clipboard.length; i++) + if ((_.clipboard[i].name == cdata.name) && + (_.clipboard[i].dir == _.dir) + ) { + failed = true; + msg += cdata.name + ": " + _.label("This file is already added to the Clipboard.") + "\n"; + break; + } + + if (!failed) { + cdata.dir = _.dir; + _.clipboard[_.clipboard.length] = cdata; + } + }); + _.initClipboard(); + if (msg.length) _.alert(msg.substr(0, msg.length - 1)); + return false; + }); + } + + // DELETE + if (_.access.files['delete']) { + _.menu.addDivider(); + _.menu.addItem("kcact:rm", _.label("Delete"), function() { + if ($(this).hasClass('denied')) return false; + var failed = 0, + dfiles = []; + $.each(files, function(i, cfile) { + var cdata = $(cfile).data(); + if (!cdata.writable) + failed++; + else + dfiles[dfiles.length] = _.dir + "/" + cdata.name; + }); + if (failed == files.length) { + _.alert(_.label("The selected files are not removable.")); + return false; + } + + var go = function(callBack) { + _.fadeFiles(); + $.ajax({ + type: "post", + dataType: "json", + url: _.getURL("rm_cbd"), + data: {files:dfiles}, + async: false, + success: function(data) { + if (callBack) callBack(); + _.check4errors(data); + _.refresh(); + }, + error: function() { + if (callBack) callBack(); + $('#files > div').css({ + opacity: "", + filter: "" + }); + _.alert(_.label("Unknown error.")); + } + }); + }; + + if (failed) + _.confirm( + _.label("{count} selected files are not removable. Do you want to delete the rest?", {count:failed}), + go + ); + + else + _.confirm( + _.label("Are you sure you want to delete all selected files?"), + go + ); + + return false; + }, (notWritable == files.length)); + } + + _.menu.show(e); + + // SINGLE FILE MENU + } else { + $('.file').removeClass('selected'); + file.addClass('selected'); + $('#fileinfo').text(data.name + " (" + _.humanSize(data.size) + ", " + data.date + ")"); + + if (_.opener.callBack || _.opener.callBackMultiple) { + + // SELECT FILE + _.menu.addItem("kcact:pick", _.label("Select"), function() { + _.returnFile(file); + return false; + }); + + // SELECT THUMBNAIL + if (data.thumb) + _.menu.addItem("kcact:pick_thumb", _.label("Select Thumbnail"), function() { + _.returnFile(_.thumbsURL + "/" + _.dir + "/" + data.name); + return false; + }); + + _.menu.addDivider(); + } + + // VIEW IMAGE + if (data.thumb || data.smallThumb) + _.menu.addItem("kcact:view", _.label("View"), function() { + _.viewImage(data); + }); + + // DOWNLOAD + _.menu.addItem("kcact:download", _.label("Download"), function() { + $('#menu').html('
      '); + $('#downloadForm input').get(0).value = _.dir; + $('#downloadForm input').get(1).value = data.name; + $('#downloadForm').submit(); + return false; + }); + + // ADD TO CLIPBOARD + if (_.access.files.copy || _.access.files.move) { + _.menu.addDivider(); + _.menu.addItem("kcact:clpbrdadd", _.label("Add to Clipboard"), function() { + for (i = 0; i < _.clipboard.length; i++) + if ((_.clipboard[i].name == data.name) && + (_.clipboard[i].dir == _.dir) + ) { + _.alert(_.label("This file is already added to the Clipboard.")); + return false; + } + var cdata = data; + cdata.dir = _.dir; + _.clipboard[_.clipboard.length] = cdata; + _.initClipboard(); + return false; + }); + } + + + if (_.access.files.rename || _.access.files['delete']) + _.menu.addDivider(); + + // RENAME + if (_.access.files.rename) + _.menu.addItem("kcact:mv", _.label("Rename..."), function() { + if (!data.writable) return false; + _.fileNameDialog( + {dir: _.dir, file: data.name}, + 'newName', data.name, _.getURL("rename"), { + title: "New file name:", + errEmpty: "Please enter new file name.", + errSlash: "Unallowable characters in file name.", + errDot: "File name shouldn't begins with '.'" + }, + _.refresh + ); + return false; + }, !data.writable); + + // DELETE + if (_.access.files['delete']) + _.menu.addItem("kcact:rm", _.label("Delete"), function() { + if (!data.writable) return false; + _.confirm(_.label("Are you sure you want to delete this file?"), + function(callBack) { + $.ajax({ + type: "post", + dataType: "json", + url: _.getURL("delete"), + data: {dir: _.dir, file: data.name}, + async: false, + success: function(data) { + if (callBack) callBack(); + _.clearClipboard(); + if (_.check4errors(data)) + return; + _.refresh(); + }, + error: function() { + if (callBack) callBack(); + _.alert(_.label("Unknown error.")); + } + }); + } + ); + return false; + }, !data.writable); + + _.menu.show(e); + } + +}; + +// FOLDER CONTEXT MENU +_.menuDir = function(dir, e) { + _.menu.init(); + + var data = dir.data(), + html = '
        '; + + if (_.clipboard && _.clipboard.length) { + + // COPY CLIPBOARD + if (_.access.files.copy) + _.menu.addItem("kcact:cpcbd", _.label("Copy {count} files", {count: _.clipboard.length}), function() { + _.copyClipboard(data.path); + return false; + }, !data.writable); + + // MOVE CLIPBOARD + if (_.access.files.move) + _.menu.addItem("kcact:mvcbd", _.label("Move {count} files", {count: _.clipboard.length}), function() { + _.moveClipboard(data.path); + return false; + }, !data.writable); + + if (_.access.files.copy || _.access.files.move) + _.menu.addDivider(); + } + + // REFRESH + _.menu.addItem("kcact:refresh", _.label("Refresh"), function() { + _.refreshDir(dir); + return false; + }); + + // DOWNLOAD + if (_.support.zip) { + _.menu.addDivider(); + _.menu.addItem("kcact:download", _.label("Download"), function() { + _.post(_.getURL("downloadDir"), {dir:data.path}); + return false; + }); + } + + if (_.access.dirs.create || _.access.dirs.rename || _.access.dirs['delete']) + _.menu.addDivider(); + + // NEW SUBFOLDER + if (_.access.dirs.create) + _.menu.addItem("kcact:mkdir", _.label("New Subfolder..."), function(e) { + if (!data.writable) return false; + _.fileNameDialog( + {dir: data.path}, + "newDir", "", _.getURL("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() { + _.refreshDir(dir); + _.initDropUpload(); + if (!data.hasDirs) { + dir.data('hasDirs', true); + dir.children('span.brace').addClass('closed'); + } + } + ); + return false; + }, !data.writable); + + // RENAME + if (_.access.dirs.rename) + _.menu.addItem("kcact:mvdir", _.label("Rename..."), function(e) { + if (!data.removable) return false; + _.fileNameDialog( + {dir: data.path}, + "newName", data.name, _.getURL("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) { + _.alert(_.label("Unknown error.")); + return; + } + var currentDir = (data.path == _.dir); + dir.children('span.folder').text(dt.name); + dir.data('name', dt.name); + dir.data('path', $.$.dirname(data.path) + '/' + dt.name); + if (currentDir) + _.dir = dir.data('path'); + _.initDropUpload(); + }, + true + ); + return false; + }, !data.removable); + + // DELETE + if (_.access.dirs['delete']) + _.menu.addItem("kcact:rmdir", _.label("Delete"), function() { + if (!data.removable) return false; + _.confirm( + _.label("Are you sure you want to delete this folder and all its content?"), + function(callBack) { + $.ajax({ + type: "post", + dataType: "json", + url: _.getURL("deleteDir"), + data: {dir: data.path}, + async: false, + success: function(data) { + if (callBack) callBack(); + if (_.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 closed'); + pDir.parent().children('.folders').detach(); + pDir.data('hasDirs', false); + } + if (pDir.data('path') == _.dir.substr(0, pDir.data('path').length)) + _.changeDir(pDir); + _.initDropUpload(); + }); + }, + error: function() { + if (callBack) callBack(); + _.alert(_.label("Unknown error.")); + } + }); + } + ); + return false; + }, !data.removable); + + _.menu.show(e); + + $('div.folder > a > span.folder').removeClass('context'); + if (dir.children('span.folder').hasClass('regular')) + dir.children('span.folder').addClass('context'); +}; + +// CLIPBOARD MENU +_.openClipboard = function() { + + if (!_.clipboard || !_.clipboard.length) return; + + // CLOSE MENU + if ($('#menu a[href="kcact:clrcbd"]').html()) { + $('#clipboard').removeClass('selected'); + _.menu.hide(); + return; + } + + setTimeout(function() { + _.menu.init(); + + var dlg = $('#menu'), + jStatus = $('#status'), + html = '
      • '; + + // CLIPBOARD FILES + $.each(_.clipboard, function(i, val) { + var icon = $.$.getFileExtension(val.name); + if (val.thumb) + icon = ".image"; + else if (!val.smallIcon || !icon.length) + icon = "."; + icon = "themes/" + _.theme + "/img/files/small/" + icon + ".png"; + html += '' + $.$.htmlData($.$.basename(val.name)) + ''; + }); + html += '
      • -
      • '; + $('#menu ul').append(html); + + // DOWNLOAD + if (_.support.zip) + _.menu.addItem("kcact:download", _.label("Download files"), function() { + _.downloadClipboard(); + return false; + }); + + if (_.access.files.copy || _.access.files.move || _.access.files['delete']) + _.menu.addDivider(); + + // COPY + if (_.access.files.copy) + _.menu.addItem("kcact:cpcbd", _.label("Copy files here"), function() { + if (!_.dirWritable) return false; + _.copyClipboard(_.dir); + return false; + }, !_.dirWritable); + + // MOVE + if (_.access.files.move) + _.menu.addItem("kcact:mvcbd", _.label("Move files here"), function() { + if (!_.dirWritable) return false; + _.moveClipboard(_.dir); + return false; + }, !_.dirWritable); + + // DELETE + if (_.access.files['delete']) + _.menu.addItem("kcact:rmcbd", _.label("Delete files"), function() { + _.confirm( + _.label("Are you sure you want to delete all files in the Clipboard?"), + function(callBack) { + if (callBack) callBack(); + _.deleteClipboard(); + } + ); + return false; + }); + + _.menu.addDivider(); + + // CLEAR CLIPBOARD + _.menu.addItem("kcact:clrcbd", _.label("Clear the Clipboard"), function() { + _.clearClipboard(); + return false; + }); + + $('#clipboard').addClass('selected'); + _.menu.show(); + + var left = $(window).width() - dlg.css({width: ""}).outerWidth(), + top = $(window).height() - dlg.outerHeight() - jStatus.outerHeight(), + lheight = top + dlg.outerTopSpace(); + + dlg.find('.list').css({ + 'max-height': lheight, + 'overflow-y': "auto", + 'overflow-x': "hidden", + width: "" + }); + + top = $(window).height() - dlg.outerHeight(true) - jStatus.outerHeight(true); + + dlg.css({ + left: left - 5, + top: top + }).fadeIn("fast"); + + var a = dlg.find('.list').outerHeight(), + b = dlg.find('.list div').outerHeight(); + + if (b - a > 10) { + dlg.css({ + left: parseInt(dlg.css('left')) - _.scrollbarWidth, + }).width(dlg.width() + _.scrollbarWidth); + } + }, 1); +}; \ No newline at end of file diff --git a/js/091.viewImage.js b/js/091.viewImage.js new file mode 100644 index 0000000..db4861d --- /dev/null +++ b/js/091.viewImage.js @@ -0,0 +1,223 @@ +/** This file is part of KCFinder project + * + * @desc Image viewer + * @package KCFinder + * @version 3.12 + * @author Pavel Tzonkov + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +_.viewImage = function(data) { + + var ts = new Date().getTime(), + dlg = false, + images = [], + min_h = 100, + w = $(window), + min_w, dd, dv, dh, + + showImage = function(data) { + _.lock = true; + + var url = $.$.escapeDirs(_.uploadURL + "/" + _.dir + "/" + data.name) + "?ts=" + ts, + img = new Image(), + i = $(img), + + onImgLoad = function() { + _.lock = false; + + $('#files .file').each(function() { + if ($(this).data('name') == data.name) { + _.ssImage = this; + return false; + } + }); + + i.hide().appendTo('body'); + + var w_w = w.width(), + w_h = w.height(), + o_w = i.width(), + o_h = i.height(), + i_w = o_w, + i_h = o_h, + openDlg = false, + t = $('
        '), + + goTo = function(i) { + if (!_.lock) { + var nimg = images[i]; + _.currImg = i; + showImage(nimg); + } + }, + + nextFunc = function() { + goTo((_.currImg >= images.length - 1) ? 0 : (_.currImg + 1)); + }, + + prevFunc = function() { + goTo((_.currImg ? _.currImg : images.length) - 1); + }, + + selectFunc = function(e) { + if (_.ssImage) + _.selectFile($(_.ssImage), e); + dlg.dialog('destroy').detach(); + }; + + i.detach().appendTo(t); + + if (!dlg) { + openDlg = true; + + var closeFunc = function() { + dlg.dialog('destroy').detach(); + }, + + focusFunc = function() { + setTimeout(function() { + dlg.find('input').get(0).focus(); + }, 100); + }; + + dlg = _.dialog(".", "", { + draggable: false, + nopadding: true, + close: closeFunc, + show: false, + hide: false, + buttons: [ + { + text: _.label("Previous"), + icons: {primary: "ui-icon-triangle-1-w"}, + click: prevFunc + + }, { + text: _.label("Next"), + icons: {secondary: "ui-icon-triangle-1-e"}, + click: nextFunc + + }, { + text: _.label("Select"), + icons: {primary: "ui-icon-check"}, + click: selectFunc + + }, { + text: _.label("Close"), + icons: {primary: "ui-icon-closethick"}, + click: closeFunc + } + ] + }); + + dlg.click(nextFunc).css({overflow: "hidden"}).parent().css({width: "auto", height: "auto"}); + + dd = dlg.parent().click(focusFunc).rightClick(focusFunc).disableTextSelect().addClass('kcfImageViewer'); + dv = dd.find('.ui-dialog-titlebar').outerHeight() + dd.find('.ui-dialog-buttonpane').outerHeight() + dd.outerVSpace('b'); + dh = dd.outerHSpace('b'); + min_w = dd.outerWidth() - dh; + } + + var max_w = w_w - dh, + max_h = w_h - dv + 1, + top = 0, + left = 0, + width = o_w, + height = o_h; + + // Too big + if ((o_w > max_w) || (o_h > max_h)) { + + if ((max_h / max_w) < (o_h / o_w)) { + height = max_h; + width = (o_w * height) / o_h; + + } else { + width = max_w; + height = (o_h * width) / o_w; + } + + i_w = width; + i_h = height; + + // Too small + } else if ((o_w < min_w) || (o_h < min_h)) { + width = (o_w < min_w) ? min_w : o_w; + height = (o_h < min_h) ? min_h : o_h; + left = (o_w < min_w) ? (min_w - o_w) / 2 : 0; + top = (o_h < min_h) ? (min_h - o_h) / 2 : 0; + } + + var show = function() { + dlg.animate({width: width, height: height}, 150); + dlg.parent().animate({top: (w_h - height - dv) / 2, left: (w_w - width - dh) / 2}, 150, function() { + dlg.html(t.get(0)).append(''); + dlg.find('input').keydown(function(e) { + if (!_.lock) { + if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) + return; + var kc = e.keyCode; + if ((kc == 37)) prevFunc(); + if ((kc == 39)) nextFunc(); + if ((kc == 13) || (kc == 32)) selectFunc(e); + } + }).get(0).focus(); + i.css({padding: top + "px 0 0 " + left + "px", width: i_w, height: i_h}).show(); + dlg.children().first().css({width: width, height: height, display: "none"}).fadeIn(150, function() { + loadingStop(); + var title = data.name + " (" + o_w + " x " + o_h + ")"; + dlg.prev().find('.ui-dialog-title').css({width:width - dlg.prev().find('.ui-dialog-titlebar-close').outerWidth() - 20}).text(title).attr({title: title}).css({cursor: "default"}); + }); + }); + } + + if (openDlg) + show(); + else + dlg.children().first().fadeOut(150, show); + }, + + loadingStart = function() { + if (dlg) + dlg.prev().addClass("loading").find('.ui-dialog-title').text(_.label("Loading image...")).css({width: "auto"}); + else + $('#loading').text(_.label("Loading image...")).show(); + }, + + loadingStop = function() { + if (dlg) + dlg.prev().removeClass("loading"); + $('#loading').hide(); + }; + + loadingStart(); + img.src = url; + + if (img.complete) + onImgLoad(); + else { + img.onload = onImgLoad; + img.onerror = function() { + _.lock = false; + loadingStop(); + _.alert(_.label("Unknown error.")); + _.refresh(); + }; + } + }; + + $.each(_.files, function(i, file) { + i = images.length; + if (file.thumb || file.smallThumb) + images[i] = file; + if (file.name == data.name) + _.currImg = i; + }); + + showImage(data); + return false; +}; diff --git a/js/100.clipboard.js b/js/100.clipboard.js new file mode 100644 index 0000000..85f0b77 --- /dev/null +++ b/js/100.clipboard.js @@ -0,0 +1,216 @@ +/** This file is part of KCFinder project + * + * @desc Clipboard functionality + * @package KCFinder + * @version 3.12 + * @author Pavel Tzonkov + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +_.initClipboard = function() { + if (!_.clipboard || !_.clipboard.length) return; + + var size = 0, + jClipboard = $('#clipboard'); + + $.each(_.clipboard, function(i, val) { + size += val.size; + }); + size = _.humanSize(size); + jClipboard.disableTextSelect().html('
        '); + var resize = function() { + jClipboard.css({ + left: $(window).width() - jClipboard.outerWidth(), + top: $(window).height() - jClipboard.outerHeight() + }); + }; + resize(); + jClipboard.show(); + $(window).unbind().resize(function() { + _.resize(); + resize(); + }); +}; + +_.removeFromClipboard = function(i) { + if (!_.clipboard || !_.clipboard[i]) return false; + if (_.clipboard.length == 1) { + _.clearClipboard(); + _.menu.hide(); + return; + } + + if (i < _.clipboard.length - 1) { + var last = _.clipboard.slice(i + 1); + _.clipboard = _.clipboard.slice(0, i); + _.clipboard = _.clipboard.concat(last); + } else + _.clipboard.pop(); + + _.initClipboard(); + _.menu.hide(); + _.openClipboard(); + return true; +}; + +_.copyClipboard = function(dir) { + if (!_.clipboard || !_.clipboard.length) return; + var files = [], + failed = 0; + for (i = 0; i < _.clipboard.length; i++) + if (_.clipboard[i].readable) + files[i] = _.clipboard[i].dir + "/" + _.clipboard[i].name; + else + failed++; + if (_.clipboard.length == failed) { + _.alert(_.label("The files in the Clipboard are not readable.")); + return; + } + var go = function(callBack) { + if (dir == _.dir) + _.fadeFiles(); + $.ajax({ + type: "post", + dataType: "json", + url: _.getURL("cp_cbd"), + data: {dir: dir, files: files}, + async: false, + success: function(data) { + if (callBack) callBack(); + _.check4errors(data); + _.clearClipboard(); + if (dir == _.dir) + _.refresh(); + }, + error: function() { + if (callBack) callBack(); + $('#files > div').css({ + opacity: "", + filter: "" + }); + _.alert(_.label("Unknown error.")); + } + }); + }; + + if (failed) + _.confirm( + _.label("{count} files in the Clipboard are not readable. Do you want to copy the rest?", {count:failed}), + go + ) + else + go(); + +}; + +_.moveClipboard = function(dir) { + if (!_.clipboard || !_.clipboard.length) return; + var files = [], + failed = 0; + for (i = 0; i < _.clipboard.length; i++) + if (_.clipboard[i].readable && _.clipboard[i].writable) + files[i] = _.clipboard[i].dir + "/" + _.clipboard[i].name; + else + failed++; + if (_.clipboard.length == failed) { + _.alert(_.label("The files in the Clipboard are not movable.")) + return; + } + + var go = function(callBack) { + _.fadeFiles(); + $.ajax({ + type: "post", + dataType: "json", + url: _.getURL("mv_cbd"), + data: {dir: dir, files: files}, + async: false, + success: function(data) { + if (callBack) callBack(); + _.check4errors(data); + _.clearClipboard(); + _.refresh(); + }, + error: function() { + if (callBack) callBack(); + $('#files > div').css({ + opacity: "", + filter: "" + }); + _.alert(_.label("Unknown error.")); + } + }); + }; + + if (failed) + _.confirm( + _.label("{count} files in the Clipboard are not movable. Do you want to move the rest?", {count: failed}), + go + ); + else + go(); +}; + +_.deleteClipboard = function() { + if (!_.clipboard || !_.clipboard.length) return; + var files = [], + failed = 0; + for (i = 0; i < _.clipboard.length; i++) + if (_.clipboard[i].readable && _.clipboard[i].writable) + files[i] = _.clipboard[i].dir + "/" + _.clipboard[i].name; + else + failed++; + if (_.clipboard.length == failed) { + _.alert(_.label("The files in the Clipboard are not removable.")) + return; + } + var go = function(callBack) { + _.fadeFiles(); + $.ajax({ + type: "post", + dataType: "json", + url: _.getURL("rm_cbd"), + data: {files:files}, + async: false, + success: function(data) { + if (callBack) callBack(); + _.check4errors(data); + _.clearClipboard(); + _.refresh(); + }, + error: function() { + if (callBack) callBack(); + $('#files > div').css({ + opacity: "", + filter: "" + }); + _.alert(_.label("Unknown error.")); + } + }); + }; + if (failed) + _.confirm( + _.label("{count} files in the Clipboard are not removable. Do you want to delete the rest?", {count: failed}), + go + ); + else + go(); +}; + +_.downloadClipboard = function() { + if (!_.clipboard || !_.clipboard.length) return; + var files = []; + for (i = 0; i < _.clipboard.length; i++) + if (_.clipboard[i].readable) + files[i] = _.clipboard[i].dir + "/" + _.clipboard[i].name; + if (files.length) + _.post(_.getURL('downloadClipboard'), {files:files}); +}; + +_.clearClipboard = function() { + $('#clipboard').html(""); + _.clipboard = []; +}; diff --git a/js/110.dropUpload.js b/js/110.dropUpload.js new file mode 100644 index 0000000..f518c62 --- /dev/null +++ b/js/110.dropUpload.js @@ -0,0 +1,165 @@ +/** This file is part of KCFinder project + * + * @desc Upload files using drag and drop + * @package KCFinder + * @version 3.12 + * @author Pavel Tzonkov + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +_.initDropUpload = function() { + + if (!_.access.files.upload) + return; + + var files = $('#files'), + folders = $('#folders').find('div.folder > a'), + i, dlg, filesSize, uploaded, errors, + + precheck = function(e) { + filesSize = uploaded = 0; errors = []; + var fs = e.dataTransfer.files; + for (i = 0; i < fs.length; i++) + filesSize += fs[i].size; + + dlg = $('
         
         
         
        '); + + dlg.find('.bar.count').progressbar({max: fs.length, value: 0}); + dlg.find('.bar.size').progressbar({max: filesSize, value: 0}); + dlg.find('.info').css('padding', "5px 0").first().css('paddingTop', 0); + dlg.find('.info').last().css('paddingBottom', 0); + + dlg = _.dialog(_.label("Uploading files"), dlg, { + closeOnEscape: false, + buttons: [] + }); + + dlg.parent().css('paddingBottom', 0).find('.ui-dialog-titlebar button').css('visibility', 'hidden').get(0).disabled = true; + + return true; + }, + + localOptions = { + param: "upload[]", + maxFilesize: _.dropUploadMaxFilesize, + + begin: function(xhr, currentFile, count) { + + dlg.find('.info.count').html(_.label("Uploading file {current} of {count}", { + current: currentFile, + count: count + })); + + dlg.find('.info.size').html(_.label("Uploaded {uploaded} of {total}", { + uploaded: _.humanSize(uploaded), + total: _.humanSize(filesSize) + })); + + dlg.find('.info.errors').html(_.label("Errors:") + " " + errors.length); + dlg.find('.bar.count').progressbar({value: currentFile}); + dlg.find('.bar.size').progressbar({value: uploaded}); + }, + + success: function(xhr, currentFile, count) { + uploaded += xhr.file.size; + var response = xhr.responseText; + if (response.substr(0, 1) != "/") + errors.push($.$.htmlData(response)); + }, + + error: function(xhr, currentFile, count) { + uploaded += xhr.file.size; + errors.push($.$.htmlData(xhr.file.name + ": " + _.label("Failed to upload {filename}!", { + filename: xhr.file.name + }))); + }, + + abort: function(xhr, currentFile, filesCount) { + uploaded += xhr.file.size; + errors.push($.$.htmlData(xhr.file.name + ": " + _.label("Failed to upload {filename}!", { + filename: xhr.file.name + }))); + }, + + filesizeCallback: function(xhr, currentFile, filesCount) { + uploaded += xhr.file.size; + errors.push($.$.htmlData(xhr.file.name + ": " + _.label("The uploaded file exceeds {size} bytes.", { + size: _.dropUploadMaxFilesize + }))); + }, + + finish: function() { + _.refresh(); + dlg.find('.bar.size').progressbar({value: uploaded}); + dlg.find('.info.size').html(_.label("Uploaded: {uploaded} of {total}", { + uploaded: _.humanSize(uploaded), + total: _.humanSize(filesSize) + })); + dlg.find('.info.errors').html(_.label("Errors:") + " " + errors.length); + var err = errors; + setTimeout(function() { + dlg.dialog('destroy').detach(); + if (err.length) + _.alert(err.join('
        ')); + }, 500); + } + }, + + remoteOptions = { + ajax: { + success: function(data) { + _.refresh(); + if (data.error) { + _.alert(data.error) + return; + } + }, + error: function() { + _.refresh(); + _.alert(_.label("Unknown error.")); + }, + abort: function() { + _.refresh(); + } + } + }, + + url = "&dir=" + encodeURIComponent(_.dir); + + files.shDropUpload($.extend(localOptions, { + url: _.getURL('upload') + url, + precheck: function(e) { + if (!$('#folders span.current').first().parent().data('writable')) { + _.alert(_.label("Cannot write to upload folder.")); + return false; + } + return precheck(e); + } + }), $.extend(true, remoteOptions, { + ajax: { + url: _.getURL('dragUrl') + url + } + })); + + folders.each(function() { + var folder = this, + url = "&dir=" + encodeURIComponent($(folder).data('path')); + $(folder).shDropUpload($.extend(localOptions, { + url: _.getURL('upload') + url, + precheck: function(e) { + if (!$(folder).data('writable')) { + _.alert(_.label("Cannot write to upload folder.")); + return false; + } + return precheck(e); + } + }), $.extend(true, remoteOptions, { + ajax: { + url: _.getURL('dragUrl') + url + } + })); + }); +}; diff --git a/js/120.misc.js b/js/120.misc.js new file mode 100644 index 0000000..c3a2c48 --- /dev/null +++ b/js/120.misc.js @@ -0,0 +1,132 @@ +/** This file is part of KCFinder project + * + * @desc Miscellaneous functionality + * @package KCFinder + * @version 3.12 + * @author Pavel Tzonkov + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +_.orderFiles = function(callBack, selected) { + var order = $.$.kuki.get('order'), + desc = ($.$.kuki.get('orderDesc') == "on"), + a1, b1, arr; + + if (!_.files || !_.files.sort) + _.files = []; + + _.files = _.files.sort(function(a, b) { + 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 { + 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; + }); + + _.showFiles(callBack, selected); + _.initFiles(); +}; + +_.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; +}; + +_.getURL = function(act, lang) { + if (!lang) + lang = _.lang; + var url = "browse.php?type=" + encodeURIComponent(_.type) + "&lng=" + encodeURIComponent(lang); + if (_.opener.name) + url += "&opener=" + encodeURIComponent(_.opener.name); + if (act) + url += "&act=" + encodeURIComponent(act); + if (_.cms) + url += "&cms=" + encodeURIComponent(_.cms); + return url; +}; + +_.label = function(index, data) { + var label = _.labels[index] ? _.labels[index] : index; + if (data) + $.each(data, function(key, val) { + label = label.replace("{" + key + "}", val); + }); + return label; +}; + +_.check4errors = function(data) { + if (!data.error) + return false; + var msg = data.error.join + ? data.error.join("\n") + : data.error; + _.alert(msg); + return true; +}; + +_.post = function(url, data) { + var html = '
        '; + $.each(data, function(key, val) { + if ($.isArray(val)) + $.each(val, function(i, aval) { + html += ''; + }); + else + html += ''; + }); + html += '
        '; + $('#menu').html(html).show(); + $('#postForm').get(0).submit(); +}; + +_.fadeFiles = function() { + $('#files > div').css({ + opacity: "0.4", + filter: "alpha(opacity=40)" + }); +}; diff --git a/js/browser/clipboard.js b/js/browser/clipboard.js deleted file mode 100644 index c97af84..0000000 --- a/js/browser/clipboard.js +++ /dev/null @@ -1,299 +0,0 @@ - - * @copyright 2010-2014 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 deleted file mode 100644 index f7e28f8..0000000 --- a/js/browser/dropUpload.js +++ /dev/null @@ -1,231 +0,0 @@ - - -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 deleted file mode 100644 index 2d7707c..0000000 --- a/js/browser/files.js +++ /dev/null @@ -1,610 +0,0 @@ - - * @copyright 2010-2014 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 deleted file mode 100644 index e170cc4..0000000 --- a/js/browser/folders.js +++ /dev/null @@ -1,369 +0,0 @@ - - * @copyright 2010-2014 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 deleted file mode 100644 index ab8df3d..0000000 --- a/js/browser/init.js +++ /dev/null @@ -1,187 +0,0 @@ - - * @copyright 2010-2014 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 deleted file mode 100644 index f587098..0000000 --- a/js/browser/joiner.php +++ /dev/null @@ -1,35 +0,0 @@ - - * @copyright 2010-2014 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 deleted file mode 100644 index 5c1a6d8..0000000 --- a/js/browser/misc.js +++ /dev/null @@ -1,383 +0,0 @@ - - * @copyright 2010-2014 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 deleted file mode 100644 index 30f98b6..0000000 --- a/js/browser/settings.js +++ /dev/null @@ -1,102 +0,0 @@ - - * @copyright 2010-2014 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 deleted file mode 100644 index e3fc3d7..0000000 --- a/js/browser/toolbar.js +++ /dev/null @@ -1,329 +0,0 @@ - - * @copyright 2010-2014 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-2014 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 deleted file mode 100644 index 264afb6..0000000 --- a/js/helper.js +++ /dev/null @@ -1,411 +0,0 @@ -/** This file is part of KCFinder project - * - * @desc Helper object - * @package KCFinder - * @version 2.52 - * @author Pavel Tzonkov - * @copyright 2010-2014 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/index.php b/js/index.php new file mode 100644 index 0000000..962e48e --- /dev/null +++ b/js/index.php @@ -0,0 +1,20 @@ + + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +namespace kcfinder; + +chdir(".."); +require "core/autoload.php"; +$min = new minifier("js"); +$min->minify("cache/base.js"); diff --git a/js/jquery.drag.js b/js/jquery.drag.js deleted file mode 100644 index 337995f..0000000 --- a/js/jquery.drag.js +++ /dev/null @@ -1,6 +0,0 @@ -/*! - * 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 deleted file mode 100644 index 5dbe7f8..0000000 --- a/js/jquery.rightClick.js +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * 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 index 94235b2..3ac3c76 100644 --- a/js_localize.php +++ b/js_localize.php @@ -4,37 +4,43 @@ * * @desc Load language labels into JavaScript * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; require "core/autoload.php"; -if (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)) { + +if (!isset($_GET['lng']) || ($_GET['lng'] == 'en') || + ($_GET['lng'] != basename($_GET['lng'])) || + !is_file("lang/" . $_GET['lng'] . ".php") +) { header("Content-Type: text/javascript"); die; } + +$file = "lang/" . $_GET['lng'] . ".php"; $mtime = @filemtime($file); -if ($mtime) httpCache::checkMTime($mtime); + +if ($mtime) + httpCache::checkMTime($mtime, "Content-Type: text/javascript"); + 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) . "\";"; +header("Content-Type: text/javascript"); + +echo "_.labels={"; + +$i = 0; +foreach ($lang as $english => $native) { + if (substr($english, 0, 1) != "_") { + echo "'" . text::jsValue($english) . "':\"" . text::jsValue($native) . "\""; + if (++$i < count($lang)) + echo ","; + } +} -?> +echo "}"; diff --git a/lang/af.php b/lang/af.php index 1eccc0a..86c2eb7 100644 --- a/lang/af.php +++ b/lang/af.php @@ -4,6 +4,9 @@ */ $lang = array( + + '_lang' => "Afrikaans", + '_native' => "Afrikaans", '_locale' => "af-ZA.UTF-8", '_charset' => "utf-8", @@ -115,16 +118,16 @@ "Die lêer '{file}' bestaan ​​nie.", "Cannot read '{file}'." => - "Kan nie '{lêer}' lees nie.", + "Kan nie '{file}' lees nie.", "Cannot copy '{file}'." => - "Kan nie '{lêer}' kopieer nie.", + "Kan nie '{file}' kopieer nie.", "Cannot move '{file}'." => - "Kan nie '{lêer}' beweeg nie.", + "Kan nie '{file}' beweeg nie.", "Cannot delete '{file}'." => - "Kan nie '{lêer}' verwyder .", + "Kan nie '{file}' verwyder .", "Click to remove from the Clipboard" => "Klik om te verwyder van die Klembord", @@ -241,5 +244,3 @@ "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 index c1a3ee3..2aa78a0 100644 --- a/lang/bg.php +++ b/lang/bg.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Bulgarian", + '_native' => "БългарÑки", '_locale' => "bg_BG.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -95,8 +97,9 @@ "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." => "ÐеÑъщеÑтвуващ Ñпециален тип на папка.", @@ -257,6 +260,19 @@ "Качване на файл {number} от {count}... {progress}", "Failed to upload {filename}!" => "ÐеÑполучливо качване на {filename}!", -); -?> \ No newline at end of file + // SINCE 3.0 + + "Close" => "Затвори", + "Previous" => "Предишно", + "Next" => "Следващо", + "Confirmation" => "Потвърждение", + "Warning" => "Внимание", + + // SINCE 3.20 + + "Uploading files" => "Качване на файлове", + "Uploading file {current} of {count}" => "Качване на файл {current} от общо {count}", + "Uploaded {uploaded} of {total}" => "Качено {uploaded} от общо {total}", + "Errors:" => "Грешки:" +); diff --git a/lang/ca.php b/lang/ca.php index 9e9c6c2..2cf49f3 100644 --- a/lang/ca.php +++ b/lang/ca.php @@ -7,6 +7,8 @@ $lang = array( + '_lang' => "Catalan", + '_native' => "Català", '_locale' => "ca_ES.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -124,5 +126,3 @@ "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 index 8cd858c..a7efad2 100644 --- a/lang/cs.php +++ b/lang/cs.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Czech", + '_native' => "ÄŒeÅ¡tina", '_locale' => "cs_CZ.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -80,7 +82,7 @@ "Upload" => "Nahrát", "Refresh" => "Obnovit", "Settings" => "Nastavení", - "Maximize" => "Maxializovat", + "Maximize" => "Maximalizovat", "About" => "O aplikaci", "files" => "soubory", "selected files" => "vybrané soubory", @@ -122,6 +124,9 @@ "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}!", + "Close" => "Zavřít", + "Previous" => "PÅ™edchozí", + "Next" => "Další", + "Confirmation" => "Potvrzení", + "Warning" => "Varování", ); - -?> \ No newline at end of file diff --git a/lang/da.php b/lang/da.php index c9ad9e5..13759cc 100644 --- a/lang/da.php +++ b/lang/da.php @@ -1,242 +1,127 @@ **/ +/** Danish translation by Thomas Schou + * Danish corrections by Mikael Lyngvig + */ $lang = array( + '_lang' => "Danish", + '_native' => "Dansk", '_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", + '_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:", - + "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 rename the folder." => "Kan ikke omdøbe mappen.", + "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 mappenavn.", + "Unallowable characters in folder name." => "Ugyldige tegn i mappens navn.", + "Folder name shouldn't begins with '.'" => "Mappenavne bør ikke begynde med '.'", + "Please enter new file name." => "Indtast venligst nyt filnavn.", + "Unallowable characters in file name." => "Ugyldige tegn i filens navn", + "File name shouldn't begins with '.'" => "Filnavn bør ikke begynde 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?", + "Non-existing directory type." => "Ikke-eksisterende mappe type.", + "Undefined MIME types." => "Udefinerede MIME typer.", + "Fileinfo PECL extension is missing." => "Filinfo PECL udvidelse mangler.", + "Opening fileinfo database failed." => "Ã…bning af filinfo 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 kopiere '{file}'.", + "Cannot move '{file}'." => "Kan ikke flytte '{file}'.", + "Cannot delete '{file}'." => "Kan ikke slette '{file}'.", + "Cannot delete the folder." => "Kan ikke slette mappen.", + "Click to remove from the Clipboard" => "Klik for at fjerne fra udklipsholderen.", + "This file is already added to the Clipboard." => "Denne fil er allerede føjet til udklipsholderen.", + "The files in the Clipboard are not readable." => "Filerne i udklipsholderen ikke kan læses.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} filer i udklipsholderen ikke kan læses. Ønsker du at kopiere resten?", + "The files in the Clipboard are not movable." => "Filerne i udklipsholderen kan ikke flyttes.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} filer i udklipsholderen er ikke flytbare. Ønsker du at flytte resten?", + "The files in the Clipboard are not removable." => "Filerne i udklipsholderen kan ikke fjernes.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} filer i udklipsholderen kan ikke fjernes. Ø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 kan ikke 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.", + "Copy files here" => "Kopier filer her.", + "Move files here" => "Flyt filer her.", + "Delete files" => "Slet filer.", + "Clear the Clipboard" => "Tøm udklipsholderen", + "Are you sure you want to delete all files in the Clipboard?" => "Tøm udklipsholderen?", + "Copy {count} files" => "Kopier {count} filer", + "Move {count} files" => "Flyt {count} filer", + "Add to Clipboard" => "Tilføj til udklipsholderen", + "Inexistant or inaccessible folder." => "Manglende eller utilgængelig mappe.", + "New folder name:" => "Nyt mappenavn:", + "New file name:" => "Nyt filnavn:", "Upload" => "Upload", - "Refresh" => "Genopfriske", + "Refresh" => "Genopfrisk", "Settings" => "Indstillinger", - "Maximize" => "Maksimere", + "Maximize" => "Maksimer", "About" => "Om", "files" => "filer", - "View:" => "Vis:", + "selected files" => "Valgte filer", + "View:" => "Ã…ben:", "Show:" => "Vis:", "Order by:" => "Sorter efter:", "Thumbnails" => "Miniaturer", "List" => "Liste", "Name" => "Navn", - "Size" => "St�rrelse", + "Type" => "Type", + "Size" => "Størrelse", "Date" => "Dato", - "Descending" => "Faldende", + "Descending" => "Aftagende", "Uploading file..." => "Uploader fil...", - "Loading image..." => "Indl�ser billede...", - "Loading folders..." => "Indl�ser mappe...", - "Loading files..." => "Indl�ser filer...", + "Loading image..." => "Indlæser billede...", + "Loading folders..." => "Indlæser mapper...", + "Loading files..." => "Indlæser filer...", "New Subfolder..." => "Ny undermappe...", - "Rename..." => "Omd�b...", + "Rename..." => "Omdøb...", "Delete" => "Slet", "OK" => "Ok", "Cancel" => "Fortryd", - "Select" => "V�lg", - "Select Thumbnail" => "V�lg miniature", - "View" => "Vis", + "Select" => "Vælg", + "Select Thumbnail" => "Vælg miniature", + "Select Thumbnails" => "Vælg miniaturer", + "View" => "Ã…ben", "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", + "Clipboard" => "Udklipsholder", + "Checking for new version..." => "Søger efter ny version...", + "Unable to connect!" => "Kan ikke forbinde!", + "Download version {version} now!" => "Hent version {version} nu!", + "KCFinder is up to date!" => "KCFinder er opdateret!", + "Licenses:" => "Licenser:", + "Attention" => "Vigtigt", + "Question" => "SpørgsmÃ¥l", + "Yes" => "Ja", + "No" => "Nej", + "You cannot rename the extension of files!" => "Du kan ikke ændre typen pÃ¥ filer!", + "Uploading file {number} of {count}... {progress}" => "Uploader fil {number} af {count} ... {progress}", + "Failed to upload {filename}!" => "Kunne ikke uploade {filename}!", ); - -?> diff --git a/lang/de.php b/lang/de.php index 00c0b4d..9027bec 100644 --- a/lang/de.php +++ b/lang/de.php @@ -6,74 +6,76 @@ $lang = array( + '_lang' => "German", + '_native' => "Deutsch", '_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", + '_dateTimeFull' => "%A, %e.%B.%Y %k:%M", + '_dateTimeMid' => "%a %e %b %Y %k:%M", + '_dateTimeSmall' => "%d.%m.%Y %k:%M", "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 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.", + "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.", + "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 read upload folder." => "Ziel 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.", + "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", + "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?", + "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", + "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.", + "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.", + "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.", + "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?", + "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", + "Add to Clipboard" => "Der Zwischenablage hinzufügen", "Inexistant or inaccessible folder." => "Ordnertyp existiert nicht.", "New folder name:" => "Neuer Ordnername:", "New file name:" => "Neuer Dateiname:", @@ -81,9 +83,9 @@ "Refresh" => "Aktualisieren", "Settings" => "Einstellungen", "Maximize" => "Maximieren", - "About" => "√úber", + "About" => "Ãœber", "files" => "Dateien", - "selected files" => "ausgewählte Dateien", + "selected files" => "ausgewählte Dateien", "View:" => "Ansicht:", "Show:" => "Zeige:", "Order by:" => "Ordnen nach:", @@ -91,7 +93,7 @@ "List" => "Liste", "Name" => "Name", "Type" => "Typ", - "Size" => "Größe", + "Size" => "Größe", "Date" => "Datum", "Descending" => "Absteigend", "Uploading file..." => "Lade Datei hoch...", @@ -100,12 +102,12 @@ "Loading files..." => "Lade Dateien...", "New Subfolder..." => "Neuer Unterordner...", "Rename..." => "Umbenennen...", - "Delete" => "Löschen", + "Delete" => "Löschen", "OK" => "OK", "Cancel" => "Abbruch", - "Select" => "Auswählen", - "Select Thumbnail" => "Wähle Miniaturansicht", - "Select Thumbnails" => "Wähle Miniaturansicht", + "Select" => "Auswählen", + "Select Thumbnail" => "Wähle Miniaturansicht", + "Select Thumbnails" => "Wähle Miniaturansicht", "View" => "Ansicht", "Download" => "Download", "Download files" => "Dateien herunterladen", @@ -119,9 +121,12 @@ "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!", + "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} hoch ... {progress}", + "Failed to upload {filename}!" => "Hochladen von {filename} fehlgeschlagen!", + "Close" => "Schließen", + "Previous" => "Vorherige", + "Next" => "Nächste", + "Confirmation" => "Bestätigung", + "Warning" => "Warnung" ); - -?> \ No newline at end of file diff --git a/lang/el.php b/lang/el.php index c8eb9ab..c550b8a 100644 --- a/lang/el.php +++ b/lang/el.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Greek", + '_native' => "Ελληνικά", '_locale' => "el_GR.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -14,162 +16,83 @@ '_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", - + "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 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" => "ΚαθαÏισμός 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" => "Φθίνουσα", @@ -183,62 +106,12 @@ "OK" => "OK", "Cancel" => "ΑκÏÏωση", "Select" => "Επιλογή", - "Select Thumbnail" => "Επιλογή ΜικÏογÏαφίας", + "Select Thumbnail" => "Επιλογή μικÏογÏαφίας", + "Select Thumbnails" => "Επιλέξτε μικÏογÏαφίες", "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 - + "Download files" => "Κατέβασμα αÏχείων", + "Clipboard" => "ΠÏόχειÏο", "Checking for new version..." => "Ελεγχος για νέα έκδοση...", "Unable to connect!" => "ΑδÏνατη η σÏνδεση!", "Download version {version} now!" => "Κατεβάστε την έκδοση {version} Ï„ÏŽÏα!", @@ -248,6 +121,12 @@ "Question" => "ΕÏώτηση", "Yes" => "Îαι", "No" => "Όχι", + "You cannot rename the extension of files!" => "Δεν έχετε δικαίωμα να αλλάζετε την κατάληξη των αÏχείων!", + "Uploading file {number} of {count}... {progress}" => "Ανέβασμα αÏχείου {number} από {count}... {progress}", + "Failed to upload {filename}!" => "Αποτυχία στο ανέβασμα του {filename}!", + "Close" => "Κλείσιμο", + "Previous" => "ΠÏοηγοÏμενη", + "Next" => "Επόμενη", + "Confirmation" => "Επιβεβαίωση", + "Warning" => "ΠÏοειδοποίηση", ); - -?> \ No newline at end of file diff --git a/lang/en.php b/lang/en.php index c311c7a..c66f2d3 100644 --- a/lang/en.php +++ b/lang/en.php @@ -4,15 +4,17 @@ * * @desc Default English localization * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ $lang = array( + '_lang' => "English", + '_native' => "English", '_locale' => "en_US.UTF-8", '_charset' => "utf-8", @@ -21,5 +23,3 @@ '_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 index a86f22e..5ff6d06 100644 --- a/lang/es.php +++ b/lang/es.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Spanish", + '_native' => "Español", '_locale' => "es_ES.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -55,7 +57,7 @@ "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.", + "The files in the Clipboard are not readable." => "Los archivos en el portapapeles 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?", @@ -123,5 +125,3 @@ "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/et.php b/lang/et.php index 3553b16..ba7e6e1 100644 --- a/lang/et.php +++ b/lang/et.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Estonian", + '_native' => "Eesti", '_locale' => "et_EE.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -123,5 +125,3 @@ "Uploading file {number} of {count}... {progress}" => "Laen üles faili {number} {count}-st... {progress}", "Failed to upload {filename}!" => "{filename} üleslaadimine ebaõnnestus!", ); - -?> \ No newline at end of file diff --git a/lang/fa.php b/lang/fa.php index 09481e5..429749c 100644 --- a/lang/fa.php +++ b/lang/fa.php @@ -7,12 +7,14 @@ * @version 2.2 * @author Hamid Kamalpour * @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 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ $lang = array( + '_lang' => "Persian", + '_native' => "Ùارسى", '_locale' => "fa_IR.UTF-8", '_charset' => "utf-8", @@ -263,5 +265,3 @@ "Failed to upload {filename}!" => "! {filename} خطا در ارسال" ); - -?> diff --git a/lang/fi.php b/lang/fi.php index ab17048..788f825 100644 --- a/lang/fi.php +++ b/lang/fi.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Finnish", + '_native' => "Suomi", '_locale' => "fi_FI.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -123,5 +125,3 @@ "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 index ac33d22..82b5daf 100644 --- a/lang/fr.php +++ b/lang/fr.php @@ -7,6 +7,8 @@ $lang = array( + '_lang' => "French", + '_native' => "Français", '_locale' => "fr_FR.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -123,6 +125,9 @@ "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} !", + "Close" => "Fermer", + "Previous" => "Précédent", + "Next" => "Suivant", + "Confirmation" => "Confirmation", + "Warning" => "Avertissement", ); - -?> \ No newline at end of file diff --git a/lang/he.php b/lang/he.php index 56b31a2..387b5f3 100644 --- a/lang/he.php +++ b/lang/he.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Hebrew", + '_native' => "עברית", '_locale' => "he_IL.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -123,5 +125,3 @@ "Uploading file {number} of {count}... {progress}" => "מעלה קובץ {number} מתוך {count}... {progress}", "Failed to upload {filename}!" => "העל×ת הקובץ נכשלה!", ); - -?> \ No newline at end of file diff --git a/lang/hu.php b/lang/hu.php index 3539f4a..77973a6 100644 --- a/lang/hu.php +++ b/lang/hu.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Hungarian", + '_native' => "Magyar", '_locale' => "hu_HU.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -122,6 +124,9 @@ "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.", + "Close" => "Bezár", + "Previous" => "ElÅ‘zÅ‘", + "Next" => "KövetkezÅ‘", + "Confirmation" => "MegerÅ‘sítés", + "Warning" => "Figyelem" ); - -?> \ No newline at end of file diff --git a/lang/id.php b/lang/id.php index 2eebd47..24a8e7d 100644 --- a/lang/id.php +++ b/lang/id.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Indonesian", + '_native' => "Indonesia", '_locale' => "id_ID.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -18,7 +20,7 @@ "You don't have permissions to browse server." => "Anda tidak punya izin untuk menelusuri server.", "Cannot move uploaded file to target folder." => "Gagal memindahkan file yang di unggah ke target folder.", "Unknown error." => "Error yang tidak diketahui.", - "The uploaded file exceeds {size} bytes." => "File yang anda unggah melebihi {ukuran} bytes.", + "The uploaded file exceeds {size} bytes." => "File yang anda unggah melebihi {size} bytes.", "The uploaded file was only partially uploaded." => "Hanya sebagian file yang anda unggah telah di upload.", "No file was uploaded." => "Tidak ada file yang di unggah.", "Missing a temporary folder." => "Temporary folder hilang.", @@ -26,7 +28,7 @@ "Denied file extension." => "File extension ditolak.", "Unknown image format/encoding." => "Format gambar/encoding tidak diketahui.", "The image is too big and/or cannot be resized." => "Gambar terlalu besar dan/atau tidak bisa di ubah ukurannya.", - "Cannot create {dir} folder." => "Gagal membuat {direktori} folder", + "Cannot create {dir} folder." => "Gagal membuat {dir} folder", "Cannot rename the folder." => "Gagal mengganti nama folder.", "Cannot write to upload folder." => "Gagal menulis ke server unggah.", "Cannot read .htaccess" => "Gagal membaca .htaccess", @@ -56,23 +58,23 @@ "Click to remove from the Clipboard" => "Klik untuk memusnahkan dari Clipboard.", "This file is already added to the Clipboard." => "File ini memang sudah ditambahkan ke Clipboard.", "The files in the Clipboard are not readable." => "File-File yang di Clipboard tidak bisa di baca.", - "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{jumlah} file-file di Clipboard tidak bisa di baca. Apakah anda mau menyalin sisa-nya?", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} file-file di Clipboard tidak bisa di baca. Apakah anda mau menyalin sisa-nya?", "The files in the Clipboard are not movable." => "File-file yang di clipboard tidak memungkinkan untuk di pindah.", - "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{jumlah} file-file yang di Clipboard tidak bisa di pindah. Apakan anda mau memindahkan sisa-nya?", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} file-file yang di Clipboard tidak bisa di pindah. Apakan anda mau memindahkan sisa-nya?", "The files in the Clipboard are not removable." => "File file yang di Clipboard tidak memungkinkan untuk di hapus.", - "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{jumlah} file-file di Clipboard tidak memungkinkan untuk di hapus. Apakah anda mau menghapus sisa-nya?", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} file-file di Clipboard tidak memungkinkan untuk di hapus. Apakah anda mau menghapus sisa-nya?", "The selected files are not removable." => "File-file yang anda pilih tidak memungkinkan untuk di hapus.", - "{count} selected files are not removable. Do you want to delete the rest?" => "{jumlah] file-file yang terpilih tidak memungkinkan untuk di hapus. Apakah anda mau menghapus sisa-nya?", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} file-file yang terpilih tidak memungkinkan untuk di hapus. Apakah anda mau menghapus sisa-nya?", "Are you sure you want to delete all selected files?" => "Yakin anda akan menghapus semua file-file yang di pilih?", - "Failed to delete {count} files/folders." => "Gagal menghapus {jumlah} file/folder.", + "Failed to delete {count} files/folders." => "Gagal menghapus {count} file/folder.", "A file or folder with that name already exists." => "File atau folder dengan nama itu sudah ada.", "Copy files here" => "Salin file-file kesini", "Move files here" => "Pindah file-file kesini", "Delete files" => "Hapus file", "Clear the Clipboard" => "Bersihkan Clipboard", "Are you sure you want to delete all files in the Clipboard?" => "Yakin anda akan menghapus semua file-file yang ada di Clipboard?", - "Copy {count} files" => "Salin {jumlah} file-file", - "Move {count} files" => "Pindah {jumlah} file-file", + "Copy {count} files" => "Salin {count} file-file", + "Move {count} files" => "Pindah {count} file-file", "Add to Clipboard" => "Tambahkan ke Clipboard", "Inexistant or inaccessible folder." => "Folder tidak ada atau tidak bisa di akses.", "New folder name:" => "Nama folder baru:", @@ -112,7 +114,7 @@ "Clipboard" => "Clipboard", "Checking for new version..." => "Mengecek untuk versi baru...", "Unable to connect!" => "Gagal untuk mengkoneksi!", - "Download version {version} now!" => "Unduh versi {versi} sekarang!", + "Download version {version} now!" => "Unduh versi {version} sekarang!", "KCFinder is up to date!" => "KCFinder adalah versi terbaru!", "Licenses:" => "Lisensi:", "Attention" => "Perhatian", @@ -120,8 +122,6 @@ "Yes" => "Ya", "No" => "Tidak", "You cannot rename the extension of files!" => "Anda tidak bisa mengubah ekstensi file!", - "Uploading file {number} of {count}... {progress}" => "Mengunggah file {nomor} of {jumlah}... {progress)", - "Failed to upload {filename}!" => "Gagal untuk mengunggah {nama file}", + "Uploading file {number} of {count}... {progress}" => "Mengunggah file {number} of {count}... {progress}", + "Failed to upload {filename}!" => "Gagal untuk mengunggah {filename}", ); - -?> \ No newline at end of file diff --git a/lang/it.php b/lang/it.php index 557e5b9..377e56c 100644 --- a/lang/it.php +++ b/lang/it.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Italian", + '_native' => "Italiano", '_locale' => "it_IT.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -122,6 +124,9 @@ "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 ", + "Close" => "Chiudi", + "Previous" => "Precedente", + "Next" => "Successivo", + "Confirmation" => "Conferma", + "Warning" => "Attenzione", ); - -?> \ No newline at end of file diff --git a/lang/ja.php b/lang/ja.php index 19b7d79..bde1a72 100644 --- a/lang/ja.php +++ b/lang/ja.php @@ -4,13 +4,16 @@ * * @desc Japanese localization * @package KCFinder - * @author yama yamamoto@kyms.ne.jp + * @version 2.54 + * @author yama yamamoto@kyms.jp * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 */ $lang = array( + '_lang' => "Japanese", + '_native' => "日本語", '_locale' => "ja_JP.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -26,25 +29,25 @@ "The uploaded file exceeds {size} bytes." => "アップロードã—ãŸãƒ•ã‚¡ã‚¤ãƒ«ã¯ {size} ãƒã‚¤ãƒˆã‚’越ãˆã¾ã—ãŸã€‚", "The uploaded file was only partially uploaded." => "アップロードã—ãŸãƒ•ã‚¡ã‚¤ãƒ«ã¯ã€ä¸€éƒ¨ã®ã¿å‡¦ç†ã•ã‚Œã¾ã—ãŸã€‚", "No file was uploaded." => "ファイルã¯ã‚ã‚Šã¾ã›ã‚“。", - "Missing a temporary folder." => "一時フォルダãŒè¦‹ä»˜ã‹ã‚Šã¾ã›ã‚“。", + "Missing a temporary folder." => "tempフォルダãŒè¦‹ã¤ã‹ã‚Šã¾ã›ã‚“。", "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 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." => "アップロードフォルダã«ã‚¢ã‚¯ã‚»ã‚¹ã€åˆã¯æ›¸ãè¾¼ã¿ã§ãã¾ã›ã‚“。", + "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 '.'" => "ファイルåã¯ã€'.'ã§é–‹å§‹ã—ãªã„ã§ä¸‹ã•ã„。", + "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." => "存在ã—ãªã„ディレクトリã®ç¨®é¡žã§ã™ã€‚", @@ -52,12 +55,12 @@ "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}'ã€ã‚’読ã¿å–ã‚Œã¾ã›ã‚“。", + "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." => "ディレクトリを削除ã§ãã¾ã›ã‚“", + "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." => "クリップボードã‹ã‚‰ãƒ•ã‚¡ã‚¤ãƒ«ã‚’読ã¿å–ã‚Œã¾ã›ã‚“", @@ -70,7 +73,7 @@ "{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." => "ãã®åå‰ã®ãƒ•ã‚¡ã‚¤ãƒ«ã€åˆã¯ãƒ•ã‚©ãƒ«ãƒ€ã¯æ—¢ã«å­˜åœ¨ã—ã¾ã™ã€‚", + "A file or folder with that name already exists." => "ãã®åå‰ã®ãƒ•ã‚¡ã‚¤ãƒ«ã€ã¾ãŸã¯ãƒ•ã‚©ãƒ«ãƒ€ã¯æ—¢ã«å­˜åœ¨ã—ã¾ã™ã€‚", "Copy files here" => "ã“ã“ã«ã‚³ãƒ”ー", "Move files here" => "ã“ã“ã«ç§»å‹•", "Delete files" => "ã“れらを全ã¦å‰Šé™¤", @@ -79,7 +82,7 @@ "Copy {count} files" => "ファイル({count}個)ã‚’ã“ã“ã«è¤‡å†™", "Move {count} files" => "ファイル({count}個)ã‚’ã“ã“ã«ç§»å‹•", "Add to Clipboard" => "クリップボードã«è¨˜æ†¶", - "Inexistant or inaccessible folder." => "存在ã—ãªã„ã€åˆã¯ã‚¢ã‚¯ã‚»ã‚¹ã§ããªã„フォルダã§ã™ã€‚", + "Inexistant or inaccessible folder." => "存在ã—ãªã„ã€ã¾ãŸã¯ã‚¢ã‚¯ã‚»ã‚¹ã§ããªã„フォルダã§ã™ã€‚", "New folder name:" => "フォルダå(åŠè§’英数):", "New file name:" => "ファイルå(åŠè§’英数):", "Upload" => "アップロード", @@ -99,10 +102,10 @@ "Size" => "サイズ", "Date" => "日付", "Descending" => "é †åºã‚’å転", - "Uploading file..." => "ファイルをアップロード中...", - "Loading image..." => "ç”»åƒã‚’読ã¿è¾¼ã¿ä¸­...", - "Loading folders..." => "フォルダを読ã¿è¾¼ã¿ä¸­...", - "Loading files..." => "読ã¿è¾¼ã¿ä¸­...", + "Uploading file..." => "ファイルをアップロード中", + "Loading image..." => "ç”»åƒã‚’読ã¿è¾¼ã¿ä¸­", + "Loading folders..." => "フォルダを読ã¿è¾¼ã¿ä¸­", + "Loading files..." => "読ã¿è¾¼ã¿ä¸­", "New Subfolder..." => "フォルダを作る", "Rename..." => "åå‰ã®å¤‰æ›´", "Delete" => "削除", @@ -115,18 +118,16 @@ "Download" => "ダウンロード", "Download files" => "ファイルをダウンロードã™ã‚‹", "Clipboard" => "クリップボード", - "Checking for new version..." => "æ–°ã—ã„ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’確èªã—ã¦ã„ã¾ã™...", - "Unable to connect!" => "接続ã§ãã¾ã›ã‚“ã§ã—ãŸï¼", - "Download version {version} now!" => "æ–°ã—ã„ãƒãƒ¼ã‚¸ãƒ§ãƒ³ï¼ˆ{version})を今ã™ãダウンロードï¼", - "KCFinder is up to date!" => "KCFinderã¯æ›´æ–°ã•ã‚Œã¾ã—ãŸï¼", + "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!" => "ファイルã®æ‹¡å¼µå­ã‚’変更ã§ãã¾ã›ã‚“ã§ã—ãŸï¼", + "You cannot rename the extension of files!" => "ファイルã®æ‹¡å¼µå­ã‚’変更ã§ãã¾ã›ã‚“ã§ã—ãŸ", "Uploading file {number} of {count}... {progress}" => "ファイルをアップロード中({number}/{count})... {progress}", - "Failed to upload {filename}!" => "{filename}ã®ã‚¢ãƒƒãƒ—ロードã«å¤±æ•—ã—ã¾ã—ãŸï¼", + "Failed to upload {filename}!" => "{filename}ã®ã‚¢ãƒƒãƒ—ロードã«å¤±æ•—ã—ã¾ã—ãŸ", ); - -?> \ No newline at end of file diff --git a/lang/lt.php b/lang/lt.php index 22174d2..dfa92d6 100644 --- a/lang/lt.php +++ b/lang/lt.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Lithuanian", + '_native' => "Lietuvių", '_locale' => "lt_LT.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -122,6 +124,9 @@ "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}!", + "Close" => "Uždaryti", + "Previous" => "Ankstesnis", + "Next" => "Kitas", + "Confirmation" => "Patvirtinimas", + "Warning" => "Ä®spÄ—jimas", ); - -?> \ No newline at end of file diff --git a/lang/lv.php b/lang/lv.php new file mode 100644 index 0000000..d3abaab --- /dev/null +++ b/lang/lv.php @@ -0,0 +1,127 @@ + "Latvian", + '_native' => "LatvieÅ¡u", + '_locale' => "lv_LV.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, %Y. gada %e. %B", + '_dateTimeMid' => "%a, %Y. %e. %b", + '_dateTimeSmall' => "%Y.%m.%d %H:%M", + + "You don't have permissions to upload files." => "Jums nav atļaujas, lai augÅ¡upielÄdÄ“tu failu.", + "You don't have permissions to browse server." => "Jums nav atļaujas pÄrlÅ«kot serverÄ«.", + "Cannot move uploaded file to target folder." => "Nevar augÅ¡upielÄdÄ“t failu uz mÄ“rÄ·a mapi.", + "Unknown error." => "NezinÄma kļūda.", + "The uploaded file exceeds {size} bytes." => "AugÅ¡upielÄdÄ“tais fails pÄrsniedz {size} baitus.", + "The uploaded file was only partially uploaded." => "AugÅ¡upielÄdÄ“tais fails tika augÅ¡upielÄdÄ“ts tikai daļēji.", + "No file was uploaded." => "Neviens fails netika augÅ¡upielÄdÄ“ts.", + "Missing a temporary folder." => "TrÅ«kst pagaidu mapÄ“.", + "Failed to write file." => "NeizdevÄs ierakstÄ«t failÄ.", + "Denied file extension." => "Liegta piekļuve faila paplaÅ¡inÄjums.", + "Unknown image format/encoding." => "NezinÄms attÄ“lu formÄts / kodÄ“jumu.", + "The image is too big and/or cannot be resized." => "AttÄ“ls ir pÄrÄk liels un / vai izmÄ“rus nevar mainÄ«t.", + "Cannot create {dir} folder." => "Nevar izveidot {dir} mapÄ“.", + "Cannot rename the folder." => "Nevar pÄrdÄ“vÄ“t mapi.", + "Cannot write to upload folder." => "Nevar ierakstÄ«t augÅ¡upielÄdes mape.", + "Cannot read .htaccess" => "Nevar lasÄ«t failu .htaccess", + "Incorrect .htaccess file. Cannot rewrite it!" => "Nepareizs fails .htaccess bÅ«s jÄnoņem. Nevar pÄrrakstÄ«t!", + "Cannot read upload folder." => "Nevar lasÄ«t failu augÅ¡upielÄde mapÄ“.", + "Cannot access or create thumbnails folder." => "Nevar piekļūt vai izveidot sÄ«ktÄ“lu mapei.", + "Cannot access or write to upload folder." => "Nevar piekļūt vai rakstÄ«t augÅ¡upielÄdÄ“t mapes.", + "Please enter new folder name." => "LÅ«dzu, ievadiet jaunu mapes nosaukumu.", + "Unallowable characters in folder name." => "Nepieļaujamas mapes nosaukuma rakstzÄ«mes.", + "Folder name shouldn't begins with '.'" => "Mapes nosaukums nedrÄ«kst sÄk ar '.'", + "Please enter new file name." => "LÅ«dzu, ievadiet jaunu faila nosaukumu.", + "Unallowable characters in file name." => "Nepieļaujami rakstzÄ«mes faila nosaukumu.", + "File name shouldn't begins with '.'" => "Faila nosaukums nedrÄ«kst sÄk ar '.'", + "Are you sure you want to delete this file?" => "Vai tieÅ¡Äm vÄ“laties izdzÄ“st Å¡o failu?", + "Are you sure you want to delete this folder and all its content?" => "Vai tieÅ¡Äm vÄ“laties izdzÄ“st Å¡o mapi un visu tÄs saturu?", + "Non-existing directory type." => "MinimÄla direktorija tips.", + "Undefined MIME types." => "NedefinÄ“ts MIME tipu.", + "Fileinfo PECL extension is missing." => "TrÅ«kst faila paplaÅ¡inÄjuma Fileinfo PECL.", + "Opening fileinfo database failed." => "Atverot fileinfo datu bÄzi neizdevÄs.", + "You can't upload such files." => "Nevar augÅ¡upielÄdÄ“t Å¡o failu.", + "The file '{file}' does not exist." => "Fails' {file} 'nepastÄv.", + "Cannot read '{file}'." => "Nevar nolasÄ«t '{file}'.", + "Cannot copy '{file}'." => "Nevar kopÄ“t '{file}'.", + "Cannot move '{file}'." => "Nevar pÄrvietot '{file}'.", + "Cannot delete '{file}'." => "Nevar izdzÄ“st '{file}'.", + "Cannot delete the folder." => "Nevar izdzÄ“st mapi.", + "Click to remove from the Clipboard" => "NoklikÅ¡Ä·iniet, lai noņemtu no starpliktuves", + "This file is already added to the Clipboard." => "Å is fails jau ir pievienots starpliktuvÄ“.", + "The files in the Clipboard are not readable." => "Failu starpliktuvÄ“ nav lasÄms.", + "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} failu starpliktuvÄ“ nav lasÄms. Vai vÄ“laties kopÄ“t visu?", + "The files in the Clipboard are not movable." => "Failu starpliktuvÄ“ nav pÄrvietojams.", + "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} failu starpliktuvÄ“ nav pÄrvietojams. Vai vÄ“laties pÄrvietot citur?", + "The files in the Clipboard are not removable." => "Failu starpliktuvÄ“ nav noņemami.", + "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} failu starpliktuvÄ“ nav noņemami. Vai vÄ“laties dzÄ“st visu?", + "The selected files are not removable." => "AtlasÄ«tie faili nav noņemama.", + "{count} selected files are not removable. Do you want to delete the rest?" => "{count} atlasÄ«tie faili nav noņemama. Vai vÄ“laties dzÄ“st visu?", + "Are you sure you want to delete all selected files?" => "Vai tieÅ¡Äm vÄ“laties izdzÄ“st visus atlasÄ«tos failus?", + "Failed to delete {count} files/folders." => "NeizdevÄs izdzÄ“st {count} failus / mapes.", + "A file or folder with that name already exists." => "Fails vai mape ar Å¡Ädu nosaukumu jau pastÄv.", + "Copy files here" => "KopÄ“t failus Å¡eit", + "Move files here" => "PÄrvietot failus Å¡eit", + "Delete files" => "DzÄ“st failus", + "Clear the Clipboard" => "NotÄ«rÄ«t starpliktuvi", + "Are you sure you want to delete all files in the Clipboard?" => "Vai tieÅ¡Äm vÄ“laties dzÄ“st visus failus no starpliktuves? ", + "Copy {count} files" => "KopÄ“t {count} faili ", + "Move {count} files" => "PÄrvietot {count} faili ", + "Add to Clipboard" => "Pievienot starpliktuvei ", + "Inexistant or inaccessible folder." => "Inexistant vai piekļūt mapei.", + "New folder name:" => "JaunÄs mapes nosaukums:", + "New file name:" => "Jauns faila nosaukums:", + "Upload" => "AugÅ¡upielÄdÄ“t", + "Refresh" => "AtsvaidzinÄt", + "Settings" => "IestatÄ«jumi", + "Maximize" => "MaksimizÄ“t", + "About" => "Par", + "files" => "faili", + "selected files" => "atlasÄ«tie faili", + "View:" => "SkatÄ«t:", + "Show:" => "RÄdÄ«t:", + "Order by:" => "KÄrtot pÄ“c: ", + "Thumbnails" => "SÄ«ktÄ“li ", + "List" => "Saraksts ", + "Name" => "Nosaukums ", + "Type" => "Tips ", + "Size" => "IzmÄ“rs ", + "Date" => "Datums", + "Descending" => "DilstoÅ¡Ä secÄ«bÄ", + "Uploading file..." => "... faila augÅ¡upielÄde", + "Loading image..." => "IelÄdÄ“ attÄ“lu...", + "Loading folders..." => "IelÄdÄ“ mapes...", + "Loading files..." => "... failu ielÄde", + "New Subfolder..." => "Jauna apakÅ¡mape...", + "Rename..." => "PÄrdÄ“vÄ“t...", + "Delete" => "DzÄ“st", + "OK" => "Labi", + "Cancel" => "Atcelt", + "Select" => "IzvÄ“lieties", + "Select Thumbnail" => "IzvÄ“lieties sÄ«ktÄ“lu", + "Select Thumbnails" => "Atlasiet sÄ«ktÄ“lus", + "View" => "Skats", + "Download" => "LejupielÄdÄ“t", + "Download files" => "LejupielÄdÄ“t failus", + "Clipboard" => "Starpliktuve", + "Checking for new version..." => "... jaunÄs versijas pÄrbaude", + "Unable to connect!" => "Nevar izveidot savienojumu.", + "Download version {version} now!" => "LejupielÄdÄ“t versiju {version} tagad!", + "KCFinder is up to date!" => "KCFinder ir aktuÄla!", + "Licenses:" => "Licences:", + "Attention" => "UzmanÄ«bu", + "Question" => "JautÄjums", + "Yes" => "JÄ", + "No" => "Nr.", + "You cannot rename the extension of files!" => "PaplaÅ¡inÄjums nevar pÄrdÄ“vÄ“t failu!", + "Uploading file {number} of {count}... {progress}" => "AugÅ¡upielÄdÄ“jot failu {number} no {count}... {progress}", + "Failed to upload {filename}!" => "NeizdevÄs augÅ¡upielÄdÄ“t {filename}!", +); diff --git a/lang/nl.php b/lang/nl.php index 37d2f08..6d3e9a3 100644 --- a/lang/nl.php +++ b/lang/nl.php @@ -2,10 +2,13 @@ /** Dutch localization file for KCFinder * author: Lars Anderson + * update: Richard Leurs */ $lang = array( + '_lang' => "Dutch", + '_native' => "Nederlands", '_locale' => "nl_NL.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -16,43 +19,43 @@ "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.", + "Cannot move uploaded file to target folder." => "Het te uploaden bestand kon niet naar de doelmap 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 exceeds {size} bytes." => "De bestandsgrootte van het bestand overschrijdt de limiet {size} bytes.", "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.", + "Missing a temporary folder." => "Een tijdelijke map 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 rename the folder." => "De map kan niet hernoemd worden.", + "Cannot write to upload folder." => "Kan niet naar de uploadmap 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.", + "Incorrect .htaccess file. Cannot rewrite it!" => "Verkeerd .htaccess bestand. Bestand kan niet herschreven worden!", + "Cannot read upload folder." => "Uploadmap kan niet uitgelezen worden.", + "Cannot access or create thumbnails folder." => "Het is niet mogelijk om een miniatuurweergaven map aan te maken of te benaderen.", + "Cannot access or write to upload folder." => "Het is niet mogelijk om in de uploadmap te schrijven of deze te benaderen.", + "Please enter new folder name." => "Vul a.u.b. een nieuwe mapnaam in.", + "Unallowable characters in folder name." => "Er zijn niet toegestane karakters gebruikt in de mapnaam.", + "Folder name shouldn't begins with '.'" => "Een mapnaam 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.", + "Are you sure you want to delete this folder and all its content?" => "Weet u zeker dat u deze map en alle inhoud ervan wilt verwijderen?", + "Non-existing directory type." => "Het maptype 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 copy '{file}'." => "Kan bestand '{file}' niet kopiëren.", "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.", + "Cannot delete the folder." => "De map 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.", @@ -64,18 +67,18 @@ "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.", + "Failed to delete {count} files/folders." => "{count} bestanden/mappen konden niet verwijderd worden.", + "A file or folder with that name already exists." => "Er bestaat reeds een bestand of map met die naam.", "Copy files here" => "Kopieer bestanden hierheen", "Move files here" => "Verplaats bestanden hierheen", "Delete files" => "Verwijder bestanden", - "Clear the Clipboard" => "Klemborg leegmaken", + "Clear the Clipboard" => "Klembord 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:", + "Inexistant or inaccessible folder." => "Map bestaat niet of kon niet worden benaderd.", + "New folder name:" => "Nieuwe mapnaam:", "New file name:" => "Nieuwe bestandsnaam:", "Upload" => "Upload", "Refresh" => "Verversen", @@ -96,9 +99,9 @@ "Descending" => "Aflopend", "Uploading file..." => "Bestand uploaden...", "Loading image..." => "Afbeelding wordt geladen...", - "Loading folders..." => "Folders worden geladen...", + "Loading folders..." => "Mappen worden geladen...", "Loading files..." => "Bestanden worden geladen ...", - "New Subfolder..." => "Nieuwe subfolder...", + "New Subfolder..." => "Nieuwe submap...", "Rename..." => "Hernoemen...", "Delete" => "Verwijderen", "OK" => "OK", @@ -122,6 +125,9 @@ "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!", + "Close" => "Vorige", + "Previous" => "Terug", + "Next" => "Volgende", + "Confirmation" => "Bevestiging", + "Warning" => "Waarschuwing", ); - -?> \ No newline at end of file diff --git a/lang/no.php b/lang/no.php index 80aaf6a..3482ef5 100644 --- a/lang/no.php +++ b/lang/no.php @@ -7,6 +7,8 @@ $lang = array( + '_lang' => "Norwegian", + '_native' => "Norsk", '_locale' => "nb_NO.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -238,5 +240,3 @@ "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 index 413b5f9..afbe644 100644 --- a/lang/pl.php +++ b/lang/pl.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Polish", + '_native' => "Polski", '_locale' => "pl_PL.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -123,5 +125,3 @@ "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 index 8d60953..4acdec5 100644 --- a/lang/pt-br.php +++ b/lang/pt-br.php @@ -9,6 +9,8 @@ $lang = array( + '_lang' => "Brazilian Portuguese", + '_native' => "Português do Brasil", '_locale' => "pt_BR.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -126,5 +128,3 @@ "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 index f0c7f04..acd898a 100644 --- a/lang/pt.php +++ b/lang/pt.php @@ -8,6 +8,8 @@ $lang = array( + '_lang' => "Portuguese", + '_native' => "Português", '_locale' => "pt_PT.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -41,7 +43,7 @@ "Falta a pasta temporária.", "Failed to write file." => - "Não foi possÃvel guardar o ficheiro.", + "Não foi possível guardar o ficheiro.", "Denied file extension." => "Extensão do ficheiro inválida.", @@ -53,25 +55,25 @@ "A imagem é muito grande e não pode ser redimensionada.", "Cannot create {dir} folder." => - "Não foi possÃvel criar a pasta '{dir}'.", + "Não foi possível criar a pasta '{dir}'.", "Cannot write to upload folder." => - "Não foi possÃvel guardar o ficheiro.", + "Não foi possível guardar o ficheiro.", "Cannot read .htaccess" => - "Não foi possÃvel ler o ficheiro '.htaccess'.", + "Não foi possível ler o ficheiro .htaccess", "Incorrect .htaccess file. Cannot rewrite it!" => - "Ficheiro '.htaccess' incorrecto. Não foi possÃvel altera-lo.", + "Ficheiro '.htaccess' incorrecto. Não foi possível altera-lo.", "Cannot read upload folder." => - "Não foi possÃvel ler a pasta de upload.", + "Não foi possível ler a pasta de upload.", "Cannot access or create thumbnails folder." => - "Não foi possÃvel aceder ou criar a pasta de miniaturas.", + "Não foi possível aceder ou criar a pasta de miniaturas.", "Cannot access or write to upload folder." => - "Não foi possÃvel aceder ou criar a pasta de upload.", + "Não foi possível aceder ou criar a pasta de upload.", "Please enter new folder name." => "Por favor insira o nome da pasta.", @@ -80,7 +82,7 @@ "Caracteres não autorizados no nome da pasta.", "Folder name shouldn't begins with '.'" => - "O nome da pasta não deve começar por '.'.", + "O nome da pasta não deve começar por '.'", "Please enter new file name." => "Por favor defina o nome do ficheiro.", @@ -89,7 +91,7 @@ "Caracteres não autorizados no nome do ficheiro.", "File name shouldn't begins with '.'" => - "O nome do ficheiro não deve começar por '.'.", + "O nome do ficheiro não deve começar por '.'", "Are you sure you want to delete this file?" => "Tem a certeza que deseja apagar este ficheiro?", @@ -98,7 +100,7 @@ "Tem a certeza que deseja apagar esta pasta e todos os seus conteúdos?", "Inexistant or inaccessible folder." => - "Pasta inexistente ou inacessÃvel.", + "Pasta inexistente ou inacessível.", "Undefined MIME types." => "Tipos MIME indefinidos.", @@ -239,5 +241,3 @@ "Select Thumbnails" => "Seleccionar miniaturas", "Download files" => "Sacar ficheiros", ); - -?> diff --git a/lang/ro.php b/lang/ro.php index ecbe6ac..63f4955 100644 --- a/lang/ro.php +++ b/lang/ro.php @@ -5,6 +5,8 @@ $lang = array( + '_lang' => "Romanian", + '_native' => "Română", '_locale' => "ro_RO.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -122,5 +124,3 @@ "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 index 13c6a55..f9ada3c 100644 --- a/lang/ru.php +++ b/lang/ru.php @@ -7,6 +7,8 @@ $lang = array( + '_lang' => "Russian", + '_native' => "РуÑÑкий", '_locale' => "ru_RU.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -123,6 +125,9 @@ "You cannot rename the extension of files!" => "Ð’Ñ‹ не можете изменÑÑ‚ÑŒ раÑÑˆÐ¸Ñ€ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²!", "Uploading file {number} of {count}... {progress}" => "Загрузка {number} файла из {count}... {progress}", "Failed to upload {filename}!" => "ÐÐµÑƒÐ´Ð°Ñ‡Ð½Ð°Ñ Ð¿Ð¾Ð¿Ñ‹Ñ‚ÐºÐ° загрузки {filename}!", + "Close" => "Закрыть", + "Previous" => "Предыдущий", + "Next" => "Следующий", + "Confirmation" => "Подтверждение", + "Warning" => "Предупреждение", ); - -?> \ No newline at end of file diff --git a/lang/sk.php b/lang/sk.php index 330fb7f..4262b02 100644 --- a/lang/sk.php +++ b/lang/sk.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Slovak", + '_native' => "SlovenÄina", '_locale' => "sk_SK.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -123,5 +125,3 @@ "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 index 7a5f806..7241cea 100644 --- a/lang/sv.php +++ b/lang/sv.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Swedish", + '_native' => "Svensk", '_locale' => "sv_SE.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -123,5 +125,3 @@ "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 index b36345d..645c476 100644 --- a/lang/tr.php +++ b/lang/tr.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Turkish", + '_native' => "Türkçe", '_locale' => "en_US.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -122,6 +124,9 @@ "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!", + "Close" => "Kapat", + "Previous" => "Önceki", + "Next" => "Sonraki", + "Confirmation" => "Onay", + "Warning" => "Uyarı", ); - -?> \ No newline at end of file diff --git a/lang/uk.php b/lang/uk.php index 5caa120..a619c06 100644 --- a/lang/uk.php +++ b/lang/uk.php @@ -7,6 +7,8 @@ $lang = array( + '_lang' => "Ukrainian", + '_native' => "УкраїнÑька", '_locale' => "uk_UA.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -124,5 +126,3 @@ "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 index 0119121..7974066 100644 --- a/lang/vi.php +++ b/lang/vi.php @@ -6,6 +6,8 @@ $lang = array( + '_lang' => "Vietnamese", + '_native' => "Việt", '_locale' => "vi_VN.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -122,6 +124,9 @@ "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}!", + "Close" => "Äóng", + "Previous" => "TrÆ°á»›c", + "Next" => "Sau", + "Confirmation" => "Xác nhận", + "Warning" => "Cảnh báo", ); - -?> \ No newline at end of file diff --git a/lang/zh-cn.php b/lang/zh-cn.php index ac68e2e..1e53969 100644 --- a/lang/zh-cn.php +++ b/lang/zh-cn.php @@ -9,6 +9,8 @@ $lang = array( + '_lang' => "Chinese Simplified", + '_native' => "中国简体", '_locale' => "zh_CN.UTF-8", // UNIX localization code '_charset' => "utf-8", // Browser charset @@ -126,5 +128,3 @@ "Uploading file {number} of {count}... {progress}" => "正在上传文件{number} / {count}... {progress}", "Failed to upload {filename}!" => "上传失败{filename}ï¼", ); - -?> \ No newline at end of file diff --git a/lib/class_fastImage.php b/lib/class_fastImage.php new file mode 100644 index 0000000..bd4d5c2 --- /dev/null +++ b/lib/class_fastImage.php @@ -0,0 +1,255 @@ +load($uri); + } + + public function load($uri) + { + if ($this->handle) $this->close(); + + $this->uri = $uri; + // Joy - this is a fix for URLs missing "http:" + if ($uri[0] == '/' && $uri[1] == '/') { + $uri = 'http:' . $uri; + } + + $this->handle = fopen( + $uri, + 'r', + false, + stream_context_create(array( + 'http'=> array('timeout' => 0.5), + )) + ); + } + + public function isValid() + { + return empty($this->handle) ? false : true; + } + + public function close() + { + if (is_resource($this->handle)) fclose($this->handle); + } + + + public function getSize() + { + $this->strpos = 0; + if ($this->getType()) + { + return array_values($this->parseSize()); + } + + return false; + } + + + public function getType() + { + $this->strpos = 0; + + if (!$this->type) + { + switch ($this->getChars(2)) + { + case "BM": + return $this->type = 'bmp'; + case "GI": + return $this->type = 'gif'; + case chr(0xFF).chr(0xd8): + return $this->type = 'jpeg'; + case chr(0x89).'P': + return $this->type = 'png'; + default: + return false; + } + } + + return $this->type; + } + + + private function parseSize() + { + $this->strpos = 0; + + switch ($this->type) + { + case 'png': + return $this->parseSizeForPNG(); + case 'gif': + return $this->parseSizeForGIF(); + case 'bmp': + return $this->parseSizeForBMP(); + case 'jpeg': + return $this->parseSizeForJPEG(); + } + + return null; + } + + + private function parseSizeForPNG() + { + $chars = $this->getChars(25); + + return unpack("N*", substr($chars, 16, 8)); + } + + + private function parseSizeForGIF() + { + $chars = $this->getChars(11); + + return unpack("S*", substr($chars, 6, 4)); + } + + + private function parseSizeForBMP() + { + $chars = $this->getChars(29); + $chars = substr($chars, 14, 14); + $type = unpack('C', $chars); + + return (reset($type) == 40) ? unpack('L*', substr($chars, 4)) : unpack('L*', substr($chars, 4, 8)); + } + + + private function parseSizeForJPEG() + { + $state = null; + $i = 0; + + while (true) + { + switch ($state) + { + default: + $this->getChars(2); + $state = 'started'; + break; + case 'started': + $b = $this->getByte(); + if ($b === false) return false; + + $state = $b == 0xFF ? 'sof' : 'started'; + break; + + case 'sof': + $b = $this->getByte(); + if (in_array($b, range(0xe0, 0xef))) + { + $state = 'skipframe'; + } + elseif (in_array($b, array_merge(range(0xC0,0xC3), range(0xC5,0xC7), range(0xC9,0xCB), range(0xCD,0xCF)))) + { + $state = 'readsize'; + } + elseif ($b == 0xFF) + { + $state = 'sof'; + } + else + { + $state = 'skipframe'; + } + break; + + case 'skipframe': + $skip = $this->readInt($this->getChars(2)) - 2; + $state = 'doskip'; + break; + + case 'doskip': + $this->getChars($skip); + $state = 'started'; + break; + + case 'readsize': + $c = $this->getChars(7); + + return array($this->readInt(substr($c, 5, 2)), $this->readInt(substr($c, 3, 2))); + } + } + } + + + private function getChars($n) + { + $response = null; + + // do we need more data? + if ($this->strpos + $n -1 >= strlen($this->str)) + { + $end = ($this->strpos + $n); + + while (strlen($this->str) < $end && $response !== false) + { + // read more from the file handle + $need = $end - ftell($this->handle); + + if ($response = fread($this->handle, $need)) + { + $this->str .= $response; + } + else + { + return false; + } + } + } + + $result = substr($this->str, $this->strpos, $n); + $this->strpos += $n; + + return $result; + } + + + private function getByte() + { + $c = $this->getChars(1); + $b = unpack("C", $c); + + return reset($b); + } + + + private function readInt($str) + { + $size = unpack("C*", $str); + + return ($size[1] << 8) + $size[2]; + } + + + public function __destruct() + { + $this->close(); + } +} \ No newline at end of file diff --git a/lib/class_image.php b/lib/class_image.php index 8dec4c2..0e6666e 100644 --- a/lib/class_image.php +++ b/lib/class_image.php @@ -4,14 +4,16 @@ * * @desc Abstract image driver class * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + abstract class image { const DEFAULT_JPEG_QUALITY = 75; @@ -76,7 +78,7 @@ public function __construct($image, array $options=array()) { * @return object */ final static function factory($driver, $image, array $options=array()) { - $class = "image_$driver"; + $class = __NAMESPACE__ . "\\image_$driver"; return new $class($image, $options); } @@ -90,7 +92,7 @@ final static function getDriver(array $drivers=array('gd')) { foreach ($drivers as $driver) { if (!preg_match('/^[a-z0-9\_]+$/i', $driver)) continue; - $class = "image_$driver"; + $class = __NAMESPACE__ . "\\image_$driver"; if (class_exists($class) && method_exists($class, "available")) { eval("\$avail = $class::available();"); if ($avail) return $driver; @@ -237,5 +239,3 @@ abstract protected function getBlankImage($width, $height); 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 index a79bd79..98f79be 100644 --- a/lib/class_image_gd.php +++ b/lib/class_image_gd.php @@ -4,14 +4,16 @@ * * @desc GD image driver class * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + class image_gd extends image { @@ -194,7 +196,10 @@ public function output($type='jpeg', array $options=array()) { // ABSTRACT PROTECTED METHODS protected function getBlankImage($width, $height) { - return @imagecreatetruecolor($width, $height); + $image = imagecreatetruecolor($width, $height); + imagealphablending($image, false); + imagesavealpha($image, true); + return $image; } protected function getImage($image, &$width, &$height) { @@ -202,6 +207,8 @@ protected function getImage($image, &$width, &$height) { if (is_resource($image) && (get_resource_type($image) == "gd")) { $width = @imagesx($image); $height = @imagesy($image); + imagealphablending($image, false); + imagesavealpha($image, true); return $image; } elseif (is_string($image) && @@ -215,6 +222,10 @@ protected function getImage($image, &$width, &$height) { ($t == IMAGETYPE_XBM) ? @imagecreatefromxbm($image) : false )))); + if ($t == IMAGETYPE_PNG) { + imagealphablending($image, false); + imagesavealpha($image, true); + } return $image; } else @@ -254,7 +265,6 @@ protected function output_png(array $options=array()) { $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); } @@ -340,5 +350,3 @@ protected function imageCopyResampled( 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 index 7c7e02e..41ef437 100644 --- a/lib/class_image_gmagick.php +++ b/lib/class_image_gmagick.php @@ -4,14 +4,16 @@ * * @desc GraphicsMagick image driver class * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + class image_gmagick extends image { static $MIMES = array( @@ -26,7 +28,7 @@ public function resize($width, $height) {// if (!$height) $height = 1; try { $this->image->scaleImage($width, $height); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } $this->width = $width; @@ -42,7 +44,7 @@ public function resizeFit($width, $height, $background=false) {// $this->image->scaleImage($width, $height, true); $w = $this->image->getImageWidth(); $h = $this->image->getImageHeight(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } @@ -56,10 +58,10 @@ public function resizeFit($width, $height, $background=false) {// $this->image->setImageBackgroundColor($background); $x = round(($width - $w) / 2); $y = round(($height - $h) / 2); - $img = new Gmagick(); + $img = new \Gmagick(); $img->newImage($width, $height, $background); $img->compositeImage($this->image, 1, $x, $y); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } $this->image = $img; @@ -110,7 +112,7 @@ public function resizeCrop($width, $height, $offset=false) { try { $this->image->scaleImage($w, $h); $this->image->cropImage($width, $height, -$x, -$y); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } @@ -124,7 +126,7 @@ public function rotate($angle, $background="#000000") { $this->image->rotateImage($background, $angle); $w = $this->image->getImageWidth(); $h = $this->image->getImageHeight(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } $this->width = $w; @@ -135,7 +137,7 @@ public function rotate($angle, $background="#000000") { public function flipHorizontal() { try { $this->image->flopImage(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } return true; @@ -144,7 +146,7 @@ public function flipHorizontal() { public function flipVertical() { try { $this->image->flipImage(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } return true; @@ -152,10 +154,10 @@ public function flipVertical() { public function watermark($file, $left=false, $top=false) { try { - $wm = new Gmagick($file); + $wm = new \Gmagick($file); $w = $wm->getImageWidth(); $h = $wm->getImageHeight(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } @@ -176,7 +178,7 @@ public function watermark($file, $left=false, $top=false) { try { $this->image->compositeImage($wm, 1, $x, $y); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } return true; @@ -187,9 +189,9 @@ public function watermark($file, $left=false, $top=false) { protected function getBlankImage($width, $height) { try { - $img = new Gmagick(); + $img = new \Gmagick(); $img->newImage($width, $height, "none"); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } return $img; @@ -202,11 +204,11 @@ protected function getImage($image, &$width, &$height) { $height = $image->height; return $image->image; - } elseif (is_object($image) && ($image instanceof Gmagick)) { + } elseif (is_object($image) && ($image instanceof \Gmagick)) { try { $w = $image->getImageWidth(); $h = $image->getImageHeight(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } $width = $w; @@ -215,10 +217,10 @@ protected function getImage($image, &$width, &$height) { } elseif (is_string($image)) { try { - $image = new Gmagick($image); + $image = new \Gmagick($image); $w = $image->getImageWidth(); $h = $image->getImageHeight(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } $width = $w; @@ -238,8 +240,8 @@ static function available() { static function checkImage($file) { try { - $img = new Gmagic($file); - } catch (Exception $e) { + $img = new \Gmagick($file); + } catch (\Exception $e) { return false; } return true; @@ -252,7 +254,7 @@ public function output($type="jpeg", array $options=array()) { $type = strtolower($type); try { $this->image->setImageFormat($type); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } $method = "optimize_$type"; @@ -270,7 +272,7 @@ public function output($type="jpeg", array $options=array()) { $file = $options['file'] . ".$type"; try { $this->image->writeImage($file); - } catch (Exception $e) { + } catch (\Exception $e) { @unlink($file); return false; } @@ -291,12 +293,10 @@ 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) { + } 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 index d492769..59bc39d 100644 --- a/lib/class_image_imagick.php +++ b/lib/class_image_imagick.php @@ -4,14 +4,16 @@ * * @desc ImageMagick image driver class * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + class image_imagick extends image { static $MIMES = array( @@ -26,7 +28,7 @@ public function resize($width, $height) {// if (!$height) $height = 1; try { $this->image->scaleImage($width, $height); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } $this->width = $width; @@ -41,7 +43,7 @@ public function resizeFit($width, $height, $background=false) {// try { $this->image->scaleImage($width, $height, true); $size = $this->image->getImageGeometry(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } @@ -56,7 +58,7 @@ public function resizeFit($width, $height, $background=false) {// $x = -round(($width - $size['width']) / 2); $y = -round(($height - $size['height']) / 2); $this->image->extentImage($width, $height, $x, $y); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } $this->width = $width; @@ -106,7 +108,7 @@ public function resizeCrop($width, $height, $offset=false) { try { $this->image->scaleImage($w, $h); $this->image->cropImage($width, $height, -$x, -$y); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } @@ -117,9 +119,9 @@ public function resizeCrop($width, $height, $offset=false) { public function rotate($angle, $background="#000000") { try { - $this->image->rotateImage(new ImagickPixel($background), $angle); + $this->image->rotateImage(new \ImagickPixel($background), $angle); $size = $this->image->getImageGeometry(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } $this->width = $size['width']; @@ -130,7 +132,7 @@ public function rotate($angle, $background="#000000") { public function flipHorizontal() { try { $this->image->flopImage(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } return true; @@ -139,7 +141,7 @@ public function flipHorizontal() { public function flipVertical() { try { $this->image->flipImage(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } return true; @@ -147,9 +149,9 @@ public function flipVertical() { public function watermark($file, $left=false, $top=false) { try { - $wm = new Imagick($file); + $wm = new \Imagick($file); $size = $wm->getImageGeometry(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } @@ -171,8 +173,8 @@ public function watermark($file, $left=false, $top=false) { return false; try { - $this->image->compositeImage($wm, Imagick::COMPOSITE_DEFAULT, $x, $y); - } catch (Exception $e) { + $this->image->compositeImage($wm, \Imagick::COMPOSITE_DEFAULT, $x, $y); + } catch (\Exception $e) { return false; } return true; @@ -183,10 +185,10 @@ public function watermark($file, $left=false, $top=false) { protected function getBlankImage($width, $height) { try { - $img = new Imagick(); + $img = new \Imagick(); $img->newImage($width, $height, "none"); $img->setImageCompressionQuality(100); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } return $img; @@ -197,18 +199,18 @@ protected function getImage($image, &$width, &$height) { if (is_object($image) && ($image instanceof image_imagick)) { try { $image->image->setImageCompressionQuality(100); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } $width = $image->width; $height = $image->height; return $image->image; - } elseif (is_object($image) && ($image instanceof Imagick)) { + } elseif (is_object($image) && ($image instanceof \Imagick)) { try { $image->setImageCompressionQuality(100); $size = $image->getImageGeometry(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } $width = $size['width']; @@ -217,10 +219,10 @@ protected function getImage($image, &$width, &$height) { } elseif (is_string($image)) { try { - $image = new Imagick($image); + $image = new \Imagick($image); $image->setImageCompressionQuality(100); $size = $image->getImageGeometry(); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } $width = $size['width']; @@ -235,13 +237,13 @@ protected function getImage($image, &$width, &$height) { // PSEUDO-ABSTRACT STATIC METHODS static function available() { - return class_exists("Imagick"); + return class_exists("\\Imagick"); } static function checkImage($file) { try { - $img = new Imagic($file); - } catch (Exception $e) { + $img = new \Imagick($file); + } catch (\Exception $e) { return false; } return true; @@ -254,7 +256,7 @@ public function output($type="jpeg", array $options=array()) { $type = strtolower($type); try { $this->image->setImageFormat($type); - } catch (Exception $e) { + } catch (\Exception $e) { return false; } $method = "optimize_$type"; @@ -272,7 +274,7 @@ public function output($type="jpeg", array $options=array()) { $file = $options['file'] . ".$type"; try { $this->image->writeImage($file); - } catch (Exception $e) { + } catch (\Exception $e) { @unlink($file); return false; } @@ -292,14 +294,12 @@ public function output($type="jpeg", array $options=array()) { 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->setImageCompression(\Imagick::COMPRESSION_JPEG); $this->image->setImageCompressionQuality($quality); - } catch (Exception $e) { + } 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 deleted file mode 100644 index 34e159a..0000000 --- a/lib/class_input.php +++ /dev/null @@ -1,86 +0,0 @@ - - * @copyright 2010-2014 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 index 124304f..64b446e 100644 --- a/lib/class_zipFolder.php +++ b/lib/class_zipFolder.php @@ -5,28 +5,30 @@ * * @desc Directory to ZIP file archivator * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + class zipFolder { protected $zip; protected $root; protected $ignored; function __construct($file, $folder, $ignored=null) { - $this->zip = new ZipArchive(); + $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"); + if ($this->zip->open($file, \ZipArchive::CREATE) !== TRUE) + throw new \Exception("cannot open <$file>\n"); $folder = rtrim($folder, '/'); @@ -43,7 +45,7 @@ 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); + $dir = new \DirectoryIterator($full_path); foreach ($dir as $file) if (!$file->isDot()) { $filename = $file->getFilename(); @@ -56,5 +58,3 @@ function zip($folder, $parent=null) { } } } - -?> \ No newline at end of file diff --git a/lib/helper_dir.php b/lib/helper_dir.php index a0a8689..a197a27 100644 --- a/lib/helper_dir.php +++ b/lib/helper_dir.php @@ -4,20 +4,22 @@ * * @desc Directory helper class * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + 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 */ +/** 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); @@ -33,16 +35,16 @@ static function isWritable($dir) { 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 */ +/** 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(); @@ -81,11 +83,11 @@ static function prune($dir, $firstFailExit=true, array $failed=null) { 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 */ +/** 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) { @@ -117,31 +119,26 @@ static function content($dir, array $options=null) { $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 == ".."))) || + if (($file == '.') || ($file == '..') || !preg_match($options['pattern'], $file) ) continue; + $fullpath = "$dir/$file"; + $type = filetype($fullpath); + + // If file is a symlink, get the true type of its destination + if ($options['followLinks'] && ($type == "link")) + $type = filetype(realpath($fullpath)); + if (($options['types'] === "all") || ($type === $options['types']) || - ((is_array($options['types'])) && in_array($type, $options['types'])) + (is_array($options['types']) && in_array($type, $options['types'])) ) - $files[] = $options['addPath'] ? "$dir/$file" : $file; + $files[] = $options['addPath'] ? $fullpath : $file; } closedir($dh); - usort($files, array("dir", "fileSort")); + usort($files, array(__NAMESPACE__ . "\\dir", "fileSort")); return $files; } @@ -157,5 +154,3 @@ static function fileSort($a, $b) { return ($a < $b) ? -1 : 1; } } - -?> \ No newline at end of file diff --git a/lib/helper_file.php b/lib/helper_file.php index 3dceb95..5c3c34f 100644 --- a/lib/helper_file.php +++ b/lib/helper_file.php @@ -4,14 +4,16 @@ * * @desc File helper class * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + class file { static $MIME = array( @@ -52,6 +54,7 @@ class file { 'movie' => 'video/x-sgi-movie', 'mp2' => 'audio/mpeg', 'mp3' => 'audio/mpeg', + 'mp4' => 'video/mpeg', 'mpe' => 'video/mpeg', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', @@ -100,10 +103,10 @@ class file { '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 */ +/** Checks if the given file is really writable. The standard PHP function + * is_writable() does not work properly on Windows servers. + * @param string $filename + * @return bool */ static function isWritable($filename) { $filename = path::normalize($filename); @@ -113,32 +116,30 @@ static function isWritable($filename) { return true; } - /** Get the extension from filename - * @param string $file - * @param bool $toLower - * @return string */ +/** Get the extension from filename + * @param string $filename + * @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 */ +/** 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); + $finfo = new \finfo(FILEINFO_MIME, $magic); if ($finfo) { $mime = $finfo->file($filename); $mime = substr($mime, 0, strrpos($mime, ";")); @@ -149,26 +150,26 @@ static function getMimeType($filename, $magic=null) { 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 */ +/** 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}"; @@ -197,6 +198,17 @@ static function getInexistantFilename($filename, $dir=null, $tpl=null) { : basename($file)); } -} +/** Normalize given filename. Accented characters becomes non-accented and + * removes any other special characters. Usable for non-unicode filesystems + * @param $filename + * @return string */ + + static function normalizeFilename($filename) { + $string = htmlentities($filename, ENT_QUOTES, 'UTF-8'); + if (strpos($string, '&') !== false) + $filename = html_entity_decode(preg_replace('~&([a-z]{1,2})(?:acute|cedil|circ|grave|lig|orn|ring|slash|tilde|uml);~i', '$1', $string), ENT_QUOTES, 'UTF-8'); + $filename = trim(preg_replace('~[^0-9a-z\.\- ]~i', "_", $filename)); + return $filename; + } -?> \ No newline at end of file +} diff --git a/lib/helper_httpCache.php b/lib/helper_httpCache.php index 9e51488..24e022a 100644 --- a/lib/helper_httpCache.php +++ b/lib/helper_httpCache.php @@ -4,26 +4,28 @@ * * @desc HTTP cache helper class * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + 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 */ +/** 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); @@ -39,13 +41,13 @@ static function file($file, $type=null, $expire=null, array $headers=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 */ +/** 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); @@ -62,11 +64,12 @@ static function content($content, $mtime, $type=null, $expire=null, array $heade 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 */ +/** 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 + * @param mixed $sendHeaders */ static function checkMTime($mtime, $sendHeaders=null) { header("Last-Modified: " . gmdate("D, d M Y H:i:s", $mtime) . " GMT"); @@ -87,12 +90,9 @@ static function checkMTime($mtime, $sendHeaders=null) { 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 index aeb87f6..e2e085a 100644 --- a/lib/helper_path.php +++ b/lib/helper_path.php @@ -4,20 +4,22 @@ * * @desc Path helper class * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + 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 */ +/** 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; @@ -27,7 +29,7 @@ static function rel2abs_url($path) { return false; $dir = self::normalize($dir); - $doc_root = self::normalize($_SERVER['DOCUMENT_ROOT']); + $doc_root = self::normalize(realpath($_SERVER['DOCUMENT_ROOT'])); if (substr($dir, 0, strlen($doc_root)) != $doc_root) return false; @@ -39,10 +41,10 @@ static function rel2abs_url($path) { return $return; } - /** Resolve full filesystem path of given URL. Returns FALSE if the URL - * cannot be resolved - * @param string $url - * @return string */ +/** 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); @@ -60,7 +62,7 @@ static function url2fullPath($url) { } if (isset($_SERVER['DOCUMENT_ROOT'])) { - return self::normalize($_SERVER['DOCUMENT_ROOT'] . "/$url"); + return self::normalize(realpath($_SERVER['DOCUMENT_ROOT']) . "/$url"); } else { if ($uri === false) return false; @@ -84,17 +86,19 @@ static function url2fullPath($url) { } } - /** 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 */ +/** Normalize the given path. On Windows servers backslash will be replaced + * with slash. Removes unnecessary double 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) { + + // Backslash to slash convert if (strtoupper(substr(PHP_OS, 0, 3)) == "WIN") { - $path = preg_replace('/([^\\\])\\\([^\\\])/', "$1/$2", $path); + $path = preg_replace('/([^\\\])\\\+([^\\\])/s', "$1/$2", $path); if (substr($path, -1) == "\\") $path = substr($path, 0, -1); if (substr($path, 0, 1) == "\\") $path = "/" . substr($path, 1); } @@ -114,9 +118,9 @@ static function normalize($path) { return $path; } - /** Encode URL Path - * @param string $path - * @return string */ +/** Encode URL Path + * @param string $path + * @return string */ static function urlPathEncode($path) { $path = self::normalize($path); @@ -127,9 +131,9 @@ static function urlPathEncode($path) { return $encoded; } - /** Decode URL Path - * @param string $path - * @return string */ +/** Decode URL Path + * @param string $path + * @return string */ static function urlPathDecode($path) { $path = self::normalize($path); @@ -139,6 +143,5 @@ static function urlPathDecode($path) { $decoded = substr($decoded, 0, -1); return $decoded; } -} -?> \ No newline at end of file +} diff --git a/lib/helper_phpGet.php b/lib/helper_phpGet.php new file mode 100644 index 0000000..3b6c83b --- /dev/null +++ b/lib/helper_phpGet.php @@ -0,0 +1,158 @@ + + * @copyright 2010-2014 KCFinder Project + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 + * @link http://kcfinder.sunhater.com + */ + +namespace kcfinder; + +class phpGet { + + static public $methods = array('curl', 'fopen', 'http', 'socket'); + static public $urlExpr = '/^([a-z]+):\/\/((([\p{L}\d\-]+\.)+[\p{L}]{1,4})(\:(\d{1,6}))?(\/.*)*)?$/u'; + static public $socketExpr = '/^[A-Z]+\/\d+(\.\d+)\s+\d+\s+OK\s*([a-zA-Z0-9\-]+\:\s*[^\n]*\n)*\s*([a-f0-9]+\r?\n)?(.*)$/s'; + + static public function get($url, $file=null, $method=null) { + if ($file === true) + $file = basename($url); + if ($file !== null) { + if (is_dir($file)) + $file = rtrim($file, '/') . '/' . basename($url); + $exists = file_exists($file); + if (!@touch($file)) + return false; + if (!$exists) + @unlink($file); + } + + if (in_array($method, self::$methods, true)) { + $check = "check_$method"; + $get = "get_$method"; + if (self::$check()) + $content = self::$get($url); + else + return false; + } else { + + foreach (self::$methods as $m) { + $check = "check_$m"; + $get = "get_$m"; + if (self::$check()) { + $content = self::$get($url); + if ((($method !== true) && (strtolower($method) != "all")) || + ($content !== false) + ) + break; + } + } + if (!isset($content)) + return false; + } + + return ($file !== null) + ? @file_put_contents($file, $content) + : $content; + } + + static public function get_fopen($url) { + return @file_get_contents($url); + } + + static public function get_curl($url) { + return ( + (false !== ( $curl = @curl_init($url) )) && + ( @ob_start() || (@curl_close($curl) && false)) && + ( @curl_exec($curl) || (@curl_close($curl) && false)) && + ((false !== ( $content = @ob_get_clean() )) || (@curl_close($curl) && false)) && + ( @curl_close($curl) || true) + ) + ? $content + : false; + } + + static public function get_http($url) { + return ( + (false !== ($content = @http_get($url))) && + ( + ( + preg_match(self::$socketExpr, $content, $match) && + false !== ($content = $match[4]) + ) || true + ) + ) + ? $content + : false; + } + + static public function get_socket($url) { + if (!preg_match(self::$urlExpr, $url, $match)) + return false; + + $protocol = $match[1]; + $host = $match[3]; + $port = strlen($match[6]) ? $match[6] : 80; + $path = strlen($match[7]) ? $match[7] : "/"; + + $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 !== ( $content = @socket_read($socket, 2048) )) + ) { + do { + $piece = @socket_read($socket, 2048); + $content .= $piece; + } while ($piece); + + $content = preg_match(self::$socketExpr, $content, $match) + ? $match[4] : false; + } + + if (isset($socket) && is_resource($socket)) + @socket_close($socket); + else + return false; + + return isset($content) ? $content : false; + } + + static private function check_fopen() { + return + ini_get('allow_url_fopen') && + function_exists('file_get_contents'); + } + + static private function check_curl() { + return + function_exists('curl_init') && + function_exists('curl_exec') && + function_exists('curl_close') && + function_exists('ob_start') && + function_exists('ob_get_clean'); + } + + static private function check_http() { + return function_exists('http_get'); + } + + static private function check_socket() { + return + function_exists('socket_create') && + function_exists('socket_connect') && + function_exists('socket_write') && + function_exists('socket_read') && + function_exists('socket_close'); + } +} diff --git a/lib/helper_text.php b/lib/helper_text.php index e9cbb83..d750e5e 100644 --- a/lib/helper_text.php +++ b/lib/helper_text.php @@ -4,27 +4,29 @@ * * @desc Text processing helper class * @package KCFinder - * @version 2.52 + * @version 3.12 * @author Pavel Tzonkov * @copyright 2010-2014 KCFinder Project - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 + * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ +namespace kcfinder; + class text { - /** Replace repeated white spaces to single space - * @param string $string - * @return string */ +/** 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 */ +/** Normalize the string for HTML attribute value + * @param string $string + * @return string */ static function htmlValue($string) { return @@ -35,9 +37,9 @@ static function htmlValue($string) { $string)))); } - /** Normalize the string for JavaScript string value - * @param string $string - * @return string */ +/** Normalize the string for JavaScript string value + * @param string $string + * @return string */ static function jsValue($string) { return @@ -48,32 +50,4 @@ static function jsValue($string) { $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/01.ui.css b/themes/dark/01.ui.css new file mode 100644 index 0000000..ca54ed5 --- /dev/null +++ b/themes/dark/01.ui.css @@ -0,0 +1,1499 @@ +/* + +This CSS code is generated from http://ui.sunhater.com +(c)2014 Pavel Tzonkov, sunhater.com. All rights reserved. + +*/ +/*** jQueryUI */ +/** Base */ + +.ui-helper-hidden { + display: none; +} +.ui-helper-hidden-accessible { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} +.ui-helper-reset { + margin: 0; + padding: 0; + border: 0; + outline: 0; + line-height: 1.3; + text-decoration: none; + font-size: 100%; + list-style: none; +} +.ui-helper-clearfix:before, +.ui-helper-clearfix:after { + content: ""; + display: table; + border-collapse: collapse; +} +.ui-helper-clearfix:after { + clear: both; +} +.ui-helper-clearfix { + min-height: 0; /* support: IE7 */ +} +.ui-helper-zfix { + width: 100%; + height: 100%; + top: 0; + left: 0; + position: absolute; + opacity: 0; + filter:alpha(opacity=0); +} + +.ui-front { + z-index: 100; +} + +.ui-widget .ui-widget, +.ui-widget input, +.ui-widget select, +.ui-widget textarea, +.ui-widget button { + font-size: 1em; +} +.ui-widget-content { + border: 1px solid #888; + background: #000; + color: #aaa; +} +.ui-widget-content a { + color: #aaa; +} +.ui-widget-header { + border: 1px solid #4685b3; + color: #fff; + font-weight: bold; + background: #184977; + background: -webkit-linear-gradient(top, #184977, #4685b3); + background: -moz-linear-gradient(top, #184977, #4685b3); + background: -ms-linear-gradient(top, #184977, #4685b3); + background: -o-linear-gradient(top, #184977, #4685b3); + background: linear-gradient(to bottom, #184977, #4685b3); +} +.ui-widget-header a { + color: #fff; +} + +/* Interaction states +----------------------------------*/ + +.ui-state-default, +.ui-widget-content .ui-state-default, +.ui-widget-header .ui-state-default, +.ui-widget.ui-state-disabled { + transition: .2s; + border: 1px solid #555; + background: #333; + background: -webkit-linear-gradient(top, #555, #111); + background: -moz-linear-gradient(top, #555, #111); + background: -ms-linear-gradient(top, #555, #111); + background: -o-linear-gradient(top, #555, #111); + background: linear-gradient(to bottom, #555, #111); + font-weight: bold; + color: #aaa; +} + +.ui-state-hover, +.ui-widget-content .ui-state-hover, +.ui-widget-header .ui-state-hover, +.ui-state-focus, +.ui-widget-content .ui-state-focus, +.ui-widget-header .ui-state-focus { + transition: .2s; + background: -webkit-linear-gradient(top, #111, #555); + background: -moz-linear-gradient(top, #111, #555); + background: -ms-linear-gradient(top, #111, #555); + background: -o-linear-gradient(top, #111, #555); + background: linear-gradient(to bottom, #111, #555); +} + +.ui-state-active, +.ui-widget-content .ui-state-active, +.ui-widget-header .ui-state-active, +.ui-menu .ui-state-focus { + transition: .2s; + border: 1px solid #184977; + background: #4685b3; + background: -webkit-linear-gradient(top, #184977, #4685b3); + background: -moz-linear-gradient(top, #184977, #4685b3); + background: -ms-linear-gradient(top, #184977, #4685b3); + background: -o-linear-gradient(top, #184977, #4685b3); + background: linear-gradient(to bottom, #184977, #4685b3); + font-weight: bold; + color: #fff; +} + +.ui-state-default a, +.ui-state-default a:link, +.ui-state-default a:visited, +.ui-state-hover a, +.ui-state-hover a:hover, +.ui-state-hover a:link, +.ui-state-hover a:visited, +.ui-state-active a, +.ui-state-active a:link, +.ui-state-active a:visited { + transition: .2s; + color: #fff; + text-decoration: none; +} + +.ui-menu .ui-state-active { + transition: .2s; + border-color: #6b6b6b; + background: #6b6b6b; + background: -webkit-linear-gradient(top, #6b6b6b, #ababab); + background: -moz-linear-gradient(top, #6b6b6b, #ababab); + background: -ms-linear-gradient(top, #6b6b6b, #ababab); + background: -o-linear-gradient(top, #6b6b6b, #ababab); + background: linear-gradient(to bottom, #6b6b6b, #ababab); +} + +/* Interaction Cues +----------------------------------*/ + +.ui-state-highlight, +.ui-widget-content .ui-state-highlight, +.ui-widget-header .ui-state-highlight { + border: 1px solid #d5bc2c; + box-shadow: inset 0 0 5px #d5bc2c; + background: #fff6bf; + color: #aaa; +} +.ui-state-error, +.ui-widget-content .ui-state-error, +.ui-widget-header .ui-state-error { + border: 1px solid #cf7f7f; + box-shadow: inset 0 0 5px #cf7f7f; + background: #fac4c4; + color: #aaa; +} +.ui-state-error a, +.ui-widget-content .ui-state-error a, +.ui-widget-header .ui-state-error a, +.ui-state-highlight a, +.ui-widget-content .ui-state-highlight a, +.ui-widget-header .ui-state-highlight a, +.ui-state-error-text, +.ui-widget-content .ui-state-error-text, +.ui-widget-header .ui-state-error-text { + color: #aaa; +} +.ui-priority-primary, +.ui-widget-content .ui-priority-primary, +.ui-widget-header .ui-priority-primary { + font-weight: bold; +} +.ui-priority-secondary, +.ui-widget-content .ui-priority-secondary, +.ui-widget-header .ui-priority-secondary { + opacity: .5; + filter:alpha(opacity=50); + font-weight: normal; +} +.ui-state-disabled, +.ui-widget-content .ui-state-disabled, +.ui-widget-header .ui-state-disabled { + opacity: .50; + filter:alpha(opacity=50); + background-image: none; +} +.ui-state-disabled .ui-icon { + filter:alpha(opacity=50); /* For IE8 - See #6059 */ +} + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { + cursor: default !important; +} + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +.ui-resizable { + position: relative; +} +.ui-resizable-handle { + position: absolute; + font-size: 0.1px; + display: block; +} +.ui-resizable-disabled .ui-resizable-handle, +.ui-resizable-autohide .ui-resizable-handle { + display: none; +} +.ui-resizable-n { + cursor: n-resize; + height: 7px; + width: 100%; + top: -5px; + left: 0; +} +.ui-resizable-s { + cursor: s-resize; + height: 7px; + width: 100%; + bottom: -5px; + left: 0; +} +.ui-resizable-e { + cursor: e-resize; + width: 7px; + right: -5px; + top: 0; + height: 100%; +} +.ui-resizable-w { + cursor: w-resize; + width: 7px; + left: -5px; + top: 0; + height: 100%; +} +.ui-resizable-se { + cursor: se-resize; + width: 12px; + height: 12px; + right: 1px; + bottom: 1px; +} +.ui-resizable-sw { + cursor: sw-resize; + width: 9px; + height: 9px; + left: -5px; + bottom: -5px; +} +.ui-resizable-nw { + cursor: nw-resize; + width: 9px; + height: 9px; + left: -5px; + top: -5px; +} +.ui-resizable-ne { + cursor: ne-resize; + width: 9px; + height: 9px; + right: -5px; + top: -5px; +} +.ui-selectable-helper { + position: absolute; + z-index: 100; + border: 1px dotted black; +} + + +/** Accordion */ + +.ui-accordion .ui-accordion-header { + display: block; + cursor: pointer; + position: relative; + margin-top: 2px; + padding: 6px; + min-height: 0; /* support: IE7 */ +} +.ui-accordion .ui-accordion-icons, +.ui-accordion .ui-accordion-icons .ui-accordion-icons { + padding-left: 24px; +} +.ui-accordion .ui-accordion-noicons { + padding-left: 5px; +} + +.ui-accordion .ui-accordion-header .ui-accordion-header-icon { + position: absolute; + left: 5px; + top: 50%; + margin-top: -8px; +} +.ui-accordion .ui-accordion-content { + padding: 1em; + border-top: 0; + overflow: auto; +} + + +/** Autocomplete */ + +.ui-autocomplete { + position: absolute; + top: 0; + left: 0; + cursor: pointer; +} + + +/** Button */ + +.ui-button { + display: inline-block; + position: relative; + padding: 0; + line-height: normal; + cursor: pointer; + vertical-align: middle; + text-align: center; + overflow: visible; /* removes extra width in IE */ +} +.ui-button, +.ui-button:link, +.ui-button:visited, +.ui-button:hover, +.ui-button:active { + text-decoration: none; +} +/* to make room for the icon, a width needs to be set here */ +.ui-button-icon-only { + width: 36px; +} +.ui-button-icons-only { + width: 50px; +} +/* button text element */ +.ui-button .ui-button-text { + display: block; + line-height: normal; +} +.ui-button-text-only .ui-button-text { + padding: 6px 10px; +} +.ui-button-icon-only .ui-button-text, +.ui-button-icons-only .ui-button-text { + padding: 6px; + text-indent: -9999999px; +} +.ui-button-text-icon-primary .ui-button-text, +.ui-button-text-icons .ui-button-text { + padding: 6px 10px 6px 28px; +} +.ui-button-text-icon-secondary .ui-button-text, +.ui-button-text-icons .ui-button-text { + padding: 6px 28px 6px 10px; +} +.ui-button-text-icons .ui-button-text { + padding-left: 28px; + padding-right: 28px; +} +/* no icon support for input elements, provide padding by default */ +input.ui-button { + padding: 6px 10px; +} + +/* button icon element(s) */ +.ui-button-icon-only .ui-icon, +.ui-button-text-icon-primary .ui-icon, +.ui-button-text-icon-secondary .ui-icon, +.ui-button-text-icons .ui-icon, +.ui-button-icons-only .ui-icon { + position: absolute; + top: 50%; + margin-top: -8px; +} +.ui-button-icon-only .ui-icon { + left: 50%; + margin-left: -8px; +} +.ui-button-text-icon-primary .ui-button-icon-primary, +.ui-button-text-icons .ui-button-icon-primary, +.ui-button-icons-only .ui-button-icon-primary { + left: 7px; +} +.ui-button-text-icon-secondary .ui-button-icon-secondary, +.ui-button-text-icons .ui-button-icon-secondary, +.ui-button-icons-only .ui-button-icon-secondary { + right: 7px; +} +/* workarounds */ +/* reset extra padding in Firefox, see h5bp.com/l */ +input.ui-button::-moz-focus-inner, +button.ui-button::-moz-focus-inner { + border: 0; + padding: 0; +} + + +/** Button set */ + +.ui-buttonset { + margin:0; + overflow:auto; +} +.ui-buttonset .ui-button { + margin: 0; + float:left; +} + + +/** Date picker */ + +.ui-datepicker { + width: 19em; + display: none; + padding: 10px; +} +.ui-datepicker .ui-datepicker-header { + position: relative; + padding: 2px 0; +} +.ui-datepicker .ui-datepicker-prev, +.ui-datepicker .ui-datepicker-next { + position: absolute; + top: 4px; + width: 20px; + height: 20px; +} +.ui-datepicker .ui-datepicker-prev-hover, +.ui-datepicker .ui-datepicker-next-hover { + top: 3px; +} +.ui-datepicker .ui-datepicker-prev { + left: 4px; +} +.ui-datepicker .ui-datepicker-next { + right: 4px; +} +.ui-datepicker .ui-datepicker-prev-hover { + left: 3px; +} +.ui-datepicker .ui-datepicker-next-hover { + right: 3px; +} +.ui-datepicker .ui-datepicker-prev span, +.ui-datepicker .ui-datepicker-next span { + display: block; + position: absolute; + left: 50%; + margin-left: -8px; + top: 50%; + margin-top: -8px; +} +.ui-datepicker .ui-datepicker-title { + margin: 0 10px; + padding: 4px 0; + text-align: center; +} +.ui-datepicker .ui-datepicker-title select { + font-size: 1em; + margin:-2px 2px; + padding:0; + outline:0; +} +.ui-datepicker table { + width: 100%; + border-collapse: collapse; + margin: 0; + font-size: 1em; +} +.ui-datepicker th { + padding: 3px; + text-align: center; + font-weight: bold; + border: 0; +} +.ui-datepicker td { + border: 0; + padding: 1px; +} +.ui-datepicker td span, +.ui-datepicker td a { + display: block; + padding: 2px 3px; + text-align: right; + text-decoration: none; +} +.ui-datepicker .ui-datepicker-buttonpane { + background-image: none; + margin: 10px -11px -11px -11px; + padding: 10px; + border: 1px solid #184977; + background: #e4f5ff; + overflow: auto; +} +.ui-datepicker .ui-datepicker-buttonpane button { + float: right; + cursor: pointer; + width: auto; + overflow: visible; + margin: 0; + padding: 6px 10px; + font-weight: bold; + opacity: 1; + filter: alpha(opacity=100); +} +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { + float: left; +} + +/* with multiple calendars */ +.ui-datepicker.ui-datepicker-multi { + width: auto; + padding:10px; +} +.ui-datepicker-multi .ui-datepicker-group { + float: left; +} +.ui-datepicker-multi .ui-datepicker-group .ui-datepicker-header { + margin:0; +} +.ui-datepicker-multi .ui-datepicker-group.ui-datepicker-group-last { + margin-right:0; +} + +.ui-datepicker-multi .ui-datepicker-group table { + width: 95%; + margin: 0 auto .4em; +} +.ui-datepicker-multi-2 .ui-datepicker-group { + width: 50%; +} +.ui-datepicker-multi-3 .ui-datepicker-group { + width: 33.3%; +} +.ui-datepicker-multi-4 .ui-datepicker-group { + width: 25%; +} + +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header, +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { + border-left-width: 0; +} +.ui-datepicker-multi .ui-datepicker-buttonpane { + clear: left; +} +.ui-datepicker-row-break { + clear: both; + font-size: 0; + width: 100px; +} +th.ui-datepicker-week-col { + color: #215b82; +} +td.ui-datepicker-week-col { + text-align:right; + padding-right:7px; + color: #215b82; +} +td.ui-datepicker-other-month a.ui-state-default { + font-weight: bold; +} +th.ui-datepicker-week-end { + color: #f44; +} + +/* RTL support */ +.ui-datepicker-rtl { + direction: rtl; +} +.ui-datepicker-rtl .ui-datepicker-prev { + right: 2px; + left: auto; +} +.ui-datepicker-rtl .ui-datepicker-next { + left: 2px; + right: auto; +} +.ui-datepicker-rtl .ui-datepicker-prev:hover { + right: 1px; + left: auto; +} +.ui-datepicker-rtl .ui-datepicker-next:hover { + left: 1px; + right: auto; +} +.ui-datepicker-rtl .ui-datepicker-buttonpane { + clear: right; +} +.ui-datepicker-rtl .ui-datepicker-buttonpane button { + float: left; +} +.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current, +.ui-datepicker-rtl .ui-datepicker-group { + float: right; +} +.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header, +.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { + border-right-width: 0; + border-left-width: 1px; +} + + +/** Dialog */ + +.ui-dialog { + position: absolute; + top: 0; + left: 0; + padding: 4px; + outline: 0; + box-shadow: 0 0 10px #000; +} +.ui-dialog .ui-dialog-titlebar { + padding: 5px 10px; + position: relative; +} +.ui-dialog .ui-dialog-title { + float: left; + margin: 0; + padding: 1px 0; + white-space: nowrap; + width: 90%; + overflow: hidden; + text-overflow: ellipsis; +} +.ui-dialog .ui-dialog-titlebar-close { + position: absolute; + right: .3em; + top: 50%; + width: 21px; + margin: -10px 0 0 0; + padding: 1px; + height: 20px; +} +.ui-dialog .ui-dialog-content { + position: relative; + border: 0; + padding: 1em; + margin: 0 -4px; + background: none; + overflow: auto; +} +.ui-dialog .ui-dialog-buttonpane { + text-align: left; + border-width: 1px 0 0 0; + background-image: none; + padding: 10px; +} +.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { + float: right; +} +.ui-dialog .ui-dialog-buttonpane button { + margin: 0 0 0 5px; + cursor: pointer; +} +.ui-dialog .ui-resizable-se { + width: 12px; + height: 12px; + right: -5px; + bottom: -5px; + background-position: 16px 16px; +} +.ui-draggable .ui-dialog-titlebar { + cursor: move; +} + + +/** Menu */ + +.ui-menu { + list-style: none; + padding: 0; + margin: 0; + display: block; + outline: 0; +} +.ui-menu .ui-menu { + margin-top: -3px; + position: absolute; +} +.ui-menu .ui-menu-item { + margin: 0; + padding: 0; + width: 100%; + /* support: IE10, see #8844 */ + list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); +} +.ui-menu .ui-menu-divider { + margin: 1px 10px 1px 10px; + height: 0; + font-size: 0; + line-height: 0; + border-width: 1px 0 0 0; + border-color: #777; +} +.ui-menu .ui-menu-item a { + text-decoration: none; + display: block; + padding: 5px 10px; + line-height: 1.5; + min-height: 0; /* support: IE7 */ + font-weight: normal; + border-radius:0; +} +.ui-menu .ui-menu-item a.ui-state-focus, +.ui-menu .ui-menu-item a.ui-state-active { + font-weight: normal; + margin: -1px; + transition: none; +} +.ui-menu .ui-state-disabled { + font-weight: normal; + line-height: 1.5; +} +.ui-menu .ui-state-disabled a { + cursor: default; +} +.ui-menu.ui-corner-all.sh-menu { + border-radius: 4px; +} +.ui-menu.ui-corner-all, .ui-menu.sh-menu.ui-autocomplete.ui-corner-all { + border-radius: 0; +} + +/* icon support */ +.ui-menu-icons { + position: relative; +} +.ui-menu-icons .ui-menu-item a { + position: relative; + padding-left: 2em; +} + +/* left-aligned */ +.ui-menu .ui-icon { + position: absolute; + top: .2em; + left: .2em; +} + +/* right-aligned */ +.ui-menu .ui-menu-icon { + position: static; + float: right; +} + + +/** Progress bar */ + +.ui-progressbar { + height: 2.1em; + text-align: left; + overflow: hidden; +} +.ui-progressbar .ui-progressbar-value { + margin: -1px; + height: 100%; +} +.ui-progressbar .ui-progressbar-overlay { + height: 100%; + filter: alpha(opacity=25); + opacity: 0.25; +} +.ui-progressbar-indeterminate .ui-progressbar-value { + background-image: none; +} + + +/** Slider */ + +.ui-slider { + position: relative; + text-align: left; + margin: 0 13px; + border-radius:15px; +} +.ui-slider .ui-slider-handle { + position: absolute; + z-index: 2; + width: 18px; + height: 18px; + border-radius: 9px; + cursor: default; + box-shadow: 0 0 3px #aaa, inset 0 0 7px #fff, inset 0 0 3px #fff; +} +.ui-slider .ui-slider-handle.ui-state-active { + box-shadow: 0 0 3px #4685b3, inset 0 0 7px #fff, inset 0 0 3px #fff; +} +.ui-slider .ui-slider-range { + position: absolute; + z-index: 1; + display: block; + border: 0; + background-position: 0 0; +} + +/* For IE8 - See #6727 */ +.ui-slider.ui-state-disabled .ui-slider-handle, +.ui-slider.ui-state-disabled .ui-slider-range { + filter: inherit; +} + +.ui-slider-horizontal { + height: 10px; +} +.ui-slider-horizontal .ui-slider-handle { + top: -5px; + margin-left: -9px; +} +.ui-slider-horizontal .ui-slider-range { + top: 0; + height: 100%; +} +.ui-slider-horizontal .ui-slider-range-min { + left: 0; +} +.ui-slider-horizontal .ui-slider-range-max { + right: 0; +} + +.ui-slider-vertical { + width: 10px; + height: 150px; +} +.ui-slider-vertical .ui-slider-handle { + left: -5px; + margin-left: 0; + margin-bottom: -9px; +} +.ui-slider-vertical .ui-slider-range { + left: -1px; + width: 100%; +} +.ui-slider-vertical .ui-slider-range-min { + bottom: 0; +} +.ui-slider-vertical .ui-slider-range-max { + top: 0; +} + + +/** Spinner */ + +.ui-spinner.ui-widget { + position: relative; + display: inline-block; + overflow: hidden; + padding: 0; + vertical-align: middle; + background: #fff; + background: -webkit-linear-gradient(top, #f0f0f0, #fff); + background: -moz-linear-gradient(top, #f0f0f0, #fff); + background: -ms-linear-gradient(top, #f0f0f0, #fff); + background: -o-linear-gradient(top, #f0f0f0, #fff); + background: linear-gradient(to bottom, #f0f0f0, #fff); +} +.ui-spinner-input { + border: none; + color: inherit; + padding: 0; + margin: 6px 24px 6px 10px; + vertical-align: middle; + outline: 0; + background: transparent; +} +.ui-spinner-input { + color: #aaa} +.ui-spinner-input:focus { + color: #000; +} +.ui-spinner-button { + width: 16px; + height: 50%; + font-size: .5em; + padding: 0; + margin: 0; + text-align: center; + position: absolute; + cursor: default; + display: block; + overflow: hidden; + right: 0; +} +/* more specificity required here to overide default borders */ +.ui-spinner a.ui-spinner-button { + border-top: none; + border-bottom: none; + border-right: none; +} +/* vertical centre icon */ +.ui-spinner .ui-icon { + position: absolute; + margin-top: -8px; + top: 50%; + left: 0; +} +.ui-spinner-up { + top: 0; +} +.ui-spinner-down { + bottom: 0; +} + +/* TR overrides */ +.ui-spinner .ui-icon-triangle-1-s { + /* need to fix icons sprite */ + background-position: -65px -16px; +} + + +/** Tabs */ + +.ui-tabs { + position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ +} +.ui-tabs .ui-tabs-nav { + margin: 0; + padding: 3px 3px 0 3px; +} +.ui-tabs .ui-tabs-nav li { + list-style: none; + float: left; + position: relative; + top: 0; + margin: 1px 3px 0 0; + border-bottom-width: 0; + padding: 0; + white-space: nowrap; +} +.ui-tabs .ui-tabs-nav li a { + float: left; + padding: 6px 10px; + text-decoration: none; +} +.ui-tabs .ui-tabs-nav li.ui-tabs-active { + margin-bottom: -1px; + padding-bottom: 1px; +} +.ui-tabs .ui-tabs-nav li.ui-tabs-active a, +.ui-tabs .ui-tabs-nav li.ui-state-disabled a, +.ui-tabs .ui-tabs-nav li.ui-tabs-loading a { + cursor: text; +} +.ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ +.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { + cursor: pointer; +} +.ui-tabs .ui-tabs-panel { + display: block; + border-width: 0; + padding: 1em; + background: none; +} + +/** Tooltip */ + +body .ui-tooltip { + padding: 6px 10px; + position: absolute; + z-index: 9999; + max-width: 300px; + color: #808080; + border-color: #a5a5a5; + box-shadow: inset 0 0 4px #a5a5a5, 0 0 4px #a5a5a5; + background: -webkit-linear-gradient(top, #ddd, #fff); + background: -moz-linear-gradient(top, #ddd, #fff); + background: -ms-linear-gradient(top, #ddd, #fff); + background: -o-linear-gradient(top, #ddd, #fff); + background: linear-gradient(to bottom, #ddd, #fff); +} + +/** Icons */ + +/* states and images */ +.ui-icon { + display: block; + text-indent: -99999px; + overflow: hidden; + background-repeat: no-repeat; + width: 16px; + height: 16px; +} + +.ui-icon, +.ui-button.ui-state-active .ui-icon, +.ui-dialog .ui-dialog-titlebar-close .ui-icon { + background-image: url(img/ui-icons_white.png); +} + +.ui-button .ui-icon { + background-image: url(img/ui-icons_grey.png); +} + +/* positioning */ +.ui-icon-blank { background-position: 16px 16px; } +.ui-icon-carat-1-n { background-position: 0 0; } +.ui-icon-carat-1-ne { background-position: -16px 0; } +.ui-icon-carat-1-e { background-position: -32px 0; } +.ui-icon-carat-1-se { background-position: -48px 0; } +.ui-icon-carat-1-s { background-position: -64px 0; } +.ui-icon-carat-1-sw { background-position: -80px 0; } +.ui-icon-carat-1-w { background-position: -96px 0; } +.ui-icon-carat-1-nw { background-position: -112px 0; } +.ui-icon-carat-2-n-s { background-position: -128px 0; } +.ui-icon-carat-2-e-w { background-position: -144px 0; } +.ui-icon-triangle-1-n { background-position: 0 -16px; } +.ui-icon-triangle-1-ne { background-position: -16px -16px; } +.ui-icon-triangle-1-e { background-position: -32px -16px; } +.ui-icon-triangle-1-se { background-position: -48px -16px; } +.ui-icon-triangle-1-s { background-position: -64px -16px; } +.ui-icon-triangle-1-sw { background-position: -80px -16px; } +.ui-icon-triangle-1-w { background-position: -96px -16px; } +.ui-icon-triangle-1-nw { background-position: -112px -16px; } +.ui-icon-triangle-2-n-s { background-position: -128px -16px; } +.ui-icon-triangle-2-e-w { background-position: -144px -16px; } +.ui-icon-arrow-1-n { background-position: 0 -32px; } +.ui-icon-arrow-1-ne { background-position: -16px -32px; } +.ui-icon-arrow-1-e { background-position: -32px -32px; } +.ui-icon-arrow-1-se { background-position: -48px -32px; } +.ui-icon-arrow-1-s { background-position: -64px -32px; } +.ui-icon-arrow-1-sw { background-position: -80px -32px; } +.ui-icon-arrow-1-w { background-position: -96px -32px; } +.ui-icon-arrow-1-nw { background-position: -112px -32px; } +.ui-icon-arrow-2-n-s { background-position: -128px -32px; } +.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } +.ui-icon-arrow-2-e-w { background-position: -160px -32px; } +.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } +.ui-icon-arrowstop-1-n { background-position: -192px -32px; } +.ui-icon-arrowstop-1-e { background-position: -208px -32px; } +.ui-icon-arrowstop-1-s { background-position: -224px -32px; } +.ui-icon-arrowstop-1-w { background-position: -240px -32px; } +.ui-icon-arrowthick-1-n { background-position: 0 -48px; } +.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } +.ui-icon-arrowthick-1-e { background-position: -32px -48px; } +.ui-icon-arrowthick-1-se { background-position: -48px -48px; } +.ui-icon-arrowthick-1-s { background-position: -64px -48px; } +.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } +.ui-icon-arrowthick-1-w { background-position: -96px -48px; } +.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } +.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } +.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } +.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } +.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } +.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } +.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } +.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } +.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } +.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } +.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } +.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } +.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } +.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } +.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } +.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } +.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } +.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } +.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } +.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } +.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } +.ui-icon-arrow-4 { background-position: 0 -80px; } +.ui-icon-arrow-4-diag { background-position: -16px -80px; } +.ui-icon-extlink { background-position: -32px -80px; } +.ui-icon-newwin { background-position: -48px -80px; } +.ui-icon-refresh { background-position: -64px -80px; } +.ui-icon-shuffle { background-position: -80px -80px; } +.ui-icon-transfer-e-w { background-position: -96px -80px; } +.ui-icon-transferthick-e-w { background-position: -112px -80px; } +.ui-icon-folder-collapsed { background-position: 0 -96px; } +.ui-icon-folder-open { background-position: -16px -96px; } +.ui-icon-document { background-position: -32px -96px; } +.ui-icon-document-b { background-position: -48px -96px; } +.ui-icon-note { background-position: -64px -96px; } +.ui-icon-mail-closed { background-position: -80px -96px; } +.ui-icon-mail-open { background-position: -96px -96px; } +.ui-icon-suitcase { background-position: -112px -96px; } +.ui-icon-comment { background-position: -128px -96px; } +.ui-icon-person { background-position: -144px -96px; } +.ui-icon-print { background-position: -160px -96px; } +.ui-icon-trash { background-position: -176px -96px; } +.ui-icon-locked { background-position: -192px -96px; } +.ui-icon-unlocked { background-position: -208px -96px; } +.ui-icon-bookmark { background-position: -224px -96px; } +.ui-icon-tag { background-position: -240px -96px; } +.ui-icon-home { background-position: 0 -112px; } +.ui-icon-flag { background-position: -16px -112px; } +.ui-icon-calendar { background-position: -32px -112px; } +.ui-icon-cart { background-position: -48px -112px; } +.ui-icon-pencil { background-position: -64px -112px; } +.ui-icon-clock { background-position: -80px -112px; } +.ui-icon-disk { background-position: -96px -112px; } +.ui-icon-calculator { background-position: -112px -112px; } +.ui-icon-zoomin { background-position: -128px -112px; } +.ui-icon-zoomout { background-position: -144px -112px; } +.ui-icon-search { background-position: -160px -112px; } +.ui-icon-wrench { background-position: -176px -112px; } +.ui-icon-gear { background-position: -192px -112px; } +.ui-icon-heart { background-position: -208px -112px; } +.ui-icon-star { background-position: -224px -112px; } +.ui-icon-link { background-position: -240px -112px; } +.ui-icon-cancel { background-position: 0 -128px; } +.ui-icon-plus { background-position: -16px -128px; } +.ui-icon-plusthick { background-position: -32px -128px; } +.ui-icon-minus { background-position: -48px -128px; } +.ui-icon-minusthick { background-position: -64px -128px; } +.ui-icon-close { background-position: -80px -128px; } +.ui-icon-closethick { background-position: -96px -128px; } +.ui-icon-key { background-position: -112px -128px; } +.ui-icon-lightbulb { background-position: -128px -128px; } +.ui-icon-scissors { background-position: -144px -128px; } +.ui-icon-clipboard { background-position: -160px -128px; } +.ui-icon-copy { background-position: -176px -128px; } +.ui-icon-contact { background-position: -192px -128px; } +.ui-icon-image { background-position: -208px -128px; } +.ui-icon-video { background-position: -224px -128px; } +.ui-icon-script { background-position: -240px -128px; } +.ui-icon-alert { background-position: 0 -144px; } +.ui-icon-info { background-position: -16px -144px; } +.ui-icon-notice { background-position: -32px -144px; } +.ui-icon-help { background-position: -48px -144px; } +.ui-icon-check { background-position: -64px -144px; } +.ui-icon-bullet { background-position: -80px -144px; } +.ui-icon-radio-on { background-position: -96px -144px; } +.ui-icon-radio-off { background-position: -112px -144px; } +.ui-icon-pin-w { background-position: -128px -144px; } +.ui-icon-pin-s { background-position: -144px -144px; } +.ui-icon-play { background-position: 0 -160px; } +.ui-icon-pause { background-position: -16px -160px; } +.ui-icon-seek-next { background-position: -32px -160px; } +.ui-icon-seek-prev { background-position: -48px -160px; } +.ui-icon-seek-end { background-position: -64px -160px; } +.ui-icon-seek-start { background-position: -80px -160px; } +/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ +.ui-icon-seek-first { background-position: -80px -160px; } +.ui-icon-stop { background-position: -96px -160px; } +.ui-icon-eject { background-position: -112px -160px; } +.ui-icon-volume-off { background-position: -128px -160px; } +.ui-icon-volume-on { background-position: -144px -160px; } +.ui-icon-power { background-position: 0 -176px; } +.ui-icon-signal-diag { background-position: -16px -176px; } +.ui-icon-signal { background-position: -32px -176px; } +.ui-icon-battery-0 { background-position: -48px -176px; } +.ui-icon-battery-1 { background-position: -64px -176px; } +.ui-icon-battery-2 { background-position: -80px -176px; } +.ui-icon-battery-3 { background-position: -96px -176px; } +.ui-icon-circle-plus { background-position: 0 -192px; } +.ui-icon-circle-minus { background-position: -16px -192px; } +.ui-icon-circle-close { background-position: -32px -192px; } +.ui-icon-circle-triangle-e { background-position: -48px -192px; } +.ui-icon-circle-triangle-s { background-position: -64px -192px; } +.ui-icon-circle-triangle-w { background-position: -80px -192px; } +.ui-icon-circle-triangle-n { background-position: -96px -192px; } +.ui-icon-circle-arrow-e { background-position: -112px -192px; } +.ui-icon-circle-arrow-s { background-position: -128px -192px; } +.ui-icon-circle-arrow-w { background-position: -144px -192px; } +.ui-icon-circle-arrow-n { background-position: -160px -192px; } +.ui-icon-circle-zoomin { background-position: -176px -192px; } +.ui-icon-circle-zoomout { background-position: -192px -192px; } +.ui-icon-circle-check { background-position: -208px -192px; } +.ui-icon-circlesmall-plus { background-position: 0 -208px; } +.ui-icon-circlesmall-minus { background-position: -16px -208px; } +.ui-icon-circlesmall-close { background-position: -32px -208px; } +.ui-icon-squaresmall-plus { background-position: -48px -208px; } +.ui-icon-squaresmall-minus { background-position: -64px -208px; } +.ui-icon-squaresmall-close { background-position: -80px -208px; } +.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } +.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } +.ui-icon-grip-solid-vertical { background-position: -32px -224px; } +.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } +.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } +.ui-icon-grip-diagonal-se { background-position: -80px -224px; } + + +/** Misc */ + +/* Corner radius */ +.ui-corner-all, +.ui-corner-top, +.ui-corner-left, +.ui-corner-tl, +.ui-menu .ui-menu-item.ui-menu-item-first a { + border-top-left-radius: 4px; +} +.ui-corner-all, +.ui-corner-top, +.ui-corner-right, +.ui-corner-tr, +.ui-menu .ui-menu-item.ui-menu-item-first a { + border-top-right-radius:4px; +} +.ui-corner-all, +.ui-corner-bottom, +.ui-corner-left, +.ui-corner-bl, +.ui-menu .ui-menu-item.ui-menu-item-last a, +.ui-dialog-buttonpane, +.ui-datepicker-multi .ui-datepicker-group-first .ui-datepicker-header, +.ui-datepicker .ui-datepicker-buttonpane { + border-bottom-left-radius: 4px; +} +.ui-corner-all, +.ui-corner-bottom, +.ui-corner-right, +.ui-corner-br, +.ui-menu .ui-menu-item.ui-menu-item-last a, +.ui-dialog-buttonpane, +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header, +.ui-datepicker .ui-datepicker-buttonpane { + border-bottom-right-radius: 4px; +} + +/* Overlays */ +.ui-widget-overlay { + background: rgba(255,255,255,.5); +} +.ui-widget-shadow { + margin: -7px 0 0 -7px; + padding: 7px; + background: rgba(0,0,0,.3); + border-radius: 8px; +} + +/* SunHater Fixes */ + +.ui-accordion-content-active, .ui-tabs, .ui-slider-range, .ui-datepicker, .ui-dialog { + border-color: #4d637c; +} + +.ui-slider .ui-slider-range { + border: 1px solid #4685b3; + top: -1px +} + +.ui-progressbar { + overflow:visible; +} +.ui-progressbar-value { + border: 1px solid #4685b3; + margin-top: -1px +} + +.ui-button { + box-shadow: inset 0 0 3px #555, inset 0 0 6px #555, 0 0 3px #000, 0 0 2px #000; +} +.ui-button.ui-state-active { + box-shadow: inset 0 0 3px #88b9da, 0 0 3px #000, 0 0 2px #000; +} +.ui-widget-header, +.ui-menu-item .ui-state-focus { + box-shadow: inset 0 0 3px #88b9da; +} + +.ui-state-default, +.ui-state-focus, +.ui-state-active, +.ui-widget-header, +fieldset.sh-uniform label, +fieldset.sh-uniform legend { + text-shadow: + 1px 0 rgba(0,0,0,.2), + -1px 0 rgba(0,0,0,.2), + 0 -1px rgba(0,0,0,.2), + 0 1px rgba(0,0,0,.2), + 1px 1px rgba(0,0,0,.2), + -1px -1px rgba(0,0,0,.2), + 1px -1px rgba(0,0,0,.2), + -1px 1px rgba(0,0,0,.2); +} + +.ui-tabs .ui-state-active, +.ui-datepicker .ui-state-highlight { + text-shadow: none; +} +.ui-datepicker .ui-state-highlight { + color: #215b82; + border-color: #4685b3; + box-shadow: inset 0 0 4px #4685b3; + background: #fff; + background: -webkit-linear-gradient(top, #dfeef8, #fff); + background: -moz-linear-gradient(top, #dfeef8, #fff); + background: -ms-linear-gradient(top, #dfeef8, #fff); + background: -o-linear-gradient(top, #dfeef8, #fff); + background: linear-gradient(to bottom, #dfeef8, #fff); +} + +.ui-progressbar, .ui-slider, .ui-menu { + box-shadow: inset 0 0 4px #666, 0 0 3px #000, 0 0 6px #000; + background: #000; + background: -webkit-linear-gradient(top, #111, #444); + background: -moz-linear-gradient(top, #111, #444); + background: -ms-linear-gradient(top, #111, #444); + background: -o-linear-gradient(top, #111, #444); + background: linear-gradient(to bottom, #111, #444); +} + +.ui-slider, .ui-spinner, .ui-progressbar, .ui-menu { + border-color: #555; +} + +.ui-datepicker-calendar .ui-state-default { + border-radius: 3px; +} + +.ui-tabs .ui-tabs-nav { + margin: -1px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; + padding-left:3px; +} + +.ui-tabs-active.ui-state-active { + background: #fff; + background: -webkit-linear-gradient(top, #ccc, #ddd, #eee, #fff, #fff, #fff); + background: -moz-linear-gradient(top, #ccc, #ddd, #eee, #fff, #fff, #fff); + background: -ms-linear-gradient(top, #ccc, #ddd, #eee, #fff, #fff, #fff); + background: -o-linear-gradient(top, #ccc, #ddd, #eee, #fff, #fff, #fff); + background: linear-gradient(to bottom, #ccc, #ddd, #eee, #fff, #fff, #fff); + box-shadow: inset 0 0 5px #fff, inset 0 0 5px #fff, inset 0 0 5px #fff; +} +.ui-tabs-active.ui-state-active a { + color: #215b82; +} +.ui-state-default, .ui-state-default a { + outline: 0; +} +.ui-datepicker-header, +.ui-dialog-titlebar { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; + margin: -5px -5px 0 -5px; +} +.ui-datepicker-header { + margin: -11px -11px 5px -11px; +} + +.ui-datepicker-header a:hover { + cursor: pointer; +} + +.ui-dialog-titlebar-close.ui-state-default { + border-color: transparent; + background: none; + box-shadow: none; +} + +.ui-dialog-titlebar-close.ui-state-default.ui-state-hover { + transition: .2s; + border: 1px solid #555; + background: #333; + background: -webkit-linear-gradient(top, #555, #111); + background: -moz-linear-gradient(top, #555, #111); + background: -ms-linear-gradient(top, #555, #111); + background: -o-linear-gradient(top, #555, #111); + background: linear-gradient(to bottom, #555, #111); + box-shadow: inset 0 0 3px #555, inset 0 0 6px #555, 0 0 3px #000, 0 0 2px #000; +} + +.ui-dialog-buttonpane { + background: #202D3E; + box-shadow: inset 0 0 3px #000, inset 0 0 2px #000; + border-top-color: #4d637c; + margin: 0 -4px -4px -4px; + padding: 0; +} + +/*** shCheckset */ +/* +.shcs { + margin: 0; +} +.shcs > div { + border: 1px solid; + border-top: 0; + padding: 5px; + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; +} +.shcs > input, .shcs > input:focus, .shcs > input:hover { + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + margin:0; +} +.shcs label { + padding: 2px 5px 2px 2px; + border: 1px solid transparent; + border-radius: 4px; + color: #aaa; +} +.shcs > div, .shcs label:hover { + border-color: #aaa; + box-shadow: inset 0 0 4px #aaa; + background: #fff; + background: -webkit-linear-gradient(top, #f0f0f0, #fff); + background: -moz-linear-gradient(top, #f0f0f0, #fff); + background: -ms-linear-gradient(top, #f0f0f0, #fff); + background: -o-linear-gradient(top, #f0f0f0, #fff); + background: linear-gradient(to bottom, #f0f0f0, #fff); +} +.shcs label:hover { + color: #aaa; + cursor: pointer; +} +.shcs > div.focus, .shcs label.checked { + border-color: #184977; + box-shadow: inset 0 0 4px #4685b3; + color: #000; + background: #fff; + background: -webkit-linear-gradient(top, #dfeef8, #fff); + background: -moz-linear-gradient(top, #dfeef8, #fff); + background: -ms-linear-gradient(top, #dfeef8, #fff); + background: -o-linear-gradient(top, #dfeef8, #fff); + background: linear-gradient(to bottom, #dfeef8, #fff); +} +.shcs label.checked div.checker { + border-color: #4685b3; + background: #4685b3; + background: -webkit-linear-gradient(top, #4685b3, #184977); + background: -moz-linear-gradient(top, #4685b3, #184977); + background: -ms-linear-gradient(top, #4685b3, #184977); + background: -o-linear-gradient(top, #4685b3, #184977); + background: linear-gradient(to bottom, #4685b3, #184977); +} +.shcs label.checked div.checker.hover { + border-color: #4685b3; + background: #184977; + background: -webkit-linear-gradient(top, #184977, #4685b3); + background: -moz-linear-gradient(top, #184977, #4685b3); + background: -ms-linear-gradient(top, #184977, #4685b3); + background: -o-linear-gradient(top, #184977, #4685b3); + background: linear-gradient(to bottom, #184977, #4685b3); +} + +.shcs div.checker.focus { + border-color: #aaa; + background: #aaa; + background: -webkit-linear-gradient(top, #ababab, #aaa); + background: -moz-linear-gradient(top, #ababab, #aaa); + background: -ms-linear-gradient(top, #ababab, #aaa); + background: -o-linear-gradient(top, #ababab, #aaa); + background: linear-gradient(to bottom, #ababab, #aaa); + box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff; +} + +.shcs div.checker.focus.hover { + border-color: #aaa; + background: #aaa; + background: -webkit-linear-gradient(top, #aaa, #ababab); + background: -moz-linear-gradient(top, #aaa, #ababab); + background: -ms-linear-gradient(top, #aaa, #ababab); + background: -o-linear-gradient(top, #aaa, #ababab); + background: linear-gradient(to bottom, #aaa, #ababab); +} + +.shcs label > span { + position:relative; + margin-left:5px; + top:1px; +} +*/ \ No newline at end of file diff --git a/themes/dark/02.transForm.css b/themes/dark/02.transForm.css new file mode 100644 index 0000000..e07f37e --- /dev/null +++ b/themes/dark/02.transForm.css @@ -0,0 +1,539 @@ +/* COMMON - BEGIN */ + +/* FONT SETTINGS */ +.tf-select, +.tf-input, +.tf-textarea, +.tf-multiple, +.tf-label, +.tf-fieldset legend, +.tf-file, +.tf-file input, +.tf-radio, +.tf-checkbox, +.tf-button, +.tf-input.tf-color, +.tf-input.tf-range { + font-size: 13px; + cursor: pointer; +} + +/* FIELD - NORMAL */ +.tf-select .tf-selected, +.tf-input, +.tf-multiple, +.tf-textarea, +.tf-file .tf-info, +.tf-radio, +.tf-checkbox { + background: #000; + background: -webkit-linear-gradient(top, #111, #333); + background: -moz-linear-gradient(top, #111, #333); + background: -ms-linear-gradient(top, #111, #333); + background: -o-linear-gradient(top, #111, #333); + background: linear-gradient(to bottom, #111, #333); + box-shadow: inset 0 0 4px #555; + border: 1px solid #666; + color: #aaa; + border-radius: 4px; + color: #6b6b6b; + padding: 6px 10px; +} + +/* FIELD - FOCUSED */ +.tf-select.tf-focused .tf-selected, +.tf-select .tf-menu, +.tf-multiple.tf-focused, +.tf-input:focus, .tf-textarea:focus, +.tf-file.tf-focused .tf-info, +.tf-radio.tf-focused, +.tf-checkbox.tf-focused { + background: #202D3E; + background: -webkit-linear-gradient(top, #131427, #273446); + background: -moz-linear-gradient(top, #131427, #273446); + background: -ms-linear-gradient(top, #131427, #273446); + background: -o-linear-gradient(top, #131427, #273446); + background: linear-gradient(to bottom, #131427, #273446); + box-shadow: inset 0 0 4px #4d637c; + border: 1px solid #4d637c; + color: #fff; +} + +/* BUTTON - NORMAL */ +.tf-button, +.tf-file .tf-button { + background: #333; + background: -webkit-linear-gradient(top, #555, #111); + background: -moz-linear-gradient(top, #555, #111); + background: -ms-linear-gradient(top, #555, #111); + background: -o-linear-gradient(top, #555, #111); + background: linear-gradient(to bottom, #555, #111); + box-shadow: inset 0 0 7px #555, inset 0 0 3px #555, 0 0 3px #000, 0 0 6px #000; + border: 1px solid #555; + border-radius: 4px; + padding: 6px 10px; +} +.tf-file .tf-button, +.tf-select .tf-button { + box-shadow: inset 0 0 7px #555, inset 0 0 3px #555; +} + +/* BUTTON - FOCUSED */ +.tf-file.tf-focused .tf-button, +.tf-button.tf-focused, +.tf-select.tf-focused .tf-button { + background: #4685b3; + background: -webkit-linear-gradient(top, #4685b3, #184977); + background: -moz-linear-gradient(top, #4685b3, #184977); + background: -ms-linear-gradient(top, #4685b3, #184977); + background: -o-linear-gradient(top, #4685b3, #184977); + background: linear-gradient(to bottom, #4685b3, #184977); + box-shadow: inset 0 0 7px #4e9ed4, inset 0 0 3px #4e9ed4, 0 0 3px #000, 0 0 6px #000; + border-color: #4685b3; + color: #fff; +} +.tf-file.tf-focused .tf-button, +.tf-select.tf-focused .tf-button { + box-shadow: inset 0 0 7px #4e9ed4, inset 0 0 3px #4e9ed4; +} + +/* BLACK OUTLINE, WHITE TEXT */ +.tf-select .tf-menu .tf-hover, +.tf-multiple .tf-hover, +.tf-multiple .tf-selected, +.tf-button { + color: #fff; + text-shadow: + 1px 0 rgba(0,0,0,.2), + -1px 0 rgba(0,0,0,.2), + 0 -1px rgba(0,0,0,.2), + 0 1px rgba(0,0,0,.2), + 1px 1px rgba(0,0,0,.2), + -1px -1px rgba(0,0,0,.2), + 1px -1px rgba(0,0,0,.2), + -1px 1px rgba(0,0,0,.2); +} + +/* COMMON - END */ + +/* SELECT BOX - BEGIN */ + +.tf-select .tf-selected { + border-radius: 4px 0 0 4px; +} +.tf-select .tf-button { + border-left: none; + border-radius: 0 4px 4px 0; +} + +.tf-select .tf-button span { + display: block; + background: url('img/ui-icons_grey.png') -64px -15px; + width: 16px; + margin-left: 4px; + margin-right: 5px; +} +.tf-select.tf-focused .tf-button span { + background-image: url('img/ui-icons_white.png'); +} +.tf-select .tf-menu { + border-radius: 0 0 4px 4px; +} +.tf-select .tf-menu div, +.tf-multiple div { + border: 1px solid transparent; + border-left-width: 0; + border-right-width: 0; + padding: 6px 10px; + margin-top: -1px; +} +.tf-select .tf-menu .tf-hover, +.tf-multiple.tf-focused .tf-hover, +.tf-multiple.tf-focused .tf-selected, +.tf-select.tf-opened.tf-focused .tf-button { + border-color: #4685b3; + background: #4685b3; + background: -webkit-linear-gradient(top, #184977, #4685b3); + background: -moz-linear-gradient(top, #184977, #4685b3); + background: -ms-linear-gradient(top, #184977, #4685b3); + background: -o-linear-gradient(top, #184977, #4685b3); + background: linear-gradient(to bottom, #184977, #4685b3); + box-shadow: inset 0 0 7px #4e9ed4, inset 0 0 3px #4e9ed4; +} +.tf-select.tf-opened .tf-button { + background: #111; + background: -webkit-linear-gradient(top, #555, #111); + background: -moz-linear-gradient(top, #555, #111); + background: -ms-linear-gradient(top, #555, #111); + background: -o-linear-gradient(top, #555, #111); + background: linear-gradient(to bottom, #555, #111); + box-shadow: inset 0 0 7px #555, inset 0 0 3px #555; +} +.tf-select .tf-menu .tf-group-last, +.tf-select .tf-menu div.tf-last { + border-bottom-width: 0; +} +.tf-select .tf-menu ul { + overflow: hidden; +} +.tf-select .tf-menu li.tf-last { + margin-bottom: -1px; +} +.tf-select .tf-menu .tf-last { + border-radius: 0 0 4px 4px; +} +.tf-select.tf-opened .tf-selected { + border-radius: 4px 0 0 0; +} +.tf-select.tf-opened .tf-button { + border-radius: 0 4px 0 0; +} +.tf-select .tf-menu li, +.tf-multiple.tf-focused li { + border-bottom: 1px solid #54b0e0; + border-top: 1px solid #54b0e0; + margin: -1px 0; +} +.tf-select .tf-menu li > span, +.tf-multiple li > span, +.tf-multiple.tf-focused li > span { + display: block; + padding: 6px 10px; + text-align: center; + font-weight: bold; + color: #6b6b6b; + background: #a7deff; + border-bottom: 1px solid #54b0e0; + cursor: default; + white-space: nowrap; +} + +/* SELECT BOX - END */ + +/* MULTIPLE SELECT BOX - BEGIN */ + +.tf-multiple { + padding: 0; +} +.tf-multiple li { + border: 1px solid #54b0e0; + border-right: none; + border-left: none; + margin: -1px 0; +} +.tf-multiple li > span { + color: #70a5d1; + border-color: #54b0e0; + background: #c1ddf5; +} +.tf-multiple .tf-hover, +.tf-multiple .tf-selected, +.tf-multiple.tf-focused .tf-hover { + background: #4685b3; + background: -webkit-linear-gradient(top, #184977, #4685b3); + background: -moz-linear-gradient(top, #184977, #4685b3); + background: -ms-linear-gradient(top, #184977, #4685b3); + background: -o-linear-gradient(top, #184977, #4685b3); + background: linear-gradient(to bottom, #184977, #4685b3); + box-shadow: inset 0 0 7px #4e9ed4, inset 0 0 3px #4e9ed4; + border-color: #4685b3; +} +.tf-multiple .tf-hover, +.tf-multiple .tf-selected { + border: 1px solid #54b0e0; + border-left: none; + border-right: none; +} +.tf-multiple div.tf-first { + border-top: none; + border-radius: 4px 4px 0 0; + margin-top: 0; +} +.tf-multiple div.tf-last { + border-bottom: none; + border-radius: 0 0 4px 4px; +} +.tf-multiple .tf-group-first { + border-top: none; + margin-top: 0; +} +.tf-multiple li.tf-last, +.tf-multiple .tf-group-last { + border-bottom: none; +} + +/* MULTIPLE SELECT BOX - END */ + +/* FILE UPLOAD BOX - BEGIN */ + +.tf-file { + width: 200px; + padding: 0; + overflow: auto; +} +.tf-file .tf-info, .tf-file.tf-focused .tf-info { + padding: 6px 10px; + border-radius: 4px 0 0 4px; + border-right: none; +} +.tf-file .tf-button { + border-radius: 0 4px 4px 0; + color: transparent; + text-shadow: none; + padding: 6px 8px; +} +.tf-file .tf-button span { + margin: 0 0 0 -4px; + width: 16px; + height: 16px; + display: block; + overflow: hidden; + background: url('img/ui-icons_grey.png') -16px -96px; +} +.tf-file .tf-button:after { + content: "\00a0"; +} +.tf-file input::-webkit-file-upload-button { + cursor: pointer; +} + +/* FILE UPLOAD BOX - END */ + +/* RADIO BUTTON - BEGIN */ + +.tf-radio { + width: 15px; + height: 15px; + padding: 0; + border-radius: 8px; +} +.tf-radio input { + width: 17px; + height: 17px; + margin: -1px 0 0 -1px; + cursor: pointer; +} +.tf-radio span { + width: 15px; + height: 15px; + display: block; + float: right; +} +.tf-radio.tf-checked span { + background: url('img/ui-icons_grey.png') -80px -145px; +} +.tf-radio.tf-checked.tf-focused span { + background-image: url('img/ui-icons_white.png'); +} + +/* RADIO BUTTON - END */ + +/* CHECK BOX - BEGIN */ + +.tf-checkbox { + padding: 0; + width: 15px; + height: 15px; + border-radius: 3px; +} +.tf-checkbox input { + width: 17px; + height: 17px; + margin: -1px 0 0 -1px; + cursor: pointer; +} +.tf-checkbox.tf-checked span { + width: 15px; + height: 15px; + display: block; + background: url('img/ui-icons_grey.png') -64px -145px; + float: right; +} +.tf-checkbox.tf-focused.tf-checked span { + background-image: url('img/ui-icons_white.png'); +} + + +/* CHECK BX - END */ + +/* BUTTON */ +.tf-button { + overflow: hidden; + padding: 0; +} +.tf-button span { + margin: 3px 7px; + float: right; +} +.tf-button input, +.tf-button button { + cursor: pointer; +} + +/* TEXT & TEXTAREA - BEGIN */ + +.tf-input, .tf-textarea { + outline: none; + cursor: text; + margin: 0; +} +/*.tf-input.tf-readOnly, +.tf-textarea.tf-readOnly, +.tf-input.tf-readOnly:focus, +.tf-textarea.tf-readOnly:focus { + background: #e4e4e4; + background: -webkit-linear-gradient(top, #e4e4e4, #fff); + background: -moz-linear-gradient(top, #e4e4e4, #fff); + background: -ms-linear-gradient(top, #e4e4e4, #fff); + background: -o-linear-gradient(top, #e4e4e4, #fff); + background: linear-gradient(to bottom, #e4e4e4, #fff); + box-shadow: inset 0 0 2px #a2a2a2; + border: 1px solid #a2a2a2; + border-radius: 4px; + color: #888; + padding: 6px 10px; +}*/ + +/* PLACEHOLDER COLORS */ + +.tf-input::-webkit-input-placeholder, +.tf-textarea::-webkit-input-placeholder { + color: #aaa; +} +.tf-input:-moz-placeholder, +.tf-textarea:-moz-placeholder { + color: #aaa; +} +.tf-input::-moz-placeholder, +.tf-textarea::-moz-placeholder { + color: #aaa; +} +.tf-input:-ms-input-placeholder, +.tf-textarea:-ms-input-placeholder { + color: #aaa; +} +.tf-input:focus::-webkit-input-placeholder, +.tf-textarea:focus::-webkit-input-placeholder { + color: #184977; +} +.tf-input:focus:-moz-placeholder, +.tf-textarea:focus:-moz-placeholder { + color: #184977; +} +.tf-input:focus::-moz-placeholder, +.tf-textarea:focus::-moz-placeholder { + color: #184977; +} +.tf-input:focus:-ms-input-placeholder, +.tf-textarea:focus:-ms-input-placeholder { + color: #184977; +} + +/* READ-ONLY PLACEHOLDERS */ +/* +.tf-input.tf-readOnly::-webkit-input-placeholder, +.tf-textarea.tf-readOnly::-webkit-input-placeholder { + color: #d4d4d4; +} +.tf-input.tf-readOnly:-moz-placeholder, +.tf-textarea.tf-readOnly:-moz-placeholder { + color: #dedede; +} +.tf-input.tf-readOnly::-moz-placeholder, +.tf-textarea.tf-readOnly::-moz-placeholder { + color: #dedede; +} +.tf-input.tf-readOnly:-ms-input-placeholder, +.tf-textarea.tf-readOnly:-ms-input-placeholder { + color: #d4d4d4; +} +.tf-input.tf-readOnly:focus::-webkit-input-placeholder, +.tf-textarea.tf-readOnly:focus::-webkit-input-placeholder { + color: #d4d4d4; +} +.tf-input.tf-readOnly:focus:-moz-placeholder, +.tf-textarea.tf-readOnly:focus:-moz-placeholder { + color: #dedede; +} +.tf-input.tf-readOnly:focus::-moz-placeholder, +.tf-textarea.tf-readOnly:focus::-moz-placeholder { + color: #dedede; +} +.tf-input.tf-readOnly:focus:-ms-input-placeholder, +.tf-textarea.tf-readOnly:focus:-ms-input-placeholder { + color: #d4d4d4; +} +*/ +/* TEXT & TEXTAREA - END */ + +/* FIELD SET */ +.tf-fieldset { + color: #aaa; + border: 1px solid #425064; + border-radius: 4px; + background: #202d3e; + box-shadow: inset 0 0 3px #000, inset 0 0 6px #000, 0 0 3px #425064, 0 0 2px #425064; + margin: 0 10px 10px 0; + padding: 10px; +} +.tf-fieldset legend { + font-weight: bold; + color: #aaa; +} +.tf-label { + color: #aaa; +} +.tf-label.tf-focused { + color: #fff; +} + +/* MISC */ + +.tf-disabled { + opacity: .5; + filter: alpha(opacity=50); +} +.tf-disabled, +.tf-disabled input, +.tf-disabled button, +.tf-disabled * +*.tf-disabled { + cursor: default; +} +.tf-file.tf-disabled input::-webkit-file-upload-button { + cursor: pointer; +} +.tf-fieldset.tf-disabled, +.tf-form.tf-disabled { + opacity: 1; + filter: alpha(opacity=100); +} + +.tf-input.tf-color { + width: 30px; + padding: 0; + height: 24px; +} +.tf-input.tf-number { + text-align: right; +} +.tf-input.tf-range { + height: 9px; + margin: 8px 0 7px 0; +} +.tf-input.tf-search, +.tf-input.tf-search.tf-readOnly{ + border-radius: 11px; +} +.tf-input.tf-datetime, +.tf-input.tf-datetime-local, +.tf-input.tf-month, +.tf-input.tf-time, +.tf-input.tf-week, +.tf-input.tf-datetime:focus, +.tf-input.tf-datetime-local:focus, +.tf-input.tf-month:focus, +.tf-input.tf-time:focus, +.tf-input.tf-week:focus { + padding: 1px 5px; +} \ No newline at end of file diff --git a/themes/dark/03.misc.css b/themes/dark/03.misc.css new file mode 100644 index 0000000..a2a77b3 --- /dev/null +++ b/themes/dark/03.misc.css @@ -0,0 +1,446 @@ +* { + font-size: 13px; +} +body { + background: #000; + color: #aaa; +} +fieldset td { + white-space: nowrap; +} +#folders { + margin: 5px 5px 0 5px; +} +#files { + margin-right: 5px; +} + + +/* SHARED DECLARATIONS */ + +#toolbar a:hover, +#toolbar a.hover, +span.current, +span.regular:hover, +span.context, +a.drag > span.folder, +#clipboard div:hover, +div.file:hover, +#files div.selected, +#files div.selected:hover, +tr.selected > td, +tr.selected:hover > td, +#menu .list div a:hover, +#toolbar a.selected { + color: #fff; + text-shadow: + 1px 0 rgba(0,0,0,.2), + -1px 0 rgba(0,0,0,.2), + 0 -1px rgba(0,0,0,.2), + 0 1px rgba(0,0,0,.2), + 1px 1px rgba(0,0,0,.2), + -1px -1px rgba(0,0,0,.2), + 1px -1px rgba(0,0,0,.2), + -1px 1px rgba(0,0,0,.2); +} +#files div { + text-shadow: + 1px 0 rgba(0,0,0,.2), + -1px 0 rgba(0,0,0,.2), + 0 -1px rgba(0,0,0,.2), + 0 1px rgba(0,0,0,.2), + 1px 1px rgba(0,0,0,.2), + -1px -1px rgba(0,0,0,.2), + 1px -1px rgba(0,0,0,.2), + -1px 1px rgba(0,0,0,.2); +} + +#files, +#folders, +#toolbar a.selected { + color: #aaa; + border: 1px solid #425064; + border-radius: 4px; + background: #202d3e; + box-shadow: inset 0 0 3px #000, inset 0 0 6px #000, 0 0 3px #425064, 0 0 2px #425064; +} + +/* TOOLBAR */ +#toolbar { + padding: 5px 0; +} +#toolbar a { + color: #949494; + margin-right: 5px; + border: 1px solid transparent; + outline: none; + display: block; + float: left; + border-radius: 4px; + padding:0; +} +#toolbar a > span { + padding: 6px 10px 6px 26px; + diaplay: block; + float:left; + background: no-repeat 6px center; +} +#toolbar a:hover, +#toolbar a.hover { + color: #fff; + border-color: #184977; + background: #4685b3; + background: -webkit-linear-gradient(top, #4685b3, #184977); + background: -moz-linear-gradient(top, #4685b3, #184977); + background: -ms-linear-gradient(top, #4685b3, #184977); + background: -o-linear-gradient(top, #4685b3, #184977); + background: linear-gradient(to bottom, #4685b3, #184977); + box-shadow: inset 0 0 3px #88b9da; +} +#toolbar a[href="kcact:upload"] span { + background-image: url(img/icons/upload.png); +} +#toolbar a[href="kcact:refresh"] span { + background-image: url(img/icons/refresh.png); +} +#toolbar a[href="kcact:settings"] span { + background-image: url(img/icons/settings.png); +} +#toolbar a[href="kcact:about"] span { + background-image: url(img/icons/about.png); +} +#toolbar a[href="kcact:maximize"] span { + background-image: url(img/icons/maximize.png); +} + + +/* SETTINGS BAR */ + +#settings label { + cursor: pointer; +} +#settings fieldset { + margin-right:5px; + margin-bottom: 6px; + margin-top:-5px; + padding:6px; +} + + +/* FOLDERS */ + +div.folder { + padding-top: 2px; + margin-top: 5px; + white-space: nowrap; +} +div.folder a { + text-decoration: none; + cursor: default; + outline: none; + color: #aaa; +} +span.folder { + padding: 2px 3px 2px 23px; + outline: none; + background: no-repeat 3px center; + cursor: pointer; + border-radius: 3px; + border: 1px solid transparent; +} +span.brace { + width: 16px; + height: 16px; + outline: none; +} +span.current { + transition: .3s; + background-image: url(img/tree/folder.png); + background-color: #306999; + border-color: #306999; + box-shadow: inset 0 0 7px #8FD6EA, inset 0 0 3px #8FD6EA, 0 0 2px #000, 0 0 1px #000; +} +span.regular { + transition: .3s; + background-image: url(img/tree/folder.png); + background-color: transparent; +} +span.regular:hover, span.context, a.drag > span.folder, #clipboard div:hover { + transition: .3s; + background-color: #333; + border-color: #777; + box-shadow: inset 0 0 7px #777, inset 0 0 3px #777, 0 0 2px #000, 0 0 1px #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); +} + + +/* FILES */ + +div.file { + padding: 4px; + margin: 3px; + border: 1px solid transparent; + border-radius: 4px; +} +div.file:hover { + box-shadow: inset 0 0 7px #555, inset 0 0 3px #555, 0 0 3px #000, 0 0 6px #000; + background: #000; + background: -webkit-linear-gradient(top, #111, #555); + background: -moz-linear-gradient(top, #111, #555); + background: -ms-linear-gradient(top, #111, #555); + background: -o-linear-gradient(top, #111, #555); + background: linear-gradient(to bottom, #111, #555); + border-color: #555; +} +div.file .name { + margin-top: 4px; + font-weight: bold; + height: 16px; + overflow: hidden; + padding-bottom:2px; +} +div.file .time { + font-size: 10px; +} +div.file .size { + font-size: 10px; +} +#files div.selected, +#files div.selected:hover { + border-color: #4685b3; + background: #4685b3; + background: -webkit-linear-gradient(top, #4685b3, #184977); + background: -moz-linear-gradient(top, #4685b3, #184977); + background: -ms-linear-gradient(top, #4685b3, #184977); + background: -o-linear-gradient(top, #4685b3, #184977); + background: linear-gradient(to bottom, #4685b3, #184977); + box-shadow: inset 0 0 7px #4e9ed4, inset 0 0 3px #4e9ed4, 0 0 3px #000, 0 0 6px #000; +} +tr.file > td { + padding: 3px 4px; +} +tr.file:hover > td { + background-color: #000; + transition: none; +} +tr.selected > td, +tr.selected:hover > td { + transition: .3s; + background-color: #2d5277; +} +tr.file td.name { + background-position: 2px center; + padding-left: 22px; +} +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; +} + +/* FILE MENU */ + +#menu .ui-menu a span { + background: left center no-repeat; + padding-left: 20px; + white-space: nowrap; +} +#menu a[href="kcact:refresh"] span { + background-image: url(img/icons/refresh.png); +} +#menu a[href="kcact:mkdir"] span { + background-image: url(img/icons/folder-new.png); +} +#menu a[href="kcact:mvdir"] span, #menu a[href="kcact:mv"] span { + background-image: url(img/icons/rename.png); +} +#menu a[href="kcact:rmdir"] span, #menu a[href="kcact:rm"] span, #menu a[href="kcact:rmcbd"] span { + background-image: url(img/icons/delete.png); +} +#menu a[href="kcact:clpbrdadd"] span { + background-image: url(img/icons/clipboard-add.png); +} +#menu a[href="kcact:pick"] span, #menu a[href="kcact:pick_thumb"] span { + background-image: url(img/icons/select.png); +} +#menu a[href="kcact:download"] span { + background-image: url(img/icons/download.png); +} +#menu a[href="kcact:view"] span { + background-image: url(img/icons/view.png); +} +#menu a[href="kcact:cpcbd"] span { + background-image: url(img/icons/copy.png); +} +#menu a[href="kcact:mvcbd"] span { + background-image: url(img/icons/move.png); +} +#menu a[href="kcact:clrcbd"] span { + background-image: url(img/icons/clipboard-clear.png); +} + +/* CLIPBOARD */ + +#clipboard { + margin-left:-3px; + padding: 2px; +} +#clipboard div { + background: url(img/icons/clipboard.png) no-repeat center center; + border: 1px solid transparent; + padding: 2px; + cursor: pointer; + border-radius: 4px; +} +#clipboard.selected div, #clipboard.selected div:hover { + background-color: #306999; + border-color: #306999; + box-shadow: inset 0 0 7px #8FD6EA, inset 0 0 3px #8FD6EA; +} +#menu .list a, #menu .list a.ui-state-focus { + margin: -1px 0 0 -1px; + padding: 6px 10px; + border: 1px solid transparent; + background: none; + border-radius: 0; + text-shadow: none; + box-shadow: none; +} +#menu .list a.first, #menu .list a.first.ui-state-focus { + border-radius: 4px 4px 0 0; +} +#menu .list a:hover { + border-color: #4685b3; + background: #4685b3; + background: -webkit-linear-gradient(top, #184977, #4685b3); + background: -moz-linear-gradient(top, #184977, #4685b3); + background: -ms-linear-gradient(top, #184977, #4685b3); + background: -o-linear-gradient(top, #184977, #4685b3); + background: linear-gradient(to bottom, #184977, #4685b3); + box-shadow: inset 0 0 7px #4e9ed4, inset 0 0 3px #4e9ed4; +} +#menu .list { + overflow:hidden; + max-height: 1px; + margin-bottom: -1px; + padding-bottom:1px; +} +#menu li.div-files { + margin: 0 0 1px 0; +} + +/* ABOUT DIALOG */ + +.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; + outline: none; +} + +.about a { + text-decoration: none; + color: #3665b4; +} + +.about a:hover { + text-decoration: underline; +} +#checkver { + margin: 5px 0 10px 0; +} +#loading, #checkver > span.loading { + background: url(img/loading.gif); + border: 1px solid #425064; + box-shadow: inset 0 0 3px #000, inset 0 0 6px #000, 0 0 3px #425064, 0 0 2px #425064; + padding: 6px 10px; + border-radius: 4px; + color: #aaa; +} +#checkver a { + font-weight: normal; + padding: 3px 3px 3px 20px; + background: url(img/icons/download.png) no-repeat left center; +} + +/* IMAGE VIEWER */ + +.kcfImageViewer .ui-dialog-content { + background: #000; + cursor: pointer; +} +.kcfImageViewer .img { + background: url(img/bg_transparent.png); +} +.ui-dialog-titlebar.loading { + background: url(img/loading.gif); + box-shadow: inset 0 0 3px #000, inset 0 0 6px #000; + border-color: #425064; +} + +.ui-dialog-titlebar.loading .ui-dialog-title { + color: #aaa; + font-weight: normal; +} + +.ui-dialog-titlebar.loading .ui-dialog-titlebar-close .ui-button-icon-primary.ui-icon.ui-icon-closethick { + background-image: url(img/ui-icons_grey.png); +} + +/* MISC */ +#settings .tf-select { + margin: 3px 5px 6px 0; +} +#settings .tf-selected { + padding-top: 10px; + padding-bottom: 11px; +} +#settings .tf-select .tf-button { + padding-top: 7px; + padding-bottom: 8px; +} + +#loading { + margin-right: 5px; +} +#loadingDirs { + padding: 5px 0 1px 24px; +} +#files.drag { + background: #ddebf8; +} +#resizer { + background: #fff; +} + +div.selector#uniform-lang { + margin: 8px 6px 6px 0; +} + +/* FIX FIELDSET BORDER RADIUS BUG ON IE */ +body.msie fieldset, +body.trident.rv fieldset { + border-radius: 0; +} \ No newline at end of file diff --git a/themes/dark/README b/themes/dark/README new file mode 100644 index 0000000..3d745ac --- /dev/null +++ b/themes/dark/README @@ -0,0 +1,9 @@ +This folder contains files for designing default visual theme for KCFinder. +Some icons are taken from default KDE4 visual theme (http://www.kde.org) + +Theme Details: + +Version: 1.0 +Author: Pavel Tzonkov +Licenses: GPLv3 - http://opensource.org/licenses/GPL-3.0 + LGPLv3 - http://opensource.org/licenses/LGPL-3.0 diff --git a/themes/dark/about.txt b/themes/dark/about.txt deleted file mode 100644 index 8cda559..0000000 --- a/themes/dark/about.txt +++ /dev/null @@ -1,15 +0,0 @@ -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/css.php b/themes/dark/css.php new file mode 100644 index 0000000..247857b --- /dev/null +++ b/themes/dark/css.php @@ -0,0 +1,10 @@ +minify("cache/theme_$theme.css"); diff --git a/themes/dark/img/bg_transparent.png b/themes/dark/img/bg_transparent.png index 3200632..08a9d43 100644 Binary files a/themes/dark/img/bg_transparent.png and b/themes/dark/img/bg_transparent.png differ diff --git a/themes/dark/img/cross.png b/themes/dark/img/cross.png deleted file mode 100644 index 5cdf6ea..0000000 Binary files a/themes/dark/img/cross.png and /dev/null differ diff --git a/themes/oxygen/img/files/big/avi.png b/themes/dark/img/files/big/mp4.png similarity index 100% rename from themes/oxygen/img/files/big/avi.png rename to themes/dark/img/files/big/mp4.png diff --git a/themes/oxygen/img/files/big/psd.png b/themes/dark/img/files/big/psd.png similarity index 100% rename from themes/oxygen/img/files/big/psd.png rename to themes/dark/img/files/big/psd.png diff --git a/themes/oxygen/img/files/big/rar.png b/themes/dark/img/files/big/rar.png similarity index 100% rename from themes/oxygen/img/files/big/rar.png rename to themes/dark/img/files/big/rar.png diff --git a/themes/dark/img/files/big/sql.png b/themes/dark/img/files/big/sql.png new file mode 100644 index 0000000..754b3dc Binary files /dev/null and b/themes/dark/img/files/big/sql.png differ diff --git a/themes/dark/img/files/small/..png b/themes/dark/img/files/small/..png index 6b2545a..67f4c5f 100644 Binary files a/themes/dark/img/files/small/..png 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 index 8f07172..638dee6 100644 Binary files a/themes/dark/img/files/small/.image.png and b/themes/dark/img/files/small/.image.png differ diff --git a/themes/dark/img/files/small/bmp.png b/themes/dark/img/files/small/bmp.png index 8f07172..638dee6 100644 Binary files a/themes/dark/img/files/small/bmp.png and b/themes/dark/img/files/small/bmp.png differ diff --git a/themes/dark/img/files/small/gif.png b/themes/dark/img/files/small/gif.png index 8f07172..638dee6 100644 Binary files a/themes/dark/img/files/small/gif.png and b/themes/dark/img/files/small/gif.png differ diff --git a/themes/dark/img/files/small/jpeg.png b/themes/dark/img/files/small/jpeg.png index 8f07172..638dee6 100644 Binary files a/themes/dark/img/files/small/jpeg.png 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 index 8f07172..638dee6 100644 Binary files a/themes/dark/img/files/small/jpg.png and b/themes/dark/img/files/small/jpg.png differ diff --git a/themes/dark/img/files/small/mid.png b/themes/dark/img/files/small/mid.png index 1d08c50..e1ed4bd 100644 Binary files a/themes/dark/img/files/small/mid.png 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 index 1d08c50..e1ed4bd 100644 Binary files a/themes/dark/img/files/small/midi.png and b/themes/dark/img/files/small/midi.png differ diff --git a/themes/dark/img/files/small/mp3.png b/themes/dark/img/files/small/mp3.png index 1d08c50..017b00d 100644 Binary files a/themes/dark/img/files/small/mp3.png and b/themes/dark/img/files/small/mp3.png differ diff --git a/themes/oxygen/img/files/small/avi.png b/themes/dark/img/files/small/mp4.png similarity index 100% rename from themes/oxygen/img/files/small/avi.png rename to themes/dark/img/files/small/mp4.png diff --git a/themes/dark/img/files/small/png.png b/themes/dark/img/files/small/png.png index 8f07172..638dee6 100644 Binary files a/themes/dark/img/files/small/png.png and b/themes/dark/img/files/small/png.png differ diff --git a/themes/oxygen/img/files/small/psd.png b/themes/dark/img/files/small/psd.png similarity index 100% rename from themes/oxygen/img/files/small/psd.png rename to themes/dark/img/files/small/psd.png diff --git a/themes/oxygen/img/files/small/rar.png b/themes/dark/img/files/small/rar.png similarity index 100% rename from themes/oxygen/img/files/small/rar.png rename to themes/dark/img/files/small/rar.png diff --git a/themes/dark/img/files/small/sql.png b/themes/dark/img/files/small/sql.png new file mode 100644 index 0000000..5665b63 Binary files /dev/null and b/themes/dark/img/files/small/sql.png differ diff --git a/themes/dark/img/files/small/tif.png b/themes/dark/img/files/small/tif.png index 8f07172..638dee6 100644 Binary files a/themes/dark/img/files/small/tif.png 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 index 8f07172..638dee6 100644 Binary files a/themes/dark/img/files/small/tiff.png and b/themes/dark/img/files/small/tiff.png differ diff --git a/themes/dark/img/files/small/wav.png b/themes/dark/img/files/small/wav.png index 1d08c50..017b00d 100644 Binary files a/themes/dark/img/files/small/wav.png 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 index 1d08c50..017b00d 100644 Binary files a/themes/dark/img/files/small/wma.png and b/themes/dark/img/files/small/wma.png differ diff --git a/themes/dark/img/icons/about.png b/themes/dark/img/icons/about.png index fa9a60b..12cd1ae 100644 Binary files a/themes/dark/img/icons/about.png 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 index 2492449..d5eac9b 100644 Binary files a/themes/dark/img/icons/clipboard-add.png 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 index b689cff..dcce0b6 100644 Binary files a/themes/dark/img/icons/clipboard-clear.png 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 index 0cf8887..779ad58 100644 Binary files a/themes/dark/img/icons/clipboard.png 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 deleted file mode 100644 index fa39b1c..0000000 Binary files a/themes/dark/img/icons/close-clicked.png and /dev/null differ diff --git a/themes/dark/img/icons/close-hover.png b/themes/dark/img/icons/close-hover.png deleted file mode 100644 index cd7d766..0000000 Binary files a/themes/dark/img/icons/close-hover.png and /dev/null differ diff --git a/themes/dark/img/icons/close.png b/themes/dark/img/icons/close.png deleted file mode 100644 index 151de43..0000000 Binary files a/themes/dark/img/icons/close.png and /dev/null differ diff --git a/themes/dark/img/icons/copy.png b/themes/dark/img/icons/copy.png index ccfa6bb..a9f31a2 100644 Binary files a/themes/dark/img/icons/copy.png 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 index 6b9fa6d..1514d51 100644 Binary files a/themes/dark/img/icons/delete.png 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 index 8d5209b..260ac88 100644 Binary files a/themes/dark/img/icons/download.png 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 index c665ac6..529fe8f 100644 Binary files a/themes/dark/img/icons/folder-new.png 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 index 9d81b7f..d41fc7e 100644 Binary files a/themes/dark/img/icons/maximize.png 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 index 20462af..7e62a92 100644 Binary files a/themes/dark/img/icons/move.png 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 index dda7132..aa65210 100644 Binary files a/themes/dark/img/icons/refresh.png 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 index 3cfe301..4e3688e 100644 Binary files a/themes/dark/img/icons/rename.png 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 index 2414885..a9925a0 100644 Binary files a/themes/dark/img/icons/select.png 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 index efc599d..5c8213f 100644 Binary files a/themes/dark/img/icons/settings.png 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 index 4e4f5b8..f4b6d51 100644 Binary files a/themes/dark/img/icons/upload.png 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 index 7a5ae62..af4fe07 100644 Binary files a/themes/dark/img/icons/view.png and b/themes/dark/img/icons/view.png differ diff --git a/themes/dark/img/loading.gif b/themes/dark/img/loading.gif index c085499..687e848 100644 Binary files a/themes/dark/img/loading.gif and b/themes/dark/img/loading.gif differ diff --git a/themes/dark/img/question.png b/themes/dark/img/question.png deleted file mode 100644 index 09dc996..0000000 Binary files a/themes/dark/img/question.png and /dev/null differ diff --git a/themes/dark/img/tree/denied.png b/themes/dark/img/tree/denied.png index a9d5f4d..07b93c1 100644 Binary files a/themes/dark/img/tree/denied.png 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 index 260b415..784e8fa 100644 Binary files a/themes/dark/img/tree/folder.png 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 deleted file mode 100644 index dbaa6ee..0000000 Binary files a/themes/dark/img/tree/folder_current.png and /dev/null differ diff --git a/themes/dark/img/tree/minus.png b/themes/dark/img/tree/minus.png index f783a6f..af617bb 100644 Binary files a/themes/dark/img/tree/minus.png 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 index 79c5ff7..897088b 100644 Binary files a/themes/dark/img/tree/plus.png and b/themes/dark/img/tree/plus.png differ diff --git a/themes/dark/img/ui-icons_black.png b/themes/dark/img/ui-icons_black.png new file mode 100644 index 0000000..f07448d Binary files /dev/null and b/themes/dark/img/ui-icons_black.png differ diff --git a/themes/dark/img/ui-icons_grey.png b/themes/dark/img/ui-icons_grey.png new file mode 100644 index 0000000..91c18a3 Binary files /dev/null and b/themes/dark/img/ui-icons_grey.png differ diff --git a/themes/dark/img/ui-icons_white.png b/themes/dark/img/ui-icons_white.png new file mode 100644 index 0000000..69ceaa4 Binary files /dev/null and b/themes/dark/img/ui-icons_white.png differ diff --git a/themes/dark/init.js b/themes/dark/init.js index dc64b6d..e658eda 100644 --- a/themes/dark/init.js +++ b/themes/dark/init.js @@ -1,4 +1,9 @@ -// If this file exists in theme directory, it will be loaded in section - -var imgLoading = new Image(); -imgLoading.src = 'themes/dark/img/loading.gif'; +// Preload some images +$.each([ + "loading.gif", + "ui-icons_black.png", + "ui-icons_grey.png", + "ui-icons_white.png" +], function(i, img) { + new Image().src = "themes/dark/img/" + img; +}); diff --git a/themes/dark/js.php b/themes/dark/js.php new file mode 100644 index 0000000..b60b450 --- /dev/null +++ b/themes/dark/js.php @@ -0,0 +1,10 @@ +minify("cache/theme_$theme.js"); diff --git a/themes/dark/style.css b/themes/dark/style.css deleted file mode 100644 index 63adb77..0000000 --- a/themes/dark/style.css +++ /dev/null @@ -1,560 +0,0 @@ -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/default/01.ui.css b/themes/default/01.ui.css new file mode 100644 index 0000000..0d08ed6 --- /dev/null +++ b/themes/default/01.ui.css @@ -0,0 +1,1522 @@ +/* + +This CSS code is generated from http://ui.sunhater.com +(c)2014 Pavel Tzonkov, sunhater.com. All rights reserved. + +*/ +/*** jQueryUI */ +/** Base */ + +.ui-helper-hidden { + display: none; +} +.ui-helper-hidden-accessible { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} +.ui-helper-reset { + margin: 0; + padding: 0; + border: 0; + outline: 0; + line-height: 1.3; + text-decoration: none; + font-size: 100%; + list-style: none; +} +.ui-helper-clearfix:before, +.ui-helper-clearfix:after { + content: ""; + display: table; + border-collapse: collapse; +} +.ui-helper-clearfix:after { + clear: both; +} +.ui-helper-clearfix { + min-height: 0; /* support: IE7 */ +} +.ui-helper-zfix { + width: 100%; + height: 100%; + top: 0; + left: 0; + position: absolute; + opacity: 0; + filter:alpha(opacity=0); +} + +.ui-front { + z-index: 100; +} + +.ui-widget .ui-widget, +.ui-widget input, +.ui-widget select, +.ui-widget textarea, +.ui-widget button { + font-size: 1em; +} +.ui-widget-content { + border: 1px solid #888; + background: #fff; + color: #6B6B6B; +} +.ui-widget-content a { + color: #6B6B6B; +} +.ui-widget-header { + border: 1px solid #1b79b8; + color: #fff; + font-weight: bold; + background: #1b79b8; + background: -webkit-linear-gradient(top, #1b79b8, #59b5f2); + background: -moz-linear-gradient(top, #1b79b8, #59b5f2); + background: -ms-linear-gradient(top, #1b79b8, #59b5f2); + background: -o-linear-gradient(top, #1b79b8, #59b5f2); + background: linear-gradient(to bottom, #1b79b8, #59b5f2); +} +.ui-widget-header a { + color: #fff; +} + +/* Interaction states +----------------------------------*/ + +.ui-state-default, +.ui-widget-content .ui-state-default, +.ui-widget-header .ui-state-default, +.ui-widget.ui-state-disabled { + transition: .2s; + border: 1px solid #6b6b6b; + background: #6b6b6b; + background: -webkit-linear-gradient(top, #ababab, #6b6b6b); + background: -moz-linear-gradient(top, #ababab, #6b6b6b); + background: -ms-linear-gradient(top, #ababab, #6b6b6b); + background: -o-linear-gradient(top, #ababab, #6b6b6b); + background: linear-gradient(to bottom, #ababab, #6b6b6b); + font-weight: bold; + color: #fff; +} + +.ui-state-hover, +.ui-widget-content .ui-state-hover, +.ui-widget-header .ui-state-hover, +.ui-state-focus, +.ui-widget-content .ui-state-focus, +.ui-widget-header .ui-state-focus { + transition: .2s; + border: 1px solid #6b6b6b; + background: #6b6b6b; + background: -webkit-linear-gradient(top, #6b6b6b, #ababab); + background: -moz-linear-gradient(top, #6b6b6b, #ababab); + background: -ms-linear-gradient(top, #6b6b6b, #ababab); + background: -o-linear-gradient(top, #6b6b6b, #ababab); + background: linear-gradient(to bottom, #6b6b6b, #ababab); + font-weight: bold; + color: #fff; +} + +.ui-state-active, +.ui-widget-content .ui-state-active, +.ui-widget-header .ui-state-active, +.ui-menu .ui-state-focus { + transition: .2s; + border: 1px solid #1b79b8; + background: #1b79b8; + background: -webkit-linear-gradient(top, #1b79b8, #59b5f2); + background: -moz-linear-gradient(top, #1b79b8, #59b5f2); + background: -ms-linear-gradient(top, #1b79b8, #59b5f2); + background: -o-linear-gradient(top, #1b79b8, #59b5f2); + background: linear-gradient(to bottom, #1b79b8, #59b5f2); + font-weight: bold; + color: #fff; +} + +.ui-state-default a, +.ui-state-default a:link, +.ui-state-default a:visited, +.ui-state-hover a, +.ui-state-hover a:hover, +.ui-state-hover a:link, +.ui-state-hover a:visited, +.ui-state-active a, +.ui-state-active a:link, +.ui-state-active a:visited { + transition: .2s; + color: #fff; + text-decoration: none; +} + +.ui-menu .ui-state-active { + transition: .2s; + border-color: #6b6b6b; + background: #6b6b6b; + background: -webkit-linear-gradient(top, #6b6b6b, #ababab); + background: -moz-linear-gradient(top, #6b6b6b, #ababab); + background: -ms-linear-gradient(top, #6b6b6b, #ababab); + background: -o-linear-gradient(top, #6b6b6b, #ababab); + background: linear-gradient(to bottom, #6b6b6b, #ababab); +} + +/* Interaction Cues +----------------------------------*/ + +.ui-state-highlight, +.ui-widget-content .ui-state-highlight, +.ui-widget-header .ui-state-highlight { + border: 1px solid #d5bc2c; + box-shadow: inset 0 0 5px #d5bc2c; + background: #fff6bf; + color: #6b6b6b; +} +.ui-state-error, +.ui-widget-content .ui-state-error, +.ui-widget-header .ui-state-error { + border: 1px solid #cf7f7f; + box-shadow: inset 0 0 5px #cf7f7f; + background: #fac4c4; + color: #6b6b6b; +} +.ui-state-error a, +.ui-widget-content .ui-state-error a, +.ui-widget-header .ui-state-error a, +.ui-state-highlight a, +.ui-widget-content .ui-state-highlight a, +.ui-widget-header .ui-state-highlight a, +.ui-state-error-text, +.ui-widget-content .ui-state-error-text, +.ui-widget-header .ui-state-error-text { + color: #6b6b6b; +} +.ui-priority-primary, +.ui-widget-content .ui-priority-primary, +.ui-widget-header .ui-priority-primary { + font-weight: bold; +} +.ui-priority-secondary, +.ui-widget-content .ui-priority-secondary, +.ui-widget-header .ui-priority-secondary { + opacity: .5; + filter:alpha(opacity=50); + font-weight: normal; +} +.ui-state-disabled, +.ui-widget-content .ui-state-disabled, +.ui-widget-header .ui-state-disabled { + opacity: .50; + filter:alpha(opacity=50); + background-image: none; +} +.ui-state-disabled .ui-icon { + filter:alpha(opacity=50); /* For IE8 - See #6059 */ +} + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { + cursor: default !important; +} + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +.ui-resizable { + position: relative; +} +.ui-resizable-handle { + position: absolute; + font-size: 0.1px; + display: block; +} +.ui-resizable-disabled .ui-resizable-handle, +.ui-resizable-autohide .ui-resizable-handle { + display: none; +} +.ui-resizable-n { + cursor: n-resize; + height: 7px; + width: 100%; + top: -5px; + left: 0; +} +.ui-resizable-s { + cursor: s-resize; + height: 7px; + width: 100%; + bottom: -5px; + left: 0; +} +.ui-resizable-e { + cursor: e-resize; + width: 7px; + right: -5px; + top: 0; + height: 100%; +} +.ui-resizable-w { + cursor: w-resize; + width: 7px; + left: -5px; + top: 0; + height: 100%; +} +.ui-resizable-se { + cursor: se-resize; + width: 12px; + height: 12px; + right: 1px; + bottom: 1px; +} +.ui-resizable-sw { + cursor: sw-resize; + width: 9px; + height: 9px; + left: -5px; + bottom: -5px; +} +.ui-resizable-nw { + cursor: nw-resize; + width: 9px; + height: 9px; + left: -5px; + top: -5px; +} +.ui-resizable-ne { + cursor: ne-resize; + width: 9px; + height: 9px; + right: -5px; + top: -5px; +} +.ui-selectable-helper { + position: absolute; + z-index: 100; + border: 1px dotted black; +} + + +/** Accordion */ + +.ui-accordion .ui-accordion-header { + display: block; + cursor: pointer; + position: relative; + margin-top: 2px; + padding: 6px; + min-height: 0; /* support: IE7 */ +} +.ui-accordion .ui-accordion-icons, +.ui-accordion .ui-accordion-icons .ui-accordion-icons { + padding-left: 24px; +} +.ui-accordion .ui-accordion-noicons { + padding-left: 5px; +} + +.ui-accordion .ui-accordion-header .ui-accordion-header-icon { + position: absolute; + left: 5px; + top: 50%; + margin-top: -8px; +} +.ui-accordion .ui-accordion-content { + padding: 1em; + border-top: 0; + overflow: auto; +} + + +/** Autocomplete */ + +.ui-autocomplete { + position: absolute; + top: 0; + left: 0; + cursor: pointer; +} + + +/** Button */ + +.ui-button { + display: inline-block; + position: relative; + padding: 0; + line-height: normal; + cursor: pointer; + vertical-align: middle; + text-align: center; + overflow: visible; /* removes extra width in IE */ +} +.ui-button, +.ui-button:link, +.ui-button:visited, +.ui-button:hover, +.ui-button:active { + text-decoration: none; +} +/* to make room for the icon, a width needs to be set here */ +.ui-button-icon-only { + width: 36px; +} +.ui-button-icons-only { + width: 50px; +} +/* button text element */ +.ui-button .ui-button-text { + display: block; + line-height: normal; +} +.ui-button-text-only .ui-button-text { + padding: 6px 10px; +} +.ui-button-icon-only .ui-button-text, +.ui-button-icons-only .ui-button-text { + padding: 6px; + text-indent: -9999999px; +} +.ui-button-text-icon-primary .ui-button-text, +.ui-button-text-icons .ui-button-text { + padding: 6px 10px 6px 28px; +} +.ui-button-text-icon-secondary .ui-button-text, +.ui-button-text-icons .ui-button-text { + padding: 6px 28px 6px 10px; +} +.ui-button-text-icons .ui-button-text { + padding-left: 28px; + padding-right: 28px; +} +/* no icon support for input elements, provide padding by default */ +input.ui-button { + padding: 6px 10px; +} + +/* button icon element(s) */ +.ui-button-icon-only .ui-icon, +.ui-button-text-icon-primary .ui-icon, +.ui-button-text-icon-secondary .ui-icon, +.ui-button-text-icons .ui-icon, +.ui-button-icons-only .ui-icon { + position: absolute; + top: 50%; + margin-top: -8px; +} +.ui-button-icon-only .ui-icon { + left: 50%; + margin-left: -8px; +} +.ui-button-text-icon-primary .ui-button-icon-primary, +.ui-button-text-icons .ui-button-icon-primary, +.ui-button-icons-only .ui-button-icon-primary { + left: 7px; +} +.ui-button-text-icon-secondary .ui-button-icon-secondary, +.ui-button-text-icons .ui-button-icon-secondary, +.ui-button-icons-only .ui-button-icon-secondary { + right: 7px; +} +/* workarounds */ +/* reset extra padding in Firefox, see h5bp.com/l */ +input.ui-button::-moz-focus-inner, +button.ui-button::-moz-focus-inner { + border: 0; + padding: 0; +} + + +/** Button set */ + +.ui-buttonset { + margin:0; + overflow:auto; +} +.ui-buttonset .ui-button { + margin: 0; + float:left; +} + + +/** Date picker */ + +.ui-datepicker { + width: 19em; + width: 19em; + display: none; + padding: 10px; +} +.ui-datepicker .ui-datepicker-header { + position: relative; + padding: 2px 0; +} +.ui-datepicker .ui-datepicker-prev, +.ui-datepicker .ui-datepicker-next { + position: absolute; + top: 4px; + width: 20px; + height: 20px; +} +.ui-datepicker .ui-datepicker-prev-hover, +.ui-datepicker .ui-datepicker-next-hover { + top: 3px; +} +.ui-datepicker .ui-datepicker-prev { + left: 4px; +} +.ui-datepicker .ui-datepicker-next { + right: 4px; +} +.ui-datepicker .ui-datepicker-prev-hover { + left: 3px; +} +.ui-datepicker .ui-datepicker-next-hover { + right: 3px; +} +.ui-datepicker .ui-datepicker-prev span, +.ui-datepicker .ui-datepicker-next span { + display: block; + position: absolute; + left: 50%; + margin-left: -8px; + top: 50%; + margin-top: -8px; +} +.ui-datepicker .ui-datepicker-title { + margin: 0 10px; + padding: 4px 0; + text-align: center; +} +.ui-datepicker .ui-datepicker-title select { + font-size: 1em; + margin:-2px 2px; + padding:0; + outline:0; +} +.ui-datepicker table { + width: 100%; + border-collapse: collapse; + margin: 0; + font-size: 1em; +} +.ui-datepicker th { + padding: 3px; + text-align: center; + font-weight: bold; + border: 0; +} +.ui-datepicker td { + border: 0; + padding: 1px; +} +.ui-datepicker td span, +.ui-datepicker td a { + display: block; + padding: 2px 3px; + text-align: right; + text-decoration: none; +} +.ui-datepicker .ui-datepicker-buttonpane { + background-image: none; + margin: 10px -11px -11px -11px; + padding: 10px; + border: 1px solid #1b79b8; + background: #e4f5ff; + overflow: auto; +} +.ui-datepicker .ui-datepicker-buttonpane button { + float: right; + cursor: pointer; + width: auto; + overflow: visible; + margin: 0; + padding: 6px 10px; + font-weight: bold; + opacity: 1; + filter: alpha(opacity=100); +} +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { + float: left; +} + +/* with multiple calendars */ +.ui-datepicker.ui-datepicker-multi { + width: auto; + padding:10px; +} +.ui-datepicker-multi .ui-datepicker-group { + float: left; +} +.ui-datepicker-multi .ui-datepicker-group .ui-datepicker-header { + margin:0; +} +.ui-datepicker-multi .ui-datepicker-group.ui-datepicker-group-last { + margin-right:0; +} + +.ui-datepicker-multi .ui-datepicker-group table { + width: 95%; + margin: 0 auto .4em; +} +.ui-datepicker-multi-2 .ui-datepicker-group { + width: 50%; +} +.ui-datepicker-multi-3 .ui-datepicker-group { + width: 33.3%; +} +.ui-datepicker-multi-4 .ui-datepicker-group { + width: 25%; +} + +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header, +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { + border-left-width: 0; +} +.ui-datepicker-multi .ui-datepicker-buttonpane { + clear: left; +} +.ui-datepicker-row-break { + clear: both; + font-size: 0; + width: 100px; +} +th.ui-datepicker-week-col { + color: #215b82; +} +td.ui-datepicker-week-col { + text-align:right; + padding-right:7px; + color: #215b82; +} +td.ui-datepicker-other-month a.ui-state-default { + font-weight: bold; +} +th.ui-datepicker-week-end { + color: #f44; +} + +/* RTL support */ +.ui-datepicker-rtl { + direction: rtl; +} +.ui-datepicker-rtl .ui-datepicker-prev { + right: 2px; + left: auto; +} +.ui-datepicker-rtl .ui-datepicker-next { + left: 2px; + right: auto; +} +.ui-datepicker-rtl .ui-datepicker-prev:hover { + right: 1px; + left: auto; +} +.ui-datepicker-rtl .ui-datepicker-next:hover { + left: 1px; + right: auto; +} +.ui-datepicker-rtl .ui-datepicker-buttonpane { + clear: right; +} +.ui-datepicker-rtl .ui-datepicker-buttonpane button { + float: left; +} +.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current, +.ui-datepicker-rtl .ui-datepicker-group { + float: right; +} +.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header, +.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { + border-right-width: 0; + border-left-width: 1px; +} + + +/** Dialog */ + +.ui-dialog { + position: absolute; + top: 0; + left: 0; + padding: 4px; + outline: 0; + box-shadow: 0 0 10px #000; +} +.ui-dialog .ui-dialog-titlebar { + padding: 5px 10px; + position: relative; +} +.ui-dialog .ui-dialog-title { + float: left; + margin: 0; + padding: 1px 0; + white-space: nowrap; + width: 90%; + overflow: hidden; + text-overflow: ellipsis; +} +.ui-dialog .ui-dialog-titlebar-close { + position: absolute; + right: .3em; + top: 50%; + width: 21px; + margin: -10px 0 0 0; + padding: 1px; + height: 20px; +} +.ui-dialog .ui-dialog-content { + position: relative; + border: 0; + padding: 1em; + margin: 0 -4px; + background: none; + overflow: auto; +} +.ui-dialog .ui-dialog-buttonpane { + text-align: left; + border-width: 1px 0 0 0; + background-image: none; + padding: 10px; +} +.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { + float: right; +} +.ui-dialog .ui-dialog-buttonpane button { + margin: 0 0 0 5px; + cursor: pointer; +} +.ui-dialog .ui-resizable-se { + width: 12px; + height: 12px; + right: -5px; + bottom: -5px; + background-position: 16px 16px; +} +.ui-draggable .ui-dialog-titlebar { + cursor: move; +} + + +/** Menu */ + +.ui-menu { + list-style: none; + padding: 0; + margin: 0; + display: block; + outline: 0; +} +.ui-menu .ui-menu { + margin-top: -3px; + position: absolute; +} +.ui-menu .ui-menu-item { + margin: 0; + padding: 0; + width: 100%; + /* support: IE10, see #8844 */ + list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); +} +.ui-menu .ui-menu-divider { + margin: 1px 10px 1px 10px; + height: 0; + font-size: 0; + line-height: 0; + border-width: 1px 0 0 0; + border-color: #bbb; +} +.ui-menu .ui-menu-item a { + text-decoration: none; + display: block; + padding: 5px 10px; + line-height: 1.5; + min-height: 0; /* support: IE7 */ + font-weight: normal; + border-radius:0; +} +.ui-menu .ui-menu-item a.ui-state-focus, +.ui-menu .ui-menu-item a.ui-state-active { + font-weight: normal; + margin: -1px; + transition: none; +} +.ui-menu .ui-state-disabled { + font-weight: normal; + line-height: 1.5; +} +.ui-menu .ui-state-disabled a { + cursor: default; +} +.ui-menu.ui-corner-all.sh-menu { + border-radius: 4px; +} +.ui-menu.ui-corner-all, .ui-menu.sh-menu.ui-autocomplete.ui-corner-all { + border-radius: 0; +} + +/* icon support */ +.ui-menu-icons { + position: relative; +} +.ui-menu-icons .ui-menu-item a { + position: relative; + padding-left: 2em; +} + +/* left-aligned */ +.ui-menu .ui-icon { + position: absolute; + top: .2em; + left: .2em; +} + +/* right-aligned */ +.ui-menu .ui-menu-icon { + position: static; + float: right; +} + + +/** Progress bar */ + +.ui-progressbar { + height: 2.1em; + text-align: left; + overflow: hidden; +} +.ui-progressbar .ui-progressbar-value { + margin: -1px; + height: 100%; +} +.ui-progressbar .ui-progressbar-overlay { + height: 100%; + filter: alpha(opacity=25); + opacity: 0.25; +} +.ui-progressbar-indeterminate .ui-progressbar-value { + background-image: none; +} + + +/** Slider */ + +.ui-slider { + position: relative; + text-align: left; + margin: 0 13px; + border-radius:15px; +} +.ui-slider .ui-slider-handle { + position: absolute; + z-index: 2; + width: 18px; + height: 18px; + border-radius: 9px; + cursor: default; + box-shadow: 0 0 3px #6b6b6b, inset 0 0 7px #fff, inset 0 0 3px #fff; +} +.ui-slider .ui-slider-handle.ui-state-active { + box-shadow: 0 0 3px #1b79b8, inset 0 0 7px #fff, inset 0 0 3px #fff; +} +.ui-slider .ui-slider-range { + position: absolute; + z-index: 1; + display: block; + border: 0; + background-position: 0 0; +} + +/* For IE8 - See #6727 */ +.ui-slider.ui-state-disabled .ui-slider-handle, +.ui-slider.ui-state-disabled .ui-slider-range { + filter: inherit; +} + +.ui-slider-horizontal { + height: 10px; +} +.ui-slider-horizontal .ui-slider-handle { + top: -5px; + margin-left: -9px; +} +.ui-slider-horizontal .ui-slider-range { + top: 0; + height: 100%; +} +.ui-slider-horizontal .ui-slider-range-min { + left: 0; +} +.ui-slider-horizontal .ui-slider-range-max { + right: 0; +} + +.ui-slider-vertical { + width: 10px; + height: 150px; +} +.ui-slider-vertical .ui-slider-handle { + left: -5px; + margin-left: 0; + margin-bottom: -9px; +} +.ui-slider-vertical .ui-slider-range { + left: -1px; + width: 100%; +} +.ui-slider-vertical .ui-slider-range-min { + bottom: 0; +} +.ui-slider-vertical .ui-slider-range-max { + top: 0; +} + + +/** Spinner */ + +.ui-spinner.ui-widget { + position: relative; + display: inline-block; + overflow: hidden; + padding: 0; + vertical-align: middle; + background: #fff; + background: -webkit-linear-gradient(top, #f0f0f0, #fff); + background: -moz-linear-gradient(top, #f0f0f0, #fff); + background: -ms-linear-gradient(top, #f0f0f0, #fff); + background: -o-linear-gradient(top, #f0f0f0, #fff); + background: linear-gradient(to bottom, #f0f0f0, #fff); +} +.ui-spinner-input { + border: none; + color: inherit; + padding: 0; + margin: 6px 24px 6px 10px; + vertical-align: middle; + outline: 0; + background: transparent; +} +.ui-spinner-input { + color: #6b6b6b} +.ui-spinner-input:focus { + color: #000; +} +.ui-spinner-button { + width: 16px; + height: 50%; + font-size: .5em; + padding: 0; + margin: 0; + text-align: center; + position: absolute; + cursor: default; + display: block; + overflow: hidden; + right: 0; +} +/* more specificity required here to overide default borders */ +.ui-spinner a.ui-spinner-button { + border-top: none; + border-bottom: none; + border-right: none; +} +/* vertical centre icon */ +.ui-spinner .ui-icon { + position: absolute; + margin-top: -8px; + top: 50%; + left: 0; +} +.ui-spinner-up { + top: 0; +} +.ui-spinner-down { + bottom: 0; +} + +/* TR overrides */ +.ui-spinner .ui-icon-triangle-1-s { + /* need to fix icons sprite */ + background-position: -65px -16px; +} + + +/** Tabs */ + +.ui-tabs { + position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ +} +.ui-tabs .ui-tabs-nav { + margin: 0; + padding: 3px 3px 0 3px; +} +.ui-tabs .ui-tabs-nav li { + list-style: none; + float: left; + position: relative; + top: 0; + margin: 1px 3px 0 0; + border-bottom-width: 0; + padding: 0; + white-space: nowrap; +} +.ui-tabs .ui-tabs-nav li a { + float: left; + padding: 6px 10px; + text-decoration: none; +} +.ui-tabs .ui-tabs-nav li.ui-tabs-active { + margin-bottom: -1px; + padding-bottom: 1px; +} +.ui-tabs .ui-tabs-nav li.ui-tabs-active a, +.ui-tabs .ui-tabs-nav li.ui-state-disabled a, +.ui-tabs .ui-tabs-nav li.ui-tabs-loading a { + cursor: text; +} +.ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ +.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { + cursor: pointer; +} +.ui-tabs .ui-tabs-panel { + display: block; + border-width: 0; + padding: 1em; + background: none; +} + +/** Tooltip */ + +body .ui-tooltip { + padding: 6px 10px; + position: absolute; + z-index: 9999; + max-width: 300px; + color: #808080; + border-color: #a5a5a5; + box-shadow: inset 0 0 4px #a5a5a5, 0 0 4px #a5a5a5; + background: -webkit-linear-gradient(top, #ddd, #fff); + background: -moz-linear-gradient(top, #ddd, #fff); + background: -ms-linear-gradient(top, #ddd, #fff); + background: -o-linear-gradient(top, #ddd, #fff); + background: linear-gradient(to bottom, #ddd, #fff); +} + +/** Icons */ + +/* states and images */ +.ui-icon { + display: block; + text-indent: -99999px; + overflow: hidden; + background-repeat: no-repeat; + width: 16px; + height: 16px; +} + +.ui-icon, +.ui-widget-content .ui-icon, +.ui-state-highlight .ui-icon, +.ui-state-error .ui-icon, +.ui-state-error-text .ui-icon, +.ui-icon.ui-icon-black { + background-image: url(img/ui-icons_black.png); +} + +.ui-widget-header .ui-icon, +.ui-state-default .ui-icon, +.ui-state-hover .ui-icon, +.ui-state-focus .ui-icon, +.ui-state-active .ui-icon, +.ui-icon.ui-icon-white { + background-image: url(img/ui-icons_white.png); +} + +/* positioning */ +.ui-icon-blank { background-position: 16px 16px; } +.ui-icon-carat-1-n { background-position: 0 0; } +.ui-icon-carat-1-ne { background-position: -16px 0; } +.ui-icon-carat-1-e { background-position: -32px 0; } +.ui-icon-carat-1-se { background-position: -48px 0; } +.ui-icon-carat-1-s { background-position: -64px 0; } +.ui-icon-carat-1-sw { background-position: -80px 0; } +.ui-icon-carat-1-w { background-position: -96px 0; } +.ui-icon-carat-1-nw { background-position: -112px 0; } +.ui-icon-carat-2-n-s { background-position: -128px 0; } +.ui-icon-carat-2-e-w { background-position: -144px 0; } +.ui-icon-triangle-1-n { background-position: 0 -16px; } +.ui-icon-triangle-1-ne { background-position: -16px -16px; } +.ui-icon-triangle-1-e { background-position: -32px -16px; } +.ui-icon-triangle-1-se { background-position: -48px -16px; } +.ui-icon-triangle-1-s { background-position: -64px -16px; } +.ui-icon-triangle-1-sw { background-position: -80px -16px; } +.ui-icon-triangle-1-w { background-position: -96px -16px; } +.ui-icon-triangle-1-nw { background-position: -112px -16px; } +.ui-icon-triangle-2-n-s { background-position: -128px -16px; } +.ui-icon-triangle-2-e-w { background-position: -144px -16px; } +.ui-icon-arrow-1-n { background-position: 0 -32px; } +.ui-icon-arrow-1-ne { background-position: -16px -32px; } +.ui-icon-arrow-1-e { background-position: -32px -32px; } +.ui-icon-arrow-1-se { background-position: -48px -32px; } +.ui-icon-arrow-1-s { background-position: -64px -32px; } +.ui-icon-arrow-1-sw { background-position: -80px -32px; } +.ui-icon-arrow-1-w { background-position: -96px -32px; } +.ui-icon-arrow-1-nw { background-position: -112px -32px; } +.ui-icon-arrow-2-n-s { background-position: -128px -32px; } +.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } +.ui-icon-arrow-2-e-w { background-position: -160px -32px; } +.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } +.ui-icon-arrowstop-1-n { background-position: -192px -32px; } +.ui-icon-arrowstop-1-e { background-position: -208px -32px; } +.ui-icon-arrowstop-1-s { background-position: -224px -32px; } +.ui-icon-arrowstop-1-w { background-position: -240px -32px; } +.ui-icon-arrowthick-1-n { background-position: 0 -48px; } +.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } +.ui-icon-arrowthick-1-e { background-position: -32px -48px; } +.ui-icon-arrowthick-1-se { background-position: -48px -48px; } +.ui-icon-arrowthick-1-s { background-position: -64px -48px; } +.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } +.ui-icon-arrowthick-1-w { background-position: -96px -48px; } +.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } +.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } +.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } +.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } +.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } +.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } +.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } +.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } +.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } +.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } +.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } +.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } +.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } +.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } +.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } +.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } +.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } +.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } +.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } +.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } +.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } +.ui-icon-arrow-4 { background-position: 0 -80px; } +.ui-icon-arrow-4-diag { background-position: -16px -80px; } +.ui-icon-extlink { background-position: -32px -80px; } +.ui-icon-newwin { background-position: -48px -80px; } +.ui-icon-refresh { background-position: -64px -80px; } +.ui-icon-shuffle { background-position: -80px -80px; } +.ui-icon-transfer-e-w { background-position: -96px -80px; } +.ui-icon-transferthick-e-w { background-position: -112px -80px; } +.ui-icon-folder-collapsed { background-position: 0 -96px; } +.ui-icon-folder-open { background-position: -16px -96px; } +.ui-icon-document { background-position: -32px -96px; } +.ui-icon-document-b { background-position: -48px -96px; } +.ui-icon-note { background-position: -64px -96px; } +.ui-icon-mail-closed { background-position: -80px -96px; } +.ui-icon-mail-open { background-position: -96px -96px; } +.ui-icon-suitcase { background-position: -112px -96px; } +.ui-icon-comment { background-position: -128px -96px; } +.ui-icon-person { background-position: -144px -96px; } +.ui-icon-print { background-position: -160px -96px; } +.ui-icon-trash { background-position: -176px -96px; } +.ui-icon-locked { background-position: -192px -96px; } +.ui-icon-unlocked { background-position: -208px -96px; } +.ui-icon-bookmark { background-position: -224px -96px; } +.ui-icon-tag { background-position: -240px -96px; } +.ui-icon-home { background-position: 0 -112px; } +.ui-icon-flag { background-position: -16px -112px; } +.ui-icon-calendar { background-position: -32px -112px; } +.ui-icon-cart { background-position: -48px -112px; } +.ui-icon-pencil { background-position: -64px -112px; } +.ui-icon-clock { background-position: -80px -112px; } +.ui-icon-disk { background-position: -96px -112px; } +.ui-icon-calculator { background-position: -112px -112px; } +.ui-icon-zoomin { background-position: -128px -112px; } +.ui-icon-zoomout { background-position: -144px -112px; } +.ui-icon-search { background-position: -160px -112px; } +.ui-icon-wrench { background-position: -176px -112px; } +.ui-icon-gear { background-position: -192px -112px; } +.ui-icon-heart { background-position: -208px -112px; } +.ui-icon-star { background-position: -224px -112px; } +.ui-icon-link { background-position: -240px -112px; } +.ui-icon-cancel { background-position: 0 -128px; } +.ui-icon-plus { background-position: -16px -128px; } +.ui-icon-plusthick { background-position: -32px -128px; } +.ui-icon-minus { background-position: -48px -128px; } +.ui-icon-minusthick { background-position: -64px -128px; } +.ui-icon-close { background-position: -80px -128px; } +.ui-icon-closethick { background-position: -96px -128px; } +.ui-icon-key { background-position: -112px -128px; } +.ui-icon-lightbulb { background-position: -128px -128px; } +.ui-icon-scissors { background-position: -144px -128px; } +.ui-icon-clipboard { background-position: -160px -128px; } +.ui-icon-copy { background-position: -176px -128px; } +.ui-icon-contact { background-position: -192px -128px; } +.ui-icon-image { background-position: -208px -128px; } +.ui-icon-video { background-position: -224px -128px; } +.ui-icon-script { background-position: -240px -128px; } +.ui-icon-alert { background-position: 0 -144px; } +.ui-icon-info { background-position: -16px -144px; } +.ui-icon-notice { background-position: -32px -144px; } +.ui-icon-help { background-position: -48px -144px; } +.ui-icon-check { background-position: -64px -144px; } +.ui-icon-bullet { background-position: -80px -144px; } +.ui-icon-radio-on { background-position: -96px -144px; } +.ui-icon-radio-off { background-position: -112px -144px; } +.ui-icon-pin-w { background-position: -128px -144px; } +.ui-icon-pin-s { background-position: -144px -144px; } +.ui-icon-play { background-position: 0 -160px; } +.ui-icon-pause { background-position: -16px -160px; } +.ui-icon-seek-next { background-position: -32px -160px; } +.ui-icon-seek-prev { background-position: -48px -160px; } +.ui-icon-seek-end { background-position: -64px -160px; } +.ui-icon-seek-start { background-position: -80px -160px; } +/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ +.ui-icon-seek-first { background-position: -80px -160px; } +.ui-icon-stop { background-position: -96px -160px; } +.ui-icon-eject { background-position: -112px -160px; } +.ui-icon-volume-off { background-position: -128px -160px; } +.ui-icon-volume-on { background-position: -144px -160px; } +.ui-icon-power { background-position: 0 -176px; } +.ui-icon-signal-diag { background-position: -16px -176px; } +.ui-icon-signal { background-position: -32px -176px; } +.ui-icon-battery-0 { background-position: -48px -176px; } +.ui-icon-battery-1 { background-position: -64px -176px; } +.ui-icon-battery-2 { background-position: -80px -176px; } +.ui-icon-battery-3 { background-position: -96px -176px; } +.ui-icon-circle-plus { background-position: 0 -192px; } +.ui-icon-circle-minus { background-position: -16px -192px; } +.ui-icon-circle-close { background-position: -32px -192px; } +.ui-icon-circle-triangle-e { background-position: -48px -192px; } +.ui-icon-circle-triangle-s { background-position: -64px -192px; } +.ui-icon-circle-triangle-w { background-position: -80px -192px; } +.ui-icon-circle-triangle-n { background-position: -96px -192px; } +.ui-icon-circle-arrow-e { background-position: -112px -192px; } +.ui-icon-circle-arrow-s { background-position: -128px -192px; } +.ui-icon-circle-arrow-w { background-position: -144px -192px; } +.ui-icon-circle-arrow-n { background-position: -160px -192px; } +.ui-icon-circle-zoomin { background-position: -176px -192px; } +.ui-icon-circle-zoomout { background-position: -192px -192px; } +.ui-icon-circle-check { background-position: -208px -192px; } +.ui-icon-circlesmall-plus { background-position: 0 -208px; } +.ui-icon-circlesmall-minus { background-position: -16px -208px; } +.ui-icon-circlesmall-close { background-position: -32px -208px; } +.ui-icon-squaresmall-plus { background-position: -48px -208px; } +.ui-icon-squaresmall-minus { background-position: -64px -208px; } +.ui-icon-squaresmall-close { background-position: -80px -208px; } +.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } +.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } +.ui-icon-grip-solid-vertical { background-position: -32px -224px; } +.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } +.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } +.ui-icon-grip-diagonal-se { background-position: -80px -224px; } + + +/** Misc */ + +/* Corner radius */ +.ui-corner-all, +.ui-corner-top, +.ui-corner-left, +.ui-corner-tl, +.ui-menu .ui-menu-item.ui-menu-item-first a { + border-top-left-radius: 4px; +} +.ui-corner-all, +.ui-corner-top, +.ui-corner-right, +.ui-corner-tr, +.ui-menu .ui-menu-item.ui-menu-item-first a { + border-top-right-radius:4px; +} +.ui-corner-all, +.ui-corner-bottom, +.ui-corner-left, +.ui-corner-bl, +.ui-menu .ui-menu-item.ui-menu-item-last a, +.ui-dialog-buttonpane, +.ui-datepicker-multi .ui-datepicker-group-first .ui-datepicker-header, +.ui-datepicker .ui-datepicker-buttonpane { + border-bottom-left-radius: 4px; +} +.ui-corner-all, +.ui-corner-bottom, +.ui-corner-right, +.ui-corner-br, +.ui-menu .ui-menu-item.ui-menu-item-last a, +.ui-dialog-buttonpane, +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header, +.ui-datepicker .ui-datepicker-buttonpane { + border-bottom-right-radius: 4px; +} + +/* Overlays */ +.ui-widget-overlay { + background: rgba(255,255,255,.5); +} +.ui-widget-shadow { + margin: -7px 0 0 -7px; + padding: 7px; + background: rgba(0,0,0,.3); + border-radius: 8px; +} + +/* SunHater Fixes */ + +.ui-accordion-content-active, .ui-tabs, .ui-slider-range, .ui-datepicker, .ui-dialog { + border-color: #1b79b8; +} + +.ui-slider .ui-slider-range { + border: 1px solid #1b79b8; + top: -1px +} + +.ui-progressbar { + overflow:visible; +} +.ui-progressbar-value { + border: 1px solid #1b79b8; + margin-top: -1px +} + +.ui-accordion-header, +.ui-tabs-nav, +.ui-button, +.ui-tabs li, +.ui-slider-handle, +.ui-slider-range, +.ui-datepicker-header, +.ui-datepicker-header a:hover, +.ui-datepicker-calendar .ui-state-default, +.ui-progressbar-value, +.ui-menu .ui-menu-item a.ui-state-focus, +.ui-menu .ui-menu-item a.ui-state-active, +.ui-dialog-titlebar, +.ui-dialog-titlebar-close.ui-state-default.ui-state-hover, +.ui-datepicker .ui-datepicker-buttonpane button { + box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff; +} + +.ui-spinner, +.ui-menu { + box-shadow: inset 0 0 4px #6b6b6b; +} + +.ui-accordion-content, +.ui-tabs, +.ui-dialog-content, +.ui-dialog-buttonpane, +.ui-datepicker, +.ui-datepicker .ui-datepicker-buttonpane { + box-shadow: inset 0 0 4px #1b79b8; +} + +.ui-state-default, +.ui-state-focus, +.ui-state-active, +.ui-widget-header { + text-shadow: + 1px 0 rgba(0,0,0,.2), + -1px 0 rgba(0,0,0,.2), + 0 -1px rgba(0,0,0,.2), + 0 1px rgba(0,0,0,.2), + 1px 1px rgba(0,0,0,.2), + -1px -1px rgba(0,0,0,.2), + 1px -1px rgba(0,0,0,.2), + -1px 1px rgba(0,0,0,.2); +} + +.ui-tabs .ui-state-active, +.ui-datepicker .ui-state-highlight { + text-shadow: none; +} +.ui-datepicker .ui-state-highlight { + color: #215b82; + border-color: #1b79b8; + box-shadow: inset 0 0 4px #1b79b8; + background: #fff; + background: -webkit-linear-gradient(top, #dfeef8, #fff); + background: -moz-linear-gradient(top, #dfeef8, #fff); + background: -ms-linear-gradient(top, #dfeef8, #fff); + background: -o-linear-gradient(top, #dfeef8, #fff); + background: linear-gradient(to bottom, #dfeef8, #fff); +} + +.ui-progressbar, .ui-slider, .ui-menu { + box-shadow: inset 0 0 4px #6b6b6b; + background: #fff; + background: -webkit-linear-gradient(top, #f0f0f0, #fff); + background: -moz-linear-gradient(top, #f0f0f0, #fff); + background: -ms-linear-gradient(top, #f0f0f0, #fff); + background: -o-linear-gradient(top, #f0f0f0, #fff); + background: linear-gradient(to bottom, #f0f0f0, #fff); +} + +.ui-slider, .ui-spinner, .ui-progressbar, .ui-menu { + border-color: #6b6b6b; +} + +.ui-datepicker-calendar .ui-state-default { + border-radius: 3px; +} + +.ui-tabs .ui-tabs-nav { + margin: -1px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; + padding-left:3px; +} + +.ui-tabs-active.ui-state-active { + background: #fff; + background: -webkit-linear-gradient(top, #ccc, #ddd, #eee, #fff, #fff, #fff); + background: -moz-linear-gradient(top, #ccc, #ddd, #eee, #fff, #fff, #fff); + background: -ms-linear-gradient(top, #ccc, #ddd, #eee, #fff, #fff, #fff); + background: -o-linear-gradient(top, #ccc, #ddd, #eee, #fff, #fff, #fff); + background: linear-gradient(to bottom, #ccc, #ddd, #eee, #fff, #fff, #fff); + box-shadow: inset 0 0 5px #fff, inset 0 0 5px #fff, inset 0 0 5px #fff; +} +.ui-tabs-active.ui-state-active a { + color: #215b82; +} +.ui-state-default, .ui-state-default a { + outline: 0; +} +.ui-datepicker-header, +.ui-dialog-titlebar { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; + margin: -5px -5px 0 -5px; +} +.ui-datepicker-header { + margin: -11px -11px 5px -11px; +} + +.ui-datepicker-header a:hover { + cursor: pointer; +} + +.ui-dialog-titlebar-close.ui-state-default { + border-color: transparent; + background: none; + box-shadow: none; +} + +.ui-dialog-titlebar-close.ui-state-default.ui-state-hover { + border-color: #6b6b6b; + background: #6b6b6b} + +.ui-dialog-buttonpane { + background: #e4f5ff; + border-top-color: #1b79b8; + margin: 0 -4px -4px -4px; + padding: 0; +} + + +/*** shCheckset */ +/* +.shcs { + margin: 0; +} +.shcs > div { + border: 1px solid; + border-top: 0; + padding: 5px; + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; +} +.shcs > input, .shcs > input:focus, .shcs > input:hover { + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + margin:0; +} +.shcs label { + padding: 2px 5px 2px 2px; + border: 1px solid transparent; + border-radius: 4px; + color: #6b6b6b; +} +.shcs > div, .shcs label:hover { + border-color: #6b6b6b; + box-shadow: inset 0 0 4px #6b6b6b; + background: #fff; + background: -webkit-linear-gradient(top, #f0f0f0, #fff); + background: -moz-linear-gradient(top, #f0f0f0, #fff); + background: -ms-linear-gradient(top, #f0f0f0, #fff); + background: -o-linear-gradient(top, #f0f0f0, #fff); + background: linear-gradient(to bottom, #f0f0f0, #fff); +} +.shcs label:hover { + color: #6b6b6b; + cursor: pointer; +} +.shcs > div.focus, .shcs label.checked { + border-color: #1b79b8; + box-shadow: inset 0 0 4px #1b79b8; + color: #000; + background: #fff; + background: -webkit-linear-gradient(top, #dfeef8, #fff); + background: -moz-linear-gradient(top, #dfeef8, #fff); + background: -ms-linear-gradient(top, #dfeef8, #fff); + background: -o-linear-gradient(top, #dfeef8, #fff); + background: linear-gradient(to bottom, #dfeef8, #fff); +} +.shcs label.checked div.checker { + border-color: #1b79b8; + background: #1b79b8; + background: -webkit-linear-gradient(top, #59b5f2, #1b79b8); + background: -moz-linear-gradient(top, #59b5f2, #1b79b8); + background: -ms-linear-gradient(top, #59b5f2, #1b79b8); + background: -o-linear-gradient(top, #59b5f2, #1b79b8); + background: linear-gradient(to bottom, #59b5f2, #1b79b8); +} +.shcs label.checked div.checker.hover { + border-color: #1b79b8; + background: #1b79b8; + background: -webkit-linear-gradient(top, #1b79b8, #59b5f2); + background: -moz-linear-gradient(top, #1b79b8, #59b5f2); + background: -ms-linear-gradient(top, #1b79b8, #59b5f2); + background: -o-linear-gradient(top, #1b79b8, #59b5f2); + background: linear-gradient(to bottom, #1b79b8, #59b5f2); +} + +.shcs div.checker.focus { + border-color: #6b6b6b; + background: #6b6b6b; + background: -webkit-linear-gradient(top, #ababab, #6b6b6b); + background: -moz-linear-gradient(top, #ababab, #6b6b6b); + background: -ms-linear-gradient(top, #ababab, #6b6b6b); + background: -o-linear-gradient(top, #ababab, #6b6b6b); + background: linear-gradient(to bottom, #ababab, #6b6b6b); + box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff; +} + +.shcs div.checker.focus.hover { + border-color: #6b6b6b; + background: #6b6b6b; + background: -webkit-linear-gradient(top, #6b6b6b, #ababab); + background: -moz-linear-gradient(top, #6b6b6b, #ababab); + background: -ms-linear-gradient(top, #6b6b6b, #ababab); + background: -o-linear-gradient(top, #6b6b6b, #ababab); + background: linear-gradient(to bottom, #6b6b6b, #ababab); +} + +.shcs label > span { + position:relative; + margin-left:5px; + top:1px; +}*/ \ No newline at end of file diff --git a/themes/default/02.transForm.css b/themes/default/02.transForm.css new file mode 100644 index 0000000..f3fb9c4 --- /dev/null +++ b/themes/default/02.transForm.css @@ -0,0 +1,543 @@ + +/* COMMON - BEGIN */ + +/* FONT SETTINGS */ +.tf-select, +.tf-input, +.tf-textarea, +.tf-multiple, +.tf-label, +.tf-fieldset legend, +.tf-file, +.tf-file input, +.tf-radio, +.tf-checkbox, +.tf-button, +.tf-input.tf-color, +.tf-input.tf-range { + font-size: 13px; + cursor: pointer; +} + +/* FIELD - NORMAL */ +.tf-select .tf-selected, +.tf-input, +.tf-multiple, +.tf-textarea, +.tf-file .tf-info, +.tf-radio, +.tf-checkbox { + background: #f0f0f0; + background: -webkit-linear-gradient(top, #e3e3e3, #fff); + background: -moz-linear-gradient(top, #e3e3e3, #fff); + background: -ms-linear-gradient(top, #e3e3e3, #fff); + background: -o-linear-gradient(top, #e3e3e3, #fff); + background: linear-gradient(to bottom, #e3e3e3, #fff); + box-shadow: inset 0 0 2px #6b6b6b; + border: 1px solid #6b6b6b; + border-radius: 4px; + color: #6b6b6b; + padding: 6px 10px; +} + +/* FIELD - FOCUSED */ +.tf-select.tf-focused .tf-selected, +.tf-select .tf-menu, +.tf-multiple.tf-focused, +.tf-input:focus, .tf-textarea:focus, +.tf-file.tf-focused .tf-info, +.tf-radio.tf-focused, +.tf-checkbox.tf-focused { + background: #d2eaf6; + background: -webkit-linear-gradient(top, #d2eaf6, #fff); + background: -moz-linear-gradient(top, #d2eaf6, #fff); + background: -ms-linear-gradient(top, #d2eaf6, #fff); + background: -o-linear-gradient(top, #d2eaf6, #fff); + background: linear-gradient(to bottom, #d2eaf6, #fff); + box-shadow: inset 0 0 2px #1b79b8; + border: 1px solid #1b79b8; + color: #1b79b8; +} + +/* BUTTON - NORMAL */ +.tf-button, +.tf-file .tf-button { + background: #6b6b6b; + background: -webkit-linear-gradient(top, #ababab, #6b6b6b); + background: -moz-linear-gradient(top, #ababab, #6b6b6b); + background: -ms-linear-gradient(top, #ababab, #6b6b6b); + background: -o-linear-gradient(top, #ababab, #6b6b6b); + background: linear-gradient(to bottom, #ababab, #6b6b6b); + box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff; + border: 1px solid #6b6b6b; + border-radius: 4px; + padding: 6px 10px; +} + +/* BUTTON - FOCUSED */ +.tf-file.tf-focused .tf-button, +.tf-button.tf-focused, +.tf-select.tf-focused .tf-button{ + background: #1b79b8; + background: -webkit-linear-gradient(top, #59b5f2, #1b79b8); + background: -moz-linear-gradient(top, #59b5f2, #1b79b8); + background: -ms-linear-gradient(top, #59b5f2, #1b79b8); + background: -o-linear-gradient(top, #59b5f2, #1b79b8); + background: linear-gradient(to bottom, #59b5f2, #1b79b8); + border-color: #1b79b8; +} + +/* BLACK OUTLINE, WHITE TEXT */ +.tf-select .tf-menu .tf-hover, +.tf-multiple .tf-hover, +.tf-multiple .tf-selected, +.tf-button { + color: #fff; + text-shadow: + 1px 0 rgba(0,0,0,.2), + -1px 0 rgba(0,0,0,.2), + 0 -1px rgba(0,0,0,.2), + 0 1px rgba(0,0,0,.2), + 1px 1px rgba(0,0,0,.2), + -1px -1px rgba(0,0,0,.2), + 1px -1px rgba(0,0,0,.2), + -1px 1px rgba(0,0,0,.2); +} + +/* COMMON - END */ + +/* SELECT BOX - BEGIN */ + +.tf-select .tf-selected { + border-radius: 4px 0 0 4px; +} +.tf-select .tf-button { + border-left: none; + border-radius: 0 4px 4px 0; +} + +.tf-select .tf-button span { + display: block; + background: url('img/ui-icons_white.png') -64px -15px; + width: 16px; + margin-left: 4px; + margin-right: 5px; +} +.tf-select .tf-menu { + border-radius: 0 0 4px 4px; +} +.tf-select .tf-menu div, +.tf-multiple div { + border: 1px solid transparent; + border-left-width: 0; + border-right-width: 0; + padding: 6px 10px; + margin-top: -1px; +} +.tf-select .tf-menu .tf-hover, +.tf-multiple.tf-focused .tf-hover, +.tf-multiple.tf-focused .tf-selected, +.tf-select.tf-opened.tf-focused .tf-button { + border-color: #1b79b8; + background: #59b5f2; + background: -webkit-linear-gradient(top, #1b79b8, #59b5f2); + background: -moz-linear-gradient(top, #1b79b8, #59b5f2); + background: -ms-linear-gradient(top, #1b79b8, #59b5f2); + background: -o-linear-gradient(top, #1b79b8, #59b5f2); + background: linear-gradient(to bottom, #1b79b8, #59b5f2); + box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff; +} +.tf-select.tf-opened .tf-button { + background: #ababab; + background: -webkit-linear-gradient(top, #6b6b6b, #ababab); + background: -moz-linear-gradient(top, #6b6b6b, #ababab); + background: -ms-linear-gradient(top, #6b6b6b, #ababab); + background: -o-linear-gradient(top, #6b6b6b, #ababab); + background: linear-gradient(to bottom, #6b6b6b, #ababab); +} +.tf-select.tf-opened .tf-button { + +} +.tf-select .tf-menu .tf-group-last, +.tf-select .tf-menu div.tf-last { + border-bottom-width: 0; +} +.tf-select .tf-menu ul { + overflow: hidden; +} +.tf-select .tf-menu li.tf-last { + margin-bottom: -1px; +} +.tf-select .tf-menu .tf-last { + border-radius: 0 0 4px 4px; +} +.tf-select.tf-opened .tf-selected { + border-radius: 4px 0 0 0; +} +.tf-select.tf-opened .tf-button { + border-radius: 0 4px 0 0; +} +.tf-select .tf-menu li, +.tf-multiple.tf-focused li { + border-bottom: 1px solid #54b0e0; + border-top: 1px solid #54b0e0; + margin: -1px 0; +} +.tf-select .tf-menu li > span, +.tf-multiple li > span, +.tf-multiple.tf-focused li > span { + display: block; + padding: 6px 10px; + text-align: center; + font-weight: bold; + color: #6b6b6b; + background: #a7deff; + border-bottom: 1px solid #54b0e0; + cursor: default; + white-space: nowrap; +} + +/* SELECT BOX - END */ + +/* MULTIPLE SELECT BOX - BEGIN */ + +.tf-multiple { + padding: 0; +} +.tf-multiple li { + border: 1px solid #54b0e0; + border-right: none; + border-left: none; + margin: -1px 0; +} +.tf-multiple li > span { + color: #70a5d1; + border-color: #54b0e0; + background: #c1ddf5; +} +.tf-multiple .tf-hover, +.tf-multiple .tf-selected, +.tf-multiple.tf-focused .tf-hover { + background: #b7def2; + background: -webkit-linear-gradient(top, #54b0e0, #b7def2); + background: -moz-linear-gradient(top, #54b0e0, #b7def2); + background: -ms-linear-gradient(top, #54b0e0, #b7def2); + background: -o-linear-gradient(top, #54b0e0, #b7def2); + background: linear-gradient(to bottom, #54b0e0, #b7def2); + box-shadow: inset 0 0 2px #fff, inset 0 0 2px #fff; + border-color: #54b0e0; +} +.tf-multiple .tf-hover, +.tf-multiple .tf-selected { + border: 1px solid #54b0e0; + border-left: none; + border-right: none; +} +.tf-multiple div.tf-first { + border-top: none; + border-radius: 4px 4px 0 0; + margin-top: 0; +} +.tf-multiple div.tf-last { + border-bottom: none; + border-radius: 0 0 4px 4px; +} +.tf-multiple .tf-group-first { + border-top: none; + margin-top: 0; +} +.tf-multiple li.tf-last, +.tf-multiple .tf-group-last { + border-bottom: none; +} + +/* MULTIPLE SELECT BOX - END */ + +/* FILE UPLOAD BOX - BEGIN */ + +.tf-file { + width: 200px; + padding: 0; + overflow: auto; +} +.tf-file .tf-info, .tf-file.tf-focused .tf-info { + padding: 6px 10px; + border-radius: 4px 0 0 4px; + border-right: none; +} +.tf-file .tf-button { + border-radius: 0 4px 4px 0; + color: transparent; + text-shadow: none; + padding: 6px 8px; +} +.tf-file .tf-button span { + margin: 0 0 0 -4px; + width: 16px; + height: 16px; + display: block; + overflow: hidden; + background: url('img/ui-icons_white.png') -16px -96px; +} +.tf-file .tf-button:after { + content: "\00a0"; +} +.tf-file input::-webkit-file-upload-button { + cursor: pointer; +} + +/* FILE UPLOAD BOX - END */ + +/* RADIO BUTTON - BEGIN */ + +.tf-radio { + width: 15px; + height: 15px; + padding: 0; + border-radius: 8px; +} +.tf-radio input { + width: 17px; + height: 17px; + margin: -1px 0 0 -1px; + cursor: pointer; +} +.tf-radio span { + width: 15px; + height: 15px; + display: block; + float: right; +} +.tf-radio.tf-checked span { + background: url('img/ui-icons_black.png') -80px -145px; +} +.tf-radio.tf-checked.tf-focused span { + background-image: url('img/ui-icons_blue.png'); +} + +/* RADIO BUTTON - END */ + +/* CHECK BOX - BEGIN */ + +.tf-checkbox { + padding: 0; + width: 15px; + height: 15px; + border-radius: 3px; +} +.tf-checkbox input { + width: 17px; + height: 17px; + margin: -1px 0 0 -1px; + cursor: pointer; +} +.tf-checkbox.tf-checked span { + width: 15px; + height: 15px; + display: block; + background: url('img/ui-icons_black.png') -64px -145px; + float: right; +} +.tf-checkbox.tf-focused.tf-checked span { + background-image: url('img/ui-icons_blue.png'); +} + + +/* CHECK BX - END */ + +/* BUTTON */ +.tf-button { + overflow: hidden; + padding: 0; +} +.tf-button span { + margin: 3px 7px; + float: right; +} +.tf-button input, +.tf-button button { + cursor: pointer; +} + +/* TEXT & TEXTAREA - BEGIN */ + +.tf-input, .tf-textarea { + outline: none; + cursor: text; + margin: 0; +} +/*.tf-input.tf-readOnly, +.tf-textarea.tf-readOnly, +.tf-input.tf-readOnly:focus, +.tf-textarea.tf-readOnly:focus { + background: #e4e4e4; + background: -webkit-linear-gradient(top, #e4e4e4, #fff); + background: -moz-linear-gradient(top, #e4e4e4, #fff); + background: -ms-linear-gradient(top, #e4e4e4, #fff); + background: -o-linear-gradient(top, #e4e4e4, #fff); + background: linear-gradient(to bottom, #e4e4e4, #fff); + box-shadow: inset 0 0 2px #a2a2a2; + border: 1px solid #a2a2a2; + border-radius: 4px; + color: #888; + padding: 6px 10px; +}*/ + +/* PLACEHOLDER COLORS */ + +.tf-input::-webkit-input-placeholder, +.tf-textarea::-webkit-input-placeholder { + color: #bbb; +} +.tf-input:-moz-placeholder, +.tf-textarea:-moz-placeholder { + color: #aaa; +} +.tf-input::-moz-placeholder, +.tf-textarea::-moz-placeholder { + color: #aaa; +} +.tf-input:-ms-input-placeholder, +.tf-textarea:-ms-input-placeholder { + color: #bbb; +} +.tf-input:focus::-webkit-input-placeholder, +.tf-textarea:focus::-webkit-input-placeholder { + color: #abc7d6; +} +.tf-input:focus:-moz-placeholder, +.tf-textarea:focus:-moz-placeholder { + color: #54B0E0; +} +.tf-input:focus::-moz-placeholder, +.tf-textarea:focus::-moz-placeholder { + color: #54B0E0; +} +.tf-input:focus:-ms-input-placeholder, +.tf-textarea:focus:-ms-input-placeholder { + color: #abc7d6; +} + +/* READ-ONLY PLACEHOLDERS */ + +.tf-input.tf-readOnly::-webkit-input-placeholder, +.tf-textarea.tf-readOnly::-webkit-input-placeholder { + color: #d4d4d4; +} +.tf-input.tf-readOnly:-moz-placeholder, +.tf-textarea.tf-readOnly:-moz-placeholder { + color: #dedede; +} +.tf-input.tf-readOnly::-moz-placeholder, +.tf-textarea.tf-readOnly::-moz-placeholder { + color: #dedede; +} +.tf-input.tf-readOnly:-ms-input-placeholder, +.tf-textarea.tf-readOnly:-ms-input-placeholder { + color: #d4d4d4; +} +.tf-input.tf-readOnly:focus::-webkit-input-placeholder, +.tf-textarea.tf-readOnly:focus::-webkit-input-placeholder { + color: #d4d4d4; +} +.tf-input.tf-readOnly:focus:-moz-placeholder, +.tf-textarea.tf-readOnly:focus:-moz-placeholder { + color: #dedede; +} +.tf-input.tf-readOnly:focus::-moz-placeholder, +.tf-textarea.tf-readOnly:focus::-moz-placeholder { + color: #dedede; +} +.tf-input.tf-readOnly:focus:-ms-input-placeholder, +.tf-textarea.tf-readOnly:focus:-ms-input-placeholder { + color: #d4d4d4; +} + +/* TEXT & TEXTAREA - END */ + +/* FIELD SET */ +.tf-fieldset { +border: 1px solid #6B6B6B; + box-shadow: inset 0 0 4px #6B6B6B; + border-radius: 4px; + background: #fff; + background: -webkit-linear-gradient(top, #e3e3e3, #fff); + background: -moz-linear-gradient(top, #e3e3e3, #fff); + background: -ms-linear-gradient(top, #e3e3e3, #fff); + background: -o-linear-gradient(top, #e3e3e3, #fff); + background: linear-gradient(to bottom, #e3e3e3, #fff); + margin: 0 10px 10px 0; + padding: 10px; +} +.tf-fieldset legend { + font-weight: bold; + color: #6B6B6B; + text-shadow: + 1px 0 rgba(255,255,255,.5), + -1px 0 rgba(255,255,255,.5), + 0 -1px rgba(255,255,255,.5), + 0 1px rgba(255,255,255,.5), + 1px 1px rgba(255,255,255,.5), + -1px -1px rgba(255,255,255,.5), + 1px -1px rgba(255,255,255,.5), + -1px 1px rgba(255,255,255,.5), + 0 0 5px #fff; +} + +/* MISC */ + +.tf-label { + color: #6b6b6b; + margin: 0 3px; +} +.tf-label.tf-focused { + color: #1b79b8; +} +.tf-disabled { + opacity: .5; + filter: alpha(opacity=50); +} +.tf-disabled, +.tf-disabled input, +.tf-disabled button, +.tf-disabled * +*.tf-disabled { + cursor: default; +} +.tf-file.tf-disabled input::-webkit-file-upload-button { + cursor: pointer; +} +.tf-fieldset.tf-disabled, +.tf-form.tf-disabled { + opacity: 1; + filter: alpha(opacity=100); +} + +.tf-input.tf-color { + width: 30px; + padding: 0; + height: 24px; +} +.tf-input.tf-number { + text-align: right; +} +.tf-input.tf-range { + height: 9px; + margin: 8px 0 7px 0; +} +.tf-input.tf-search, +.tf-input.tf-search.tf-readOnly{ + border-radius: 11px; +} +.tf-input.tf-datetime, +.tf-input.tf-datetime-local, +.tf-input.tf-month, +.tf-input.tf-time, +.tf-input.tf-week, +.tf-input.tf-datetime:focus, +.tf-input.tf-datetime-local:focus, +.tf-input.tf-month:focus, +.tf-input.tf-time:focus, +.tf-input.tf-week:focus { + padding: 1px 5px; +} \ No newline at end of file diff --git a/themes/default/03.misc.css b/themes/default/03.misc.css new file mode 100644 index 0000000..550d0bc --- /dev/null +++ b/themes/default/03.misc.css @@ -0,0 +1,431 @@ +* { + font-size: 13px; +} +body { + background: #e0e0e0; + color: #6B6B6B; +} +fieldset td { + white-space: nowrap; +} +#folders { + margin: 5px 5px 0 5px; +} +#files { + margin-right: 5px; +} + + +/* SHARED DECLARATIONS */ + +#toolbar a:hover, +#toolbar a.hover, +span.current, +span.regular:hover, +span.context, +a.drag > span.folder, +#clipboard div:hover, +div.file:hover, +#files div.selected, +#files div.selected:hover, +tr.selected > td, +tr.selected:hover > td, +#menu .list div a:hover { + color: #fff; + text-shadow: + 1px 0 rgba(0,0,0,.2), + -1px 0 rgba(0,0,0,.2), + 0 -1px rgba(0,0,0,.2), + 0 1px rgba(0,0,0,.2), + 1px 1px rgba(0,0,0,.2), + -1px -1px rgba(0,0,0,.2), + 1px -1px rgba(0,0,0,.2), + -1px 1px rgba(0,0,0,.2); +} + +#files, +#folders, +#toolbar a.selected { + border: 1px solid #6B6B6B; + box-shadow: inset 0 0 4px #6B6B6B; + border-radius: 4px; + background: #fff; + background: -webkit-linear-gradient(top, #f0f0f0, #fff); + background: -moz-linear-gradient(top, #f0f0f0, #fff); + background: -ms-linear-gradient(top, #f0f0f0, #fff); + background: -o-linear-gradient(top, #f0f0f0, #fff); + background: linear-gradient(to bottom, #f0f0f0, #fff); +} + +/* TOOLBAR */ + +#toolbar { + padding: 5px 0; +} +#toolbar a { + color: #6b6b6b; + margin-right: 5px; + border: 1px solid transparent; + outline: none; + display: block; + float: left; + border-radius: 4px; + padding:0; + background: #E0E0E0; +} +#toolbar a > span { + padding: 6px 10px 6px 26px; + diaplay: block; + float:left; + background: no-repeat 6px center; +} +#toolbar a:hover, +#toolbar a.hover { + border-color: #1b79b8; + background: #1b79b8; + background: -webkit-linear-gradient(top, #59b5f2, #1b79b8); + background: -moz-linear-gradient(top, #59b5f2, #1b79b8); + background: -ms-linear-gradient(top, #59b5f2, #1b79b8); + background: -o-linear-gradient(top, #59b5f2, #1b79b8); + background: linear-gradient(to bottom, #59b5f2, #1b79b8); + box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff; +} +#toolbar a[href="kcact:upload"] span { + background-image: url(img/icons/upload.png); +} +#toolbar a[href="kcact:refresh"] span { + background-image: url(img/icons/refresh.png); +} +#toolbar a[href="kcact:settings"] span { + background-image: url(img/icons/settings.png); +} +#toolbar a[href="kcact:about"] span { + background-image: url(img/icons/about.png); +} +#toolbar a[href="kcact:maximize"] span { + background-image: url(img/icons/maximize.png); +} + + +/* SETTINGS BAR */ + +#settings label { + cursor: pointer; +} +#settings fieldset { + margin-right:5px; + margin-bottom: 6px; + margin-top:-5px; + padding:6px; +} + + +/* FOLDERS */ + +div.folder { + padding-top: 2px; + margin-top: 4px; + white-space: nowrap; +} +div.folder a { + text-decoration: none; + cursor: default; + outline: none; + color: #6b6b6b; +} +span.folder { + padding: 2px 3px 2px 23px; + outline: none; + background: no-repeat 3px center; + cursor: pointer; + border-radius: 3px; + border: 1px solid transparent; +} +span.brace { + width: 16px; + height: 16px; + outline: none; +} +span.current { + transition: .3s; + background-image: url(img/tree/folder.png); + background-color: #3b98d6; + border-color: #3b98d6; + box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff; +} +span.regular { + transition: .3s; + background-image: url(img/tree/folder.png); + background-color: transparent; +} +span.regular:hover, span.context, a.drag > span.folder, #clipboard div:hover { + transition: .3s; + background-color: #c6c6c6; + border-color: #c6c6c6; + box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff; +} +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); +} + + +/* FILES */ + +div.file { + padding: 4px; + margin: 3px; + border: 1px solid transparent; + border-radius: 4px; +} +div.file:hover { + border-color: #aaa; + box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff; + background: #c6c6c6; + background: -webkit-linear-gradient(top, #e7e7e7, #c6c6c6); + background: -moz-linear-gradient(top, #e7e7e7, #c6c6c6); + background: -ms-linear-gradient(top, #e7e7e7, #c6c6c6); + background: -o-linear-gradient(top, #e7e7e7, #c6c6c6); + background: linear-gradient(to bottom, #e7e7e7, #c6c6c6); +} +div.file .name { + margin-top: 4px; + font-weight: bold; + height: 16px; + overflow: hidden; + padding-bottom: 2px; +} +div.file .time { + font-size: 10px; +} +div.file .size { + font-size: 10px; +} +#files div.selected, +#files div.selected:hover { + border-color: #3b98d6; + background: #3b98d6; + background: -webkit-linear-gradient(top, #7dc2f2, #3b98d6); + background: -moz-linear-gradient(top, #7dc2f2, #3b98d6); + background: -ms-linear-gradient(top, #7dc2f2, #3b98d6); + background: -o-linear-gradient(top, #7dc2f2, #3b98d6); + background: linear-gradient(to bottom, #7dc2f2, #3b98d6); + box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff; +} +tr.file > td { + padding: 3px 4px; +} +tr.file:hover > td { + background-color: #ddebf8; + transition: none; +} +tr.selected > td, +tr.selected:hover > td { + transition: .3s; + background-color: #5b9bda; +} +tr.file td.name { + background-position: 2px center; + padding-left: 22px; +} +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; +} + +/* FILE MENU */ + +#menu .ui-menu a span { + background: left center no-repeat; + padding-left: 20px; + white-space: nowrap; +} +#menu a[href="kcact:refresh"] span { + background-image: url(img/icons/refresh.png); +} +#menu a[href="kcact:mkdir"] span { + background-image: url(img/icons/folder-new.png); +} +#menu a[href="kcact:mvdir"] span, #menu a[href="kcact:mv"] span { + background-image: url(img/icons/rename.png); +} +#menu a[href="kcact:rmdir"] span, #menu a[href="kcact:rm"] span, #menu a[href="kcact:rmcbd"] span { + background-image: url(img/icons/delete.png); +} +#menu a[href="kcact:clpbrdadd"] span { + background-image: url(img/icons/clipboard-add.png); +} +#menu a[href="kcact:pick"] span, #menu a[href="kcact:pick_thumb"] span { + background-image: url(img/icons/select.png); +} +#menu a[href="kcact:download"] span { + background-image: url(img/icons/download.png); +} +#menu a[href="kcact:view"] span { + background-image: url(img/icons/view.png); +} +#menu a[href="kcact:cpcbd"] span { + background-image: url(img/icons/copy.png); +} +#menu a[href="kcact:mvcbd"] span { + background-image: url(img/icons/move.png); +} +#menu a[href="kcact:clrcbd"] span { + background-image: url(img/icons/clipboard-clear.png); +} + +/* CLIPBOARD */ + +#clipboard { + margin-left:-3px; + padding: 2px; +} +#clipboard div { + background: url(img/icons/clipboard.png) no-repeat center center; + border: 1px solid transparent; + padding: 2px; + cursor: pointer; + border-radius: 4px; +} +#clipboard.selected div, #clipboard.selected div:hover { + background-color: #3b98d6; + border-color: #3b98d6; + box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff; +} +#menu .list a, #menu .list a.ui-state-focus { + margin: -1px 0 0 -1px; + padding: 6px 10px; + border: 1px solid transparent; + background: none; + border-radius: 0; + text-shadow: none; + box-shadow: none; + color: #6b6b6b; +} +#menu .list a.first, #menu .list a.first.ui-state-focus { + border-radius: 4px 4px 0 0; +} +#menu .list a:hover { + border-color: #1b79b8; + background: #1b79b8; + background: -webkit-linear-gradient(top, #1b79b8, #59b5f2); + background: -moz-linear-gradient(top, #1b79b8, #59b5f2); + background: -ms-linear-gradient(top, #1b79b8, #59b5f2); + background: -o-linear-gradient(top, #1b79b8, #59b5f2); + background: linear-gradient(to bottom, #1b79b8, #59b5f2); + box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff; +} +#menu .list { + overflow:hidden; + max-height: 1px; + margin-bottom: -1px; + padding-bottom:1px; +} +#menu li.div-files { + margin: 0 0 1px 0; +} + +/* ABOUT DIALOG */ + +.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; + outline: none; +} + +.about a { + text-decoration: none; + color: #0055ff; +} + +.about a:hover { + text-decoration: underline; +} +#checkver { + margin: 5px 0 10px 0; +} +#loading, #checkver > span.loading { + background: url(img/loading.gif); + border: 1px solid #3687e2; + box-shadow: 0 0 3px #3687e2, inset 0 0 4px #fff, inset 0 0 5px #fff; + padding: 6px 10px; + border-radius: 4px; +} +#checkver a { + font-weight: normal; + padding: 3px 3px 3px 20px; + background: url(img/icons/download.png) no-repeat left center; +} + +/* IMAGE VIEWER */ + +.kcfImageViewer .ui-dialog-content { + cursor: pointer; +} +.kcfImageViewer .img { + background: url(img/bg_transparent.png); +} +.ui-dialog-titlebar.loading { + background: url(img/loading.gif); +} + +.ui-dialog-titlebar.loading .ui-dialog-title { + color: #6b6b6b; + text-shadow:none; + font-weight: normal; +} +.ui-dialog-titlebar.loading .ui-dialog-titlebar-close .ui-button-icon-primary.ui-icon.ui-icon-closethick { + background-image: url(img/ui-icons_black.png); +} + + +/* MISC */ + +#loading { + margin-right: 5px; +} +#loadingDirs { + padding: 5px 0 1px 24px; +} +#files.drag { + background: #ddebf8; +} + +#settings .tf-select { + margin: 3px 5px 6px 0; +} +#settings .tf-selected { + padding-top: 10px; + padding-bottom: 11px; +} +#settings .tf-select .tf-button { + padding-top: 7px; + padding-bottom: 8px; +} + +/* FIX FIELDSET BORDER RADIUS BUG ON IE */ +body.msie fieldset, +body.trident.rv fieldset { + border-radius: 0; +} \ No newline at end of file diff --git a/themes/default/README b/themes/default/README new file mode 100644 index 0000000..3d745ac --- /dev/null +++ b/themes/default/README @@ -0,0 +1,9 @@ +This folder contains files for designing default visual theme for KCFinder. +Some icons are taken from default KDE4 visual theme (http://www.kde.org) + +Theme Details: + +Version: 1.0 +Author: Pavel Tzonkov +Licenses: GPLv3 - http://opensource.org/licenses/GPL-3.0 + LGPLv3 - http://opensource.org/licenses/LGPL-3.0 diff --git a/themes/default/css.php b/themes/default/css.php new file mode 100644 index 0000000..247857b --- /dev/null +++ b/themes/default/css.php @@ -0,0 +1,10 @@ +minify("cache/theme_$theme.css"); diff --git a/themes/oxygen/img/bg_transparent.png b/themes/default/img/bg_transparent.png similarity index 100% rename from themes/oxygen/img/bg_transparent.png rename to themes/default/img/bg_transparent.png diff --git a/themes/oxygen/img/files/big/..png b/themes/default/img/files/big/..png similarity index 100% rename from themes/oxygen/img/files/big/..png rename to themes/default/img/files/big/..png diff --git a/themes/oxygen/img/files/big/.image.png b/themes/default/img/files/big/.image.png similarity index 100% rename from themes/oxygen/img/files/big/.image.png rename to themes/default/img/files/big/.image.png diff --git a/themes/oxygen/img/files/big/flv.png b/themes/default/img/files/big/avi.png similarity index 100% rename from themes/oxygen/img/files/big/flv.png rename to themes/default/img/files/big/avi.png diff --git a/themes/oxygen/img/files/big/bat.png b/themes/default/img/files/big/bat.png similarity index 100% rename from themes/oxygen/img/files/big/bat.png rename to themes/default/img/files/big/bat.png diff --git a/themes/oxygen/img/files/big/bmp.png b/themes/default/img/files/big/bmp.png similarity index 100% rename from themes/oxygen/img/files/big/bmp.png rename to themes/default/img/files/big/bmp.png diff --git a/themes/oxygen/img/files/big/bz2.png b/themes/default/img/files/big/bz2.png similarity index 100% rename from themes/oxygen/img/files/big/bz2.png rename to themes/default/img/files/big/bz2.png diff --git a/themes/oxygen/img/files/big/ccd.png b/themes/default/img/files/big/ccd.png similarity index 100% rename from themes/oxygen/img/files/big/ccd.png rename to themes/default/img/files/big/ccd.png diff --git a/themes/oxygen/img/files/big/cgi.png b/themes/default/img/files/big/cgi.png similarity index 100% rename from themes/oxygen/img/files/big/cgi.png rename to themes/default/img/files/big/cgi.png diff --git a/themes/oxygen/img/files/big/com.png b/themes/default/img/files/big/com.png similarity index 100% rename from themes/oxygen/img/files/big/com.png rename to themes/default/img/files/big/com.png diff --git a/themes/oxygen/img/files/big/csh.png b/themes/default/img/files/big/csh.png similarity index 100% rename from themes/oxygen/img/files/big/csh.png rename to themes/default/img/files/big/csh.png diff --git a/themes/oxygen/img/files/big/cue.png b/themes/default/img/files/big/cue.png similarity index 100% rename from themes/oxygen/img/files/big/cue.png rename to themes/default/img/files/big/cue.png diff --git a/themes/oxygen/img/files/big/deb.png b/themes/default/img/files/big/deb.png similarity index 100% rename from themes/oxygen/img/files/big/deb.png rename to themes/default/img/files/big/deb.png diff --git a/themes/oxygen/img/files/big/dll.png b/themes/default/img/files/big/dll.png similarity index 100% rename from themes/oxygen/img/files/big/dll.png rename to themes/default/img/files/big/dll.png diff --git a/themes/oxygen/img/files/big/doc.png b/themes/default/img/files/big/doc.png similarity index 100% rename from themes/oxygen/img/files/big/doc.png rename to themes/default/img/files/big/doc.png diff --git a/themes/oxygen/img/files/big/docx.png b/themes/default/img/files/big/docx.png similarity index 100% rename from themes/oxygen/img/files/big/docx.png rename to themes/default/img/files/big/docx.png diff --git a/themes/oxygen/img/files/big/exe.png b/themes/default/img/files/big/exe.png similarity index 100% rename from themes/oxygen/img/files/big/exe.png rename to themes/default/img/files/big/exe.png diff --git a/themes/oxygen/img/files/big/fla.png b/themes/default/img/files/big/fla.png similarity index 100% rename from themes/oxygen/img/files/big/fla.png rename to themes/default/img/files/big/fla.png diff --git a/themes/oxygen/img/files/big/mkv.png b/themes/default/img/files/big/flv.png similarity index 100% rename from themes/oxygen/img/files/big/mkv.png rename to themes/default/img/files/big/flv.png diff --git a/themes/oxygen/img/files/big/fon.png b/themes/default/img/files/big/fon.png similarity index 100% rename from themes/oxygen/img/files/big/fon.png rename to themes/default/img/files/big/fon.png diff --git a/themes/oxygen/img/files/big/gif.png b/themes/default/img/files/big/gif.png similarity index 100% rename from themes/oxygen/img/files/big/gif.png rename to themes/default/img/files/big/gif.png diff --git a/themes/oxygen/img/files/big/gz.png b/themes/default/img/files/big/gz.png similarity index 100% rename from themes/oxygen/img/files/big/gz.png rename to themes/default/img/files/big/gz.png diff --git a/themes/oxygen/img/files/big/htm.png b/themes/default/img/files/big/htm.png similarity index 100% rename from themes/oxygen/img/files/big/htm.png rename to themes/default/img/files/big/htm.png diff --git a/themes/oxygen/img/files/big/html.png b/themes/default/img/files/big/html.png similarity index 100% rename from themes/oxygen/img/files/big/html.png rename to themes/default/img/files/big/html.png diff --git a/themes/oxygen/img/files/big/ini.png b/themes/default/img/files/big/ini.png similarity index 100% rename from themes/oxygen/img/files/big/ini.png rename to themes/default/img/files/big/ini.png diff --git a/themes/oxygen/img/files/big/iso.png b/themes/default/img/files/big/iso.png similarity index 100% rename from themes/oxygen/img/files/big/iso.png rename to themes/default/img/files/big/iso.png diff --git a/themes/oxygen/img/files/big/jar.png b/themes/default/img/files/big/jar.png similarity index 100% rename from themes/oxygen/img/files/big/jar.png rename to themes/default/img/files/big/jar.png diff --git a/themes/oxygen/img/files/big/java.png b/themes/default/img/files/big/java.png similarity index 100% rename from themes/oxygen/img/files/big/java.png rename to themes/default/img/files/big/java.png diff --git a/themes/oxygen/img/files/big/jpeg.png b/themes/default/img/files/big/jpeg.png similarity index 100% rename from themes/oxygen/img/files/big/jpeg.png rename to themes/default/img/files/big/jpeg.png diff --git a/themes/oxygen/img/files/big/jpg.png b/themes/default/img/files/big/jpg.png similarity index 100% rename from themes/oxygen/img/files/big/jpg.png rename to themes/default/img/files/big/jpg.png diff --git a/themes/oxygen/img/files/big/js.png b/themes/default/img/files/big/js.png similarity index 100% rename from themes/oxygen/img/files/big/js.png rename to themes/default/img/files/big/js.png diff --git a/themes/oxygen/img/files/big/mds.png b/themes/default/img/files/big/mds.png similarity index 100% rename from themes/oxygen/img/files/big/mds.png rename to themes/default/img/files/big/mds.png diff --git a/themes/oxygen/img/files/big/mdx.png b/themes/default/img/files/big/mdx.png similarity index 100% rename from themes/oxygen/img/files/big/mdx.png rename to themes/default/img/files/big/mdx.png diff --git a/themes/oxygen/img/files/big/mid.png b/themes/default/img/files/big/mid.png similarity index 100% rename from themes/oxygen/img/files/big/mid.png rename to themes/default/img/files/big/mid.png diff --git a/themes/oxygen/img/files/big/midi.png b/themes/default/img/files/big/midi.png similarity index 100% rename from themes/oxygen/img/files/big/midi.png rename to themes/default/img/files/big/midi.png diff --git a/themes/oxygen/img/files/big/mov.png b/themes/default/img/files/big/mkv.png similarity index 100% rename from themes/oxygen/img/files/big/mov.png rename to themes/default/img/files/big/mkv.png diff --git a/themes/oxygen/img/files/big/mpeg.png b/themes/default/img/files/big/mov.png similarity index 100% rename from themes/oxygen/img/files/big/mpeg.png rename to themes/default/img/files/big/mov.png diff --git a/themes/oxygen/img/files/big/mp3.png b/themes/default/img/files/big/mp3.png similarity index 100% rename from themes/oxygen/img/files/big/mp3.png rename to themes/default/img/files/big/mp3.png diff --git a/themes/oxygen/img/files/big/mpg.png b/themes/default/img/files/big/mp4.png similarity index 100% rename from themes/oxygen/img/files/big/mpg.png rename to themes/default/img/files/big/mp4.png diff --git a/themes/oxygen/img/files/big/qt.png b/themes/default/img/files/big/mpeg.png similarity index 100% rename from themes/oxygen/img/files/big/qt.png rename to themes/default/img/files/big/mpeg.png diff --git a/themes/default/img/files/big/mpg.png b/themes/default/img/files/big/mpg.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/default/img/files/big/mpg.png differ diff --git a/themes/oxygen/img/files/big/nfo.png b/themes/default/img/files/big/nfo.png similarity index 100% rename from themes/oxygen/img/files/big/nfo.png rename to themes/default/img/files/big/nfo.png diff --git a/themes/oxygen/img/files/big/nrg.png b/themes/default/img/files/big/nrg.png similarity index 100% rename from themes/oxygen/img/files/big/nrg.png rename to themes/default/img/files/big/nrg.png diff --git a/themes/oxygen/img/files/big/ogg.png b/themes/default/img/files/big/ogg.png similarity index 100% rename from themes/oxygen/img/files/big/ogg.png rename to themes/default/img/files/big/ogg.png diff --git a/themes/oxygen/img/files/big/pdf.png b/themes/default/img/files/big/pdf.png similarity index 100% rename from themes/oxygen/img/files/big/pdf.png rename to themes/default/img/files/big/pdf.png diff --git a/themes/oxygen/img/files/big/php.png b/themes/default/img/files/big/php.png similarity index 100% rename from themes/oxygen/img/files/big/php.png rename to themes/default/img/files/big/php.png diff --git a/themes/oxygen/img/files/big/phps.png b/themes/default/img/files/big/phps.png similarity index 100% rename from themes/oxygen/img/files/big/phps.png rename to themes/default/img/files/big/phps.png diff --git a/themes/oxygen/img/files/big/pl.png b/themes/default/img/files/big/pl.png similarity index 100% rename from themes/oxygen/img/files/big/pl.png rename to themes/default/img/files/big/pl.png diff --git a/themes/oxygen/img/files/big/pm.png b/themes/default/img/files/big/pm.png similarity index 100% rename from themes/oxygen/img/files/big/pm.png rename to themes/default/img/files/big/pm.png diff --git a/themes/oxygen/img/files/big/png.png b/themes/default/img/files/big/png.png similarity index 100% rename from themes/oxygen/img/files/big/png.png rename to themes/default/img/files/big/png.png diff --git a/themes/oxygen/img/files/big/ppt.png b/themes/default/img/files/big/ppt.png similarity index 100% rename from themes/oxygen/img/files/big/ppt.png rename to themes/default/img/files/big/ppt.png diff --git a/themes/oxygen/img/files/big/pptx.png b/themes/default/img/files/big/pptx.png similarity index 100% rename from themes/oxygen/img/files/big/pptx.png rename to themes/default/img/files/big/pptx.png diff --git a/themes/oxygen/img/files/big/tif.png b/themes/default/img/files/big/psd.png similarity index 100% rename from themes/oxygen/img/files/big/tif.png rename to themes/default/img/files/big/psd.png diff --git a/themes/default/img/files/big/qt.png b/themes/default/img/files/big/qt.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/themes/default/img/files/big/qt.png differ diff --git a/themes/oxygen/img/files/big/zip.png b/themes/default/img/files/big/rar.png similarity index 100% rename from themes/oxygen/img/files/big/zip.png rename to themes/default/img/files/big/rar.png diff --git a/themes/oxygen/img/files/big/rpm.png b/themes/default/img/files/big/rpm.png similarity index 100% rename from themes/oxygen/img/files/big/rpm.png rename to themes/default/img/files/big/rpm.png diff --git a/themes/oxygen/img/files/big/rtf.png b/themes/default/img/files/big/rtf.png similarity index 100% rename from themes/oxygen/img/files/big/rtf.png rename to themes/default/img/files/big/rtf.png diff --git a/themes/oxygen/img/files/big/sh.png b/themes/default/img/files/big/sh.png similarity index 100% rename from themes/oxygen/img/files/big/sh.png rename to themes/default/img/files/big/sh.png diff --git a/themes/default/img/files/big/sql.png b/themes/default/img/files/big/sql.png new file mode 100644 index 0000000..754b3dc Binary files /dev/null and b/themes/default/img/files/big/sql.png differ diff --git a/themes/oxygen/img/files/big/srt.png b/themes/default/img/files/big/srt.png similarity index 100% rename from themes/oxygen/img/files/big/srt.png rename to themes/default/img/files/big/srt.png diff --git a/themes/oxygen/img/files/big/sub.png b/themes/default/img/files/big/sub.png similarity index 100% rename from themes/oxygen/img/files/big/sub.png rename to themes/default/img/files/big/sub.png diff --git a/themes/oxygen/img/files/big/swf.png b/themes/default/img/files/big/swf.png similarity index 100% rename from themes/oxygen/img/files/big/swf.png rename to themes/default/img/files/big/swf.png diff --git a/themes/oxygen/img/files/big/tgz.png b/themes/default/img/files/big/tgz.png similarity index 100% rename from themes/oxygen/img/files/big/tgz.png rename to themes/default/img/files/big/tgz.png diff --git a/themes/oxygen/img/files/big/tiff.png b/themes/default/img/files/big/tif.png similarity index 100% rename from themes/oxygen/img/files/big/tiff.png rename to themes/default/img/files/big/tif.png diff --git a/themes/default/img/files/big/tiff.png b/themes/default/img/files/big/tiff.png new file mode 100644 index 0000000..bbe1180 Binary files /dev/null and b/themes/default/img/files/big/tiff.png differ diff --git a/themes/oxygen/img/files/big/torrent.png b/themes/default/img/files/big/torrent.png similarity index 100% rename from themes/oxygen/img/files/big/torrent.png rename to themes/default/img/files/big/torrent.png diff --git a/themes/oxygen/img/files/big/ttf.png b/themes/default/img/files/big/ttf.png similarity index 100% rename from themes/oxygen/img/files/big/ttf.png rename to themes/default/img/files/big/ttf.png diff --git a/themes/oxygen/img/files/big/txt.png b/themes/default/img/files/big/txt.png similarity index 100% rename from themes/oxygen/img/files/big/txt.png rename to themes/default/img/files/big/txt.png diff --git a/themes/oxygen/img/files/big/wav.png b/themes/default/img/files/big/wav.png similarity index 100% rename from themes/oxygen/img/files/big/wav.png rename to themes/default/img/files/big/wav.png diff --git a/themes/oxygen/img/files/big/wma.png b/themes/default/img/files/big/wma.png similarity index 100% rename from themes/oxygen/img/files/big/wma.png rename to themes/default/img/files/big/wma.png diff --git a/themes/oxygen/img/files/big/xls.png b/themes/default/img/files/big/xls.png similarity index 100% rename from themes/oxygen/img/files/big/xls.png rename to themes/default/img/files/big/xls.png diff --git a/themes/oxygen/img/files/big/xlsx.png b/themes/default/img/files/big/xlsx.png similarity index 100% rename from themes/oxygen/img/files/big/xlsx.png rename to themes/default/img/files/big/xlsx.png diff --git a/themes/default/img/files/big/zip.png b/themes/default/img/files/big/zip.png new file mode 100644 index 0000000..84eaa19 Binary files /dev/null and b/themes/default/img/files/big/zip.png differ diff --git a/themes/oxygen/img/files/small/..png b/themes/default/img/files/small/..png similarity index 100% rename from themes/oxygen/img/files/small/..png rename to themes/default/img/files/small/..png diff --git a/themes/oxygen/img/files/small/.image.png b/themes/default/img/files/small/.image.png similarity index 100% rename from themes/oxygen/img/files/small/.image.png rename to themes/default/img/files/small/.image.png diff --git a/themes/oxygen/img/files/small/flv.png b/themes/default/img/files/small/avi.png similarity index 100% rename from themes/oxygen/img/files/small/flv.png rename to themes/default/img/files/small/avi.png diff --git a/themes/oxygen/img/files/small/bat.png b/themes/default/img/files/small/bat.png similarity index 100% rename from themes/oxygen/img/files/small/bat.png rename to themes/default/img/files/small/bat.png diff --git a/themes/oxygen/img/files/small/bmp.png b/themes/default/img/files/small/bmp.png similarity index 100% rename from themes/oxygen/img/files/small/bmp.png rename to themes/default/img/files/small/bmp.png diff --git a/themes/oxygen/img/files/small/bz2.png b/themes/default/img/files/small/bz2.png similarity index 100% rename from themes/oxygen/img/files/small/bz2.png rename to themes/default/img/files/small/bz2.png diff --git a/themes/oxygen/img/files/small/ccd.png b/themes/default/img/files/small/ccd.png similarity index 100% rename from themes/oxygen/img/files/small/ccd.png rename to themes/default/img/files/small/ccd.png diff --git a/themes/oxygen/img/files/small/cgi.png b/themes/default/img/files/small/cgi.png similarity index 100% rename from themes/oxygen/img/files/small/cgi.png rename to themes/default/img/files/small/cgi.png diff --git a/themes/oxygen/img/files/small/com.png b/themes/default/img/files/small/com.png similarity index 100% rename from themes/oxygen/img/files/small/com.png rename to themes/default/img/files/small/com.png diff --git a/themes/oxygen/img/files/small/csh.png b/themes/default/img/files/small/csh.png similarity index 100% rename from themes/oxygen/img/files/small/csh.png rename to themes/default/img/files/small/csh.png diff --git a/themes/oxygen/img/files/small/cue.png b/themes/default/img/files/small/cue.png similarity index 100% rename from themes/oxygen/img/files/small/cue.png rename to themes/default/img/files/small/cue.png diff --git a/themes/oxygen/img/files/small/deb.png b/themes/default/img/files/small/deb.png similarity index 100% rename from themes/oxygen/img/files/small/deb.png rename to themes/default/img/files/small/deb.png diff --git a/themes/oxygen/img/files/small/dll.png b/themes/default/img/files/small/dll.png similarity index 100% rename from themes/oxygen/img/files/small/dll.png rename to themes/default/img/files/small/dll.png diff --git a/themes/oxygen/img/files/small/doc.png b/themes/default/img/files/small/doc.png similarity index 100% rename from themes/oxygen/img/files/small/doc.png rename to themes/default/img/files/small/doc.png diff --git a/themes/oxygen/img/files/small/docx.png b/themes/default/img/files/small/docx.png similarity index 100% rename from themes/oxygen/img/files/small/docx.png rename to themes/default/img/files/small/docx.png diff --git a/themes/oxygen/img/files/small/exe.png b/themes/default/img/files/small/exe.png similarity index 100% rename from themes/oxygen/img/files/small/exe.png rename to themes/default/img/files/small/exe.png diff --git a/themes/oxygen/img/files/small/fla.png b/themes/default/img/files/small/fla.png similarity index 100% rename from themes/oxygen/img/files/small/fla.png rename to themes/default/img/files/small/fla.png diff --git a/themes/oxygen/img/files/small/mkv.png b/themes/default/img/files/small/flv.png similarity index 100% rename from themes/oxygen/img/files/small/mkv.png rename to themes/default/img/files/small/flv.png diff --git a/themes/oxygen/img/files/small/fon.png b/themes/default/img/files/small/fon.png similarity index 100% rename from themes/oxygen/img/files/small/fon.png rename to themes/default/img/files/small/fon.png diff --git a/themes/oxygen/img/files/small/gif.png b/themes/default/img/files/small/gif.png similarity index 100% rename from themes/oxygen/img/files/small/gif.png rename to themes/default/img/files/small/gif.png diff --git a/themes/oxygen/img/files/small/gz.png b/themes/default/img/files/small/gz.png similarity index 100% rename from themes/oxygen/img/files/small/gz.png rename to themes/default/img/files/small/gz.png diff --git a/themes/oxygen/img/files/small/htm.png b/themes/default/img/files/small/htm.png similarity index 100% rename from themes/oxygen/img/files/small/htm.png rename to themes/default/img/files/small/htm.png diff --git a/themes/oxygen/img/files/small/html.png b/themes/default/img/files/small/html.png similarity index 100% rename from themes/oxygen/img/files/small/html.png rename to themes/default/img/files/small/html.png diff --git a/themes/oxygen/img/files/small/ini.png b/themes/default/img/files/small/ini.png similarity index 100% rename from themes/oxygen/img/files/small/ini.png rename to themes/default/img/files/small/ini.png diff --git a/themes/oxygen/img/files/small/iso.png b/themes/default/img/files/small/iso.png similarity index 100% rename from themes/oxygen/img/files/small/iso.png rename to themes/default/img/files/small/iso.png diff --git a/themes/oxygen/img/files/small/jar.png b/themes/default/img/files/small/jar.png similarity index 100% rename from themes/oxygen/img/files/small/jar.png rename to themes/default/img/files/small/jar.png diff --git a/themes/oxygen/img/files/small/java.png b/themes/default/img/files/small/java.png similarity index 100% rename from themes/oxygen/img/files/small/java.png rename to themes/default/img/files/small/java.png diff --git a/themes/oxygen/img/files/small/jpeg.png b/themes/default/img/files/small/jpeg.png similarity index 100% rename from themes/oxygen/img/files/small/jpeg.png rename to themes/default/img/files/small/jpeg.png diff --git a/themes/oxygen/img/files/small/jpg.png b/themes/default/img/files/small/jpg.png similarity index 100% rename from themes/oxygen/img/files/small/jpg.png rename to themes/default/img/files/small/jpg.png diff --git a/themes/oxygen/img/files/small/js.png b/themes/default/img/files/small/js.png similarity index 100% rename from themes/oxygen/img/files/small/js.png rename to themes/default/img/files/small/js.png diff --git a/themes/oxygen/img/files/small/mds.png b/themes/default/img/files/small/mds.png similarity index 100% rename from themes/oxygen/img/files/small/mds.png rename to themes/default/img/files/small/mds.png diff --git a/themes/oxygen/img/files/small/mdx.png b/themes/default/img/files/small/mdx.png similarity index 100% rename from themes/oxygen/img/files/small/mdx.png rename to themes/default/img/files/small/mdx.png diff --git a/themes/oxygen/img/files/small/mid.png b/themes/default/img/files/small/mid.png similarity index 100% rename from themes/oxygen/img/files/small/mid.png rename to themes/default/img/files/small/mid.png diff --git a/themes/oxygen/img/files/small/midi.png b/themes/default/img/files/small/midi.png similarity index 100% rename from themes/oxygen/img/files/small/midi.png rename to themes/default/img/files/small/midi.png diff --git a/themes/oxygen/img/files/small/mov.png b/themes/default/img/files/small/mkv.png similarity index 100% rename from themes/oxygen/img/files/small/mov.png rename to themes/default/img/files/small/mkv.png diff --git a/themes/oxygen/img/files/small/mpeg.png b/themes/default/img/files/small/mov.png similarity index 100% rename from themes/oxygen/img/files/small/mpeg.png rename to themes/default/img/files/small/mov.png diff --git a/themes/oxygen/img/files/small/mp3.png b/themes/default/img/files/small/mp3.png similarity index 100% rename from themes/oxygen/img/files/small/mp3.png rename to themes/default/img/files/small/mp3.png diff --git a/themes/oxygen/img/files/small/mpg.png b/themes/default/img/files/small/mp4.png similarity index 100% rename from themes/oxygen/img/files/small/mpg.png rename to themes/default/img/files/small/mp4.png diff --git a/themes/oxygen/img/files/small/qt.png b/themes/default/img/files/small/mpeg.png similarity index 100% rename from themes/oxygen/img/files/small/qt.png rename to themes/default/img/files/small/mpeg.png diff --git a/themes/default/img/files/small/mpg.png b/themes/default/img/files/small/mpg.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/default/img/files/small/mpg.png differ diff --git a/themes/oxygen/img/files/small/nfo.png b/themes/default/img/files/small/nfo.png similarity index 100% rename from themes/oxygen/img/files/small/nfo.png rename to themes/default/img/files/small/nfo.png diff --git a/themes/oxygen/img/files/small/nrg.png b/themes/default/img/files/small/nrg.png similarity index 100% rename from themes/oxygen/img/files/small/nrg.png rename to themes/default/img/files/small/nrg.png diff --git a/themes/oxygen/img/files/small/ogg.png b/themes/default/img/files/small/ogg.png similarity index 100% rename from themes/oxygen/img/files/small/ogg.png rename to themes/default/img/files/small/ogg.png diff --git a/themes/oxygen/img/files/small/pdf.png b/themes/default/img/files/small/pdf.png similarity index 100% rename from themes/oxygen/img/files/small/pdf.png rename to themes/default/img/files/small/pdf.png diff --git a/themes/oxygen/img/files/small/php.png b/themes/default/img/files/small/php.png similarity index 100% rename from themes/oxygen/img/files/small/php.png rename to themes/default/img/files/small/php.png diff --git a/themes/oxygen/img/files/small/phps.png b/themes/default/img/files/small/phps.png similarity index 100% rename from themes/oxygen/img/files/small/phps.png rename to themes/default/img/files/small/phps.png diff --git a/themes/oxygen/img/files/small/pl.png b/themes/default/img/files/small/pl.png similarity index 100% rename from themes/oxygen/img/files/small/pl.png rename to themes/default/img/files/small/pl.png diff --git a/themes/oxygen/img/files/small/pm.png b/themes/default/img/files/small/pm.png similarity index 100% rename from themes/oxygen/img/files/small/pm.png rename to themes/default/img/files/small/pm.png diff --git a/themes/oxygen/img/files/small/png.png b/themes/default/img/files/small/png.png similarity index 100% rename from themes/oxygen/img/files/small/png.png rename to themes/default/img/files/small/png.png diff --git a/themes/oxygen/img/files/small/ppt.png b/themes/default/img/files/small/ppt.png similarity index 100% rename from themes/oxygen/img/files/small/ppt.png rename to themes/default/img/files/small/ppt.png diff --git a/themes/oxygen/img/files/small/pptx.png b/themes/default/img/files/small/pptx.png similarity index 100% rename from themes/oxygen/img/files/small/pptx.png rename to themes/default/img/files/small/pptx.png diff --git a/themes/oxygen/img/files/small/tif.png b/themes/default/img/files/small/psd.png similarity index 100% rename from themes/oxygen/img/files/small/tif.png rename to themes/default/img/files/small/psd.png diff --git a/themes/default/img/files/small/qt.png b/themes/default/img/files/small/qt.png new file mode 100644 index 0000000..bbff051 Binary files /dev/null and b/themes/default/img/files/small/qt.png differ diff --git a/themes/oxygen/img/files/small/rpm.png b/themes/default/img/files/small/rar.png similarity index 100% rename from themes/oxygen/img/files/small/rpm.png rename to themes/default/img/files/small/rar.png diff --git a/themes/oxygen/img/files/small/tgz.png b/themes/default/img/files/small/rpm.png similarity index 100% rename from themes/oxygen/img/files/small/tgz.png rename to themes/default/img/files/small/rpm.png diff --git a/themes/oxygen/img/files/small/rtf.png b/themes/default/img/files/small/rtf.png similarity index 100% rename from themes/oxygen/img/files/small/rtf.png rename to themes/default/img/files/small/rtf.png diff --git a/themes/oxygen/img/files/small/sh.png b/themes/default/img/files/small/sh.png similarity index 100% rename from themes/oxygen/img/files/small/sh.png rename to themes/default/img/files/small/sh.png diff --git a/themes/default/img/files/small/sql.png b/themes/default/img/files/small/sql.png new file mode 100644 index 0000000..5665b63 Binary files /dev/null and b/themes/default/img/files/small/sql.png differ diff --git a/themes/oxygen/img/files/small/srt.png b/themes/default/img/files/small/srt.png similarity index 100% rename from themes/oxygen/img/files/small/srt.png rename to themes/default/img/files/small/srt.png diff --git a/themes/oxygen/img/files/small/sub.png b/themes/default/img/files/small/sub.png similarity index 100% rename from themes/oxygen/img/files/small/sub.png rename to themes/default/img/files/small/sub.png diff --git a/themes/oxygen/img/files/small/swf.png b/themes/default/img/files/small/swf.png similarity index 100% rename from themes/oxygen/img/files/small/swf.png rename to themes/default/img/files/small/swf.png diff --git a/themes/oxygen/img/files/small/zip.png b/themes/default/img/files/small/tgz.png similarity index 100% rename from themes/oxygen/img/files/small/zip.png rename to themes/default/img/files/small/tgz.png diff --git a/themes/oxygen/img/files/small/tiff.png b/themes/default/img/files/small/tif.png similarity index 100% rename from themes/oxygen/img/files/small/tiff.png rename to themes/default/img/files/small/tif.png diff --git a/themes/default/img/files/small/tiff.png b/themes/default/img/files/small/tiff.png new file mode 100644 index 0000000..638dee6 Binary files /dev/null and b/themes/default/img/files/small/tiff.png differ diff --git a/themes/oxygen/img/files/small/torrent.png b/themes/default/img/files/small/torrent.png similarity index 100% rename from themes/oxygen/img/files/small/torrent.png rename to themes/default/img/files/small/torrent.png diff --git a/themes/oxygen/img/files/small/ttf.png b/themes/default/img/files/small/ttf.png similarity index 100% rename from themes/oxygen/img/files/small/ttf.png rename to themes/default/img/files/small/ttf.png diff --git a/themes/oxygen/img/files/small/txt.png b/themes/default/img/files/small/txt.png similarity index 100% rename from themes/oxygen/img/files/small/txt.png rename to themes/default/img/files/small/txt.png diff --git a/themes/oxygen/img/files/small/wav.png b/themes/default/img/files/small/wav.png similarity index 100% rename from themes/oxygen/img/files/small/wav.png rename to themes/default/img/files/small/wav.png diff --git a/themes/oxygen/img/files/small/wma.png b/themes/default/img/files/small/wma.png similarity index 100% rename from themes/oxygen/img/files/small/wma.png rename to themes/default/img/files/small/wma.png diff --git a/themes/oxygen/img/files/small/xls.png b/themes/default/img/files/small/xls.png similarity index 100% rename from themes/oxygen/img/files/small/xls.png rename to themes/default/img/files/small/xls.png diff --git a/themes/oxygen/img/files/small/xlsx.png b/themes/default/img/files/small/xlsx.png similarity index 100% rename from themes/oxygen/img/files/small/xlsx.png rename to themes/default/img/files/small/xlsx.png diff --git a/themes/default/img/files/small/zip.png b/themes/default/img/files/small/zip.png new file mode 100644 index 0000000..305f01b Binary files /dev/null and b/themes/default/img/files/small/zip.png differ diff --git a/themes/default/img/icons/about.png b/themes/default/img/icons/about.png new file mode 100644 index 0000000..12cd1ae Binary files /dev/null and b/themes/default/img/icons/about.png differ diff --git a/themes/default/img/icons/clipboard-add.png b/themes/default/img/icons/clipboard-add.png new file mode 100644 index 0000000..d5eac9b Binary files /dev/null and b/themes/default/img/icons/clipboard-add.png differ diff --git a/themes/default/img/icons/clipboard-clear.png b/themes/default/img/icons/clipboard-clear.png new file mode 100644 index 0000000..dcce0b6 Binary files /dev/null and b/themes/default/img/icons/clipboard-clear.png differ diff --git a/themes/default/img/icons/clipboard.png b/themes/default/img/icons/clipboard.png new file mode 100644 index 0000000..779ad58 Binary files /dev/null and b/themes/default/img/icons/clipboard.png differ diff --git a/themes/default/img/icons/copy.png b/themes/default/img/icons/copy.png new file mode 100644 index 0000000..a9f31a2 Binary files /dev/null and b/themes/default/img/icons/copy.png differ diff --git a/themes/default/img/icons/delete.png b/themes/default/img/icons/delete.png new file mode 100644 index 0000000..1514d51 Binary files /dev/null and b/themes/default/img/icons/delete.png differ diff --git a/themes/oxygen/img/icons/upload.png b/themes/default/img/icons/download.png similarity index 79% rename from themes/oxygen/img/icons/upload.png rename to themes/default/img/icons/download.png index 37b1f80..260ac88 100644 Binary files a/themes/oxygen/img/icons/upload.png and b/themes/default/img/icons/download.png differ diff --git a/themes/default/img/icons/folder-new.png b/themes/default/img/icons/folder-new.png new file mode 100644 index 0000000..529fe8f Binary files /dev/null and b/themes/default/img/icons/folder-new.png differ diff --git a/themes/oxygen/img/icons/maximize.png b/themes/default/img/icons/maximize.png similarity index 100% rename from themes/oxygen/img/icons/maximize.png rename to themes/default/img/icons/maximize.png diff --git a/themes/default/img/icons/move.png b/themes/default/img/icons/move.png new file mode 100644 index 0000000..7e62a92 Binary files /dev/null and b/themes/default/img/icons/move.png differ diff --git a/themes/default/img/icons/refresh.png b/themes/default/img/icons/refresh.png new file mode 100644 index 0000000..aa65210 Binary files /dev/null and b/themes/default/img/icons/refresh.png differ diff --git a/themes/default/img/icons/rename.png b/themes/default/img/icons/rename.png new file mode 100644 index 0000000..4e3688e Binary files /dev/null and b/themes/default/img/icons/rename.png differ diff --git a/themes/default/img/icons/select.png b/themes/default/img/icons/select.png new file mode 100644 index 0000000..a9925a0 Binary files /dev/null and b/themes/default/img/icons/select.png differ diff --git a/themes/default/img/icons/settings.png b/themes/default/img/icons/settings.png new file mode 100644 index 0000000..5c8213f Binary files /dev/null and b/themes/default/img/icons/settings.png differ diff --git a/themes/default/img/icons/upload.png b/themes/default/img/icons/upload.png new file mode 100644 index 0000000..f4b6d51 Binary files /dev/null and b/themes/default/img/icons/upload.png differ diff --git a/themes/default/img/icons/view.png b/themes/default/img/icons/view.png new file mode 100644 index 0000000..af4fe07 Binary files /dev/null and b/themes/default/img/icons/view.png differ diff --git a/themes/oxygen/img/kcf_logo.png b/themes/default/img/kcf_logo.png similarity index 100% rename from themes/oxygen/img/kcf_logo.png rename to themes/default/img/kcf_logo.png diff --git a/themes/oxygen/img/loading.gif b/themes/default/img/loading.gif similarity index 100% rename from themes/oxygen/img/loading.gif rename to themes/default/img/loading.gif diff --git a/themes/oxygen/img/tree/denied.png b/themes/default/img/tree/denied.png similarity index 100% rename from themes/oxygen/img/tree/denied.png rename to themes/default/img/tree/denied.png diff --git a/themes/default/img/tree/folder.png b/themes/default/img/tree/folder.png new file mode 100644 index 0000000..784e8fa Binary files /dev/null and b/themes/default/img/tree/folder.png differ diff --git a/themes/oxygen/img/tree/minus.png b/themes/default/img/tree/minus.png similarity index 100% rename from themes/oxygen/img/tree/minus.png rename to themes/default/img/tree/minus.png diff --git a/themes/oxygen/img/tree/plus.png b/themes/default/img/tree/plus.png similarity index 100% rename from themes/oxygen/img/tree/plus.png rename to themes/default/img/tree/plus.png diff --git a/themes/default/img/ui-icons_black.png b/themes/default/img/ui-icons_black.png new file mode 100644 index 0000000..d64e654 Binary files /dev/null and b/themes/default/img/ui-icons_black.png differ diff --git a/themes/default/img/ui-icons_blue.png b/themes/default/img/ui-icons_blue.png new file mode 100644 index 0000000..33a3f3f Binary files /dev/null and b/themes/default/img/ui-icons_blue.png differ diff --git a/themes/default/img/ui-icons_white.png b/themes/default/img/ui-icons_white.png new file mode 100644 index 0000000..cb9a9ae Binary files /dev/null and b/themes/default/img/ui-icons_white.png differ diff --git a/themes/default/init.js b/themes/default/init.js new file mode 100644 index 0000000..5cc0b16 --- /dev/null +++ b/themes/default/init.js @@ -0,0 +1,9 @@ +// Preload some images +$.each([ + "loading.gif", + "ui-icons_black.png", + "ui-icons_blue.png", + "ui-icons_white.png" +], function(i, img) { + new Image().src = "themes/default/img/" + img; +}); diff --git a/themes/default/js.php b/themes/default/js.php new file mode 100644 index 0000000..b60b450 --- /dev/null +++ b/themes/default/js.php @@ -0,0 +1,10 @@ +minify("cache/theme_$theme.js"); diff --git a/themes/oxygen/about.txt b/themes/oxygen/about.txt deleted file mode 100644 index 41cf073..0000000 --- a/themes/oxygen/about.txt +++ /dev/null @@ -1,11 +0,0 @@ -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 -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 deleted file mode 100644 index b2e019d..0000000 Binary files a/themes/oxygen/img/alert.png and /dev/null differ diff --git a/themes/oxygen/img/confirm.png b/themes/oxygen/img/confirm.png deleted file mode 100644 index 1e9a1cd..0000000 Binary files a/themes/oxygen/img/confirm.png and /dev/null differ diff --git a/themes/oxygen/img/icons/about.png b/themes/oxygen/img/icons/about.png deleted file mode 100644 index e1eb797..0000000 Binary files a/themes/oxygen/img/icons/about.png and /dev/null differ diff --git a/themes/oxygen/img/icons/clipboard-add.png b/themes/oxygen/img/icons/clipboard-add.png deleted file mode 100644 index 4654f2b..0000000 Binary files a/themes/oxygen/img/icons/clipboard-add.png and /dev/null differ diff --git a/themes/oxygen/img/icons/clipboard-clear.png b/themes/oxygen/img/icons/clipboard-clear.png deleted file mode 100644 index e400360..0000000 Binary files a/themes/oxygen/img/icons/clipboard-clear.png and /dev/null differ diff --git a/themes/oxygen/img/icons/clipboard.png b/themes/oxygen/img/icons/clipboard.png deleted file mode 100644 index 9d3a8fa..0000000 Binary files a/themes/oxygen/img/icons/clipboard.png and /dev/null differ diff --git a/themes/oxygen/img/icons/close-clicked.png b/themes/oxygen/img/icons/close-clicked.png deleted file mode 100644 index 6fb8507..0000000 Binary files a/themes/oxygen/img/icons/close-clicked.png and /dev/null differ diff --git a/themes/oxygen/img/icons/close-hover.png b/themes/oxygen/img/icons/close-hover.png deleted file mode 100644 index a5b8306..0000000 Binary files a/themes/oxygen/img/icons/close-hover.png and /dev/null differ diff --git a/themes/oxygen/img/icons/close.png b/themes/oxygen/img/icons/close.png deleted file mode 100644 index 88516c3..0000000 Binary files a/themes/oxygen/img/icons/close.png and /dev/null differ diff --git a/themes/oxygen/img/icons/copy.png b/themes/oxygen/img/icons/copy.png deleted file mode 100644 index 5cdeb5f..0000000 Binary files a/themes/oxygen/img/icons/copy.png and /dev/null differ diff --git a/themes/oxygen/img/icons/delete.png b/themes/oxygen/img/icons/delete.png deleted file mode 100644 index d04a554..0000000 Binary files a/themes/oxygen/img/icons/delete.png and /dev/null differ diff --git a/themes/oxygen/img/icons/download.png b/themes/oxygen/img/icons/download.png deleted file mode 100644 index d0746f6..0000000 Binary files a/themes/oxygen/img/icons/download.png and /dev/null differ diff --git a/themes/oxygen/img/icons/folder-new.png b/themes/oxygen/img/icons/folder-new.png deleted file mode 100644 index 955efbf..0000000 Binary files a/themes/oxygen/img/icons/folder-new.png and /dev/null differ diff --git a/themes/oxygen/img/icons/move.png b/themes/oxygen/img/icons/move.png deleted file mode 100644 index ebcc0fa..0000000 Binary files a/themes/oxygen/img/icons/move.png and /dev/null differ diff --git a/themes/oxygen/img/icons/refresh.png b/themes/oxygen/img/icons/refresh.png deleted file mode 100644 index 86b6f82..0000000 Binary files a/themes/oxygen/img/icons/refresh.png and /dev/null differ diff --git a/themes/oxygen/img/icons/rename.png b/themes/oxygen/img/icons/rename.png deleted file mode 100644 index 2323757..0000000 Binary files a/themes/oxygen/img/icons/rename.png and /dev/null differ diff --git a/themes/oxygen/img/icons/select.png b/themes/oxygen/img/icons/select.png deleted file mode 100644 index f1d290c..0000000 Binary files a/themes/oxygen/img/icons/select.png and /dev/null differ diff --git a/themes/oxygen/img/icons/settings.png b/themes/oxygen/img/icons/settings.png deleted file mode 100644 index 5ce478b..0000000 Binary files a/themes/oxygen/img/icons/settings.png and /dev/null differ diff --git a/themes/oxygen/img/icons/view.png b/themes/oxygen/img/icons/view.png deleted file mode 100644 index 6b7a682..0000000 Binary files a/themes/oxygen/img/icons/view.png and /dev/null differ diff --git a/themes/oxygen/img/tree/folder.png b/themes/oxygen/img/tree/folder.png deleted file mode 100644 index 536da3d..0000000 Binary files a/themes/oxygen/img/tree/folder.png and /dev/null differ diff --git a/themes/oxygen/img/tree/folder_current.png b/themes/oxygen/img/tree/folder_current.png deleted file mode 100644 index 1d2f301..0000000 Binary files a/themes/oxygen/img/tree/folder_current.png and /dev/null differ diff --git a/themes/oxygen/init.js b/themes/oxygen/init.js deleted file mode 100644 index a507231..0000000 --- a/themes/oxygen/init.js +++ /dev/null @@ -1,4 +0,0 @@ -// 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 deleted file mode 100644 index d5c74de..0000000 --- a/themes/oxygen/style.css +++ /dev/null @@ -1,566 +0,0 @@ -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/tpl_browser.php b/tpl/tpl_browser.php index 2838e4e..536413b 100644 --- a/tpl/tpl_browser.php +++ b/tpl/tpl_browser.php @@ -2,33 +2,33 @@ KCFinder: /<?php echo $this->session['dir'] ?> + -
        -
        -
        -
        +
        +
        +