\n"; $legal_dirs = array( "/manual" => 1, "/include" => 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)) { show_source($page_name); } if (!strstr($page_name,"include/shared.inc")) { ?>
And 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.