aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/feed.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-01-19 19:08:51 +0000
committerAndreas Fischer <bantu@phpbb.com>2010-01-19 19:08:51 +0000
commit77af6caed7300c7498016b4b3d30d31f2bcca730 (patch)
tree91ea4690c066c72ef8b1304df070db4c264df21a /phpBB/feed.php
parentff0b94f23886ec2ac2c8a68e4aac9d840e6c2c88 (diff)
downloadforums-77af6caed7300c7498016b4b3d30d31f2bcca730.tar
forums-77af6caed7300c7498016b4b3d30d31f2bcca730.tar.gz
forums-77af6caed7300c7498016b4b3d30d31f2bcca730.tar.bz2
forums-77af6caed7300c7498016b4b3d30d31f2bcca730.tar.xz
forums-77af6caed7300c7498016b4b3d30d31f2bcca730.zip
[Feature] Ability to use HTTP authentication in ATOM feeds by passing the GET parameter auth=http
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10430 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/feed.php')
-rw-r--r--phpBB/feed.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/feed.php b/phpBB/feed.php
index a783f83ffd..812b667868 100644
--- a/phpBB/feed.php
+++ b/phpBB/feed.php
@@ -30,6 +30,15 @@ if (!$config['feed_enable'])
// Start session
$user->session_begin();
+
+if (!empty($config['feed_http_auth']) && request_var('auth', '') == 'http')
+{
+ phpbb_http_login(array(
+ 'auth_message' => 'Feed',
+ 'viewonline' => request_var('viewonline', true),
+ ));
+}
+
$auth->acl($user->data);
$user->setup();