aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/filestore.php
AgeCommit message (Collapse)Author
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
2008-05-01git-svn-id: https://code.elgg.org/elgg/trunk@609 ↵icewing
36083f99-b078-4883-b0ff-0f9b5a30f544
2008-05-01Marcus Povey <marcus@dushka.co.uk>icewing
* Bugfix git-svn-id: https://code.elgg.org/elgg/trunk@608 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-05-01Marcus Povey <marcus@dushka.co.uk>icewing
* Added tell git-svn-id: https://code.elgg.org/elgg/trunk@606 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-05-01Marcus Povey <marcus@dushka.co.uk>icewing
* Added eof functionality to datastore git-svn-id: https://code.elgg.org/elgg/trunk@605 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-05-01Marcus Povey <marcus@dushka.co.uk>icewing
* Bugfix: uses the correct filename git-svn-id: https://code.elgg.org/elgg/trunk@594 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-05-01Marcus Povey <marcus@dushka.co.uk>icewing
* Now registers ElggFile for 'object' & 'file' git-svn-id: https://code.elgg.org/elgg/trunk@589 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-30Marcus Povey <marcus@dushka.co.uk>icewing
* ElggDiskFilestore now uses matrix formed from username, and supports paths. git-svn-id: https://code.elgg.org/elgg/trunk@573 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-30Marcus Povey <marcus@dushka.co.uk>icewing
* git-svn-id: https://code.elgg.org/elgg/trunk@572 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-30Resizing images now resamples them for better clarity.ben
git-svn-id: https://code.elgg.org/elgg/trunk@571 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-30Previous now returns false.ben
git-svn-id: https://code.elgg.org/elgg/trunk@568 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-30Fixed image resizing issue, corrected function to create a jpeg using output ↵ben
buffering rather than a temporary file git-svn-id: https://code.elgg.org/elgg/trunk@567 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-29Fix for make_file_matrixben
git-svn-id: https://code.elgg.org/elgg/trunk@563 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-29Filenames fixben
git-svn-id: https://code.elgg.org/elgg/trunk@562 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-29Non-invasive fix for previous.ben
git-svn-id: https://code.elgg.org/elgg/trunk@561 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-29Introducing get_uploaded_file and get_resized_image_from_uploaded_file.ben
git-svn-id: https://code.elgg.org/elgg/trunk@560 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-23Marcus Povey <marcus@dushka.co.uk>icewing
* Improved documentation git-svn-id: https://code.elgg.org/elgg/trunk@513 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-23Marcus Povey <marcus@dushka.co.uk>icewing
* Filesize support added, now possible to get all file contents with $file->read($file->size()); git-svn-id: https://code.elgg.org/elgg/trunk@512 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-21Marcus Povey <marcus@dushka.co.uk>icewing
* Numerous bugs fixed git-svn-id: https://code.elgg.org/elgg/trunk@503 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-21Marcus Povey <marcus@dushka.co.uk>icewing
* No longer saves file automatically, this gives you the option as to how to handle files - either as proper objects or adhoc file handles which still use the filestore code. git-svn-id: https://code.elgg.org/elgg/trunk@502 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-21Marcus Povey <marcus@dushka.co.uk>icewing
* Save and Load (read/write) work * TODO: Loaded can not be loaded via name, only guid... correct? git-svn-id: https://code.elgg.org/elgg/trunk@501 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-21Marcus Povey <marcus@dushka.co.uk>icewing
* Coded, but untested, file and filestore classes... committed to let others start using them straight away. DISCUSSION: Should we use metadata to store datastore parameters in the context of ODD? - Or should ODD say that other non-defined metadata is ok? git-svn-id: https://code.elgg.org/elgg/trunk@495 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-04-18Marcus Povey <marcus@dushka.co.uk>icewing
* Unfinished filestore code git-svn-id: https://code.elgg.org/elgg/trunk@494 36083f99-b078-4883-b0ff-0f9b5a30f544