Koha/opac/opac-main.pl
2002-11-12 16:41:12 +00:00

22 lines
460 B
Perl
Executable file

#!/usr/bin/perl
use strict;
require Exporter;
use CGI;
use HTML::Template;
use C4::Output; # gettemplate
use C4::Auth; # checkauth
my $query = new CGI;
my $flagsrequired;
$flagsrequired->{borrow}=1;
my ($loggedinuser, $cookie, $sessionID) = checkauth($query, 1, $flagsrequired);
my $template = gettemplate("opac-main.tmpl", "opac");
$template->param(loggedinuser => $loggedinuser);
print "Content-Type: text/html\n\n", $template->output;