X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=C4%2FInstallAuth.pm;h=bb868aa33e92bc5f6b643f6c61ab6c43893a659d;hb=9d6d641d1f8b77271800f43bc027b651f9aea52b;hp=7ed980b4674621879089f7123e8d70b33dd0fa98;hpb=96cc447045f3f1d3702a3c69b36f596d88f38eda;p=srvgit diff --git a/C4/InstallAuth.pm b/C4/InstallAuth.pm index 7ed980b467..bb868aa33e 100644 --- a/C4/InstallAuth.pm +++ b/C4/InstallAuth.pm @@ -18,24 +18,23 @@ package C4::InstallAuth; # along with Koha; if not, see . use Modern::Perl; -use Digest::MD5 qw(md5_base64); use CGI::Session; use File::Spec; require Exporter; use C4::Context; -use C4::Output; +use C4::Output qw( output_html_with_http_headers ); use C4::Templates; -use C4::Koha; -use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); - -@ISA = qw(Exporter); -@EXPORT = qw( - &checkauth - &get_template_and_user -); +our (@ISA, @EXPORT_OK); +BEGIN { + @ISA = qw(Exporter); + @EXPORT_OK = qw( + checkauth + get_template_and_user + ); +} =head1 NAME @@ -243,7 +242,7 @@ sub checkauth { if ( $sessionID = $query->cookie("CGISESSID") ) { C4::Context->_new_userenv($sessionID); my $session = - CGI::Session->new( "driver:File;serializer:yaml", $sessionID, + CGI::Session->new( "driver:File", $sessionID, { Directory => $sessdir } ); if ( $session->param('cardnumber') ) { C4::Context->set_userenv( @@ -283,7 +282,7 @@ sub checkauth { } unless ($userid) { my $session = - CGI::Session->new( "driver:File;serializer:yaml", undef, { Directory => $sessdir } ); + CGI::Session->new( "driver:File", undef, { Directory => $sessdir } ); $sessionID = $session->id; $userid = $query->param('userid'); C4::Context->_new_userenv($sessionID);