Commit Graph

81 Commits

Author SHA1 Message Date
Naoki Sawada 6f7593fcac Merge commit from fork 2026-05-07 16:45:04 +09:00
adamvalalsky 04c5d67479 Use prepared statements instead of escaping when saving file (#3604)
Co-authored-by: Adam Valalský <adam.valalsky@nubium.cz>
2023-12-20 10:07:51 +09:00
nao-pon 0b09fc31c5 [VD:MySQL,OneDrive] fix #3142 remove debug code 2020-04-05 16:13:58 +09:00
nao-pon e8c0b47b90 [VD:MySQL] correction error handling of init() 2020-01-12 20:11:03 +09:00
nao-pon 1aa6fbf89c [VD:MySQL] check if host is localhost to use LOAD_FILE 2020-01-09 01:05:48 +09:00
nao-pon 752c0ccab7 [VD:MySQL] maintenance of _save() function 2020-01-09 00:35:41 +09:00
nao-pon 2c0b51ba64 [VD:MySQL] detect mimetype if mime of stat is empty in _save() 2020-01-08 23:20:37 +09:00
nao-pon 4656d20371 [VD:MySQL] fix #2883 problem that not uses tmpPath on _fopen() 2019-04-01 23:55:45 +09:00
nao-pon 15cc46ea27 [php] change code style to PSR-2 of all of php files 2019-01-01 21:18:39 +09:00
nao-pon 896af8cb44 [php] potential bug fixes and PHPDoc fixes
fix #2810, fix #2811, fix #2812 and fix #2114
2019-01-01 20:05:30 +09:00
nao-pon ebb89bffa7 [VD,cmd:search] fix #2490 support custom search method
See the wiki - https://github.com/Studio-42/elFinder/wiki/Custom-search-function

Also closes #1037 .
2018-05-02 17:49:14 +09:00
nao-pon a4c4d93934 [VD:MySQL] remove debug code 2018-05-02 17:02:47 +09:00
nao-pon d927a82c4c [VD:abstract] fixe #2408 have the generic archive function for remote volume 2018-03-04 00:17:17 +09:00
nao-pon efbe63e40f [VD:MySQL] fix #2384 infinitely loop on search if root has parent_id 2018-02-12 10:54:02 +09:00
nao-pon ef6e182cc9 [VD:MySQL] bugfix that it was not possible to set as root path other than the root id 2018-01-14 18:46:11 +09:00
nao-pon 1b6c78820b [api] add optional query (int)'substitute' to command dim
The connector can return the URL of the substitute image whose size will fit in that pixel as the value of the key 'url' of the result data when the 'substitute' parameter gives with `dim` command from the client.

Add the following two options on the client side config `commandsOptions.resize` to fixes #2251.

```javascript
// File size (bytes) threshold when using the `dim` command for obtain the image size necessary to start editing
getDimThreshold : 204800,
// File size (bytes) to request to get substitute image (400px) with the `dim` command
dimSubImgSize : 307200
```
2017-10-30 16:46:19 +09:00
nao-pon 84ac1c51ba [VD:abstract] make new public method tmpfile() and use it 2017-09-18 22:57:44 +09:00
nao-pon 02ae12f5aa [VD:MySQL] fix #2164, fix #2166 problem with MySQL > 5.6 2017-08-25 22:56:46 +09:00
nao-pon 0fc860eba7 [VD:MySQL] support "Save As" of edit command 2017-06-13 13:08:30 +09:00
nao-pon f47a64d4c3 [VD] use tmbPath as tmp directory as fallback 2017-04-24 22:31:04 +09:00
nao-pon e55a427b12 [VD] normalize results of the item stat 2016-11-10 13:25:09 +09:00
nao-pon 7b8053a3ba [php:core,VD] session caching of subdirsCE() 2016-11-09 00:19:25 +09:00
nao-pon f92f1be85c [php] fix CS ^ {4} to \t 2016-07-15 09:35:54 +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 f8e6773ee0 [php] check is seekable before rewind() (use elFinder::rewind()) 2016-05-02 17:23:37 +09:00
Dominik 561cac21ad Fix wrong return types 2016-04-06 15:21:43 +02:00
Dominik 16641a68c1 Fix PHPDoc 2016-04-06 15:02:54 +02:00
nao-pon bf35ee56d5 [VD:MySQL,MsSQL] fix specific holder search problem 2016-03-16 21:03:03 +09:00
Jonas Schürmann 410a5e7a49 VolumeMySQL: Use single quotation marks in SQL queries 2016-03-16 11:57:52 +01:00
nao-pon 83a09fe85e [VD:MySQL] fix _path() return rootName twice 2016-01-25 21:35:40 +09:00
nao-pon eb5cc804bb [VD:MySQL] fix notice error 2016-01-23 21:29:17 +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 357122c20f [VD:MySQL] include info "path" into search result 2016-01-12 22:45:44 +09:00
nao-pon 8b8c8288e5 [VD:config] add a volume root option searchTimeout (default 30s)
```php
// Search timeout (sec)
'searchTimeout'   => 30,
```
2016-01-12 22:31:07 +09:00
Jonas Schürmann c55c5de042 Fix file permissions for MySQL LOAD_FILE command 2015-11-11 08:16:29 +01: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
Jonas Schürmann fc71166d94 Fix small semantic typo 2015-10-07 08:56:38 +02:00
nao-pon f1f3b97cee correction of chmod function 2015-06-19 23:08:35 +09:00
David Bartle 6d93c7ac64 chmod command 2015-06-19 22:01:54 +09:00
nao-pon 1ed2052b5d [VD:MySql] optimize mysql query of file search 2015-05-23 01:40:06 +09:00
nao-pon 5464168cf6 [VD:abstract,Dropbox,MySql] fix dir include always in mime search result 2015-05-22 21:28:23 +09:00
nao-pon 70a47b0a3d [VD:abstract,Dropbox,MySQL] fix mime type search logic 2015-05-22 10:49:41 +09:00
nao-pon ec70a47fb6 [VD:MySQL] support target dirctory search 2015-05-22 01:15:48 +09:00
nao-pon 6d65f8da5c add function elFinderVolumeDriver::getTempFile($path = '')
/**
 * Get temporary filename. Tempfile will be removed when after script execution finishes or exit() is called.
 * When needing the unique file to a path, give $path to parameter.
 * 
 * @param  string       $path for get unique file to a path
 * @return string|false
 * @author Naoki Sawada
 */
2015-01-25 11:18:15 +09:00
nao-pon 4459bb5947 [volume] super class function resize support remote volume
ref.
https://github.com/Studio-42/elFinder/pull/928#issuecomment-70731922
2015-01-23 17:38:19 +09:00
nao-pon f7e8d38cf0 add volume icons ( ftp, local & sql ) 2014-03-12 01:13:41 +09:00
Dmitry (dio) Levashov 455221fc16 fix rename 2012-09-16 15:26:21 +04:00
Dmitry (dio) Levashov f2afa9fa7e _save calls fixes 2012-09-11 22:54:32 +04:00
Dmitry (dio) Levashov 6638eae1d2 drivers inner api changedgit status! elFinderVolumeDriver::_save(, , , , , ) -> elFinderVolumeDriver::_save(, , , ) 2012-09-11 22:22:36 +04:00
Dmitry (dio) Levashov 925afc75e8 optimize search in MYSQL driver 2012-07-25 23:05:21 +04:00