summaryrefslogtreecommitdiff
path: root/LibertyAttachable.php
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10check pFile for meta data and name, not pParamHash['upload'] as it might ↵Christian Fowler1-13/+13
have been over-ridden
2007-09-26ensure that we never try to insert a duplicate row into liberty_attachments. ↵Max Kremmel1-2/+3
this is needed for the user portrait / avatar / logo storage. perhaps there's a cleaner way of doing this, but i can't think of one just now
2007-09-23Changes to get ajax attachments working again. You must turn on the new ↵Nick Palmer1-15/+8
storage.existing plugin to get them to work.
2007-09-21fix storing of attachment to include an update if attachment_id is provided, ↵Christian Fowler1-3/+7
also check for valid BitBase::verifyId( $storeRow[attachment_id] before inserting
2007-09-20change check of _file_overrides to isset incase you want to pass in an empty ↵Christian Fowler1-2/+2
array to avoid storing and avoid gobbling up _FILES
2007-09-20add _files_override to LIbertyAttachable::verify to control what gets sucked ↵Christian Fowler1-10/+26
up as an upload. fixes archive extraction in fisheye, and other obscure reasons to manually stuff a file upload hash
2007-09-19Preserve keys from $_FILE in STORAGE array so that we can tell which entry ↵Nick Palmer1-4/+4
in $_FILE got what attachment_id if we need to.
2007-09-19remove detachment remanantsMax Kremmel1-13/+4
2007-09-17sort by positional data if availableMax Kremmel1-3/+3
2007-09-17the first uploaded attachment is now set as primary be default - works with ↵Max Kremmel1-7/+22
single and multiple attachment uploads
2007-09-15make it possible to set a primary attachment with a simply radio button. U ↵Max Kremmel1-9/+46
comment attachment browser for now as well. UI needs lots more work but we will probably have to discuss on what we want to have visible and what wethe attachments tab is supposed to do
2007-09-15comment out primary_attachment_id to is_primary conversion crutchMax Kremmel1-2/+2
2007-09-15remove debugChristian Fowler1-3/+1
2007-09-15SCHEMA CHANGE: Major overhaul to liberty attachable by removing ↵Christian Fowler1-410/+120
attachment_map and only allow attachments to be wired to a single piece of content. removed attachment_map, single and multiple attachments are working, ajax code was removed, and should be put in a separate library/class to handle what to do with 'floating' files waiting for a store
2007-08-10optional all null args on getDisplayUriChristian Fowler1-2/+2
2007-08-02change include's for jpeg_metadata_tk to require_onceChristian Fowler1-6/+6
2007-08-02move EXIF data extraction from FIsheyeIMage to generic ↵Christian Fowler1-1/+85
LIbertyAttachable::extractMetaData, which currently only supports jpeg files, but could be chopped up to support more. Default title to file name for attachable content if no title is present. remove event_time data duplication as last_modified
2007-07-17clean out crap that can make life difficult in server maintenance in file ↵Christian Fowler1-3/+5
upload names
2007-07-12allow permission check override when LA::store is verifying its fileMax Kremmel1-7/+20
2007-07-10move functions not part of a class to liberty_lib.phpMax Kremmel1-361/+1
2007-07-05avoid undefined index errorMax Kremmel1-6/+4
2007-07-01avoid bug where 'copy' function creates a 0 byte file with source and ↵Christian Fowler1-2/+4
destination are the same file
2007-06-30when fetching an individual thumbnail url don't return mime placeholder ↵bitweaver.org1-5/+5
unless explicitly specified
2007-06-24get liberty_clear_thumbnails to work with any image format by employing ↵Max Kremmel1-18/+32
liberty_fetch_thumbnails to fetch thumbs that need to be removed
2007-06-23mark primary attachments with an 'is_primary' flagMax Kremmel1-6/+10
2007-06-23automagically select best image type that's best for the particular upladed ↵Max Kremmel1-27/+44
file, allow override of file types and use liberty thumbnail fetcher where possible
2007-06-21change order of delete sequence that packages such as treasury can freely ↵Max Kremmel1-32/+42
deal with attachment expunge data without constraints, leave data in tables for as long as possible that things like 'load' can still work.
2007-06-21make sure $ret is an array and arrays are camelCapsedMax Kremmel1-7/+7
2007-06-20Add new expungingAttachment call to LibertyAttachable to notify content that ↵Nick Palmer1-2/+33
an attachment it is connected to is dying. Restore delete to edit_storage_list gated by a new permission. Ensure that fisheye and treasury delete when their attachments delete.
2007-06-18General cleanup of LibertyAttachable. Make LA::expunge() take a parameter to ↵Nick Palmer1-77/+26
actually expunge. Default is now to detach. Make fisheye delete on expunge. Make treasury use expungeAttachment() to do the work so we can hook that to notify other content.
2007-06-17Move liberty_linked_attachments to LINKED_ATTACHMENTS in config_inc.phpLester Caine1-3/+3
2007-06-17Add 'liberty_linked_attachments' selectionLester Caine1-2/+7
This will force content_id, attachment_id and file_id to use a single generator The setting of this MUST not be changed once a database is in use!
2007-06-16finally fix the friggin image replacement bugMax Kremmel1-3/+2
2007-06-16Force default storage_guid to bitfileLester Caine1-13/+4
2007-06-16don't throw error when attachment_id give is set to 0. this can happen when ↵Max Kremmel1-2/+2
you save a wiki page and it will mess with page save.
2007-06-16remove common_storage_plugin stuff completely. recent modificaions would ↵Max Kremmel1-13/+12
have rendered plugin selection in LAtt non-functional - this hasn't been in use yet so we'll remove it. also change the order of plugins chosen in LibertyAttachmnt. when we upload a regular file, the fisheye plugin should NOT be the one we pick first due to its dependence on fisheye.
2007-06-16return TRUE on successMax Kremmel1-2/+6
2007-06-15Check for png files first if png_thumbnail setLester Caine1-6/+11
( This prevents older files being used by mistake when a later .png has been loaded )
2007-06-15Commit non debug versionLester Caine1-2/+1
2007-06-15liberty_fetch_thumbnail_url to get attachment thumbnailsLester Caine1-2/+19
2007-06-15Select alternate storage plugins as a falback and generate error if not found.Lester Caine1-4/+19
The error message is not displayed in some upload pages.
2007-06-15trailing whitespaces...Max Kremmel1-54/+52
2007-06-15make storePrimaryAttachmentId() accessible statically and allow passing of ↵Max Kremmel1-6/+15
attachment_id in the more intuitive primary_attachment_id hashkey
2007-06-14Use hard coded default for 'common_storage_plugin', but we need to get this ↵Lester Caine1-2/+2
value set and editable.
2007-06-14Bypass extension checking in windows. Have php_fileinfo loaded, but need to ↵Lester Caine1-3/+6
sort the dtabase before it will work on windows.
2007-06-13Send back to preview when user attempts upload without permission. Only ↵Nick Palmer1-5/+6
check if user is uploading.
2007-06-12SCHEMA CHANGE! Added constraint on primary_attachment_id and added support ↵Nick Palmer1-13/+62
for it to LibertyAttachable. Added new edit_primary_attachment.tpl for editing this new field.
2007-06-12Error in SQL correctedLester Caine1-2/+2
2007-06-10So sorry. I solemnly swear to no commit while exhausted and to test better. ↵Nick Palmer1-3/+2
I suck!
2007-06-10Putting it back how it was...Nick Palmer1-4/+2