mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
merge
git-svn-id: file:///svn/phpbb/trunk@8746 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6eed0e5bd2
commit
f405535730
1 changed files with 12 additions and 0 deletions
|
@ -16,6 +16,18 @@ if (!defined('PHPBB_ROOT_PATH')) define('PHPBB_ROOT_PATH', './../');
|
||||||
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
|
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
|
||||||
include(PHPBB_ROOT_PATH . 'common.' . PHP_EXT);
|
include(PHPBB_ROOT_PATH . 'common.' . PHP_EXT);
|
||||||
|
|
||||||
|
if (isset($_SERVER['CONTENT_TYPE']))
|
||||||
|
{
|
||||||
|
if ($_SERVER['CONTENT_TYPE'] === 'application/x-java-archive')
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'Java') !== false)
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($_GET['avatar']))
|
if (isset($_GET['avatar']))
|
||||||
{
|
{
|
||||||
// worst-case default
|
// worst-case default
|
||||||
|
|
Loading…
Add table
Reference in a new issue