<?php namespace PhoenixSNS\Modules\Community\Pages; use PhoenixSNS\Objects\Page; use PhoenixSNS\Modules\Community\CommunityPage; use WebFX\Controls\BreadcrumbItem; use PsychaticaWebPage; $id = $path[1]; $thispage = null; if (is_numeric($id)) { $thispage = Page::GetByID($id); } else { $thispage = Page::GetByName($id); } if ($thispage == null) { $page = new PsychaticaErrorPage("Page not found"); $page->Message = "That page does not exist in the system. It may have been deleted, or you may have typed the name incorrectly."; $page->ReturnButtonURL = "~/community/pages"; $page->ReturnButtonText = "Return to Page List"; $page->Render(); return; } switch ($path[2]) { case "images": switch ($path[3]) { case "avatar": switch ($path[4]) { case "thumbnail.png": // paths are relative to the path of the including file header("Content-Type: image");