X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=globals.sh;fp=globals.sh;h=0000000000000000000000000000000000000000;hp=36498e13908da57f21e76515272a930c31f75ea4;hb=76c1e7bff1a8604ef2ef7da5d274d0db0e639139;hpb=90288ab07bb1ec83a91581fadc674a87a250a853 diff --git a/globals.sh b/globals.sh deleted file mode 100755 index 36498e1..0000000 --- a/globals.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/zsh - -# Copyright 2014 - 2016 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 . - -date() { - LANG=de_DE.UTF-8 LC_ALL=de_DE.UTF-8 /bin/date $@ -} - -PROFILE=$(validate "$PROFILE" 'medical|circus' circus ) - -PAGE="${_GET[p]:-${PAGE:-cards}}" - -uuidgenerator(){ - head -c16 /dev/urandom |sha1sum - |cut -c1-32 -} - -_checked='' -checked(){ - if [ "$_checked" = "$1" ]; then - printf 'checked="checked"' - fi -} - - -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 X-HEALTH-INSURANCE X-HEALTH-INSURANCE-NOCONTRIB X-CLIENT-REFERRAL) - -case "${PROFILE}" in -medical) - data_dirs vcard cache temp mappings prescriptions therapies - [ -z "$NAVIGATION" ] && NAVIGATION=(cards) -;; -circus) - data_dirs vcard ical cache temp mappings - [ -z "$NAVIGATION" ] && NAVIGATION=(cards courses) -;; -esac