Our source is open
The syntax highlighted source is automatically generated by PHP from
the plaintext script.
If you're interested in what's behind the several functions we
used, you can always take a look at the source of the following files:
Of course, if you want to see the source
of this page, we have it available.
You can also browse the Git repository for this website on
git.php.net.
Source of: /credits.php
<?php
$_SERVER['BASE_PAGE'] = 'credits.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
ob_start();
phpcredits();
$credits = ob_get_contents();
ob_end_clean();
preg_match('!<body.*?>(.*)</body>!ims', $credits, $m);
$credits = preg_replace('!<style.*?>.*</style>!ims', '', $m[1]);
$credits = str_replace(
array("</center>", "& "),
array("</div>", "& "),
$credits
);
if ($credits) {
site_header("Credits", array("current" => "community", 'css' => array('credits.css')));
echo $credits;
site_footer();
}
?>