Commit Graph

417 Commits

Author SHA1 Message Date
nao-pon 61b906d0a3 [cmd:resize] correction of thumbnail reload 2016-10-28 11:55:18 +09:00
nao-pon ba6212bc60 [core] add icon CSS class elfinder-cwd-bgurl-crop with connector option tmbCrop 2016-10-22 20:22:57 +09:00
nao-pon 6b7eac3903 [VD:abstract] fix #1703 problem of make the video thumbnail 2016-10-15 22:02:53 +09:00
nao-pon e27c9426f4 [VD:abstract] add a new public function clearcaches
```php
/**
 * Clear inner stat caches for target hash
 * 
 * @param string $hash
 */
public function clearcaches($hash = null)
```
2016-09-23 09:58:53 +09:00
nao-pon f03fd34095 [VD:abstarct] call elFinder::extendTimeLimit() in getItemsInHand() 2016-09-15 11:27:21 +09:00
nao-pon e38f4cb007 [js:core] add a util function fm.isRoot(file) and use it 2016-09-07 00:39:04 +09:00
nao-pon 5e9f4362e6 [VD:abstract,js:core] add volume roots option type
```php
// driver type it uses volume root's CSS class name. e.g. 'group' -> Adds 'elfinder-group' to CSS class name.
'type'            => '',
```
2016-08-29 15:28:06 +09:00
nao-pon 43907bb0c4 [VD:abstract] correction of option path handling 2016-08-29 13:08:04 +09:00
nao-pon 2f5e81f1f7 [VD:abstract] define $this->options['phash'] 2016-08-28 13:41:28 +09:00
nao-pon c3f0beabd1 [core] fix #1622 add an option phash for the volume roots 2016-08-28 13:21:35 +09:00
nao-pon d136b4ec54 [VD:abstract] fix #1612 check proc_open is excluded in disable_functions 2016-08-22 10:39:49 +09:00
Naoki Sawada 49aaf68a64 Merge pull request #1574 from marc-chappuis/bugfix
[VD:abstract] bugfix `nameAccepted()` does not accept "0" problem rel. #1572
2016-08-05 23:06:33 +09:00
nao-pon 63108e6165 [VD:abstract] fix #1575 can not rename "0" to "00", "000"... 2016-08-05 22:40:19 +09:00
Marc Chappuis 2c4a03e637 solve #1572 2016-08-05 14:26:35 +02:00
nao-pon a626627201 [php] fix warning errors 2016-07-28 10:12:27 +09:00
nao-pon d8d07fb096 [VD:abstract] tiny correction of isMyReload 2016-07-27 23:02:21 +09:00
nao-pon 1f4fcf165d [VD:abstract] define public $netMountKey 2016-07-27 20:57:44 +09:00
nao-pon 4d1d741212 [VD:abstract] fix enbug of c166e9de58 2016-07-27 20:37:58 +09:00
nao-pon 3f47cf756a [VD:abstract] tiny correction 2016-07-27 11:32:46 +09:00
nao-pon c166e9de58 [VD:abstract] fix #1553 root stat not refresh when do chmod of root 2016-07-27 11:24:59 +09:00
nao-pon a82e779ce9 [VD:abstract] fix #1550 option uiCmdMap dose not work on 2.1.14 2016-07-25 22:56:24 +09:00
nao-pon 8a37da86ab [VD:abstract] check filename based MIME type on mkfile() 2016-07-22 09:51:34 +09:00
nao-pon b2ee800a0a [php] correction of netunmout of @266b79f854e194d1272e559130f88305d45165d2 2016-07-21 14:04:47 +09:00
nao-pon 5a9c26772d [core] fix #1012 support i18n folder name
**connector** added an option `i18nFolderName`

```php
// enable i18n folder name that convert name to elFinderInstance.messages['folder_'+name]
'i18nFolderName'  => false,
```

**e.g. connector.php**

```php
$opts = array(
    'roots'  => array(
        array(
            'driver'         => 'LocalFileSystem',
            'path'           => '/path/to/files/',
            'i18nFolderName' => true,
        )
    )
);

// run elFinder
$connector = new elFinderConnector(new elFinder($opts));
$connector->run();
```

**e.g. elfinder.html**

```javascript
// Additional translation messages
var i18nFolderMsgs = {
    'en': {
        'folder_Downloads':   'Downloads',
        'folder_Images':      'Images',
        'folder_LargeVideos': 'Videos',
        'folder_MIME-types':  'MIME types',
        'folder_Welcome':     'Welcome(Multilingual)'
    },
    'jp': {
        'folder_Downloads':   'ダウンロード',
        'folder_Images':      '画像',
        'folder_LargeVideos': '動画',
        'folder_MIME-types':  'MIMEタイプ',
        'folder_Welcome':     'ようこそ(多言語)'
    }
};

var options = {
    url      : 'php/connector.php',
    handlers : {
        init : function(e, fm) {
            // Register additional messages
            $.extend(fm.messages, i18nFolderMsgs.en, i18nFolderMsgs[fm.lang] || {});
        }
    }
}

$('#elfinder').elfinder(options);
```
2016-07-20 22:42:56 +09:00
nao-pon 4c36c997dd [php] fix spelling mistake ref. #1539 2016-07-18 23:01:01 +09:00
nao-pon 4307093b75 [VD:abstract] fix notice error on options() 2016-07-16 15:06:42 +09:00
nao-pon 5f479c1d7e [php] replace array_merge() to array_values() for reset array key 2016-07-15 16:34:50 +09:00
nao-pon 91f31f63a4 [VD:abstract] registration prohibited open command to disabled 2016-07-15 16:28:01 +09:00
nao-pon f92f1be85c [php] fix CS ^ {4} to \t 2016-07-15 09:35:54 +09:00
nao-pon d3d9a26c19 [VD:abstract] reduce return value of options()
rel. @d1c3b915375f2b68c616a146a9f7da2fb977a664
2016-07-15 09:28:29 +09:00
nao-pon d1c3b91537 [js:core,VD:abstract] fix #1525 do MIME check before file upload 2016-07-14 23:10:35 +09:00
nao-pon f638d9b748 [VD:abstract] do not check the stat on getPath()
ref. #1527
2016-07-14 10:27:22 +09:00
nao-pon 1d0523c301 [VD:abstract] fix #1514 security vulnerability in the archive command 2016-07-11 10:41:25 +09:00
nao-pon c715e05f46 [VD:abstract] fix #1507 add a volume option dirUrlOwn
```php
// directory link url to own manager url with folder hash (`true`, `false` or default `'auto'`: URL is empty then `true` else `false`)
'dirUrlOwn'     => 'auto',
```
2016-07-06 21:09:59 +09:00
nao-pon 391aeee0b1 [VD:abstract] fix #1505 configurable duplicate's suffix, unique number format
Added new volume driver options for this feature.

```php
// cmd duplicate suffix format e.g. '_%s_' to without spaces
'duplicateSuffix' => ' %s ',
// unique name numbar format e.g. '(%d)' to (1), (2)...
'uniqueNumFormat' => '%d',
```
2016-07-05 17:35:10 +09:00
nao-pon 1fa1c766a2 [VD:abstrect] call elFinder::extendTimeLimit() in recursive method 2016-06-23 16:12:00 +09:00
nao-pon 5f921fd22a [php] add elFinder::extendTimeLimit() and use it 2016-06-21 10:54:23 +09:00
nao-pon 367cdeb82d [ui:cwd] fix #1433 create a thumbnail of the video file with ffmpeg
Added volume root options
```php
// Video to Image converters ['TYPE or MIME' => ['func' => function($file){ /* Converts $file to Image */ return true; }, 'maxlen' => (int)TransferLength]]
'imgConverter'    => array(),
// Max length of transfer to image converter
'tmbVideoConvLen' => 10000000,
// Captre point seccond
'tmbVideoConvSec' => 6,
// Resource path of fallback icon images defailt: php/resouces
'resourcePath'    => '',
```

It can specify a specific number of seconds part in the file name.

e.g.
xxx^[sec].[extention] -> video^3.mp4
2016-06-01 23:36:55 +09:00
nao-pon 001b569790 [VD:abstract] fix #1427 problem of empty holder achiving on zipdl 2016-05-28 00:44:20 +09:00
nao-pon e88048a205 [php] add PHP error handler and remove @ error-control operator 2016-05-13 17:13:31 +09:00
nao-pon b98d582b78 [VD:abstract] fix notice error in imageUtil() 2016-05-09 23:11:21 +09:00
nao-pon 1a09f030d1 [VD:abstract,FTP] fix #1363 FTP connect from windows localhost to remote server 2016-05-02 23:38:52 +09:00
nao-pon 0b36c77406 [VD:abstract] correction to timeout error on Imagick exec 2016-05-02 21:16:52 +09:00
nao-pon 3fc6d8a626 [VD:abstract] correction to timeout error on Imagick exec 2016-05-02 17:14:09 +09:00
nao-pon ea876de25e [VD:abstract] fix typo of imagick in imgSquareFit() 2016-05-02 15:40:55 +09:00
nao-pon 39fb83b5e5 [VD:abstract] refactoring & more strictly imgLib 'convert' 2016-05-02 10:51:48 +09:00
nao-pon 9f83cbd41c [VD:abstract] imgLib 'convert' support animated GIF 2016-05-01 18:23:15 +09:00
nao-pon a30b3e8adf [VD:abstract] optimize createTmb() 2016-05-01 00:46:39 +09:00
nao-pon f813fbaee9 [VD:abstract] fix #935 supports 'convert'(imagemagick) as imgLib 2016-05-01 00:26:40 +09:00
nao-pon 4b8daa516e [VD:abstract] supports tmbCrop:false & tmbBgColor:transparent with GD 2016-04-30 16:54:23 +09:00