Commit Graph

106 Commits

Author SHA1 Message Date
Ralf Becker
70b603ac77 moving VFS API classes into a namespaced PSR4 autoloadable structure:
- PSR4 autoloader exists beside our old autloader to support old as well as new structure until everything is ported over
- moved ported API stuff from phpgwapi to new api directory (idea is phpgwapi become a compatibility layer for old code, while we only port selected stuff to new api directory)
- namespaces use prefix "EGroupware", then (first letter capitalised) app-name or "Api", sub-system names like "Vfs" or for apps "Ui", "Bo, "So" and at least class name starting with a capital letter and without understores eg. "StreamWrapper" plus just ".php"
- examples:
  + egw_vfs in phpgwapi/inc/class.egw_vfs.inc.php --> EGroupware\Api\Vfs in api/src/Vfs.php
  + sqlfs_stream_wrapper in phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php --> EGroupware\Api\Vfs\Sqlfs\StreamWrapper in api/src/Vfs/Sqlfs/StreamWrapper.php
  + sqlfs_utils in phpgwapi/inc/class.sqlfs_utils.inc.php --> EGroupware\Api\Vfs\Sqlfs\Utils in api/src/Vfs/Sqlfs/Utils.php
- api directory is no a new svn module but exists (like home) as sub-directory under base egroupware module
2015-01-26 09:15:07 +00:00
Ralf Becker
e2aa6dce73 * Filemanager: enhance sharing to keep session of already logged in user, when he clicks on a share 2015-01-20 22:11:35 +00:00
Ralf Becker
b6a83398a4 allow perl regular expression as mime-type filter 2015-01-19 16:09:16 +00:00
Ralf Becker
4476126986 limit height of mime icon in list-view to 16px, with exception of thumbnails using their configured height 2015-01-12 12:24:23 +00:00
Ralf Becker
9eeabcf953 PHP Fatal error: Access to undeclared static property: egw_vfs::$mime_alias_map 2015-01-12 07:17:31 +00:00
Ralf Becker
4a12f12683 using new mime icons for tile view in 64x64 2015-01-11 18:06:13 +00:00
Ralf Becker
5d3370fe66 we need to clear stat-cache again, after restoring original user, as eg. eACL is stored in session 2014-12-15 16:59:00 +00:00
Ralf Becker
2ad6957c73 fixed fatal error caused by HTTP_WebDAV_Server moved 2014-12-11 15:53:52 +00:00
Ralf Becker
6955afccc8 changed token-size to 32 char (more then plenty), only use tokens containing no special url chars (/#), and do not copy files to tmp-dir in vfs, if identical files already there to use 2014-12-05 11:27:22 +00:00
Ralf Becker
5eeac7093c use filemanager UI as UI for sharing directories 2014-11-18 12:55:32 +00:00
Ralf Becker
8707ea68b5 fix tons of IDE warnings 2014-11-14 09:29:59 +00:00
Ralf Becker
1affa826b1 implement readonly mounts and use that for sharing 2014-11-14 08:50:05 +00:00
Ralf Becker
223455b7aa first step for new file-sharing feature 2014-11-13 17:31:36 +00:00
Ralf Becker
0a00a710f7 * Filemanager: fix since PHP 5.5.18 not longer working non-ascii chars in filenames, eg. German umlauts or accents 2014-10-18 12:01:10 +00:00
Nathan Gray
47df86be97 - Add some more filter options
- Fix maxdepth option to work
2014-09-23 17:46:06 +00:00
Nathan Gray
b7a6e53163 * Added context menu to download all linked files in one zip file
As long as there are 2 or more files linked to the entry, you can download them all as a zip using the link list context menu.
2014-07-08 16:51:01 +00:00
Nathan Gray
f2dec7deac Don't exit after creating a ZIP so caller can do cleanup, if needed. 2014-07-03 16:51:21 +00:00
Nathan Gray
35f59acf41 Zip still needs the encoding, lost in previous commit. 2014-07-02 14:46:15 +00:00
Nathan Gray
977cb5e7df Apparently converting like that doesn't work, since umlauts get mangled.
Using to_ascii() instead
2014-07-02 14:40:28 +00:00
Nathan Gray
e63984884f Take some more care with filenames, trying to get Windows to handle the zips 2014-06-30 17:42:11 +00:00
Nathan Gray
b602714292 Use relative paths inside zip 2014-06-25 17:15:00 +00:00
Nathan Gray
a852eed949 Add save as ZIP action 2014-06-24 19:29:05 +00:00
Ralf Becker
b0219a682f reverted accidently commited phpgwapi changes 2013-10-15 09:36:23 +00:00
Ralf Becker
0ca55a1103 * SiteMgr: fixed not working anonymous user and using now a random password 2013-10-15 09:25:49 +00:00
Ralf Becker
371ebda9b0 only create a temporary mount for ownCloud clients on /clientsync, thought admin can create a different permanent one 2012-07-12 08:48:13 +00:00
Ralf Becker
6ff1db3534 * Preferences all apps: add validation for vfs files and directories to give user immediate feedback about wrong or non vfs pathes 2012-05-22 13:51:30 +00:00
Nathan Gray
2764e9529c Add function to get integer/byte filesize from human readable 2012-05-14 19:10:45 +00:00
Ralf Becker
29b578cd0b * Admin: fix white screen (fatal error) when trying to delete a user without home directory 2011-11-21 08:38:23 +00:00
Ralf Becker
8d28765f76 % should be encoded, but easily leads to double encoding, therefore better NOT encodig it in egw_vfs::encodePathComponent() 2011-09-07 08:40:52 +00:00
Ralf Becker
a654002f7b * WebDAV: allow locking of not (yet) existing files to create them
- failed before as there are no write-rights for not existing files
- now we check for not existing files the write rights of the parent directory
2011-08-30 17:03:34 +00:00
Ralf Becker
4a1f4fff8c * Filemanager: "Save as" option for files to force download and not open in browser 2011-08-29 08:40:22 +00:00
Ralf Becker
9c82896a7b quietened PHP Warning: in_array() expects parameter 2 to be array, boolean given on line 855 2011-08-11 07:23:29 +00:00
Andreas Stöckel
5a7daf61aa Fixed problem with move_files function always returning false 2011-08-02 09:33:13 +00:00
Ralf Becker
399c835f11 HTTP_WebDAV_Server 1.0.0RC6 changes without Server.php changes comming later 2011-07-29 10:33:52 +00:00
Ralf Becker
36eaa8e987 fixed not working mime parameter, if just a main type eg. "image" is given 2011-07-04 18:53:48 +00:00
Ralf Becker
70b84e372c fixed catchable fatal error: param 2 to egw_vfs::propatch() must be an array 2011-07-01 14:24:22 +00:00
Ralf Becker
37ec659a8f quitend warning 2011-06-29 07:21:56 +00:00
Ralf Becker
5e05030629 fixed attachments lost when converting email to infolog, is_uploaded_file check in egw_vfs::copy_uploaded need to be switched off (plus improved logging) 2011-06-29 07:00:09 +00:00
Ralf Becker
bd7407ed88 - fixed bug in egw_vfs::check_access for a user different from current one: need to clear the stat-cache after the call too, as the next call might be the regular user again!
- new method egw_vfs::copy_uploaded() to copy a file into vfs and set properties (eg. the comment), while treating the whole operation notification-wise atomar (one notification about an added file).
- using that method for egw_link too
- fixed egw_link not displaying comments
2011-06-28 20:43:47 +00:00
Ralf Becker
54dc16f3e5 calling egw_vfs::rmdir/unlink to ensure vfs hooks get called 2011-06-24 18:08:29 +00:00
Ralf Becker
7282d42f52 - added hooks to general vfs methods to allow apps to monitore file access, creating, modification, removal
- new $user parameter for egw_vfs::check_access($path, $check, $stat=null, $user=null) to check access to a file for a user, who is NOT the current user
2011-06-23 18:34:47 +00:00
Ralf Becker
69145c40b5 small docu update 2011-06-14 07:31:56 +00:00
Andreas Stöckel
67575e1cd1 Added move and copy multiple files functions to egw_vfs, implemented functions needed to reload subtrees of the egw_grid, fixed problems with data fetching in egw_grid_data.js 2011-03-21 16:12:28 +00:00
Andreas Stöckel
d966794b8d Added get_home_dir function to egw_vfs 2011-03-16 17:51:33 +00:00
Andreas Stöckel
fa12444ae7 Moved contents of egw_vfs_utils to egw_vfs, added 'egwGridViewFullRow' class to the egw_grid_view.js, which is capable of inserting a data row which spans all columns, added egwGridData.clearData method to egw_grid_data.js, which delets all data stored in the data row 2011-03-15 17:52:08 +00:00
Ralf Becker
4cce629666 * fixed handling of + char in VFS filenames (using egw_vfs::decodePath() instead of urldecode()) 2011-03-03 15:41:01 +00:00
Ralf Becker
d1c2d06810 * copying (or reinstating earlier versions) of files now also copies the properties (MyStylite #975) 2010-12-13 02:37:46 +00:00
Ralf Becker
27abf5f015 set $options[need_mime] for $dirsontop, as it can NOT work otherwise 2010-11-09 12:56:05 +00:00
Ralf Becker
94037f17df changing default only in documentation is not enought ;-) 2010-11-07 13:21:56 +00:00
Ralf Becker
297fc564d5 use stat values for uid, gid and mode only for EGroupware stream wrapper, for stock PHP ones use is_(readable|writable|executable), do NOT check urls with placeholders on mount 2010-11-07 13:17:53 +00:00