'."\n"; echo ''."\n"; } else { echo ''."\n"; } // Output remaining headers echo "\n"; echo "\n"; echo ' '."\n"; echo ' '."\n"; if ($xhtmltype == '1.0') { echo ''."\n"; } // Include menu data include ("menu.php"); // Check for page variable if (isset($_GET['page'])) { $page = preg_replace("/^\/|\.+/",".",addslashes($_GET['page'])); } else { $page = "Home"; } if (!file_exists("$page.inc")) $page=$page."/Home"; // Determine titles if ($page=="Home") $title="CreationTheory.Org: Creationism vs Science"; else { if (!empty($menu["/".$page.".xhtml"][0])) { $title=$menu["/".$page.".xhtml"][0]; } else { $title=$menu["/".dirname($page)."/"][0]; if ($page!="Home") $subtitle=$submenu[dirname($page)][basename($page).".xhtml"][0]; } } // Output title echo "\t".$title; if (empty($subtitle)) echo "\n"; else echo " - ".$subtitle."\n"; // Static header elements ?> \n"; echo "\t\n"; echo "\t\n"; echo "\t\n"; } else { echo "\t\n"; } // If a header include file exists, include it if (file_exists("$page.head.inc")) include ("$page.head.inc"); ?>
'.$title."\n"; // Display titles (version which also shows subtitle) // if ($page!="Home") // { // if (empty($subtitle)) // echo '

'.$title."

\n"; // else // { // echo '

'.$title."

\n"; // echo '

'.$subtitle."

\n"; // } // } // Display 404 if $page.inc is not found if (file_exists("$page.inc")) include ("$page.inc"); else include ("404.inc"); echo "\n"; // If in a subdirectory, make "next page" link and jumpbox if (isset($submenu[dirname($page)])) { echo "
\n"; // Check to see if this is the last page in the section $lastvalue=end($submenu[dirname($page)]); if ($lastvalue[0]==$subtitle) { // If this is the last page, display "Return to main page" link echo '

Return to main '; echo ''.$title." page

\n"; } else { // If this is not the last page, display "next page" link foreach($submenu[dirname($page)] as $key => $value) { // Locate entry in array corresponding to current page if ($value[0]==$subtitle) { $nextvalue=each($submenu[dirname($page)]); echo '

Continue to '; echo ''.$nextvalue[1][0]."

\n"; } } } // Make jump box ?>

Jump to: