From: Dylan Lloyd Date: Fri, 25 Mar 2011 00:05:37 +0000 (-0400) Subject: No reason that's in here I don't think X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=0af8641c4be9a12a115e5ca8ed9c328056104f52;p=dylansserver.git No reason that's in here I don't think --- diff --git a/notes/notes.php b/notes/notes.php deleted file mode 100644 index e71ae69..0000000 --- a/notes/notes.php +++ /dev/null @@ -1,70 +0,0 @@ -"; - $title = $note['title']; - $date_posted = explode("-", $note['date_posted']); - $year_posted = $date_posted[0]; - $month_posted = $date_posted[1]; - $day_posted = $date_posted[2]; - echo "

$year_posted/$month_posted/$day_posted/$title

"; - echo $note['text']; - echo ""; - } - } else { - if (isset($_GET['page']) && is_numeric($_GET['page'])) { - $page = (int) $_GET['page']; - } else { - $page = 1; - } - if ($page < 1) { - $page = 1; - } else if ($page > $total_number_of_pages) { - $page = $total_number_of_pages; - } - $page_offset = ($page - 1) * $notes_per_page; - $notes = mysql_query("SELECT title, date_posted, text, url - FROM notes ORDER BY date_posted DESC - LIMIT $page_offset, $notes_per_page"); - while($note = mysql_fetch_array($notes)) { - echo "
"; - $title = $note['title']; - $date_posted = explode("-", $note['date_posted']); - $year_posted = $date_posted[0]; - $month_posted = $date_posted[1]; - $day_posted = $date_posted[2]; - $url = $note['url']; - echo "

$year_posted/$month_posted/$day_posted/$title

"; - echo $note['text']; - echo "
"; - } - echo "

"; - if($page != 1){ - if(!$page == 2 && $total_number_of_pages == 2) - echo "first / "; - $previous_page = $page - 1; - echo "prev"; - } - if($page < $total_number_of_pages) { - $forward_page = $page + 1; - echo "next"; - } - if($page != $total_number_of_pages && (!$page == 1 && $total_number_of_pages == 2)){ - echo " / last"; - } - echo "

"; - } -?>