From 1cd17194a52bb717f0fb42b52a105891e2df9ea8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 21 Aug 2005 11:13:10 +0100 Subject: initial mockup --- backend.php | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 backend.php (limited to 'backend.php') diff --git a/backend.php b/backend.php new file mode 100644 index 000000000..b4ec48c11 --- /dev/null +++ b/backend.php @@ -0,0 +1,76 @@ +"; + + $lnum = 0; + + foreach ($feeds as $feed) { + $class = ($lnum % 2) ? "even" : "odd"; + +// if ($lnum == 2 || $lnum == 0) $feed = "$feed"; + + $feed = "$feed"; + + print "
  • $feed
  • "; + ++$lnum; + } + + print ""; + + } + + if ($op == "view") { + + $post = $_GET["post"]; + $feed = $_GET["feed"]; + + print "

    $post

    "; + print "

    $feed

    "; + + print "

    Blah blah blah blah blah

    "; + + } + + if ($op == "viewfeed") { + + $feed = $_GET["feed"]; + + $headlines = array("Linus Torvalds flies to the Moon", + "SCO bankrupt at last", + "OMG WTF ANOTHER HEADLINE", + "Another clever headline from $feed", + "I'm really not feeling creative today", + "No, seriously"); + + $headlines = array_merge($headlines, $headlines); + + print ""; + + } + + +?> -- cgit v1.2.3-54-g00ecf