mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
27 lines
443 B
PHP
27 lines
443 B
PHP
<?php
|
|
require_once 'prepend.inc';
|
|
|
|
if (function_exists('ob_start')) {
|
|
ob_start();
|
|
phpcredits();
|
|
$credits = ob_get_contents();
|
|
ob_end_clean();
|
|
|
|
# strip all but the body
|
|
preg_match('/<body.*?>(.*)<\/body>/ims', $credits, $m );
|
|
|
|
# strip out any style
|
|
$credits = preg_replace('/<style.*?>.*<\/style>/ims', '', $m[1] );
|
|
|
|
if ($credits) {
|
|
commonHeader("PHP Credits", 1);
|
|
echo $credits;
|
|
commonFooter();
|
|
exit;
|
|
}
|
|
}
|
|
|
|
phpcredits();
|
|
|
|
?>
|