]> git.plutz.net Git - shellwiki/blobdiff - index.cgi
attachment conversion and access
[shellwiki] / index.cgi
index 6f71a4b6aaa54ea0a7538c08c813a65f55c159d7..ea78af168a22a187e80bfa4e1bfa302b7afa67dd 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -78,8 +78,6 @@ attachment() {
   fi
 }
 
-. "$_EXEC/page_edit.sh"
-
 case "${PATH_INFO}" in
   /"[.]"/*)
     FILE "${_EXEC}/${PATH_INFO#/\[.\]}"
@@ -100,13 +98,10 @@ case "${PATH_INFO}" in
   */"[register]")
     theme_register
     ;;
-  */"[attachment]"/*)
-    :  # TODO: Original attachment file
-    ;;
   */"#"*)
     :  # TODO: Invalid page name
     ;;
-  *)
-    attachment "${PATH_INFO}"
-    ;;
 esac
+
+. "$_EXEC/page_edit.sh"
+. "$_EXEC/attachment.sh"