aboutsummaryrefslogtreecommitdiffstats
path: root/include/dir_fns.php
Commit message (Collapse)AuthorAgeFilesLines
* thwart attempts to use an external private directory as a directory serverredmatrix2015-11-091-0/+13
|
* provide admin setting to change directory serverredmatrix2015-11-031-2/+3
|
* revert - we can't guarantee what project name the fallback directory server ↵redmatrix2015-10-191-6/+4
| | | | has and this could cause bugs later
* update site on initial directory setupredmatrix2015-10-191-4/+7
|
* create site records for all queued sites and check for deathredmatrix2015-09-281-5/+8
|
* Merge branch 'master' of https://github.com/redmatrix/redmatrixredmatrix2015-07-101-1/+1
|\ | | | | | | | | | | | | | | Conflicts: mod/editpost.php util/messages.po view/nl/messages.po view/nl/strings.php
| * fix typo to make directory safe mode default to on work againMario Vavti2015-07-081-1/+1
| |
* | Merge branch 'master' of https://github.com/redmatrix/redmatrixredmatrix2015-07-071-43/+18
|\|
| * fix sorting of channel suggestionsMario Vavti2015-07-071-1/+1
| |
| * rename function get_directory_settings => get_directory_setting and move ↵Mario Vavti2015-07-071-20/+4
| | | | | | | | sort options to directory title bar
| * make public forums only setting sticky and simplify function to get ↵Mario Vavti2015-07-071-27/+15
| | | | | | | | directory settings
| * code style correctionMario Vavti2015-07-071-3/+2
| |
| * make directory suggest work with directory optionsMario Vavti2015-07-071-2/+6
| |
* | Merge branch 'master' of https://github.com/redmatrix/redmatrixredmatrix2015-05-241-1/+4
|\| | | | | | | | | | | Conflicts: index.php mod/setup.php
| * add channel_id to local_dir_update hookredmatrix2015-05-231-1/+1
| |
| * add local_dir_update hookredmatrix2015-05-231-1/+4
| |
* | Merge branch 'master' into tresfriendica2015-04-231-108/+181
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: include/Contact.php include/ItemObject.php include/api.php include/attach.php include/diaspora.php include/dir_fns.php include/enotify.php include/event.php include/expire.php include/items.php include/notifier.php include/notify.php include/photos.php include/taxonomy.php include/text.php include/widgets.php include/zot.php mod/admin.php mod/channel.php mod/dirsearch.php mod/display.php mod/editwebpage.php mod/events.php mod/home.php mod/item.php mod/manage.php mod/mood.php mod/network.php mod/page.php mod/photos.php mod/ping.php mod/post.php mod/thing.php mod/viewsrc.php view/css/mod_events.css
| * issue #157, provide default directory sort orderfriendica2015-04-191-1/+7
| |
| * Correcting reported Doxygen syntax warnings.Klaus Weidenbach2015-03-291-109/+103
| | | | | | | | | | | | | | 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.
| * Allow site to over-ride directory options. Bugger off.friendica2015-03-091-38/+31
| |
| * major cleanup of directory optionsfriendica2015-03-051-2/+9
| |
| * straighten out some directory stuff, which required some Comanche structural ↵friendica2015-03-051-2/+24
| | | | | | | | changes
| * require access token to view, query, or join directories in private realms, ↵friendica2015-02-241-6/+12
| | | | | | | | if the realm is so configured.
| * directory interface cleanup and documentation so that debugging realms won't ↵friendica2015-02-191-5/+48
| | | | | | | | be stabbing in the dark.
| * some ratings fixesfriendica2015-02-131-1/+1
| |
* | Merge branch 'master' into tresfriendica2015-02-051-0/+43
|\| | | | | | | | | | | Conflicts: view/css/mod_events.css view/theme/redbasic/css/style.css
| * finish off the sync functionsfriendica2015-02-031-0/+43
| |
* | working through the xchan table to remove bitfields, mostly complete except ↵friendica2015-01-201-12/+4
|/ | | | for updating the updater
* don't unset a directory server which has no active channels and hence will ↵friendica2015-01-181-9/+24
| | | | never have a site table update. Do this by probing the sys channel of that directory weekly and checking the directory status returned by it.
* clean up some url anomalies in dir_sort_links after security fixfriendica2015-01-081-1/+3
|
* double q argument could also cause issuesfriendica2015-01-081-1/+4
|
* SECURITY: dir_sort_links() exposes session cookiefriendica2015-01-081-2/+2
|
* fix some directory anomoliesfriendica2014-12-161-2/+4
|
* Directory sorting as a dropdown, forum filter as checkbox, option to sort ↵Stefan Parviainen2014-12-071-0/+17
| | | | oldest first
* add link to search forums in the directoryfriendica2014-11-231-2/+3
|
* minor photo flag issue - and some more whitespace editsfriendica2014-11-191-4/+4
|
* PostgreSQL support initial commitHabeas Codice2014-11-131-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* This is long overdue - use a symblic constant NULL_DATE instead of the ↵friendica2014-09-081-2/+2
| | | | easily mis-typed sequence '0000-00-00 00:00:00'
* Add check_upstream_directory() to check that your directory is stillThomas Willingham2014-08-311-0/+20
| | | | | a directory, and if it isn't, let find_upstream_directory() find you a new one.
* some more work on realmsfriendica2014-08-171-8/+22
|
* add an encoding type to formatted zot communication structures so that we ↵friendica2014-07-241-0/+1
| | | | can later add alternate encodings.
* much better fix to problem yesterday of updates with the wrong ud_addr ↵friendica2014-06-301-1/+1
| | | | | | getting updated. Now we'll pass in the update table row to import_xchan so we know exactly which ud_addr applies. We still need ud_flags passed in separately.
* log the offending dir serverfriendica2014-06-291-0/+2
|
* limit updates from new dir servers to avoid exhausting memory.friendica2014-06-291-1/+6
|
* regression: (-1) update_flag still exists in one function. This should be ↵friendica2014-06-011-1/+1
| | | | UPDATE_FLAGS_FORCED or 2.
* Set a default directory server from a hard-wired list if one was not ↵friendica2014-04-251-3/+24
| | | | previously chosen.
* directory sync issuesfriendica2014-03-031-0/+3
|
* implement a forced directory update mode where we unconditionally create a ↵friendica2014-02-111-5/+8
| | | | directory sync packet. This is needed to ensure that monthly directory pings are propagated to other directory servers so they can each prove for themselves whether or not an account is alive or dead. We do not trust other directories to provide us information beyond "look at this entry and decide for yourself" as doing otherwise would invite rogue directory manipulations. As this scheduled update occurs on all channels across all servers, we should also pick up refresh messages from all existing channel clones and these should also propagate out to all directory servers using the same mechanism (though perhaps not at the same time).
* reversed args in update_modtime, incorrect ud_guid and ud_hashfriendica2014-02-101-2/+2
|
* extend the directory profiles a bit morefriendica2013-12-251-0/+4
|