changeset 36:4955e2383f0a

remove archive.cgi
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Fri, 06 Feb 2009 22:15:36 -0500
parents 92c813bf6e35
children a520c4e74615
files archive.cgi
diffstat 1 files changed, 0 insertions(+), 37 deletions(-) [+]
line wrap: on
line diff
--- a/archive.cgi	Fri Feb 06 22:12:04 2009 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-#!/bin/sh
-
-. common-head.sh
-
-##########################
-
-catid=`echo "$PATH_INFO" | sed -e 's,^/,,'`
-
-cat templates/header.html | sed -e "s|@@TITLE@@|`arch_title_date $catid`|"
-
-for postid in `ls data/by-month/$catid/ | sort -nr` ; do
-	fn="data/posts/$postid/"
-
-	cat templates/story-top.html | sed -e "
-s|@@POSTID@@|`basename $postid`|g
-s|@@POSTDATE@@|`get_date "$fn"`|g
-s|@@TITLE@@|`get_xattr post_title "$fn"`|g
-"
-
-	for catname in `get_xattr post_cats "$fn" | sed -e 's|,| |g'` ; do
-		cat templates/story-cat-item.html | sed -e "
-s|@@CATNAME@@|$catname|g
-	"
-	done
-
-	cat templates/story-middle.html | sed -e "
-s|@@POSTTIME@@|`get_time "$fn"`|g
-	"
-
-	cat_post "$fn/post.txt"
-
-	cat templates/story-bottom.html
-done
-
-##########################
-
-. common-foot.sh