diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-07-06 10:55:31 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-07-06 10:55:31 +0000 |
commit | 281ed483de292f1d7d3f350a273c402bae1744e6 (patch) | |
tree | c62e6060d5bba5f2f98111f17d01a254e4c4da67 /phpBB/includes/acp/acp_php_info.php | |
parent | d3468832bb07b535d679b067f2567621721f8769 (diff) | |
download | forums-281ed483de292f1d7d3f350a273c402bae1744e6.tar forums-281ed483de292f1d7d3f350a273c402bae1744e6.tar.gz forums-281ed483de292f1d7d3f350a273c402bae1744e6.tar.bz2 forums-281ed483de292f1d7d3f350a273c402bae1744e6.tar.xz forums-281ed483de292f1d7d3f350a273c402bae1744e6.zip |
some fixes. :)
git-svn-id: file:///svn/phpbb/trunk@7836 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_php_info.php')
-rw-r--r-- | phpBB/includes/acp/acp_php_info.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_php_info.php b/phpBB/includes/acp/acp_php_info.php index d5adef1097..d18d64b076 100644 --- a/phpBB/includes/acp/acp_php_info.php +++ b/phpBB/includes/acp/acp_php_info.php @@ -49,9 +49,16 @@ class acp_php_info $output = preg_replace('#<table[^>]+>#i', '<table>', $output); $output = preg_replace('#<img border="0"#i', '<img', $output); $output = str_replace(array('class="e"', 'class="v"', 'class="h"', '<hr />', '<font', '</font>'), array('class="row1"', 'class="row2"', '', '', '<span', '</span>'), $output); - + + if (empty($output)) + { + trigger_error('NO_PHPINFO_AVAILABLE', E_USER_WARNING); + } + + $orig_output = $output; + preg_match_all('#<div class="center">(.*)</div>#siU', $output, $output); - $output = (!empty($output[1][0])) ? $output[1][0] : @$output[1]; + $output = (!empty($output[1][0])) ? $output[1][0] : $orig_output; $template->assign_var('PHPINFO', $output); } |