changed some code layout, handle categories in separate directory
authorPaul Hänsch <paul@plutz.net>
Tue, 20 Aug 2019 11:56:41 +0000 (13:56 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 20 Aug 2019 11:56:41 +0000 (13:56 +0200)
cards/categories/categories.css [moved from cards/categories.css with 100% similarity]
cards/categories/categories.html.sh [moved from cards/categories.html.sh with 100% similarity]
cards/categories/categories.sh [moved from cards/categories.sh with 100% similarity]
cards/categories/edit_categories.sh [moved from cards/edit_categories.sh with 100% similarity]
cards/categories/text_categories.sh [moved from cards/text_categories.sh with 100% similarity]
cards/categories/update_categories.sh [moved from cards/update_categories.sh with 100% similarity]
cards/export_card.sh [moved from cards/export_vcard.sh with 100% similarity]
cards/index.cgi [moved from cards/main.cgi with 100% similarity]
index.cgi

similarity index 100%
rename from cards/export_vcard.sh
rename to cards/export_card.sh
similarity index 100%
rename from cards/main.cgi
rename to cards/index.cgi
index 170645f..43abf5d 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -40,8 +40,8 @@ yield_page() {
   | "${_EXEC}/cgilite/html-sh.sed"
 }
 
-if   [   -d "${_EXEC}/${_PATH}" -a -x "${_EXEC}/${_PATH}/main.cgi" ]; then
-  . "${_EXEC}/${_PATH}/main.cgi"
+if   [   -d "${_EXEC}/${_PATH}" -a -x "${_EXEC}/${_PATH}/index.cgi" ]; then
+  . "${_EXEC}/${_PATH}/index.cgi"
 elif [ ! -d "${_EXEC}/${_PATH}" -a -x "${_EXEC}/${_PATH}" ]; then
   . "${_EXEC}/${_PATH}"
 elif [ ! -x "${_EXEC}/${_PATH}" -a -r "${_EXEC}/${_PATH}" ]; then