/* function to make page titles.. returns a string title for pages. Takes a REQUEST_URI and matches to self contained array of titles if $cat variable is present, append the cat to the title (for catalog pages) string function write_title($req, $cat = "") */ function write_title($req = '', $pic = '') { $req = parse_url($req); $req = $req["path"]; // removes / $req = substr($req, 1); $titles["index.php"] = "Concierge Connection - Your personal Maui concierge service!"; $titles["grounds.php"] = "Kamaole Sands - Manicured estate grounds across the street from Kam III"; $titles["interiors.php"] = "Kamaole Sands - Interiors are fully equipped"; $titles["rates.php"] = "Kamaole Sands - Current Rates and Terms"; $titles["reservations.php"] = "Kamaole Sands - Make Reservations today"; $titles["picture.php"] = "Kamaole Sands - " . $pic; $titles["email.php"] = "Kamaole Sands - tell a friend about the Kamaole Sands!"; return $titles["$req"]; #return $req; } ?>