X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=globals.sh;fp=globals.sh;h=aac6dc9e92bbc5ae662b747a3f0a366253dd6798;hp=0000000000000000000000000000000000000000;hb=badf769c566295e6ceaf9a9d80de664c227666a4;hpb=4e49d483fd5121fda86a33cf583c15afa6556ad1 diff --git a/globals.sh b/globals.sh new file mode 100755 index 0000000..aac6dc9 --- /dev/null +++ b/globals.sh @@ -0,0 +1,30 @@ +#!/bin/zsh + +# Copyright 2014,2015 Paul Hänsch +# +# This file is part of Confetti. +# +# Confetti is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Confetti is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Confetti. If not, see . + +export LC_ALL=de_DE.UTF-8 +data_dirs vcard ical cache temp mappings + +VCF_FIELDS=(PHOTO LOGO FN NICKNAME SOUND GENDER KIND TITLE ROLE ORG MEMBER CATEGORIES ANNIVERSARY BDAY EMAIL TEL IMPP ADR URL LANG NOTE RELATED X-ZACK-JOINDATE X-ZACK-LEAVEDATE) + +[ -z "$NAVIGATION" ] && NAVIGATION=(attendees courses) +PAGE="${_GET[p]:-$PAGE}" + +uuidgenerator(){ + head -c16 /dev/urandom |sha1sum - |cut -c1-32 +}