Commit graph

432 commits

Author SHA1 Message Date
Habeas Codice
cf739c0361 Merge remote-tracking branch 'upstream/master' 2014-11-21 15:39:14 -08:00
Habeas Codice
b224f8056c new system config reserved_channels
prevents members from creating channels in a reserved list
2014-11-21 15:35:59 -08:00
friendica
afd8b2ddf2 random photo widget 2014-11-20 15:34:49 -08:00
friendica
7a1b345bc2 to-do update 2014-11-20 03:12:06 -08:00
Habeas Codice
6413395a76 Merge remote-tracking branch 'upstream/master' 2014-11-18 12:14:14 -08:00
Habeas Codice
6cc906fd1d update docs 2014-11-18 12:10:40 -08:00
friendica
7b39fac5f0 forgot to add catcloud to the widget doc 2014-11-17 20:11:05 -08:00
Habeas Codice
333f3b1715 Merge remote-tracking branch 'upstream/master' 2014-11-17 03:20:20 -08:00
friendica
87cdfc1751 doc updates 2014-11-15 14:03:28 -08:00
habeascodice
2dbecf9545 Merge branch 'master' of https://github.com/habeascodice/red 2014-11-13 13:30:29 -08:00
Habeas Codice
ac27db22c1 Merge remote-tracking branch 'upstream/master'
Conflicts:
	boot.php
	include/dba/dba_driver.php
	include/diaspora.php
	include/follow.php
	include/session.php
	include/zot.php
	mod/photos.php
	mod/ping.php
2014-11-13 13:06:31 -08:00
Habeas Codice
1a5a5c7edb PostgreSQL support initial commit
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)
2014-11-13 12:21:58 -08:00
friendica
226d695525 make it a bit personal 2014-11-12 23:55:04 -08:00
friendica
1c1705e060 ok, I think I'll give it a break now. 2014-11-12 19:43:54 -08:00
friendica
a77abb0694 minor word tweaks 2014-11-12 19:04:24 -08:00
friendica
634475164e wordsmith 2014-11-12 16:11:18 -08:00
friendica
9478fd7fd4 more minor wordsmithing 2014-11-12 16:04:49 -08:00
friendica
f41c748fe2 Some dates couldn't be verified without going way back in the archives so at least make this document accurate based on what I have in front of me. 2014-11-12 15:47:29 -08:00
friendica
40e3da7b4f add history link 2014-11-12 15:40:11 -08:00
friendica
4e7567ffa2 History of RedMatrix, Friendica, Mike Macgirvin, and associated other stuff. 2014-11-12 15:31:24 -08:00
Thomas Willingham
b29a968be8 Document reinstalling, or saying don't do that without explicitly stating don't do that. 2014-11-08 00:17:53 +00:00
zottel
add493ef4d update to German help files 2014-11-07 22:46:39 +01:00
friendica
d17c15a992 doc updates 2014-11-07 05:14:53 -08:00
friendica
e32a339a3d doc updates 2014-11-01 00:36:01 -07:00
friendica
7f0bd5a6e5 doc updates 2014-10-31 05:05:31 -07:00
Thomas Willingham
fbd027709a Debian doco - no longer uses dropbear. 2014-10-31 01:13:56 +00:00
habeascodice
bc02b93372 Merge remote branch 'upstream/master' 2014-10-29 03:39:07 -07:00
friendica
1b53d1c1d3 Merge https://github.com/friendica/red into pending_merge 2014-10-27 16:20:59 -07:00
friendica
583b445bc0 add "repository" permissions role and make sure we have a sane "accept" default for the custom role. 2014-10-27 16:19:30 -07:00
Jeroen
6ff795a9f2 Merge branch 'master' of https://github.com/friendica/red 2014-10-27 15:06:34 +00:00
Jeroen
eec0a67dde update nl + Terms of Service more prominent in the help files. 2014-10-27 15:05:59 +00:00
friendica
bc3e7c4cad some documentation of permission roles and what the differences are. 2014-10-27 02:17:30 -07:00
friendica
98bce0e719 the to-do list is getting longer again. 2014-10-24 14:31:21 -07:00
zottel
4d0455befd correction to addon footer 2014-10-24 17:09:37 +02:00
zottel
d98fcdf3fb update to German help 2014-10-24 17:08:50 +02:00
friendica
5ede7bd654 doc updates 2014-10-24 04:16:45 -07:00
Thomas Willingham
b27790302b Doco - politics, unwritten pages, links, and stuff. Nothing major. 2014-10-22 23:13:17 +01:00
habeascodice
fc12123329 missing custom/ description 2014-10-20 04:49:44 -07:00
friendica
bae3029c63 merge madness 2014-10-19 16:12:05 -07:00
friendica
88d63d1b77 new doc added to doc checkin 2014-10-19 15:55:22 -07:00
friendica
478e7c4479 doc updates 2014-10-19 15:54:51 -07:00
marijus
1ee2b631db lighttpd sample conf security enhancement 2014-10-16 22:52:28 +02:00
Thomas Willingham
11ad127c68 Let's not play security expert. Use Mozillas recommended server
config, even if it's ridiculously verbose.  Reasoning - they make
the browser, so if they've got it wrong, you're buggered anyway.
2014-10-16 01:57:04 +01:00
Thomas Willingham
1eb478ba54 SSL is broken you say? Well bah gum.
Someone probably needs to update Lighttpd and Apache too.
2014-10-16 00:47:02 +01:00
tuscanhobbit
9f95162593 one more hidden config 2014-10-13 21:29:47 +02:00
friendica
1f976fbfe6 bit of cleanup of hidden_configs. This is a start - we've got hundreds more. 2014-10-12 17:59:03 -07:00
Thomas Willingham
fd00a24957 Some more previously undocumented configs. 2014-10-11 18:37:07 +01:00
Thomas Willingham
2e2f101e0b Doco: Hidden configs - you won't believe what happens next!
Covered the P's, still need to do the X and just the configs.  Work in
progress, so not linked from the index yet.
2014-10-11 15:15:55 +01:00
friendica
8e7e488ffe doc updates 2014-10-10 00:13:00 -07:00
Klaus Weidenbach
33394f58ff Moved RedBrowser class from reddav.php to it's own file.
First step on cleaning up ReadDAV classes and restructuring it bit in
preparation for adding some more DAV features, photo access, CalDAV, etc.
and hopefully also some PHPunits.
Add a PHP5.3 namespace for RedDAV classes. Any objections against this or
the vendor namespace?
Add some more documentation for RedBrowser.
2014-10-06 23:38:33 +02:00