X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;ds=sidebyside;f=index.php;h=230b2f0cb8b554560b8ac1d2373421a5f7547dcb;hb=21c1ef32f4de2626d3c51aefc73b638969853f7f;hp=740157b9ceacc8a29d2ae119ab83d37f5e7eea7d;hpb=c2c4a56c5d3b6ccc549539bf99e0d9c0d50473b6;p=dylansserver.git
diff --git a/index.php b/index.php
index 740157b..230b2f0 100644
--- a/index.php
+++ b/index.php
@@ -145,7 +145,6 @@ class index extends cms {
echo "
";
$this->list_projects();
echo <<
things i've done for others:
@@ -282,10 +281,17 @@ 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();
@@ -294,7 +300,7 @@ class page extends cms {
private function write_navigation() {
echo "";
- echo "
";
+ echo "";
if($this->page > 1){
$previous_page = $this->page - 1;
echo "prev";
@@ -303,7 +309,7 @@ class page extends cms {
$forward_page = $this->page + 1;
echo " next";
}
- echo "
";
+ echo "";
echo "
";
}
@@ -402,7 +408,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;
@@ -412,14 +418,14 @@ END_OF_NOTE;
echo <<
-
+
END_OF_NAVIGATION;
if (!$this->comments_enabled) {
$this->display_comment_link();
}
echo <<back to notes/
-
+
END_OF_NAVIGATION;
}
@@ -589,9 +595,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 "
";
}
@@ -599,7 +605,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();
@@ -608,9 +614,7 @@ class archive extends cms {
private function write_navigation() {
echo "
";
echo "
";
- echo "
";
// fill me in!
- echo "
";
echo "";
}