From df5a47a0b129485391d78ca5622b89702fdf57f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Fri, 18 Mar 2022 12:52:56 +0100 Subject: [PATCH] macro for listing attachments --- macros/attachments | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 macros/attachments diff --git a/macros/attachments b/macros/attachments new file mode 100755 index 0000000..7acc806 --- /dev/null +++ b/macros/attachments @@ -0,0 +1,40 @@ +#!/bin/sh + +. "$_EXEC/cgilite/cgilite.sh" + +page="$1" + +if [ "${page#/}" = "$page" ]; then + page="$(PATH "${PATH_INFO}/$page")" +fi + +printf %s\\n '' -- 2.39.2