visual updates, allow ordering of vcards
[confetti] / actions / new_attendee.sh
1 #!/bin/zsh
2
3 cgi_post
4
5 uid=$(dbus-uuidgen)
6 card="${uid}.vcf"
7
8 tempfile="$_DATA/temp/$card"
9
10 cat >"$tempfile" <<EOF
11 BEGIN:VCARD
12 VERSION:4.0
13 N:;;;;
14 BDAY:
15 TEL:
16 EMAIL:
17 ADR:
18 NOTE:
19 UID:$uid
20 END:VCARD
21 EOF
22
23 echo -n "Location: http://$HTTP_HOST/?page=attendees&edit=$card\n\n"