True, 'nonavbar' => True, 'currentapp' => 'admin' ); include('../header.inc.php'); if ($GLOBALS['phpgw']->acl->check('info_access',1,'admin')) { $GLOBALS['phpgw']->redirect_link('/index.php'); } ob_start(); phpinfo(); $matches = array (); preg_match( '%().*?(.*?)%s', ob_get_clean( ), $matches ); $matches[ 1 ] = preg_replace( '%body.*?{[^}]*}\n%s', '', $matches[ 1 ] ); $matches[ 1 ] = preg_replace( '%(\n)%s', '$1.phpinfo ', $matches[ 1 ] ); phpcredits( CREDITS_ALL - CREDITS_FULLPAGE ); $matches[ 2 ] = preg_replace( '%]*>PHP Credits%s', ob_get_clean( ), $matches[ 2 ] ); // Throw a little notice out if PHPaccelerator is enabled. if($GLOBALS['_PHPA']['ENABLED']) { echo 'PHPaccelerator enabled:
'."\n"; echo 'PHPaccelerator Version: '.$GLOBALS['_PHPA']['VERSION'].'

'."\n"; } print $matches[ 1 ] . '
' . $matches[ 2 ] . '
'; ?>