aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/filestore.php
AgeCommit message (Collapse)Author
2012-06-14Fixes #4577: Transparency converted to white instead of blackSteve Clay
2012-01-09coding standard fixes to engineCash Costello
2011-10-21don't set default filestore if we don't have a datarootCash Costello
2011-10-19fixed minor errors in the documentation in plugins and filestore libCash Costello
2011-10-08Fixes #3936 added @access private to internal functionsCash Costello
2011-02-08Refs #2543: Core uses the new functions from previous commit.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@8078 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-01-04Refs #2771: Removed CRLF.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@7827 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-10Fixes #2367: With fear and trepidation, converting events/plugin hooks to ↵ewinslow
use elgg_ prefixed versions git-svn-id: http://code.elgg.org/elgg/trunk@7284 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-30Refs #2124: Using get_loggedin_user functions instead of $vars['user'], ↵ewinslow
$_SESSION['user'], etc. git-svn-id: http://code.elgg.org/elgg/trunk@7139 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-28Fixes #2150: Removed old code in filestore.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@7125 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-28Standardized code in all of core, not including language files, tests, or ↵brettp
core mods. git-svn-id: http://code.elgg.org/elgg/trunk@7124 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-22Removed @license, @copyright, and @author from files. License and copyright ↵brettp
are covered by LICENSE.txt and COPYRIGHT.txt in root. git-svn-id: http://code.elgg.org/elgg/trunk@7118 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-20Refs #2499 - merged [6990] into trunk from 1.7 branchcash
git-svn-id: http://code.elgg.org/elgg/trunk@7106 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-09-15Refs #2220: Pulled remaining classes out of lib files. Core classes now ↵ewinslow
autoloaded via __autoload(). git-svn-id: http://code.elgg.org/elgg/trunk@6941 36083f99-b078-4883-b0ff-0f9b5a30f544
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