adding authentification with Auth.pm
[wip/koha-chris_n.git] / mainpage.pl
1 #!/usr/bin/perl
2 use HTML::Template;
3 use strict;
4 require Exporter;
5 use C4::Database;
6 use C4::Output;  # contains gettemplate
7 use CGI;
8 use C4::Auth;
9
10 my $query = new CGI;
11 my ($template, $loggedinuser, $cookie)
12     = get_template_and_user({template_name => "intranet-main.tmpl",
13                              query => $query,
14                              type => "intranet",
15                              authnotrequired => 0,
16                              flagsrequired => {parameters => 1},
17                              debug => 1,
18                              });
19
20 print  $query->header(-cookie => $cookie), $template->output;