New release: 0.0.3aThat's a pretty fast development

.
New feature: Support for ATOM added.You can change your preferred format in the UCP, RSS1 has been dropped.
New feature: Authentication for private feeds via HTTP AUTH
.When creating a feed, your session as a user is still present and allows you to view the private feed a guest would not be allowed to see. But your feed reader doesn't have your session id and therefore always requests the feed as a guest. If the feed reader now submits a forum id he isn't allowed to access, a login prompt appears.
The attachment authentification.jpg is no longer available
You can login with your regular username and password. Afterwards, you can view the feed. If the login fails, the feed will not be shown.
This requires your feed reader to support HTTP AUTH which is mostly the case.
If you are viewing a feed directly in your browser, it will be no problem, HTTP AUTH is always supported. Other feed readers (liferea in this case) provide an option for this when adding the feed:
The attachment liferea.jpg is no longer available
Another possibility, which is used by Akregator, is that you have to add username:password to the URL.
You'll have to read up in your feed reader's documentation, if and how HTTP AUTH is supported in your case.
Changelog:
- Trigger an error when creating a feed while syndication is disabled.
- Added missing language string.
- Fixed typos in functions.php and create_syndication.php.
- Fixed wrong generation of source links.
- Fixed display of linebreaks and html in feeds.
- Added support for ATOM, dropped RSS1.
- Added feature to access private feeds via basic HTTP AUTH.
Changed files:
- create_syndication.php
- generate_feed.php
- styles/prosilver/template/syndication_rss2.html
- new file: styles/prosilver/template/syndication_atom.html
- includes/functions.php
- styles/prosilver/template/ucp_prefs_personal.html
- language/en/ucp.php
- language/en/common.php
- language/en/mods/syndication.php
Todo/ideas:
- caching: I'm thinking about caching the feed to reduce load. But on the other side, there are countless different feeds that can be created, so it is doubtful if caching really makes sense. My favorite solution right now is to just cache the result of the SQL queries for about 5 minutes. This would also not require any significant code changes.
- permissions: With now having the possibility to identify a user via HTTP AUTH, I plan to add a forum based permission f_syndication. This would allow the administrators to disable syndication for guest or specific users/groups and not anymore having to disable it for a complete forum.