aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_php_info.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-10-05 14:36:34 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-10-05 14:36:34 +0000
commit7de5bb349890d84827d385670c76cd58c40e5b8f (patch)
tree8cf95d27809f5abc61054237d74569e818769a1f /phpBB/includes/acp/acp_php_info.php
parente6c79242e6a7debfccc643a09dfab4a4d7746a8a (diff)
downloadforums-7de5bb349890d84827d385670c76cd58c40e5b8f.tar
forums-7de5bb349890d84827d385670c76cd58c40e5b8f.tar.gz
forums-7de5bb349890d84827d385670c76cd58c40e5b8f.tar.bz2
forums-7de5bb349890d84827d385670c76cd58c40e5b8f.tar.xz
forums-7de5bb349890d84827d385670c76cd58c40e5b8f.zip
dumdidum... sorry. ;)
git-svn-id: file:///svn/phpbb/trunk@8147 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_php_info.php')
-rw-r--r--phpBB/includes/acp/acp_php_info.php24
1 files changed, 16 insertions, 8 deletions
diff --git a/phpBB/includes/acp/acp_php_info.php b/phpBB/includes/acp/acp_php_info.php
index 3b4873bdc8..9935c0466e 100644
--- a/phpBB/includes/acp/acp_php_info.php
+++ b/phpBB/includes/acp/acp_php_info.php
@@ -1,14 +1,22 @@
<?php
-/**
+/**
*
* @package acp
* @version $Id$
-* @copyright (c) 2005 phpBB Group
-* @license http://opensource.org/licenses/gpl-license.php GNU Public License
+* @copyright (c) 2005 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
+* @ignore
+*/
+if (!defined('IN_PHPBB'))
+{
+ exit;
+}
+
+/**
* @package acp
*/
class acp_php_info
@@ -28,16 +36,16 @@ class acp_php_info
$this->tpl_name = 'acp_php_info';
$this->page_title = 'ACP_PHP_INFO';
- ob_start();
- @phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES | INFO_VARIABLES);
- $phpinfo = ob_get_clean();
+ ob_start();
+ @phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES | INFO_VARIABLES);
+ $phpinfo = ob_get_clean();
$phpinfo = trim($phpinfo);
// Here we play around a little with the PHP Info HTML to try and stylise
// it along phpBB's lines ... hopefully without breaking anything. The idea
// for this was nabbed from the PHP annotated manual
- preg_match_all('#<body[^>]*>(.*)</body>#si', $phpinfo, $output);
+ preg_match_all('#<body[^>]*>(.*)</body>#si', $phpinfo, $output);
if (empty($phpinfo) || empty($output))
{
@@ -66,7 +74,7 @@ class acp_php_info
$orig_output = $output;
- preg_match_all('#<div class="center">(.*)</div>#siU', $output, $output);
+ preg_match_all('#<div class="center">(.*)</div>#siU', $output, $output);
$output = (!empty($output[1][0])) ? $output[1][0] : $orig_output;
$template->assign_var('PHPINFO', $output);