EOF
}
-tid(){
- # transaction ID to modify a given file
- local file="$1"
- { stat -c %F%i%n%N%s%Y "$file" 2>&-
- printf %s "$SESSION_ID"
- server_key
- } | sha256sum | cut -d\ -f1
-}
-
-info="$(PATH "${PATH_INFO}")"
+info="$(PATH "${PATH_INFO#http://*/}")"
which git && [ ! -d .git ] && {
git init
;;
/invoices)
. "$_EXEC/invoices.sh"
- { list_invoices
- printf '[a .new href="/invoices/%s" New]' "$(timeid)"
+ { printf '[a .new href="/invoices/%s" New]' "$(timeid)"
+ list_invoices
} | yield_page invoices
;;
/invoices/*)