aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
Commit message (Collapse)AuthorAgeFilesLines
* attach_list_files had some problems - wasn't used until now apparentlyredmatrix2015-10-121-2/+2
|
* Add some more documentation to attach_store()Klaus Weidenbach2015-05-171-32/+39
|
* make dropItem more universal and move delete up in the dropdown menuMario Vavti2015-04-121-1/+1
|
* make fs deletion of directories workMario Vavti2015-04-121-2/+2
|
* reverse file activity logicMario Vavti2015-04-121-2/+2
|
* Merge https://github.com/friendica/red into pending_mergefriendica2015-03-291-61/+55
|\
| * Correcting reported Doxygen syntax warnings.Klaus Weidenbach2015-03-291-61/+55
| | | | | | | | | | | | | | Fixed wrong Doxygen syntax and add some of the available FIXME to Doxygen documentation. Updated Doxygen configuration to add also all capital letter tags. Adding some more Doxygen documentation.
* | fix os_mkdirfriendica2015-03-291-1/+1
|/
* we only need item mid. some documentation.Mario Vavti2015-03-241-1/+35
|
* do not override item_private here anymoreMario Vavti2015-03-221-1/+1
|
* Bugfix und variable initialization.Klaus Weidenbach2015-03-211-23/+38
| | | | | Fixed a wrong perm_is_allowed() parameter, commented some other places where we use variables that are not set and should not work.
* some cleanupMario Vavti2015-03-201-13/+8
|
* possible improvement regarding deletionMario Vavti2015-03-201-29/+42
|
* do not send activity to channels with no permission to view filestoragemarijus2015-02-181-2/+21
|
* item_unseen updatemarijus2015-02-131-0/+1
|
* provide relief to sites that are severely impacted by the slow ITEM_UNSEEN ↵friendica2015-02-121-1/+3
| | | | searches. This does not incorporate any other flag optimisations as that will require a major DB update and possibly involve significant downtime. This is just to bite off a little chunk now and provide some much needed relief.
* issue #843friendica2015-02-111-2/+2
|
* 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.