X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=action.sh;fp=action.sh;h=f8fef05571912b0540d5bdf9049bc87c8d07f64b;hp=0000000000000000000000000000000000000000;hb=737e7f91162ec98b99dd2796ca26dd95e8c21f49;hpb=15f8fb79643d8e76e836b673ea339cb805b3e3fc diff --git a/action.sh b/action.sh new file mode 100755 index 0000000..f8fef05 --- /dev/null +++ b/action.sh @@ -0,0 +1,7 @@ +#!/bin/zsh + +ACTION="$(echo "$_GET[\"action\"]" |egrep '^[a-zA-Z0-9_-]+$')" +ACTION="${_EXEC}/actions/${ACTION}.sh" +[ -x "$ACTION" ] || echo -n "Location: http://$HTTP_HOST/?page=error" + +. $ACTION