aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/feed.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-08-26 05:59:34 -0400
committerNils Adermann <naderman@naderman.de>2011-08-26 05:59:34 -0400
commit2219193096e35bf5b27ef838bb9f7920ffab3532 (patch)
tree2039ca737d44db2bee5c76a624a00af3bdc641ad /phpBB/feed.php
parent73aca1a6fb72137befa6b61fba402ebe5e2babe1 (diff)
parentdc9a7714734f9ce69e1e83a80cf40445c59761bf (diff)
downloadforums-2219193096e35bf5b27ef838bb9f7920ffab3532.tar
forums-2219193096e35bf5b27ef838bb9f7920ffab3532.tar.gz
forums-2219193096e35bf5b27ef838bb9f7920ffab3532.tar.bz2
forums-2219193096e35bf5b27ef838bb9f7920ffab3532.tar.xz
forums-2219193096e35bf5b27ef838bb9f7920ffab3532.zip
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10335] Add X-PHPBB-IS-BOT header so reverse proxies know about bots.
Diffstat (limited to 'phpBB/feed.php')
-rw-r--r--phpBB/feed.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/feed.php b/phpBB/feed.php
index aacbb48591..bc23a19f42 100644
--- a/phpBB/feed.php
+++ b/phpBB/feed.php
@@ -173,6 +173,12 @@ if (defined('DEBUG_EXTRA') && request_var('explain', 0) && $auth->acl_get('a_'))
header("Content-Type: application/atom+xml; charset=UTF-8");
header("Last-Modified: " . gmdate('D, d M Y H:i:s', $feed_updated_time) . ' GMT');
+if (!empty($user->data['is_bot']))
+{
+ // Let reverse proxies know we detected a bot.
+ header('X-PHPBB-IS-BOT: yes');
+}
+
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
echo '<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="' . $global_vars['FEED_LANG'] . '">' . "\n";
echo '<link rel="self" type="application/atom+xml" href="' . $global_vars['SELF_LINK'] . '" />' . "\n\n";