3 # Copyright 2000-2002 Katipo Communications
5 # This file is part of Koha.
7 # Koha is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 2 of the License, or (at your option) any later
12 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along with
17 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
18 # Suite 330, Boston, MA 02111-1307 USA
24 $host = 'mail.cmsd.bc.ca';
35 ============================
36 = Koha Installation Survey
=
37 ============================
39 Feel free to skip any questions that you
do not want to answer
.
41 There will be a comments section at the end
if you would like to provide
42 additional information that does
not fit within these questions
.
47 my $param=askquestion
('LibraryName', 'What is the name of your library?');
49 $param=askquestion
('Location', 'Where is your library located (city, country, etc.)?');
51 $param=askquestion
('NumberOfBranches', 'How many branches does your library have?');
53 $param=askquestion
('NumberOfItems', 'How many items in your library collection?');
55 $param=askquestion
('NumberOfPatrons', 'How many patrons are serviced by your library?');
57 $param=askquestion
('ProductionOrTesting', 'Are you using Koha in a production environment or just testing?');
59 $param=askquestion
('WhereDidYouHearAboutKoha', 'Where did you hear about Koha?');
61 #$param=askquestion('', '');
66 print "\n\nAdditional Comments: [leave two blank lines to end]\n";
70 my $additionalcomments='%0D%0D';
75 (last) if ($lastlineblank);
77 $additionalcomments.="$_%0D";
81 $additionalcomments.="$_%0D";
84 $additionalcomments=urlencode
($additionalcomments);
85 $params.="&AdditionalComments=$additionalcomments";
93 Thank you
for completing
our survey
. We will now
connect to a web server on
94 $host to transfer your responses
.
96 Do you wish to
continue submitting your survey results
([Y
]/N
)?
|;
99 print "Aborting survey submission...\n";
105 $remote = IO
::Socket
::INET
->new( Proto
=> "tcp",
107 PeerPort
=> "http(80)",
109 unless ($remote) { die "cannot connect to http daemon on $host" }
110 $remote->autoflush(1);
111 print $remote "GET /cgi-bin/kohareporter?$params HTTP/1.0" . $BLANK;
112 while ( <$remote> ) { }
123 $reply=urlencode
($reply);
124 return "$name=$reply";
129 $variable=~s/ /%20/g;
130 $variable=~s/&/%26/g;
131 $variable=~s/=/%3d/g;