Merging from rel-1-2 to trunk
[koha.git] / opac / opac-main.pl
1 #!/usr/bin/perl
2 use strict;
3 require Exporter;
4 use CGI;
5
6 use C4::Output;       # gettemplate
7 use C4::Auth;         # checkauth
8
9 my $query = new CGI;
10
11 my $flagsrequired;
12 $flagsrequired->{borrow}=1;
13
14 my ($loggedinuser, $cookie, $sessionID) = checkauth($query, 1, $flagsrequired);
15
16
17 my $template = gettemplate("opac-main.tmpl", "opac");
18
19 $template->param(loggedinuser => $loggedinuser);
20
21 print "Content-Type: text/html\n\n", $template->output;