1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00
Files
archived-web-php/credits.php
2001-07-01 17:17:52 +00:00

27 lines
459 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();
?>