-END_OF_HEAD;
}
- public function display_contact() {
- echo <<
@psu.edu
-
-END_OF_CONTACT;
- }
-
- public function display_close($show_contact = true) {
- if ($show_contact) {
- $this->display_contact();
+ public static function determine_type() {
+ if (isset($_GET['page']) && is_numeric($_GET['page'])) {
+ return 'page';
+ } else if (isset($_GET['year'])) {
+ return 'archive';
+ } else if (isset($_GET['note'])) {
+ return 'note';
+ } else if ($_SERVER['REQUEST_URI'] == '/') {
+ return 'index';
+ } else if (isset($_GET['project'])) {
+ return 'project';
+ } else if (isset($_GET['rss'])) {
+ return 'rss';
+ } else if (isset($_GET['challenge'])) {
+ return 'captcha';
}
- echo <<
" . htmlspecialchars($author) . "
"; - echo <<