Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge remote-tracking branch 'upstream/master' | Habeas Codice | 2014-11-13 | 1 | -11/+0 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | Remove legacy custom/ | Thomas Willingham | 2014-11-04 | 1 | -11/+0 |
| | | |||||
* | | PostgreSQL support initial commit | Habeas Codice | 2014-11-13 | 1 | -2/+2 |
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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) | ||||
* | Heads up: "custom/module.php" is deprecated. Please read this commit if you ↵ | friendica | 2014-10-30 | 1 | -1/+13 |
| | | | | are affected. | ||||
* | move all theme initialisation to one place - just after calling module_init. ↵ | friendica | 2014-10-20 | 1 | -8/+32 |
| | | | | Revert if there are serious issues, but please note the issues in as much detail as possible so we can work through them. | ||||
* | allow custom role permissions and fix site timezone. | friendica | 2014-09-29 | 1 | -0/+4 |
| | |||||
* | Language selection: case-insensitive and system language | Alexandre Hannud Abdo | 2014-05-23 | 1 | -3/+2 |
| | | | | | | | Fixed ignoring HTTP_ACCEPT_LANGUAGE tags that had uppercase characters. Fixed defining a->language too soon to ever get the system lang | ||||
* | try to fix random logouts | friendica | 2014-05-12 | 1 | -1/+1 |
| | |||||
* | better checking for SSL servers, even though it probably doesn't fix the ↵ | friendica | 2014-05-08 | 1 | -1/+1 |
| | | | | cookie bug | ||||
* | remove the redundant install check | friendica | 2014-05-08 | 1 | -1/+1 |
| | |||||
* | turn off ssl cookie protection by default since nobody that has problems ↵ | friendica | 2014-05-08 | 1 | -9/+11 |
| | | | | | | | with it is apparently able to debug it. PLEASE turn it on by util/config system ssl_cookie_protection 1 if you use SSL. Please debug it if you have a problem and have any basic technical skills at all and tell us why it doesn't work so we can fix it and turn this on by default because it is very very very important. | ||||
* | Do our best to provide sane cookie defaults. | friendica | 2014-05-07 | 1 | -5/+5 |
| | |||||
* | try again | friendica | 2014-05-05 | 1 | -2/+9 |
| | |||||
* | revert | friendica | 2014-05-05 | 1 | -1/+2 |
| | |||||
* | improved cookie security | friendica | 2014-05-05 | 1 | -0/+1 |
| | |||||
* | strip hard-wired zids from posted links as they will have the wrong identity ↵ | friendica | 2014-02-16 | 1 | -1/+1 |
| | | | | when somebody tries to view the link | ||||
* | don't load any configs from DB if installing - especially in style.pcss | friendica | 2014-02-02 | 1 | -5/+5 |
| | |||||
* | better check for setup module | friendica | 2014-02-02 | 1 | -1/+1 |
| | |||||
* | some windows fixes | friendica | 2014-02-02 | 1 | -8/+12 |
| | |||||
* | clean up logger commands. Placed apostrophs at the end from some comments to ↵ | Michael Meer | 2014-01-30 | 1 | -3/+1 |
| | | | | keep the syntax highlighting in vi working | ||||
* | attempt with fix URL for testing works | Michael Meer | 2014-01-30 | 1 | -2/+3 |
| | |||||
* | prevent reload loop if JS is active, but no cookies accepted | zottel | 2014-01-16 | 1 | -1/+5 |
| | |||||
* | more dav work | friendica | 2014-01-03 | 1 | -2/+0 |
| | |||||
* | set JS cookie | zottel | 2013-12-09 | 1 | -0/+6 |
| | |||||
* | Saved searches on the matrix/network page just got a lot more interesting. ↵ | friendica | 2013-10-01 | 1 | -1/+1 |
| | | | | Hint: it's all about autocomplete | ||||
* | fix include paths | dsp1986 | 2013-09-17 | 1 | -2/+2 |
| | |||||
* | fix homebase variable | friendica | 2013-08-15 | 1 | -1/+1 |
| | |||||
* | some object/thing tweaks | friendica | 2013-07-03 | 1 | -2/+5 |
| | |||||
* | push refresh messages, performance work on conversations and configs, doc ↵ | friendica | 2013-06-14 | 1 | -0/+1 |
| | | | | updates | ||||
* | templatise alt_pager | friendica | 2013-06-03 | 1 | -1/+1 |
| | |||||
* | add $db_port to .htconfig.php and $a->config['syste]['smarty3_folder'] for ↵ | fabrixxm | 2013-05-10 | 1 | -2/+2 |
| | | | | compiled templates | ||||
* | db abstraction layer | friendica | 2013-04-22 | 1 | -2/+2 |
| | |||||
* | set hidden flags on new directory entries, not just existing ones | friendica | 2013-03-26 | 1 | -1/+1 |
| | |||||
* | dangerous typo that removes all your hublocs, fix reshare formatting | friendica | 2013-03-11 | 1 | -1/+8 |
| | |||||
* | implement Smarty3 | Zach Prezkuta | 2013-01-06 | 1 | -10/+12 |
| | |||||
* | move all the final page construction to a construct_page() function | friendica | 2013-01-04 | 1 | -80/+1 |
| | |||||
* | import the toggle_mobile stuff to shut up some warnings | friendica | 2013-01-03 | 1 | -2/+2 |
| | |||||
* | get rid of undefined $ error by mangling theme specific JS include order | friendica | 2012-12-13 | 1 | -0/+3 |
| | |||||
* | a bit of e_all cleanup | friendica | 2012-12-08 | 1 | -0/+2 |
| | |||||
* | Allow anybody to completely over-ride any module on their own site without ↵ | friendica | 2012-11-28 | 1 | -12/+15 |
| | | | | any core code edits. Just copy an existing module file to 'custom/{module}.php' and edit to your liking. | ||||
* | start implementing zot-id | friendica | 2012-11-08 | 1 | -4/+6 |
| | |||||
* | that was certainly some fun debugging (not) | friendica | 2012-11-04 | 1 | -1/+1 |
| | |||||
* | mv mod_install to mod_setup, conflict with name of install dir | friendica | 2012-11-03 | 1 | -1/+1 |
| | |||||
* | more theme stuff | friendica | 2012-11-03 | 1 | -2/+0 |
| | |||||
* | fix page title | friendica | 2012-10-29 | 1 | -1/+1 |
| | |||||
* | "profile url" e.g. the wall/stream is now "channel url". "Profile URL" goes ↵ | friendica | 2012-10-29 | 1 | -1/+1 |
| | | | | to the profile details. | ||||
* | Give the UI a little love after all the backend mods | friendica | 2012-10-24 | 1 | -1/+3 |
| | |||||
* | lotsa little fixes | friendica | 2012-10-21 | 1 | -2/+2 |
| | |||||
* | don't show categories widget if there are none | friendica | 2012-10-19 | 1 | -1/+0 |
| | |||||
* | provide auto admin registration as before, but allow the current admin to ↵ | friendica | 2012-10-04 | 1 | -2/+0 |
| | | | | create other admins |