Commit Graph

163 Commits

Author SHA1 Message Date
zotlabs 660079bd2a Issue with configurable site age limit, vagueness when informing about email validation policy; added email validation resend ability and the option to input a verification code at a webpage though both require additional work to provide these abilities. 2018-01-26 12:16:47 -08:00
zotlabs 321957781e remove server role from language configs 2017-05-29 20:59:05 -07:00
zotlabs 581ef6e18d string update 2016-10-30 12:34:00 -07:00
zotlabs 50f579d301 Provide better explanation of server_roles in the config template 2016-10-09 21:01:41 -07:00
redmatrix 5243dd153b use config system.server_role and deprecate 'UNO' 2016-08-07 17:29:35 -07:00
redmatrix 096fdfc61b consolidate all the sys_boot functionality that is common between the web server and the cli daemon manager. Get rid of yet another global variable ($default_timezone) whilst doing so. 2016-05-26 16:33:01 -07:00
redmatrix c0bdcfedeb log if the session handler fails and surface the ssl_cookie config setting 2016-04-08 05:10:36 -07:00
redmatrix 9abd95fad3 static App 2016-03-31 16:06:03 -07:00
Tobias Luther 1c6faa3a00 Added Link to TOS to EMail templates targeting members 2016-03-06 18:45:43 +01:00
redmatrix 3da8f9b13c duplicated lines in en config file 2016-02-08 14:51:03 -08:00
redmatrix a14b87baf2 make yet another recommended security header optional - this time because of piwik. Personally I think if you want to track people you really don't understand this project and its history, but whatever.... 2016-02-08 14:48:11 -08:00
redmatrix 9cf105f8ea initial uno config 2016-02-04 23:58:31 -08:00
Jeroen van Riet Paap 9a4cbc05a6 no trailing slash 2016-01-27 23:48:14 +01:00
redmatrix 9dfe5dee64 change text "Red developers" in update failed email 2015-12-05 13:56:32 -08:00
redmatrix 41542e6886 document that you probably shouldn't set a primary directory server in somebody else's realm. 2015-11-25 17:34:03 -08:00
redmatrix 5b5f0666f9 second pass name change 2015-05-05 03:59:51 -07:00
redmatrix a3c37f1458 first pass name change 2015-05-05 03:56:10 -07:00
friendica 37384c0b27 automated warning after a few days if poller is dead 2015-03-02 18:02:06 -08:00
friendica 41415d934f here's the email template 2015-03-01 20:18:08 -08:00
friendica ba7bdd79b7 queue management actions. Still needs further work such as indication of last successful connection or indication that the hub was marked offline, but these are potentially expensive queries. 2015-03-01 15:55:27 -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
zottel 2790d9f146 remove unused email template files 2014-10-10 11:42:46 +02:00
friendica 6ab21b3d4f make verify_email the default for new installs (at least English installs), and provide a setting on the admin page for it. 2014-09-10 17:42:13 -07:00
friendica 5ed9444bee some initial work towards email address verification 2014-07-03 18:29:32 -07:00
Thomas Willingham 33ff5b3a9b Clean up legacy smarty3 2014-04-19 13:59:12 +01:00
friendica 69513441f5 removed default maximagesize - it can be set in the admin pages. 2014-04-02 15:36:18 -07:00
friendica 7375e30506 This should be a slight improvement in setting ciphers - we'll punt on RedHat but open up the list just for openssl distros which seem to have all the problems at the moment. 2014-03-25 15:19:18 -07:00
friendica e6ea4a7574 ssl ciphers - be liberal in what we accept, conservative in what we generate 2014-03-24 17:16:01 -07:00
friendica f9381ed746 notification bug - don't use $r, we already set it to something else that we need further on. 2014-02-06 13:32:29 -08:00
friendica 310ccfda99 INSTALL for dummies - step 1: ensure that we throw an ugly error message in their face
if there's an ugly error when we first try to install. DON'T white screen until after
they've got it running.
2013-11-05 19:45:02 -08:00
friendica e4d2e2200e add "tiered" access policy, add tagcloud to directory pages 2013-09-18 17:47:26 -07:00
friendica 2e14dc242e if changing primary hub during an import operation - remove the old xchan and create a fresh xchan pointing at this instance. Also a minor edit to increase the default photo upload limit for new sites. There aren't many cameras left that will take photos < 800k in size. 2013-08-19 17:18:13 -07:00
friendica 99bd0712b6 Add a site access policy (to determine if this is really a public site or just an open site) and add an orphan flag to xchans in case all their hublocs go away. Get rid of a couple of DO NOT EDIT template messages which were still lurking in the tree. 2013-08-06 17:15:41 -07:00
friendica 3f86f44df5 convert all the remaining email templates to smarty 2013-05-16 01:54:57 -07:00
friendica 92c5db0892 update email template to smarty (several more to go) 2013-05-15 23:02:14 -07:00
friendica b00c900fa2 fix intltext templates - maybe 2013-05-15 21:21:44 -07:00
friendica 264e1c0cc6 add port settings to setup 2013-05-15 20:45:35 -07:00
friendica 698a372ba1 Sort out registrations requiring approval 2013-02-11 16:43:27 -08:00
friendica 260a012b02 add soapbox settings 2013-02-10 00:13:34 -08:00
friendica dbc024cdaf perhaps REGISTER_VERIFY will work now. I'll test it and make certain it works some day. But not today. 2013-02-08 03:11:40 -08:00
Zach Prezkuta 690e278d95 add newline at end of header 2013-01-11 10:00:26 -07:00
Zach Prezkuta 34dc11d68e add warning messae about automatically generated templates 2013-01-11 09:57:23 -07:00
Zach Prezkuta ddb2a8c23a add Smarty templates for international templates 2013-01-10 21:24:10 -07:00
friendica 7a6972efb5 provide a default directory configuration (client) 2012-12-26 17:20:57 -08:00
friendica c6b8ab534f fixed several little nit bugs that cropped up during deployment 2012-12-06 00:03:24 -08:00
friendica 6db8b5bbd2 All the themes except one are horked anway 2012-11-06 20:39:00 -08:00
friendica f685b67656 new install settings 2012-10-18 18:34:38 -07:00
friendica 2cd9994904 use a single language config until all the new options are in place 2012-10-17 18:53:18 -07:00
friendica 059a14fefc relocate register policy setting in language htconfig templates 2012-10-07 10:38:23 +11:00
friendica 7bee460df2 provide auto admin registration as before, but allow the current admin to create other admins 2012-10-04 23:05:45 -07:00