aboutsummaryrefslogtreecommitdiffstats
path: root/mod/events.php
Commit message (Collapse)AuthorAgeFilesLines
* Switch to a better datetime picker widgetStefan Parviainen2014-11-161-5/+4
|
* PostgreSQL support initial commitHabeas Codice2014-11-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* If entered event info is not valid, let user try again with the old info ↵Stefan Parviainen2014-10-211-7/+26
| | | | still there. Closes friendica/red#648
* Don't display date format, it's already in the placeholder textStefan Parviainen2014-10-191-6/+0
|
* Changes in the datetimesel api, prevent user from picking event end date ↵Stefan Parviainen2014-10-191-2/+2
| | | | earlier than start date
* Give an error if event is supposed to end before it starts. Closes ↵Stefan Parviainen2014-10-191-2/+4
| | | | friendica/red#534
* Initial stab at better general datetime pickerStefan Parviainen2014-10-181-17/+2
|
* missing event permissionsfriendica2014-10-151-0/+1
|
* This is long overdue - use a symblic constant NULL_DATE instead of the ↵friendica2014-09-081-1/+1
| | | | easily mis-typed sequence '0000-00-00 00:00:00'
* add categories to eventsfriendica2014-09-071-1/+50
|
* more work on the event edit formfriendica2014-09-051-0/+2
|
* put a date and time picker on eventsfriendica2014-09-041-5/+29
|
* numerous event fixes - mostly related to editing an eventfriendica2014-07-061-22/+41
|
* rule of snakes #1, kill the snake.friendica2014-06-281-2/+2
| | | | | | tinymce is gone. if you want a visual editor, figure out what you want and make it happen. If you don't want a visual editor, do nothing. This is in the community's hands. I don't need a visual editor.
* only show jotnets when posting conversation itemsfriendica2014-06-141-1/+1
|
* use consistent capitalisation in the item actions menufriendica2014-05-291-1/+1
|
* newevent: front end functionsfriendica2014-05-291-3/+13
|
* start to tie in the new event logicfriendica2014-05-291-2/+3
|
* event form hard-wired tinymce=on, made selectablefriendica2014-05-081-2/+11
|
* issue #395, item 2friendica2014-04-061-1/+4
|
* dav: throw exception if channel for requested DAV directory is deletedfriendica2014-01-151-2/+1
|
* remove a couple of mysql reserved words from being used as table or row ↵friendica2013-12-221-1/+1
| | | | names. For this round we're getting 'group' and 'desc'. Warning: potentially destabilising as this touches a lot of code.
* need include/conversation for events nowfriendica2013-12-061-0/+1
|
* some work on events permissionsfriendica2013-12-011-6/+17
|
* make "selected" class work on all navigation menu itemsmarijus2013-08-011-0/+2
|
* rename 'uri' (and parent_uri) to 'mid' (and parent_mid) since these no ↵friendica2013-03-211-2/+2
| | | | longer remotely resemble uri's and are actually message_id's. This change is potentially destabilising because it touches a lot of code and structure. But it has to get done and there's no better time than the present.
* some fixes related to eventsMichael Johnston2013-03-071-4/+5
| | | | | | | - add backticks around column "desc" in sql query - fixed query for data passed to showEvent - showEvent was picking up on id from item instead of id from event - fixed references to author info in template
* progress on tag deliveryfriendica2013-02-111-1/+1
|
* documenting event-finish-date-crosses-month-boundary issue to come back to laterfriendica2013-01-161-0/+6
|
* mopping up the events issues so I can move on to other stufffriendica2013-01-161-2/+4
|
* still some bugs but events are happening again.friendica2013-01-151-42/+35
|
* events are still buggered and aren't anywhere close to working, but not ↵friendica2013-01-071-8/+9
| | | | buggered quite as much as before.
* fix show-stopping bugsZach Prezkuta2013-01-061-2/+2
|
* wall posts now display - address book structure revamp startedfriendica2012-10-101-0/+1
|
* separate the public feed from everything elsefriendica2012-09-201-1/+17
|
* convert ent_quotes for jquery calendar title/summaryfriendica2012-06-291-2/+2
|
* create third privacy state - public post but not searchable or publicly visiblefriendica2012-06-281-1/+1
|
* change event behaviour so that title is required but description is notfriendica2012-06-251-6/+6
|
* event summary/titlefriendica2012-06-251-3/+11
|
* events: fix select events queryfabrixxm2012-06-071-2/+2
| | | | | select events that starts before display start date and/or ends after display end date.
* use cid rather than uid in permsfriendica2012-05-021-3/+12
|
* Modify events_post() in mod/events.php to set the `private` field to true ↵Zach Prezkuta2012-05-021-0/+19
| | | | when an event is shared with specific people. This is necessary to have event posts show correctly in Diaspora if an event is created visible only to self, but modified later to be visible to others.
* Merge branch 'master' of https://github.com/friendica/friendicaAlexander Kampmann2012-04-051-4/+4
|\ | | | | | | | | | | Conflicts: include/config.php update.php
| * make the "new calendar" (javascript interactive) the defaultfriendica2012-04-021-4/+4
|/
* enable ajax calendar with $a->config['experimentals']['new_calendar']=1Fabio Comuni2012-02-151-1/+5
|
* events js: pass only first line of desc as title; item.desc and ↵Fabio Comuni2012-02-141-6/+9
| | | | item.location as html
* events: first test for full-javascript events calendarFabio Comuni2012-02-141-39/+99
|
* new event current date off by one, submit button misplacedfriendica2012-01-251-3/+3
|
* add remove_user hook (it looks like dreamhost changed all my file ↵friendica2012-01-181-0/+0
| | | | permissions, this will make a nasty commit)
* start on bug #227 - more to dofriendica2011-11-251-0/+3
|