Commit graph

201 commits

Author SHA1 Message Date
friendica
aafed50a0e Merge branch 'master' into tres 2015-02-01 20:30:47 -08:00
friendica
e58bef049d admin/dbsync not reporting failed updates 2015-02-01 15:41:01 -08:00
friendica
e6a5f78003 Merge branch 'master' into tres
Conflicts:
	include/zot.php
2015-01-31 00:50:20 -08:00
friendica
912be23e16 Merge branch 'master' into tres
Conflicts:
	include/group.php
	include/text.php
	mod/acl.php
	mod/channel.php
	mod/connections.php
	mod/display.php
	mod/group.php
	mod/item.php
	mod/locs.php
	mod/network.php
	mod/photos.php
	mod/ping.php
	mod/starred.php
	mod/viewsrc.php
2015-01-29 15:09:35 -08:00
Christian Vogeley
f81df92ef8 Add allowed and not allowed emails to the UI in the
admin menu
2015-01-29 20:27:35 +01:00
friendica
a496036066 local_user => local_channel 2015-01-28 20:56:04 -08:00
friendica
51848c6190 working through the xchan table to remove bitfields, mostly complete except for updating the updater 2015-01-20 19:33:19 -08:00
Stefan Parviainen
93735df2c7 Allow tags in mail, many profile fields, and admin info 2015-01-13 17:54:40 +01:00
friendica
3ef487418d don't allow admin to delete the sys channel from the channel manage page 2015-01-06 20:12:34 -08:00
Habeas Codice
ac27db22c1 Merge remote-tracking branch 'upstream/master'
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
2014-11-13 13:06:31 -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
Thomas Willingham
9ddf49c661 Add a new theme flag - library. Not directly available to be used itself but
installed as a lib for other themes.  Like SDL, or GTK.

Get rid of mobility - it's better done with Comanche and schemas.

Describe themes instead of restricting them.  Mobile themes can be used as
the desktop theme and vice-versa.  This deals with the problem of "but my
device is something inbetween".

Presently not exposed to members.
2014-11-10 19:34:39 +00:00
Christian Vogeley
89fec0e085 Allow ordering by created 2014-09-20 23:28:42 +02:00
friendica
b2f2424b52 push individual block to directory 2014-09-15 23:11:08 -07:00
friendica
4d91b6e6d2 fat finger - must have been here a while 2014-09-15 22:53:33 -07:00
Thomas Willingham
b5241c610f Deprecate site channel. The sys channel should be doing this. Will fix
shortly.
2014-09-15 00:06:51 +01: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
844087bc71 implement service class for feed polling frequenecy, fixed a service class bug, moved service class stuff from plugin to account.php where it belongs and load that by default instead of on demand 2014-09-03 19:07:14 -07:00
friendica
5e5c6c9000 consistency: the diaspora post plugin uses "diaspora_enable". The protocol driver uses "diaspora_enabled" with a 'd'. They got mixed up in a couple of places. 2014-08-28 03:33:19 -07:00
friendica
a4f734e37c begin embeddable/shareable design elements (blocks, webpages, layouts, menus, etc.) 2014-08-27 22:56:24 -07:00
friendica
2d210db1b8 ability to create/edit/delete custom profile field definitions - read the source. Currently the created entries aren't added to the allowed fields arrays, but this can be done by hand until that bit is made available. Only choice for input type at the moment is 'text' or a text input, not a textarea. Multiple choice will be added later. 2014-08-27 22:01:02 -07:00
friendica
bbcf0be16a Admin setting for Diaspora Protocol enable. We may want to have this also at a channel level since there are privacy issues and quirks and trade-offs. 2014-08-27 18:19:56 -07:00
friendica
f7895d322e provide admin option for allowing rss/atom feed connections. Need to do this now before the feature is complete so that public sites don't get borked. We also will need a service class for this. 2014-08-20 16:10:57 -07:00
Christian Vogeley
f36253b7a8 Account deletion
fix multi user deletion, add confirmation message
2014-08-15 14:56:17 +02:00
RedMatrix
f4229dbc3f Merge pull request #561 from cvogeley/master
Some work on account deletion
2014-08-15 09:58:43 +10:00
Christian Vogeley
fc94a638cd Some work on account deletion 2014-08-14 20:17:57 +02:00
friendica
1d6f494936 some work on extended profile fields 2014-08-13 22:22:52 -07:00
friendica
eb31d61a26 when an admin censors a channel, we only need to notify the directory and not all the connections. 2014-06-22 17:26:05 -07:00
marijus
e6a655bde4 make maximum load average setting work again 2014-06-16 22:52:23 +02:00
Thomas Willingham
a63996b5bc Attempt to reduce the support burden of access and register policy. 2014-04-21 14:45:26 +01:00
sasiflo
9f54a8f96b Hope I have repaired the channel admin page.
Channel blocking and deleting was copied from user actions. This was not
done to an end. Hope what I do is enough to enable channel blocking and
deleting the correct way.

On deletion all entities that belong to the channel are deleted. But the
channel itself is just marked as deleted. Do not really understand why
it is done this way.
2014-04-06 00:34:52 +02:00
friendica
69513441f5 removed default maximagesize - it can be set in the admin pages. 2014-04-02 15:36:18 -07:00
Thomas Willingham
1093e8d83e Default discover to on. 2014-03-30 22:59:37 +01:00
friendica
c400303f22 make the discover tab enabled by default the first you use the admin panel, though it will be disabled until you use the admin panel. 2014-03-29 23:24:38 -07:00
Alexandre Hannud Abdo
fedd19ec95 Let the site admin choose whether to display the Discover tab. 2014-03-30 00:03:12 -03:00
friendica
9a3a2819c1 add admin/channels 2014-03-26 17:05:45 -07:00
friendica
663dd39015 don't show deleted channels on admin account summary page 2014-02-16 14:39:27 -08:00
friendica
deaf93db71 missing string delimiters (quotes) 2014-01-30 21:01:09 -08:00
Michael Meer
c0f02d774a started analysis of ping response and clean up more logger 2014-01-30 20:41:40 +01:00
Michael Meer
c5ac5544cb clean up logger commands. Placed apostrophs at the end from some comments to keep the syntax highlighting in vi working 2014-01-30 11:04:20 +01:00
Michael Meer
0a2b2a1390 attempt with fix URL for testing works 2014-01-30 10:39:09 +01:00
Michael Meer
ef97a454bb ping gives us now a reply. But the reply doesnt contains useful data, requires still some investigations 2014-01-29 15:45:35 +01:00
Michael Meer
aa285b83c1 to make visible what I try, ping still won't work, but I'm confused about get_channel 2014-01-28 10:58:31 +01:00
Michael Meer
a3bf272753 Merge branch 'master' of https://github.com/MicMee/red
to be in sync
2014-01-27 10:37:15 +01:00
Thomas Willingham
692822bdf0 Left over line from placeholder. 2014-01-25 00:13:29 +00:00
Thomas Willingham
d3a0d37b0d Add admin info to admin panel and site info.
Since we can have multiple admins, this is freeform bbcode.
2014-01-24 23:58:41 +00:00
Michael Meer
a2b07ed281 build url, deleted logger commands 2014-01-23 13:58:14 +01:00
Michael Meer
524fff3a17 preperation for ping, need training in SQL :( 2014-01-23 12:09:35 +01:00
Michael Meer
ffabb4cc86 reorg formula data for hubloc checks 2014-01-22 11:29:49 +01:00
Michael Meer
f28b21f99d start with hubloc ping 2014-01-22 09:16:22 +01:00
friendica
60416d6f33 fix the admin interface to pending registrations 2014-01-21 14:56:42 -08:00
Michael Meer
a13593590b added buttons to perform later hubloc actions 2014-01-20 12:12:40 +01:00
friendica
b3fe221b7f issue #240 - we were using htmlentities instead of htmlspecialchars in several places, and this was a bit greedy in the set of characters which were converted from utf-8 to HTML entities. Also brought mail attachments up to date so they are rendered identically to item attachments. 2013-12-11 23:13:36 -08:00
friendica
e5ea4a009b mod channel is now Comanchified 2013-12-10 20:36:11 -08:00
Tobias Diekershoff
6c6c8a2451 add option to hide login form from homepage 2013-12-06 12:00:43 +01:00
tuscanhobbit
421cacfc8d admin user table now shows the channel list, minor changes to summary 2013-11-24 23:06:03 +01:00
tuscanhobbit
2e41777963 a reference to account_id was missing in user admin table 2013-11-23 19:46:07 +01:00
friendica
dc6cd8a701 admin/users - add expiration date to table and ability to sort by reverse expiration and also filter by service class through url options 2013-11-18 15:38:02 -08:00
friendica
bec85f1494 implement admin remove account 2013-11-17 13:54:43 -08:00
friendica
6519433301 suppress creating the directory update record for profile updates which are part of the normal import_xchan sequence - otherwise we get two for every change. Create it normally if we are called with a profile_update message and don't go through the whole import_xchan thing. 2013-09-25 21:22:36 -07:00
Michael Meer
54823a6589 admin hubloc page now with content from all hublocs, in next steps I add some tests with zping and reduce the content to known problems. 2013-09-24 09:28:42 +02:00
Thomas Willingham
2eaea80195 Add tiered access option. 2013-09-19 22:36:25 +01:00
Michael Meer
d330df05f2 extend admin page for hubloc / server key management 2013-09-17 10:11:22 +02:00
friendica
6a2cb837af get rid of ssl_policy - it's implicit in the site url 2013-08-27 02:27:36 -07:00
Christian Vogeley
ab06b18f5b theme qualifier without dots 2013-08-21 23:14:52 +02:00
friendica
a8dd7280b3 get rid of more variables with dashes in the names - use underscore *except* in CSS. These were probably already here, but if you see any - please keep them out of PHP and MySQL where they sometimes get interpreted as a subtraction operation and are a bugger to find. 2013-08-15 22:52:19 -07:00
Thomas Willingham
81a0683aaf Add access policy to admin panel. 2013-08-07 20:15:18 +01:00
friendica
2455b0c92f remove some unused settings from admin page 2013-07-21 17:33:40 -07:00
Thomas Willingham
d1cae2da2a Merge remote-tracking branch 'upstream/master' 2013-07-02 18:36:39 +01:00
friendica
f835737cb7 fix some anomolies in config functions 2013-06-21 21:36:48 -07:00
Thomas Willingham
620d4f5752 Set a site channel so an admin can use CMS to create home.html and so on, without ever needing to touch HTML again. When I've finished that bit too. 2013-05-31 02:25:42 +01:00
friendica
ab5151c470 more Friendica removals 2013-04-14 22:44:11 -07:00
friendica
b84d8bfbc9 begin to cut the umbilical 2013-04-14 22:24:47 -07:00
Thomas Willingham
9c4b3b03db Allow admins to specify default mobile/accessibility theme. 2013-03-17 18:51:17 +00:00
Thomas Willingham
b48c481b9c Tidy up 2013-03-15 15:25:39 +00:00
Thomas Willingham
fbc5260995 Get admin/users mostly working. Still need to associate channels with accounts. 2013-03-12 02:35:18 +00:00
friendica
62afdf3820 more register_approve stuff - like the admin page. Hopefully this won't conflict with Thomas's admin page "list users" changes 2013-02-08 03:51:31 -08:00
Thomas Willingham
70dc7993be We DO only have one queue for now. 2013-02-02 15:00:13 +00:00
Thomas Willingham
1633f95db8 Clean up no longer used admin functions, plus fix summary template. 2013-02-02 14:54:40 +00:00
Thomas Willingham
21b04c4582 Fix admin summary. 2013-02-02 03:36:25 +00:00
Zach Prezkuta
a0d19ffb72 implement Smarty3 2013-01-06 15:57:11 -07:00
friendica
7df33bb963 fix register_policy globally 2013-01-03 13:50:23 -08:00
friendica
7f77670649 revise auto_update system so as not to conflict with pre-existing Friendica settings 2012-12-09 16:28:35 -08:00
friendica
19ee8f9b1b fix about half of the admin page 2012-11-10 00:09:31 -08:00
friendica
cc8a11eee2 allow theme selection 2012-11-07 14:09:51 -08:00
friendica
b400e4dfad change admin pointer to update.php 2012-11-01 15:11:11 -07:00
Mike Macgirvin
9d043d2db4 remove remoteupdate since it only worked for a month in 2011 2012-10-23 19:09:32 +11:00
friendica
0292d46e5d merge comment threading, provide plugin/theme functions to handle css/js includes 2012-08-09 16:26:44 -07:00
Thomas Willingham
10cb60195f Bloody hell, this touches a lot of code. 2012-08-06 19:41:27 +01:00
Thomas Willingham
fca25c1909 Theme admin menu. 2012-08-06 19:36:41 +01:00
friendica
a122fecf50 add additional page types to admin user report 2012-07-05 22:30:13 -07:00
friendica
3b49035636 admin page untranslated strings, remove empty list element for update 2012-06-06 22:28:30 -07:00
root
88d5d9684a admin: remove update link in admin menu 2012-05-25 03:05:07 -04:00
friendica
f29f861d25 add queue totals to admin summary page 2012-05-22 03:44:03 -07:00
friendica
54e2c1ca81 rev update, bug 428, 429, and ability to block globaldir submissions from demo sites 2012-05-21 16:40:11 -07:00
friendica
e8b9b8a403 separate poll_interval from delivery_interval - default is the same. 2012-05-07 04:21:54 -07:00
friendica
421acee65b implement max load average before queuing/deferring delivery and poller processes 2012-05-03 21:50:48 -07:00
friendica
0153d86b7f admin page to manage failed updates 2012-04-29 19:10:07 -07:00
friendica
f163aed66d break up poller into separate processes 2012-04-27 23:17:40 -07:00
Tobias Hößl
b885fedee1 XSRF protection and PHPdoc for mod/admin.php 2012-04-18 07:36:48 +00:00