]> git.plutz.net Git - confetti/blob - action.sh
d9d6be2bbebef7f6eb41e6679fc1a6eaf239d9a6
[confetti] / action.sh
1 #!/bin/zsh
2
3 ACTION="$(echo "$_GET[\"action\"]" |egrep '^[a-zA-Z0-9_-]+$')"
4 ACTION="${_EXEC}/actions/${ACTION}.sh"
5 [ -x "$ACTION" ] || echo -n "Location: http://$HTTP_HOST/?page=error\n\n"
6
7 . $ACTION