Removed hard coded directories (as reported by Ville Huhtala).
[koha.git] / admin-home.pl
blob0f6b09e21eff3b8c46bdf00d5f98d48730ca60a1
1 #!/usr/bin/perl
3 use strict;
4 use CGI;
5 use C4::Auth;
6 use C4::Output;
7 use C4::Database;
9 my $configfile=configfile();
10 my $intranetdir=$configfile->{'intranetdir'};
12 my $query = new CGI;
13 my ($loggedinuser, $cookie, $sessionID) = checkauth($query);
15 print $query->header(-cookie => $cookie);
17 print startpage();
18 print startmenu('catalogue');
21 print "<p align=left>Logged in as: $loggedinuser [<a href=/cgi-bin/koha/logout.pl>Log Out</a>]</p>\n";
23 open H, "$intranetdir/htdocs/admin/index.html";
24 while (<H>) {
25 print $_;
27 close H;
30 print endpage();
31 print endmenu('catalogue');