added these files from the rel-1-2 branch. This is the beging of the new opac
[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 ($loggedinuser, $cookie, $sessionID) = checkauth($query, 1);
12
13 my $template = gettemplate("opac-main.tmpl", "opac");
14
15 $template->param(loggedinuser => $loggedinuser);
16
17 print "Content-Type: text/html\n\n", $template->output;