include "php/core.php";
// define (WFB, 1);
$store_root = "links";
$path = substr(getenv("PATH_INFO"), 1);
if (!ereg("^([a-z]*)$", $path, $regs)) {
$path = "";
}
if (file_exists(sprintf("%s/item-%s.php", $store_root, $path))) {
include "links/item-" . $path . ".php";
$role = "links";
} else {
include "links/item-default.php";
$path = "default";
$role = "links";
}
$navTitle = "Links: " . $navTitle;
include "php/header.php";
include "php/nav.php";
function item($item, $description) {
global $path;
if ($item == $path) {
?>
echo $description; ?>
} else {
?> echo $description; ?>
}
}
?>
Link Pages |
item("default", "Great online comics");
item("other", "Other good reads");
item("noncomic", "Non-comic smartalecks");
item("friends", "Friends and such");
item("serious", "Quasi-serious stuff");
?>
|
Suggest A Link |
These links are all stuff that we like. Either Doug or Kat
thinks that what's on these pages is worth your time to visit. If you'd
like to suggest a link for us, just drop an email
and we'll take a look.
|
|
showItem();
?> |
include "php/footer.php";
?>