Changeset 2419 for trunk/admin/phpinfo.php
- Timestamp:
- 04/05/10 16:31:25 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/phpinfo.php
r2 r2419 23 23 } 24 24 25 // Throw a little notice out if PHPaccelerator is enabled. 25 ob_start(); 26 27 phpinfo(); 28 29 $matches = array (); 30 preg_match( '%(<style type="text/css">.*?</style>).*?<body>(.*?)</body>%s', ob_get_clean( ), $matches ); 31 32 $matches[ 1 ] = preg_replace( '%body.*?{[^}]*}\n%s', '', $matches[ 1 ] ); 33 $matches[ 1 ] = preg_replace( '%(\n)%s', '$1.phpinfo ', $matches[ 1 ] ); 34 35 phpcredits( CREDITS_ALL - CREDITS_FULLPAGE ); 36 37 $matches[ 2 ] = preg_replace( '%<a[^>]*>PHP Credits</a>%s', ob_get_clean( ), $matches[ 2 ] ); 38 39 // Throw a little notice out if PHPaccelerator is enabled. 26 40 if($GLOBALS['_PHPA']['ENABLED']) 27 41 { … … 30 44 } 31 45 32 phpinfo(); 33 // $phpgw->common->phpgw_footer(); 46 print $matches[ 1 ] . '<div class="phpinfo">' . $matches[ 2 ] . '</div>'; 34 47 ?>
Note: See TracChangeset
for help on using the changeset viewer.