X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=c53e9a85985d52402fbab39f8cf5751450d2f9b6;hb=268795ba61ed5adaa452c551e1c3bd58505d16a0;hp=e1d23766a83835f18cc7561f2d9cd820592bb305;hpb=2fa993033259cb3045dbe02b194e7ac888c40953;p=dylansserver.git diff --git a/index.php b/index.php index e1d2376..c53e9a8 100644 --- a/index.php +++ b/index.php @@ -40,7 +40,9 @@ abstract class cms { return 'index'; } else if (isset($_GET['project'])) { return 'project'; - } else if (isset($_GET['challenge'])) { + } else if (isset($_GET['rss'])) { + return 'rss'; + } else if (isset($_GET['challenge'])) { return 'captcha'; } } @@ -86,7 +88,7 @@ abstract class cms { $this->title - + $stylesheets $scripts @@ -168,7 +170,7 @@ class index extends cms {
  • here
  • + "/notes/">here [rss]
  • @@ -276,10 +278,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(); @@ -409,7 +416,7 @@ END_OF_NOTE; private function write_navigation() { echo << +