Commit Graph

125 Commits

Author SHA1 Message Date
nao-pon e88048a205 [php] add PHP error handler and remove @ error-control operator 2016-05-13 17:13:31 +09:00
nao-pon f90ebb4b29 [VD:LocalFileSystem] fix #1370 implement function keep timestamp 2016-05-10 13:19:25 +09:00
nao-pon 2a2e441fc9 [VD:LocalFlieSystem] fix #1318 enbug@329593b46d5f36693236d349b06b55bd927b59c1 2016-04-11 10:07:54 +09:00
Dominik 8a1b37bf9e Revert 9959047 2016-04-08 09:02:02 +02:00
Dominik 9959047901 Fix archive size having leading 0 2016-04-06 15:40:33 +02:00
Dominik ada89885ac Add todos for missing return statements 2016-04-06 15:35:07 +02:00
Dominik 16641a68c1 Fix PHPDoc 2016-04-06 15:02:54 +02:00
nao-pon 33e24c4f0d [VD:LocalFileSyste] fix #1292 enbug @329593b46d5f36693236d349b06b55bd927b59c1 2016-03-29 21:25:15 +09:00
nao-pon 27ba0bb6df [VD:LocalFileSystem] add symbolic link check on _save() 2016-03-23 17:25:10 +09:00
nao-pon 16146ac1b8 [VD] fix #1266 exclusion serach (SQL, Dropbox are not supported now)
- volume root option `searchExDirReg` for excludes directores
```php
// Search exclusion directory regex pattern (require demiliter e.g. '#/path/to/exclude_directory#i')
'searchExDirReg'  => '',
```
- Excludes word in serach query with prefix "-" (e.g. "SerachWord -ExcludesWord")
2016-03-16 19:14:28 +09:00
nao-pon 3b16914d28 [VD:LocalFileSystem] fix #1240 search files it's still follow symlinks 2016-03-15 21:08:46 +09:00
nao-pon 329593b46d [ui] fix #1231 controllable folder icon, ref #1061
Case 1
------

**Grant the class name by the client setting**

```javascript
        uiOptions : {
            tree : {
                getClass: function(item) {
                    return 'elfinder-tree-' + item.name.replace(/[ "]/g,
'').toLowerCase();
                }
            }
            cwd : {
                getClass: function(item) {
                    return 'elfinder-cwd-' + item.name.replace(/[ "]/g,
'').toLowerCase();
                }
            }
        }
```

Case 2
------

**Specifying the file name to be detected as an icon**

**LocalFileSystem ONLY** If there is a ".diricon.png" in a directory it
with the directory icon.
```php
	'roots' => array(
        array(
            'driver'        => 'LocalFileSystem',
            'path'          => '/path/to/files/',
            'URL'           => 'http://localhost/to/files/',
            'detectDirIcon' => '.diricon.png'
        )
	)
```
2016-03-15 18:07:50 +09:00
nao-pon 07723de17b [VD:LocalFileSystem] fix #1243 Warning error by fclose() 2016-03-09 20:03:58 +09:00
nao-pon adbba7e2dd [php] use opendir() instead to scandir()
Reson is PHP function scandir() is not work well in specific
environment. I dont know why.

Maybe fixes #1241, fixes #1247, fixes #1248
2016-03-09 15:15:46 +09:00
nao-pon a09f94b1c9 [VD:LocalFileSystem] fix #1240 add config option followSymLinks
ref. https://github.com/Studio-42/elFinder/wiki/Connector-configuration-options-2.1#localfilesystem
2016-03-03 22:21:21 +09:00
nao-pon 78452f3429 [php] session handling wrapper replaceable 2016-02-28 14:15:36 +09:00
nao-pon c0fda8074d [VD:LocalFileSystem] fix Fatal error of FilesystemIterator on PHP < 5.3 2016-02-28 14:13:09 +09:00
nao-pon a9358966ee [VD:LocalFileSystem] set fallback to $this->tmp of $this->quarantine 2016-02-22 23:10:06 +09:00
nao-pon 53d44eb095 [VD:LocalFileSystem] fix #1208 Fatal error on search with PHP<=5.3 2016-02-02 20:01:26 +09:00
nao-pon 7cb378ae61 [VD:LocalFileSystem] fix warning error 2016-01-28 00:50:16 +09:00
nao-pon 8e742ac31c fix #353 it can download files/folders as an archve file 2016-01-23 22:00:02 +09:00
nao-pon ff737052d1 [VD:LocalFileSystem,S3] fix some notice errors 2016-01-20 17:21:08 +09:00
nao-pon 516147caf6 [VD] main option commonTempPath to use
and fixes some notice errors
2016-01-20 17:09:57 +09:00
nao-pon 16ecb358b7 [php] call sesseion_write_close() if session restarted 2016-01-14 23:04:07 +09:00
nao-pon 62336390f4 [VD:LocalFileSystem] inotifywait target event create to close_write 2016-01-14 22:49:59 +09:00
nao-pon d4db0bcb20 [VD] fix problem of session cache writting 2016-01-13 21:26:07 +09:00
nao-pon aa26de63ec [php] fix to hide error report of session_start() 2016-01-13 20:51:34 +09:00
nao-pon 0b9c4cb08e [VD:LocalFileSystem] check dir attr in _subdirs() 2016-01-13 18:03:11 +09:00
nao-pon a1afb12c1e [VD:abstract] correction of session handling 2016-01-11 21:42:10 +09:00
nao-pon a2016b7c33 [VD:LocalFileSystem] perfomance tune _subdir() with ParentIterator 2016-01-09 16:29:08 +09:00
nao-pon 68042aa9dd [VD:LocalFileSystem] fix enbug serach problem
of @aac6bf37e0bd49617d87526a020a73e4d1f7416f include un-readble items in
serach results.
2016-01-09 13:43:40 +09:00
nao-pon aac6bf37e0 [VD:LocalFileSystem] fix #1181 case insensitive search
and, perfomance tuning by RecursiveDirectoryIterator.
2016-01-09 01:35:03 +09:00
nao-pon 05c5ea9baa [php] fix fatal error & typo of @e23f80ab38b3c65aab3317a33a5d771ba2fb1819 2016-01-08 17:43:42 +09:00
nao-pon e23f80ab38 [core] fix #1176 sync check with HTTP long polling
Set client configuration option `sync` to enable auto sync.

Example
```javascript
var options = {
    url  : 'php/connector.php',
    sync : 10000  // Checks every 10sec
}
$('#elfinder').elfinder(options);
```

And added new volume driver root options this time.

```php
// Is support parent directory time stamp update on add|remove|rename item
// Default `null` is auto detection that is LocalFileSystem, FTP or
// Dropbox are `true`
'syncChkAsTs'  => null,

// Long pooling sync checker function for syncChkAsTs is true
// Calls with args (TARGET DIRCTORY PATH, STAND-BY(sec), OLD TIMESTAMP, VOLUME DRIVER INSTANCE, ELFINDER INSTANCE)
// This function must return the following values. Changed: New Timestamp or Same: Old Timestamp or Error: false
// Default `null` is try use
// elFinderVolumeLocalFileSystem::localFileSystemInotify() on LocalFileSystem driver
// another driver use elFinder stat() checker
'syncCheckFunc'=> null,

// Long polling sync stand-by time (sec)
'plStandby'    => 30,

// Sleep time (sec) for elFinder stat() checker (syncChkAsTs is true)
'tsPlSleep'    => 10,

// Sleep time (sec) for elFinder ls() checker (syncChkAsTs is false)
'lsPlSleep'    => 30,

// Client side sync interval minimum (ms)
// Default `null` is auto set to ('tsPlSleep' or 'lsPlSleep') * 1000
'syncMinMs'    => null,
```
2016-01-08 16:15:25 +09:00
nao-pon a8630d5864 [VD:LocalFileSystem] set $this->tmp by options['tmpPath'] 2016-01-04 00:42:55 +09:00
nao-pon d701d8891c [VD:LocalFileSystem] fix notice error
ref. https://github.com/Studio-42/elFinder/issues/1173#issuecomment-168434704
2016-01-03 11:41:18 +09:00
nao-pon c8a66f0ef2 [php:core,VD] fix #1074 startPath for multi volumes 2015-12-28 21:21:42 +09:00
nao-pon d0a4ee8c35 [VD:LocalFileSystem] fix nao-pon/elFinder#15 doSearch of non UTF-8 2015-12-16 20:36:30 +09:00
nao-pon 80fc60b519 [VD:LocalFileSystem] bugfix, problem of move by fromCopy 2015-11-23 11:07:43 +09:00
nao-pon 568637c8cd [VD:LocalFileSystem] bugfix, problem of lost source file at fromCopy method 2015-11-23 01:31:50 +09:00
nao-pon fc5151aa0e [VD:LocalFileSystem] fix sym-link file stats mtime, size 2015-11-14 11:35:56 +09:00
nao-pon efccca9754 [VD:LocalFileSystem] fix #1127 autodetection of systemRoot
Volume driver option `path` supported Windows absolute path.
2015-11-13 22:18:26 +09:00
nao-pon 7e29eead7d [VD:LocalFileSystem] fix merge miss of last commit 61dbd00 2015-11-12 09:53:20 +09:00
nao-pon 61dbd00b72 Merge branch '2.0' into 2.x
Conflicts:
	php/elFinderVolumeLocalFileSystem.class.php
2015-11-12 09:48:00 +09:00
nao-pon 65e193f8e5 [VD:LocalFileSystem] check fimename based MIME type on extract 2015-11-12 09:45:37 +09:00
nao-pon 651260caf6 [VD, css] fix #1115, new VD option rootCssClass
New VolumeDriver(connector) option `rootCssClass` that CSS Class of
volume root in tree.

Fix `&#8203;` problem of title attr of cwd icon view
2015-11-05 17:38:41 +09:00
nao-pon 418cc22fc8 [VD:abstract,LocalFileSystem] fix #1087 support PHP ZipArchive class 2015-10-15 22:16:07 +09:00
nao-pon a8d0815ffc [VD:abstract] performance tune - caching "has subdirs"
revert 7a623bf726 ( [VD:LocalFileSystem]
performance tune - caching "has subdirs" )
2015-10-14 14:37:47 +09:00
nao-pon 7a623bf726 [VD:LocalFileSystem] performance tune - caching "has subdirs" 2015-10-13 18:26:55 +09:00
nao-pon a9cefb3f6a [VD] fix argument of elFinderVolumeDriver::path() that must give "hash" 2015-10-04 00:10:19 +09:00