diff options
Diffstat (limited to 'phpBB/includes/acp/acp_php_info.php')
| -rw-r--r-- | phpBB/includes/acp/acp_php_info.php | 20 | 
1 files changed, 10 insertions, 10 deletions
| diff --git a/phpBB/includes/acp/acp_php_info.php b/phpBB/includes/acp/acp_php_info.php index 125b77529f..2a1afe80d4 100644 --- a/phpBB/includes/acp/acp_php_info.php +++ b/phpBB/includes/acp/acp_php_info.php @@ -1,9 +1,13 @@  <?php  /**  * -* @package acp -* @copyright (c) 2005 phpBB Group -* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* This file is part of the phpBB Forum Software package. +* +* @copyright (c) phpBB Limited <https://www.phpbb.com> +* @license GNU General Public License, version 2 (GPL-2.0) +* +* For full copyright and license information, please see +* the docs/CREDITS.txt file.  *  */ @@ -15,17 +19,13 @@ if (!defined('IN_PHPBB'))  	exit;  } -/** -* @package acp -*/  class acp_php_info  {  	var $u_action;  	function main($id, $mode)  	{ -		global $db, $user, $auth, $template; -		global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx; +		global $template;  		if ($mode != 'info')  		{ @@ -46,7 +46,7 @@ class acp_php_info  		// for this was nabbed from the PHP annotated manual  		preg_match_all('#<body[^>]*>(.*)</body>#si', $phpinfo, $output); -		if (empty($phpinfo) || empty($output)) +		if (empty($phpinfo) || empty($output[1][0]))  		{  			trigger_error('NO_PHPINFO_AVAILABLE', E_USER_WARNING);  		} @@ -81,7 +81,7 @@ class acp_php_info  		$template->assign_var('PHPINFO', $output);  	} -	 +  	function remove_spaces($matches)  	{  		return '<a name="' . str_replace(' ', '_', $matches[1]) . '">'; | 
