diff options
Diffstat (limited to 'phpBB/download/file.php')
| -rw-r--r-- | phpBB/download/file.php | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 2154847865..1f2cee4d95 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -31,6 +31,12 @@ else if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'  if (isset($_GET['avatar']))  { +	if (!defined('E_DEPRECATED')) +	{ +		define('E_DEPRECATED', 8192); +	} +	error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED); +  	require($phpbb_root_path . 'config.' . $phpEx);  	if (!defined('PHPBB_INSTALLED') || empty($dbms) || empty($acm_type)) @@ -42,6 +48,7 @@ if (isset($_GET['avatar']))  	require($phpbb_root_path . 'includes/cache.' . $phpEx);  	require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);  	require($phpbb_root_path . 'includes/constants.' . $phpEx); +	require($phpbb_root_path . 'includes/functions.' . $phpEx);  	$db = new $sql_db();  	$cache = new cache(); @@ -61,7 +68,7 @@ if (isset($_GET['avatar']))  	$avatar_group = false;  	$exit = false; -	if ($filename[0] === 'g') +	if (isset($filename[0]) && $filename[0] === 'g')  	{  		$avatar_group = true;  		$filename = substr($filename, 1);  | 
