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
Gabor Hojtsy 02655718a2 Add credits page syles to the sitewide CSS rules, and move the credits
page to the new CSS based layout...
2003-08-07 11:12:44 +00:00

24 lines
527 B
PHP

<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'credits.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
// Put credits information to $credits
ob_start();
phpcredits();
$credits = ob_get_contents();
ob_end_clean();
// Strip all but the body and drop styles
preg_match('!<body.*?>(.*)</body>!ims', $credits, $m);
$credits = preg_replace('!<style.*?>.*</style>!ims', '', $m[1]);
// If there is something left, print it out
if ($credits) {
site_header("Credits");
echo $credits;
site_footer();
}
?>