X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=de2747353f677915f413a8b955f2dedba2039e93;hb=95d3834c8e04a10ac84ab6f3c956ae80de81f750;hp=dd94e83ff15cc5051423195548e2dd1c131f9c8f;hpb=8cd0bc0d71cd02a8f4921836c8a3089ed6a01c01;p=dylansserver.git
diff --git a/index.php b/index.php
index dd94e83..de27473 100644
--- a/index.php
+++ b/index.php
@@ -276,10 +276,15 @@ class page extends cms {
$month_posted = $date_posted[1];
$datetime_posted = explode(' ', $date_posted[2]);
$day_posted = $datetime_posted[0];
- echo "
";
- echo "
$year_posted/$month_posted/$day_posted/$title
";
- echo $entry['text'];
- echo "
";
+ $text = $entry['text'];
+ echo <<
+
+ $year_posted/$month_posted/$day_posted/$title
+
+ $text
+
+END_NOTE;
}
echo "";
$this->write_navigation();
@@ -288,7 +293,7 @@ class page extends cms {
private function write_navigation() {
echo "";
- echo "
";
+ echo "";
if($this->page > 1){
$previous_page = $this->page - 1;
echo "prev";
@@ -297,7 +302,7 @@ class page extends cms {
$forward_page = $this->page + 1;
echo " next";
}
- echo "
";
+ echo "";
echo "
";
}
@@ -401,7 +406,7 @@ class note extends cms {
private function display_note() {
echo <<
- $this->year_posted/$this->month_posted/$this->day_posted/$this->title
+ $this->year_posted/$this->month_posted/$this->day_posted/$this->title
$this->text
END_OF_NOTE;
@@ -411,14 +416,14 @@ END_OF_NOTE;
echo <<
-
+
END_OF_NAVIGATION;
if (!$this->comments_enabled) {
$this->display_comment_link();
}
echo <<back to notes/
-
+
END_OF_NAVIGATION;
}
@@ -588,9 +593,9 @@ class archive extends cms {
$datetime_posted = explode(' ', $date_posted[2]);
$day_posted = $datetime_posted[0];
echo "";
- echo "
";
+ echo "";
echo "$year_posted/$month_posted/$day_posted/";
- echo "$title
";
+ echo "
$title";
echo $entry['text'];
echo "
";
}
@@ -598,7 +603,7 @@ class archive extends cms {
$this->write_navigation();
} else {
echo "
";
- echo "sorry, nothing here
";
+ echo "sorry, nothing here";
echo "Empty set (0.00 sec)
";
}
$this->display_close();
@@ -607,9 +612,7 @@ class archive extends cms {
private function write_navigation() {
echo "
";
echo "
";
- echo "
";
// fill me in!
- echo "
";
echo "";
}