From fc3d45bb996026e46b4f3043a060e78bf36b0186 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Sat, 23 Feb 2008 06:28:02 -0500 Subject: [PATCH] Adding members/patronimage.pl to retrieve patron image data from db and format for display in HTML Signed-off-by: Joshua Ferraro --- members/patronimage.pl | 78 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100755 members/patronimage.pl diff --git a/members/patronimage.pl b/members/patronimage.pl new file mode 100755 index 0000000000..84ce9f4779 --- /dev/null +++ b/members/patronimage.pl @@ -0,0 +1,78 @@ +#!/usr/bin/perl +# +# Copyright 2008 Foundations Bible College & Seminary Inc. +# +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# +# Koha 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, +# Suite 330, Boston, MA 02111-1307 USA +# +# +# + +use strict; +use CGI qw(:standard escapeHTML); +use C4::Context; +use C4::Members; + +$|=1; + +my $DEBUG = 0; +my $data = new CGI; +my $cardnumber; + +=head1 NAME + +patronimage.pl - Script for retrieving and formating Koha patron images for display + +=head1 SYNOPSIS + +{'patronimage'} via a warn to a log or nasty +# things will result... you have been warned! + +print header (-type => $imagedata->{'mimetype'}, -Content_Length => length ($imagedata->{'imagefile'})), + $imagedata->{'imagefile'}; + +exit; + +=back + +=head1 AUTHOR + +Chris Nighswonger cnighswonger foundations edu + +=cut -- 2.39.5