Preliminary fix of the CGI.pm problem of always assuming that everything is
[wip/koha-chris_n.git] / admin-home.pl
1 #!/usr/bin/perl
2
3 use strict;
4 use CGI;
5 use C4::Auth;
6 use C4::Output;
7 use C4::Charset;
8 use C4::Database;
9 use HTML::Template;
10
11 my $query = new CGI;
12 my ($template, $loggedinuser, $cookie)
13     = get_template_and_user({template_name => "parameters/admin-home.tmpl",
14                              query => $query,
15                              type => "intranet",
16                              authnotrequired => 0,
17                              flagsrequired => {parameters => 1},
18                              debug => 1,
19                              });
20 $template->param(loggeninuser => $loggedinuser);
21
22 print $query->header(
23     -type => guesstype($template->output),
24     -cookie => $cookie
25 ),$template->output;