Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
3.0-pre1
Browse files Browse the repository at this point in the history
First 3.0 preview version
  • Loading branch information
sunhater committed Apr 2, 2014
1 parent 6bf33fd commit 7eef873
Show file tree
Hide file tree
Showing 48 changed files with 79 additions and 102 deletions.
2 changes: 1 addition & 1 deletion browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @desc Browser calling script
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
2 changes: 1 addition & 1 deletion cache/base.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cache/theme_default.css

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @desc Base configuration file
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand All @@ -31,7 +31,7 @@
// (F)CKEditor types
'files' => "",
'flash' => "swf",
'images' => "*img",
'imagess' => "*img",

This comment has been minimized.

Copy link
@cheesypoof

cheesypoof Apr 8, 2014

Is this a mistake?

This comment has been minimized.

Copy link
@sunhater

sunhater Apr 8, 2014

Author Owner

Yes... sorry.


// TinyMCE types
'file' => "",
Expand Down Expand Up @@ -122,7 +122,6 @@

//'_cssMinCmd' => "java -jar /path/to/yuicompressor.jar --type css {file}",
//'_jsMinCmd' => "java -jar /path/to/yuicompressor.jar --type js {file}",

);

?>
2 changes: 1 addition & 1 deletion core/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @desc Autoload Classes
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
2 changes: 1 addition & 1 deletion core/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @desc This file is included first, before each other
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
2 changes: 1 addition & 1 deletion core/class/browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @desc Browser actions class
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
2 changes: 1 addition & 1 deletion core/class/minifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @desc Minify JS & CSS
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
10 changes: 5 additions & 5 deletions core/class/uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @desc Uploader class
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand All @@ -17,7 +17,7 @@
class uploader {

/** Release version */
const VERSION = "3.0-dev1";
const VERSION = "3.0-pre1";

/** Config session-overrided settings
* @var array */
Expand Down Expand Up @@ -279,13 +279,14 @@ public function __construct() {
$this->config['_check4htaccess']
) {
$htaccess = "{$this->config['uploadDir']}/.htaccess";
$original = $this->get_htaccess();
if (!file_exists($htaccess)) {
if (!@file_put_contents($htaccess, $this->get_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 != $this->get_htaccess()) && !@file_put_contents($htaccess, $data))
if (($data != $original) && !@file_put_contents($htaccess, $original))
$this->backMsg("Incorrect .htaccess file. Cannot rewrite it!");
}
}
Expand All @@ -296,7 +297,6 @@ public function __construct() {
$this->backMsg("Cannot create {dir} folder.", array('dir' => $this->type));
} elseif (!is_readable($this->typeDir))
$this->backMsg("Cannot read upload folder.");

}
}

Expand Down
2 changes: 1 addition & 1 deletion core/types/type_img.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @desc Image detection class
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
2 changes: 1 addition & 1 deletion core/types/type_mime.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @desc MIME type detection class
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
2 changes: 1 addition & 1 deletion css/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @desc Join all CSS files from current directory
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
3 changes: 0 additions & 3 deletions doc/Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ VERSION 3.0
* Improvements in JavaScript code to be well compressed and faster
* Keep PNG transparency in generated thumbnails
* New image viewer
TODO:
* Edit text files
* Custom image manipulations (resize, crop, rotate)


VERSION 2.54 - 2014-03-12
Expand Down
2 changes: 1 addition & 1 deletion doc/README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[===========================< KCFinder 3.0-dev1 >================================]
[===========================< KCFinder 3.0-pre1 >================================]
[ ]
[ Copyright 2010-2014 KCFinder Project ]
[ http://kcfinder.sunhater.com ]
Expand Down
2 changes: 1 addition & 1 deletion integration/BolmerCMS.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @desc CMS integration code: BolmerCMS
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Borisov Evgeniy <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
2 changes: 1 addition & 1 deletion integration/drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @desc CMS integration code: Drupal
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Dany Alejandro Cabrera <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
2 changes: 1 addition & 1 deletion js/010.jquery.fixes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* @desc My jQuery UI & Uniform fixes
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
2 changes: 1 addition & 1 deletion js/020.jquery.rightClick.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* @desc Right Click jQuery Plugin
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
2 changes: 1 addition & 1 deletion js/021.jquery.agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* @desc User Agent jQuery Plugin
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
47 changes: 19 additions & 28 deletions js/030.jquery.helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* @desc Helper functions integrated in jQuery
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down Expand Up @@ -30,6 +30,22 @@
field.focus();
};

$.fn.disableTextSelect = function() {
return this.each(function() {
if ($.agent.firefox) { // Firefox
$(this).css('MozUserSelect', "none");
} else if ($.agent.msie) { // IE
$(this).bind('selectstart', function() {
return false;
});
} else { //Opera, etc.
$(this).mousedown(function() {
return false;
});
}
});
};

$.fn.outerSpace = function(type, mbp) {
var selector = this.get(0),
r = 0, x;
Expand Down Expand Up @@ -105,22 +121,6 @@
$(this).fullscreen();
};

$.fn.disableTextSelect = function() {
return this.each(function(){
if ($.agent.firefox) { // Firefox
$(this).css('MozUserSelect', "none");
} else if ($.agent.msie) { // IE
$(this).bind('selectstart', function() {
return false;
});
} else { //Opera, etc.
$(this).mousedown(function() {
return false;
});
}
});
};

$.exitFullscreen = function() {
var d = document,
requestMethod =
Expand All @@ -147,16 +147,6 @@

$.$ = {

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();
}
},

htmlValue: function(value) {
return value
.replace(/\&/g, "&amp;")
Expand All @@ -181,7 +171,8 @@
},

basename: function(path) {
return /^.*\/([^\/]+)\/?$/g.test(path)
var expr = /^.*\/([^\/]+)\/?$/g;
return expr.test(path)
? path.replace(expr, "$1")
: path;
},
Expand Down
2 changes: 1 addition & 1 deletion js/031.jquery.md5.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* @desc Helper MD5 checksum function
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
2 changes: 1 addition & 1 deletion js/040.object.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* @desc Base JavaScript object properties
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
6 changes: 4 additions & 2 deletions js/041.dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* @desc Dialog boxes functionality
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down Expand Up @@ -89,7 +89,9 @@ _.dialog = function(title, content, options) {
alone: false,
blur: false,
legend: false,
nopadding: false
nopadding: false,
show: { effect: "fade", duration: 250 },
hide: { effect: "fade", duration: 250 }
};

$.extend(o, options);
Expand Down
2 changes: 1 addition & 1 deletion js/050.init.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* @desc Object initializations
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
2 changes: 1 addition & 1 deletion js/060.toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* @desc Toolbar functionality
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
2 changes: 1 addition & 1 deletion js/070.settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* @desc Settings panel functionality
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand Down
13 changes: 2 additions & 11 deletions js/080.files.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* @desc File related functionality
* @package KCFinder
* @version 3.0-dev1
* @version 3.0-pre1
* @author Pavel Tzonkov <[email protected]>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
Expand All @@ -16,25 +16,16 @@ _.initFiles = function() {
});
$('#files').unbind().scroll(function() {
_.menu.hide();
});
}).disableTextSelect();

$('.file').unbind().click(function(e) {
$.$.unselect();
_.selectFile($(this), e);

}).rightClick(function(el, e) {
$.$.unselect();
_.menuFile($(el), e);

}).dblclick(function() {
$.$.unselect();
_.returnFile($(this));

}).mouseup(function() {
$.$.unselect();

}).mouseout(function() {
$.$.unselect();
});

$.each(_.shows, function(i, val) {
Expand Down
Loading

0 comments on commit 7eef873

Please sign in to comment.