aboutsummaryrefslogtreecommitdiffstats
path: root/include/account.php
Commit message (Collapse)AuthorAgeFilesLines
* Documentation and remove duplicate code.Klaus Weidenbach2015-03-161-72/+79
| | | | | Add a bit Doxygen documentation and remove some duplicate code from account.php.
* Some documentation, fix chatroom service class lookup.Klaus Weidenbach2015-03-141-13/+38
| | | | | Add some Doxygen documentation and fixing a service class lookup for chatroom_create().
* local_user => local_channelfriendica2015-01-281-2/+2
|
* Fix for issue #763 Error creating new channel within the limits of theChristian Vogeley2015-01-111-0/+26
| | | | subscription plan
* PostgreSQL support initial commitHabeas Codice2014-11-131-15/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* honour service class restrictions for total_identities, total_channels ↵friendica2014-09-151-0/+23
| | | | ("friends") and total_feeds both when importing channels and subsequently when syncing clones. Limits are based on the local system - additional entries are silently dropped.
* argument order reversed in downgrade_accountsfriendica2014-09-091-2/+2
|
* This is long overdue - use a symblic constant NULL_DATE instead of the ↵friendica2014-09-081-3/+4
| | | | easily mis-typed sequence '0000-00-00 00:00:00'
* implement service class for feed polling frequenecy, fixed a service class ↵friendica2014-09-031-0/+88
| | | | bug, moved service class stuff from plugin to account.php where it belongs and load that by default instead of on demand
* more diaspora heavy liftingfriendica2014-08-251-1/+1
|
* finish implementing email verification. Currently it only applies if ↵friendica2014-07-091-1/+8
| | | | REGISTER_OPEN is in effect.
* some initial work towards email address verificationfriendica2014-07-031-0/+84
|
* some more snakebite and fix up include/account - forgot about that inline ↵friendica2014-02-181-3/+6
| | | | array stuff
* service class downgrade to the default service class on account expiration ↵friendica2014-02-181-0/+52
| | | | if using a non-default service class and account has expired.
* fix the admin interface to pending registrationsfriendica2014-01-211-2/+2
|
* more work on dav - deletion and a bit more progress on OS storagefriendica2014-01-071-0/+1
|
* Missing include for new_keypairThomas Willingham2013-08-101-0/+1
|
* move sitekey creation to the account creation function instead of during ↵friendica2013-08-091-0/+7
| | | | channel creation. Channel import bypassed sitekey creation completely. We should do it during install, but it's possible somebody might have to install manually and the sitekey would never get created. This is the best compromise I can come up with. Looks like the doc tree was also updated in this checkin
* fix registration email (sitename)friendica2013-07-181-1/+1
|
* fix setting account_roles for admin accountfriendica2013-05-151-1/+1
|
* photo driver issue when updating contact photos - old class structure used ↵friendica2013-05-051-1/+1
| | | | instead of photo_factory()
* fix admin assignfriendica2013-05-051-2/+2
|
* minor fixes related to postgres developmentfriendica2013-05-051-1/+2
|
* start formatting for Doxygenfriendica2013-02-251-1/+1
|
* Whinging whining stupid fucks.friendica2013-02-121-8/+0
|
* Sort out registrations requiring approvalfriendica2013-02-111-3/+9
|
* smarty support in intltext, fix old pending accounts query in ping, log ↵friendica2013-02-091-2/+5
| | | | failed email register notify
* more register_approve stuff - like the admin page. Hopefully this won't ↵friendica2013-02-081-0/+5
| | | | conflict with Thomas's admin page "list users" changes
* perhaps REGISTER_VERIFY will work now. I'll test it and make certain it ↵friendica2013-02-081-0/+99
| | | | works some day. But not today.
* No bloody comment.friendica2013-02-081-1/+1
|
* check for mcrypt during install, allow admin email account to be admin *if* ↵friendica2013-01-271-0/+16
| | | | it's the first account.
* add Smarty templates for international templatesZach Prezkuta2013-01-101-11/+0
|
* registration issuefriendica2013-01-071-4/+4
|
* bypass smarty for intletext templatesfriendica2013-01-071-0/+10
|
* fixed several little nit bugs that cropped up during deploymentfriendica2012-12-061-1/+1
|
* provide auto admin registration as before, but allow the current admin to ↵friendica2012-10-041-1/+18
| | | | create other admins
* Now logging in with Red zaccount/zentity instead of Friendica user. Yay. ↵friendica2012-08-271-1/+5
| | | | Most existing Friendica functionality is now stuffed since the Red structures are quite different.
* a few minor changesfriendica2012-08-261-23/+14
|
* cleanup the rest of the new register logicfriendica2012-08-221-3/+78
|
* NaCl passwords - (db update)friendica2012-08-211-3/+28
|
* reversed error logicfriendica2012-08-161-3/+3
|
* zregister, cont.friendica2012-08-161-0/+11
|
* add invitiation logic to registrations - this is starting to look goodfriendica2012-08-161-20/+37
|
* more zregister cleanup and theme separationfriendica2012-08-161-2/+25
|
* registration dangling code fragment that should've been removedfriendica2012-08-151-14/+33
|
* cleanup of mod_zregister, basic functionality working - new accounts getting ↵friendica2012-08-151-10/+17
| | | | stored.
* moving forward againfriendica2012-08-081-19/+4
|
* more account infrastructurefriendica2012-07-221-0/+99