, , and php tags (linkbar_arrow) below, the class is "linkbar_link". 2. Add the filename of the page to $allowed_pages, using ONLY a comma to separate the names. 3. Write the content, in compliant XHTML, in the appropriate file in ./res/. Add styles to sagelab.css. 4. Call the page as "index.php?content=yourpage". Whee! - Troy / dsm.iv.tr@gmail.com */ $allowed_pages="contact.html,courses.html,home.html,publications.html,404.html,students.html"; $pgname = $_GET['content']; $stripped_pgname = htmlspecialchars($pgname); ?> Rowan Sage
= 1) { readfile('res/' . $stripped_pgname . '.html'); } elseif ($stripped_pgname == '') { // first load or no parameter. readfile('res/home.html'); } else { // fail? readfile('res/404.html'); }; ?>