Bug 11944: use CGI( -utf8 ) everywhere
[koha.git] / circ / offline-mf.pl
1 #!/usr/bin/perl
2
3 # Copyright 2013 C & P Bibliography Services
4 # This file is part of Koha.
5 #
6 # Koha is free software; you can redistribute it and/or modify it under the
7 # terms of the GNU General Public License as published by the Free Software
8 # Foundation; either version 3 of the License, or (at your option) any later
9 # version.
10 #
11 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
12 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License along with
16 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
17 # Suite 330, Boston, MA  02111-1307 USA
18 #
19
20 use Modern::Perl;
21 use CGI qw ( -utf8 );
22 use C4::Auth;
23
24 my $query = new CGI;
25 my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user(
26     {
27         template_name   => "circ/offline-mf.tt",
28         query           => $query,
29         type            => "intranet",
30         authnotrequired => 0,
31         flagsrequired   => { circulate => "circulate_remaining_permissions" },
32     }
33 );
34
35 $template->{'VARS'}->{'cookie'} = $cookie;
36 print $query->header( -type => 'text/cache-manifest', cookie => $cookie );
37 print $template->output;