]> git.plutz.net Git - confetti/blobdiff - pages/attendees.sh
implemented vcf caching
[confetti] / pages / attendees.sh
index 4c84af15a8c67dac7d9f92e69a95d15610d98bbb..1a34b8b2e4780abc28422ccdd6fc3bf9a660d180 100755 (executable)
@@ -4,22 +4,22 @@
 listcards() {
   case "$_GET["filtertype"]" in
     any)
-       grep -il "$_GET[\"filter\"]" ${_DATA}/vcard/*vcf |debug
+       grep -il "$_GET[\"filter\"]" ${_DATA}/vcard/*vcf
       ;;
     name)
-       egrep -xil "(FN|NICKNAME|N)(;.+)*:.*$_GET[\"filter\"].*" ${_DATA}/vcard/*vcf |debug
+       egrep -xil "(FN|NICKNAME|N)(;.+)*:.*$_GET[\"filter\"].*" ${_DATA}/vcard/*vcf
       ;;
     street)
-       egrep -xil "(ADR)(;.+)*:([^;]*;){2}$_GET[\"filter\"].*" ${_DATA}/vcard/*vcf |debug
+       egrep -xil "(ADR)(;.+)*:([^;]*;){2}$_GET[\"filter\"].*" ${_DATA}/vcard/*vcf
       ;;
     zip)
-       egrep -xil "(ADR)(;.+)*:([^;]*;){5}$_GET[\"filter\"].*" ${_DATA}/vcard/*vcf |debug
+       egrep -xil "(ADR)(;.+)*:([^;]*;){5}$_GET[\"filter\"].*" ${_DATA}/vcard/*vcf
       ;;
     telephone)
-       egrep -xil "(TEL)(;.+)*:.*$_GET[\"filter\"].*" ${_DATA}/vcard/*vcf |debug
+       egrep -xil "(TEL)(;.+)*:.*$_GET[\"filter\"].*" ${_DATA}/vcard/*vcf
       ;;
     birth)
-       egrep -xil "(BDAY)(;.+)*:$_GET[\"filter\"].*" ${_DATA}/vcard/*vcf |debug
+       egrep -xil "(BDAY)(;.+)*:$_GET[\"filter\"].*" ${_DATA}/vcard/*vcf
       ;;
     course)
       ;;
@@ -134,7 +134,7 @@ vcf_parse() {
     case "$line" in
       key=*) echo -E "$line"
        ;;
-      value=*) echo -E "$line" |debug
+      value=*) echo -E "$line"
        ;;
       tag=*) ot=''
             echo -E "$line" \