Win32 support: Switch DEBUG off and corrected warning bug.
[koha.git] / about.pl
index 0c268a7..b1a7b88 100755 (executable)
--- a/about.pl
+++ b/about.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/perl
  
 # This file is part of Koha.
 #
@@ -32,18 +32,17 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
         query           => $query,
         type            => "intranet",
         authnotrequired => 0,
-        flagsrequired   => { parameters => 1 },
+        flagsrequired   => { catalogue => 1 },
         debug           => 1,
     }
 );
 
-my $kohaVersion   = C4::Context->config("kohaversion");
+my $kohaVersion   = C4::Context::KOHAVERSION;
 my $osVersion     = `uname -a`;
 my $perlVersion   = $];
 my $mysqlVersion  = `mysql -V`;
 my $apacheVersion = `httpd -v`;
 $apacheVersion = `httpd2 -v` unless $apacheVersion;
-$apacheVersion = `apache2 -v` unless $apacheVersion; # path for ubuntu
 my $zebraVersion = `zebraidx -V`;
 
 # $apacheVersion =  (`/usr/sbin/apache2 -V`)[0];
@@ -57,17 +56,68 @@ $template->param(
     zebraVersion  => $zebraVersion,
 );
 my @component_names =
-    qw/MARC::File::XML   MARC::Charset     Class::Accessor
-       LWP::Simple       XML::Simple       Net::Z3950
-       Event             Net::LDAP         PDF::API2
-       Mail::Sendmail    MARC::Record      Digest::MD5
-       HTML::Template    DBD::mysql        Date::Manip
-       DBI               Net::Z3950::ZOOM
-       Date::Calc
+    qw/
+Biblio::EndnoteStyle
+CGI
+CGI::Carp
+CGI::Session
+Class::Factory::Util
+Class::Accessor
+Compress::Zlib
+DBD::mysql
+DBI
+Data::Dumper
+Date::Calc
+Date::Manip
+Digest::MD5
+File::Temp
+GD::Barcode::UPCE
+Getopt::Long
+Getopt::Std
+HTML::Template::Pro
+HTTP::Cookies
+HTTP::Request::Common
+LWP::Simple
+LWP::UserAgent
+Lingua::Stem
+List::Util
+Locale::Language
+MARC::Crosswalk::DublinCore
+MARC::Charset
+MARC::File::XML
+MARC::Record
+MIME::Base64
+MIME::QuotedPrint
+Mail::Sendmail
+Net::Z3950::ZOOM
+PDF::API2
+PDF::API2::Page
+PDF::API2::Util
+PDF::Reuse
+PDF::Reuse::Barcode
+POSIX
+Schedule::At
+Term::ANSIColor
+Test
+Test::Harness
+Test::More
+Text::CSV
+Text::CSV_XS
+Text::Wrap
+Time::HiRes
+Time::localtime
+Unicode::Normalize
+XML::Dumper
+XML::LibXML
+XML::LibXSLT
+XML::SAX::ParserFactory
+XML::Simple
+XML::RSS
       /;
 
 my @components = ();
 
+my $counter=0;
 foreach my $component ( sort @component_names ) {
     my $version;
     if ( eval "require $component" ) {
@@ -79,12 +129,14 @@ foreach my $component ( sort @component_names ) {
     else {
         $version = 'module is missing';
     }
-
+    $counter++;
+    $counter=0 if $counter >3;
     push(
         @components,
         {
             name    => $component,
             version => $version,
+            counter => $counter,
         }
     );
 }