aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
Commit message (Collapse)AuthorAgeFilesLines
* improve sql querymarijus2015-02-091-6/+1
|
* typomarijus2015-02-051-1/+1
|
* forgot to remove some debug stuffmarijus2015-02-051-2/+0
|
* make file activity respect parent dir permissions workmarijus2015-02-051-22/+66
|
* not quite there yet but getting closer a littlemarijus2015-02-041-28/+60
|
* comment out latest changes - needs more testingmarijus2015-02-021-4/+4
|
* comment this out for now - it is not always truemarijus2015-02-021-2/+2
|
* one important line missingmarijus2015-02-021-0/+1
|
* we also need folder heremarijus2015-02-021-1/+1
|
* typomarijus2015-02-021-1/+1
|
* just select permsmarijus2015-02-021-1/+1
|
* respect parent dir permissionsmarijus2015-02-021-0/+74
|
* local_user => local_channelfriendica2015-01-281-1/+1
|
* optimize check querymarijus2015-01-241-2/+7
|
* the old item must be removed before the new is createdmarijus2015-01-241-1/+8
|
* disable noticesmarijus2015-01-241-2/+2
|
* some more kissmarijus2015-01-241-65/+51
|
* typomarijus2015-01-231-1/+1
|
* we get the object info before it is deleted nowmarijus2015-01-231-12/+12
|
* some code restructuremarijus2015-01-231-43/+55
|
* add some mimetypesmarijus2015-01-221-0/+21
|
* make $links an array of linksmarijus2015-01-221-1/+2
|
* change mod/sharedwithme backend to use activity object - this is not ↵marijus2015-01-221-27/+76
| | | | backwards compatible
* put cloud back in get_cloudpath - just have to be careful where we use it.friendica2015-01-191-2/+4
|
* remove all hardwired references to 'cloud' in the files interfaces and ↵friendica2015-01-181-2/+2
| | | | replace with $a->module. It's OK to leave them in the RedBrowser component because this will remain under /cloud. All the DAV bits need to be abstracted as they will eventually end up under /dav. $a->module will contain the correct string to use.
* basic proof of concept file activity support - will send activity via the ↵marijus2015-01-181-1/+108
| | | | filestorage module and via attach_delete()
* fix recursive file permissionsmarijus2014-12-301-1/+1
|
* allow directory searches to be filtered by (public forums) and/or (! public ↵friendica2014-11-231-0/+1
| | | | forums)
* postgres fixesHabeas Codice2014-11-181-3/+3
|
* PostgreSQL support initial commitHabeas Codice2014-11-131-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were 11 main types of changes: - UPDATE's and DELETE's sometimes had LIMIT 1 at the end of them. This is not only non-compliant but it would certainly not do what whoever wrote it thought it would. It is likely this mistake was just copied from Friendica. All of these instances, the LIMIT 1 was simply removed. - Bitwise operations (and even some non-zero int checks) erroneously rely on MySQL implicit integer-boolean conversion in the WHERE clauses. This is non-compliant (and bad programming practice to boot). Proper explicit boolean conversions were added. New queries should use proper conventions. - MySQL has a different operator for bitwise XOR than postgres. Rather than add yet another dba_ func, I converted them to "& ~" ("AND NOT") when turning off, and "|" ("OR") when turning on. There were no true toggles (XOR). New queries should refrain from using XOR when not necessary. - There are several fields which the schema has marked as NOT NULL, but the inserts don't specify them. The reason this works is because mysql totally ignores the constraint and adds an empty text default automatically. Again, non-compliant, obviously. In these cases a default of empty text was added. - Several statements rely on a non-standard MySQL feature (http://dev.mysql.com/doc/refman/5.5/en/group-by-handling.html). These queries can all be rewritten to be standards compliant. Interestingly enough, the newly rewritten standards compliant queries run a zillion times faster, even on MySQL. - A couple of function/operator name translations were needed (RAND/RANDOM, GROUP_CONCAT/STRING_AGG, UTC_NOW, REGEXP/~, ^/#) -- assist functions added in the dba_ - INTERVALs: postgres requires quotes around the value, mysql requires that there are not quotes around the value -- assist functions added in the dba_ - NULL_DATE's -- Postgres does not allow the invalid date '0000-00-00 00:00:00' (there is no such thing as year 0 or month 0 or day 0). We use '0001-01-01 00:00:00' for postgres. Conversions are handled in Zot/item packets automagically by quoting all dates with dbescdate(). - char(##) specifications in the schema creates fields with blank spaces that aren't trimmed in the code. MySQL apparently treats char(##) as varchar(##), again, non-compliant. Since postgres works better with text fields anyway, this ball of bugs was simply side-stepped by using 'text' datatype for all text fields in the postgres schema. varchar was used in a couple of places where it actually seemed appropriate (size constraint), but without rigorously vetting that all of the PHP code actually validates data, new bugs might come out from under the rug. - postgres doesn't store nul bytes and a few other non-printables in text fields, even when quoted. bytea fields were used when storing binary data (photo.data, attach.data). A new dbescbin() function was added to handle this transparently. - postgres does not support LIMIT #,# syntax. All databases support LIMIT # OFFSET # syntax. Statements were updated to be standard. These changes require corresponding changes in the coding standards. Please review those before adding any code going forward. Still on my TODO list: - remove quotes from non-reserved identifiers and make reserved identifiers use dba func for quoting - Rewrite search queries for better results (both MySQL and Postgres)
* When you delete something in /cloud stay in the right folder.Klaus Weidenbach2014-10-141-109/+135
| | | | | | | When you deleted a file in /cloud you was always jumped back to /cloud/[channel], now you will stay in the parent folder. Some more doxygen documentation. Removed duplicate data from logging output and reduced logging in RedDAV in general.
* provide os_mkdir to workaround permission issues with php mkdirfriendica2014-07-161-2/+2
|
* Add rename support for DAV directories.Klaus Weidenbach2014-06-301-3/+3
| | | | This works only over DAV right now, no GUI yet.
* Fixed some more timestamp bugs in RedDAV.Klaus Weidenbach2014-06-291-13/+30
| | | | Fixed an SQL-query in RedFile::put(), where parameters where in wrong order.
* Fixed a wrong timestamp update when adding a file.Klaus Weidenbach2014-06-291-4/+4
| | | | | | | When a file was uploaded the timestamp of the containing folder should get updated, but the timestamp of the first file in the folder was mistakenly updated. There are some more wrong timestamps, but still looking for the bug.
* Oops I left some debug stuff aroundtuscanhobbit2014-06-241-5/+11
|
* Fixes to links and forward URLs in filestoragetuscanhobbit2014-06-241-0/+39
|
* Doxygen include/attach.phpKlaus2014-02-191-70/+126
| | | Some Doxygen as far as I understood and some styleguides.
* add epub mimetype (application/epub+zip)friendica2014-02-021-0/+1
|
* mod_attach: output stream wasn't workingfriendica2014-01-111-1/+2
|
* fix cloud path in filestorage edit pagefriendica2014-01-101-1/+1
|
* directory creation error, display localtimes on cloud webpage, doc updatesfriendica2014-01-101-1/+1
|
* mod_filestorage: provide a URL for linking to webpages and other websitesfriendica2014-01-091-0/+45
|
* only let visitors remove their own files.friendica2014-01-091-8/+12
|
* This should be approaching completion for file OS storage. May be a few ↵friendica2014-01-081-4/+11
| | | | minor bugs remaining due to some late-breaking fixes but I've been testing it as I go.
* more work on dav - deletion and a bit more progress on OS storagefriendica2014-01-071-3/+56
|
* make storage limit service classes apply to accounts, not channels. Also ↵friendica2014-01-071-2/+2
| | | | include a css file that was missing from work yesterday.
* prepare for OS file storage, and add bbcode attachment link to ↵friendica2014-01-061-2/+8
| | | | mod/filestorage. This isn't beautiful, but it's a start.
* add potentially recursive set permissions function for file storagefriendica2014-01-061-1/+41
|
* reddav - basic mkdir support - needs more work to be robustfriendica2014-01-051-6/+9
|