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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user