ACTION="$(echo "$_GET[\"action\"]" |egrep '^[a-zA-Z0-9_-]+$')"
ACTION="${_EXEC}/actions/${ACTION}.sh"
-[ -x "$ACTION" ] || echo -n "Location: http://$HTTP_HOST/?page=error\n\n"
+[ -x "$ACTION" ] || echo -n "Location: ?page=error\n\n"
. $ACTION
filtertype="&filtertype=$_REF[\"filtertype\"]"
order="&order=$_REF[\"order\"]"
-echo -n "Location: http://$HTTP_HOST/?page=attendees${filter}${filtertype}${order}&edit=$card\n\n"
+echo -n "Location: ?page=attendees${filter}${filtertype}${order}&edit=$card\n\n"
course="$_GET[\"course\"]"
-echo -n "Location: http://$HTTP_HOST/?page=courses&edit=$course\n\n"
+echo -n "Location: ?page=courses&edit=$course\n\n"
filter="$_POST[\"filter\"]"
filtertype="$_POST[\"filtertype\"]"
order="$_POST[\"order\"]"
- echo -n "Location: http://$HTTP_HOST/?page=attendees&filter=$filter&filtertype=$filtertype&order=$order\n\n"
+ echo -n "Location: ?page=attendees&filter=$filter&filtertype=$filtertype&order=$order\n\n"
;;
*)
- echo -n "Location: http://$HTTP_HOST/?page=attendees\n\n"
+ echo -n "Location: ?page=attendees\n\n"
;;
esac
END:VCARD
EOF
-echo -n "Location: http://$HTTP_HOST/?page=attendees${filter}${filtertype}${order}&edit=$card\n\n"
+echo -n "Location: ?page=attendees${filter}${filtertype}${order}&edit=$card\n\n"
END:VCARD
EOF
-echo -n "Location: http://$HTTP_HOST/?page=courses&edit=$course\n\n"
+echo -n "Location: ?page=courses&edit=$course\n\n"
addfield)
echo "$_POST[\"newfield\"]:\r" >>"$tempfile"
echo "END:VCARD\r" >>"$tempfile"
- echo -n "Location: http://$HTTP_HOST/?page=attendees${filter}${filtertype}${order}&edit=$card\n\n"
+ echo -n "Location: ?page=attendees${filter}${filtertype}${order}&edit=$card\n\n"
;;
update)
attendance=()
echo "END:VCARD\r" >>"$tempfile"
mv "$tempfile" "$cardfile"
- echo -n "Location: http://$HTTP_HOST/?page=attendees${filter}${filtertype}${order}#$card\n\n"
+ echo -n "Location: ?page=attendees${filter}${filtertype}${order}#$card\n\n"
;;
cancel)
rm "$tempfile"
[ -f "$cardfile" ] \
- && echo -n "Location: http://$HTTP_HOST/?page=attendees${filter}${filtertype}${order}#$card\n\n" \
- || echo -n "Location: http://$HTTP_HOST/?page=attendees${filter}${filtertype}${order}\n\n"
+ && echo -n "Location: ?page=attendees${filter}${filtertype}${order}#$card\n\n" \
+ || echo -n "Location: ?page=attendees${filter}${filtertype}${order}\n\n"
;;
delete)
rm "$tempfile" "$cardfile"
- echo -n "Location: http://$HTTP_HOST/?page=attendees${filter}${filtertype}${order}\n\n"
+ echo -n "Location: ?page=attendees${filter}${filtertype}${order}\n\n"
;;
esac
echo "$_POST[\"newfield\"]:\r" >>"$tempfile"
echo "END:VEVENT\r" >>"$tempfile"
echo "END:VCALENDAR\r" >>"$tempfile"
- echo -n "Location: http://$HTTP_HOST/?page=courses&edit=$course\n\n"
+ echo -n "Location: ?page=courses&edit=$course\n\n"
;;
update)
echo "END:VEVENT\r" >>"$tempfile"
echo "END:VCALENDAR\r" >>"$tempfile"
mv "$tempfile" "$coursefile"
- echo -n "Location: http://$HTTP_HOST/?page=courses#$course\n\n"
+ echo -n "Location: ?page=courses#$course\n\n"
;;
cancel)
rm "$tempfile"
[ -f "$coursefile" ] \
- && echo -n "Location: http://$HTTP_HOST/?page=courses#$course\n\n" \
- || echo -n "Location: http://$HTTP_HOST/?page=courses\n\n"
+ && echo -n "Location: ?page=courses#$course\n\n" \
+ || echo -n "Location: ?page=courses\n\n"
;;
delete)
rm "$tempfile" "$coursefile"
- echo -n "Location: http://$HTTP_HOST/?page=courses\n\n"
+ echo -n "Location: ?page=courses\n\n"
;;
*)
echo "END:VEVENT\r" >>"$tempfile"
echo "END:VCALENDAR\r" >>"$tempfile"
- echo -n "Location: http://$HTTP_HOST/?page=courses&edit=$course\n\n"
+ echo -n "Location: ?page=courses&edit=$course\n\n"
;;
esac