aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/filestore.php
AgeCommit message (Collapse)Author
2010-09-06Refs #2220: Pulled most classes / interfaces out of lib files (except ↵ewinslow
query.php and exception.php) into "classes" folder. Replaced inline classes with "require_once" statements for now. Ran unit tests to verify functionality before committing. git-svn-id: http://code.elgg.org/elgg/trunk@6908 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-08-22Merged r6757:6810 from 1.7 branch into trunkcash
git-svn-id: http://code.elgg.org/elgg/trunk@6850 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-08-22Merged r6701:6756 from 1.7 branch into trunkcash
git-svn-id: http://code.elgg.org/elgg/trunk@6849 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-08-22Merged r6620:6653 from 1.7 branch into trunkcash
git-svn-id: http://code.elgg.org/elgg/trunk@6846 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01PHP complains about not casting the timestampt to int for use in date().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3898 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Fixes #1314: Filestore opens read-only with rb instead of r+b.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3886 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-21Fixing bug in resizing function that would incorrectly attempt to crop a ↵brettp
picture that was smaller than the target image. git-svn-id: http://code.elgg.org/elgg/trunk@3824 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-20Resetting cropping coords for images that can't be cropped in filestore.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3816 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-20Fixes #1445: get_resized_image_from_existing_file() has an optional ↵brettp
parameter to allow upscaling if requested image is larger than original image. git-svn-id: http://code.elgg.org/elgg/trunk@3815 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-16better version of get_resized_image_from_existing_file() - fixes #685 - more ↵cash
robust to errors, and fixes a memory leak - tested with both profile photos and file plugin photos - old installs will still have profile icons of the wrong size due to #685 git-svn-id: http://code.elgg.org/elgg/trunk@3761 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-23Deleting a user will remove all user files.nickw
Fixes #607 git-svn-id: http://code.elgg.org/elgg/trunk@3700 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-29Fully deprecating file matrix use with username.nickw
Plugins building the file matrix with the username will still work, but a warning is logged. git-svn-id: http://code.elgg.org/elgg/trunk@3602 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-27Modifying user file locations to be based on guid.nickw
Previous implementations utilized the owner's username to determine a file path matrix based on (up to) the first five letters. To eliminate language and filesystem inconsistencies, the matrix is now created from the entity's creation date and guid. This has the added benefit of (potentially) allowing users to update their usernames. git-svn-id: http://code.elgg.org/elgg/trunk@3590 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-15Standardized gobs of files.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3548 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-08-20Whoa nelly this is a big one: Removed license and copyright for files.brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3427 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-07-06small tweak to filestoredave
git-svn-id: https://code.elgg.org/elgg/trunk@3388 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-06-24Some tidying of file download manager functions.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3351 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-06-18Closes #601: Provides default for new ElggFilestore objects to remove ↵marcus
warning message. git-svn-id: https://code.elgg.org/elgg/trunk@3345 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-06-12Refs #1041: marcus
* Speculative fix, extended blacklist of invalid characters for user signup * Mapping some filestore matrix characters (notable '.') to a safe char git-svn-id: https://code.elgg.org/elgg/trunk@3329 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-06-12Refs #1041: Extra debugmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@3328 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-05-27Removed plugin-specific references from file_display_thumbnail and ↵kevin
file_add_to_folders. git-svn-id: https://code.elgg.org/elgg/trunk@3302 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-04-16Moved old file mime type guesser back to files plugin so that there are no ↵marcus
conflicts git-svn-id: https://code.elgg.org/elgg/trunk@3215 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-04-16Passed container_guid to any quota plugins and removed duplicate function ↵kevinjardine
definition. git-svn-id: https://code.elgg.org/elgg/trunk@3214 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-04-16Added file_get_general_file_type() functionkevinjardine
git-svn-id: https://code.elgg.org/elgg/trunk@3213 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-04-15Centralised mimetype functionmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@3212 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-04-15Rolled in Kevin's file store enhancements and upload code.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3211 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-09Icons are now correctly resizedben
git-svn-id: https://code.elgg.org/elgg/trunk@3132 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-13Fixes #778. Thanks!ben
git-svn-id: https://code.elgg.org/elgg/trunk@2750 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-23Refs #706marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2611 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-14* Introducing get_loggedin_user() and get_loggedin_userid()marcus
* ACLs now using get_loggedin_user* * Some logic cleaned up * Some "Undefined..." messages cleaned up git-svn-id: https://code.elgg.org/elgg/trunk@2459 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-08Minor optimisations.marcus
Introducing exists() on filestores git-svn-id: https://code.elgg.org/elgg/trunk@2222 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-25Closes #254: If mb_string is installed then internationalised usernames are ↵marcus
supported in file system. Because of this I have raised mbstring from recommended to a (non-fatal) core requirement. Because of the lack of a unicode ctype_alnum function the validation occurs at username input. Because of this I have improved the user registration code: This code now validates for special chars etc in the username. I have also introduced the following new plugin hooks (which are run after primary validation) which provide plugins with the ability to add other requirements (extra security etc). 'registeruser:validate:password' 'registeruser:validate:username' 'registeruser:validate:email' Marcus Povey 25/8/08 git-svn-id: https://code.elgg.org/elgg/trunk@2040 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-08Adjusted contributors file.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1806 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-06-25Fixes for filestore.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1128 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-06-25Added grabFile() to the filestore, for much more efficient file reading.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1127 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-06-24Removed the circular delete mechanism that was plaguing ElggFileben
git-svn-id: https://code.elgg.org/elgg/trunk@1116 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-06-24Serious memory optimisation for the photo resize functionsben
git-svn-id: https://code.elgg.org/elgg/trunk@1112 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-06-23Image cropping works!ben
git-svn-id: https://code.elgg.org/elgg/trunk@1082 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-06-17Fixed #33 - all profile icons except for the largest size are cropped to ↵ben
squares. Additionally, the image resampling functions now take an extra boolean parameter to specify squareness (or not). git-svn-id: https://code.elgg.org/elgg/trunk@943 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-06-10register_event_handler and trigger_event have been renamed to ↵ben
register_elgg_event_handler and trigger_elgg_event respectively. git-svn-id: https://code.elgg.org/elgg/trunk@848 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-06-10Marcus Povey <marcus@dushka.co.uk>icewing
* Bugfix on filestore git-svn-id: https://code.elgg.org/elgg/trunk@846 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-06-05Further cleanupben
git-svn-id: https://code.elgg.org/elgg/trunk@806 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-06-05Marcus Povey <marcus@dushka.co.uk>icewing
* More text internationalised git-svn-id: https://code.elgg.org/elgg/trunk@804 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-06-05Fixed a foreach bug.ben
git-svn-id: https://code.elgg.org/elgg/trunk@803 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-06-05Marcus Povey <marcus@dushka.co.uk>icewing
* Partial internationalisation of exceptions git-svn-id: https://code.elgg.org/elgg/trunk@801 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-05-20Marcus Povey <marcus@dushka.co.uk>icewing
* Introducing get_resized_image_from_existing_file * Consolidated get_resized_image_from_uploaded_file to use it git-svn-id: https://code.elgg.org/elgg/trunk@664 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-05-20Marcus Povey <marcus@dushka.co.uk>icewing
* Revised matrix generation on filestore git-svn-id: https://code.elgg.org/elgg/trunk@660 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-05-02The filestore is no longer so greedy about its init function, and therefore ↵ben
gets the correct filestore location git-svn-id: https://code.elgg.org/elgg/trunk@630 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-05-01git-svn-id: https://code.elgg.org/elgg/trunk@613 ↵icewing
36083f99-b078-4883-b0ff-0f9b5a30f544
2008-05-01Marcus Povey <marcus@dushka.co.uk>icewing
* Bugfixing my sillyness git-svn-id: https://code.elgg.org/elgg/trunk@611 36083f99-b078-4883-b0ff-0f9b5a30f544