IMPORTANT: There are some restrictions on your use of the code and graphics on this site.
You should read the copyright.
$legal_dirs = array(
"/manual" => 1,
"/include" => 1,
"/stats" => 1);
$dir = dirname($page_url);
if ($dir && $legal_dirs[$dir]) {
$page_name = $DOCUMENT_ROOT . $page_url;
} else {
$page_name = basename($page_url);
}
echo("\n");
if (file_exists($page_name) && !is_dir($page_name)) {
show_source($page_name);
} else if (is_dir($page_name)) {
echo "No file specified. Can't show source for a directory.
\n";
}
if (!strstr($page_name,"include/shared.inc")) {
?>
The syntax highlighted source is automatically generated by PHP from the plaintext script.
If you're interested in what's behind the commonHeader() and commonFooter functions,
you can always take a look at the
source of the shared.inc file. And, of course, if you want to see the source of this page, have
a look here.
}
commonFooter();
?>