summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--admin/entry2
-rw-r--r--article/entry2
-rw-r--r--article/list/butterfly/content (renamed from site/article/butterfly/content)0
-rw-r--r--article/list/butterfly/title (renamed from site/article/butterfly/title)0
-rw-r--r--article/list/juniper (renamed from site/article/juniper)0
-rw-r--r--article/list/licorice (renamed from site/article/licorice)0
-rw-r--r--article/template (renamed from site/template/article)0
-rw-r--r--data/404.html (renamed from site/404.html)0
-rw-r--r--data/index.html (renamed from site/index.html)0
-rw-r--r--entry (renamed from site/act/entry)4
-rw-r--r--proc/123/request/cookie (renamed from site/proc/123/request/cookie)0
-rw-r--r--proc/123/request/file/avatar (renamed from site/proc/123/request/file/avatar)0
-rw-r--r--proc/123/request/meta (renamed from site/proc/123/request/meta)0
-rw-r--r--proc/123/request/param (renamed from site/proc/123/request/param)0
-rw-r--r--proc/123/request/urlparam (renamed from site/proc/123/request/urlparam)0
-rw-r--r--site/act/admin3
-rw-r--r--site/act/article5
-rw-r--r--site/template/admin0
18 files changed, 6 insertions, 10 deletions
diff --git a/admin/entry b/admin/entry
new file mode 100644
index 0000000..c72a79a
--- /dev/null
+++ b/admin/entry
@@ -0,0 +1,2 @@
+#!/bin/bash
+cat $base/data/404.html
diff --git a/article/entry b/article/entry
new file mode 100644
index 0000000..c72a79a
--- /dev/null
+++ b/article/entry
@@ -0,0 +1,2 @@
+#!/bin/bash
+cat $base/data/404.html
diff --git a/site/article/butterfly/content b/article/list/butterfly/content
index 5ecbc59..5ecbc59 100644
--- a/site/article/butterfly/content
+++ b/article/list/butterfly/content
diff --git a/site/article/butterfly/title b/article/list/butterfly/title
index a32b910..a32b910 100644
--- a/site/article/butterfly/title
+++ b/article/list/butterfly/title
diff --git a/site/article/juniper b/article/list/juniper
index 66e3d03..66e3d03 100644
--- a/site/article/juniper
+++ b/article/list/juniper
diff --git a/site/article/licorice b/article/list/licorice
index 613b1b7..613b1b7 100644
--- a/site/article/licorice
+++ b/article/list/licorice
diff --git a/site/template/article b/article/template
index fec42d7..fec42d7 100644
--- a/site/template/article
+++ b/article/template
diff --git a/site/404.html b/data/404.html
index 49d5ddf..49d5ddf 100644
--- a/site/404.html
+++ b/data/404.html
diff --git a/site/index.html b/data/index.html
index e163357..e163357 100644
--- a/site/index.html
+++ b/data/index.html
diff --git a/site/act/entry b/entry
index 33fd084..b42d378 100644
--- a/site/act/entry
+++ b/entry
@@ -11,8 +11,8 @@ startswith() { case $2 in "$1"*) true;; *) false;; esac; }
if test -z "$1"
then cat index.html
elif startswith "article/" "$1"
-then ./act/article "$(after / $1)"
+then cd article; ./entry "$(after / $1)"
elif startswith "admin/" "$1"
-then ./act/admin "$(after / $1)"
+then cd admin; ./entry "$(after / $1)"
else cat 404.html
fi
diff --git a/site/proc/123/request/cookie b/proc/123/request/cookie
index 07766a7..07766a7 100644
--- a/site/proc/123/request/cookie
+++ b/proc/123/request/cookie
diff --git a/site/proc/123/request/file/avatar b/proc/123/request/file/avatar
index 61a0691..61a0691 100644
--- a/site/proc/123/request/file/avatar
+++ b/proc/123/request/file/avatar
diff --git a/site/proc/123/request/meta b/proc/123/request/meta
index f58e6e5..f58e6e5 100644
--- a/site/proc/123/request/meta
+++ b/proc/123/request/meta
diff --git a/site/proc/123/request/param b/proc/123/request/param
index 5bc8bae..5bc8bae 100644
--- a/site/proc/123/request/param
+++ b/proc/123/request/param
diff --git a/site/proc/123/request/urlparam b/proc/123/request/urlparam
index e5e0334..e5e0334 100644
--- a/site/proc/123/request/urlparam
+++ b/proc/123/request/urlparam
diff --git a/site/act/admin b/site/act/admin
deleted file mode 100644
index e87c758..0000000
--- a/site/act/admin
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-# Some admin act. (No such now, so 404.)
-cat 404.html
diff --git a/site/act/article b/site/act/article
deleted file mode 100644
index fbd4d5a..0000000
--- a/site/act/article
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-if test -z "$1"
-then # Response list of articles
-else # Response article page
-fi
diff --git a/site/template/admin b/site/template/admin
deleted file mode 100644
index e69de29..0000000
--- a/site/template/admin
+++ /dev/null