]> git.plutz.net Git - confetti/blob - actions/new_attendee.sh
updated manipulation and view functions for attendee
[confetti] / actions / new_attendee.sh
1 #!/bin/zsh
2
3 cgi_post
4
5 uid=$(dbus-uuidgen)
6 card="${uid}.vcf"
7
8 cardfile="vcard/$card"
9 tempfile="temp/$card"
10
11 touch "$cardfile"
12
13 cat >"$tempfile" <<EOF
14 BEGIN:VCARD
15 VERSION:4.0
16 N:;;;;
17 BDAY:
18 TEL:
19 EMAIL:
20 ADR:
21 NOTE:
22 UID:$uid
23 END:VCARD
24 EOF
25
26 echo -n "Location: http://$HTTP_HOST/?page=attendees&edit=$card\n\n"