";
+ $sql = "SELECT text FROM projects
+ WHERE title = ?";
+ $result = $this->query($sql, "s", $_GET['project']);
+ if ($result = $result[0]['text']) {
+ $text = str_replace("class='exhibit'", "class='exhibit'", $result);
+ echo $text;
+ echo "
";
+ } else {
+ throw new notFound();
+ }
+ }
+
+}
+
+
+class page extends cms {
- ";
+ $sql = "SELECT date_posted, title, url, text
+ FROM notes ORDER BY date_posted DESC
+ LIMIT ?, ?";
+ $result = $this->query($sql, "ii",
+ $this->offset,
+ $this->notes_per_page);
+ foreach ($result as $row => $entry) {
+ $title = $entry['title'];
+ $url = '/note/' . $entry['url'];
+ $date_posted = explode("-", $entry['date_posted']);
+ $year_posted = $date_posted[0];
+ $month_posted = $date_posted[1];
+ $datetime_posted = explode(' ', $date_posted[2]);
+ $day_posted = $datetime_posted[0];
+ $text = $entry['text'];
+ echo <<
+
+ $year_posted/$month_posted/$day_posted/$title
+
+ $text
+
+END_NOTE;
+ }
+ echo "";
+ $this->write_navigation();
+ $this->display_close();
+ }
+
+ private function write_navigation() {
+ echo "
$author
"; + echo <<