1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-25 17:41:25 +02:00

[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
This commit is contained in:
Andreas Fischer
2010-01-19 19:08:51 +00:00
parent ff0b94f238
commit 77af6caed7
9 changed files with 123 additions and 0 deletions

View File

@@ -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();