X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=about.pl;h=3c641b38088de7afed964969b8e371ee5d4f9080;hb=e901ae15de6717f8594bd80ecfb0c5e8a23b8af5;hp=9295b33b469b6cf559cdca0d7c97c555e265e664;hpb=068e5be6395088793aeab66d67c36c2b9da2c5d9;p=koha_fer diff --git a/about.pl b/about.pl index 9295b33b46..3c641b3808 100755 --- a/about.pl +++ b/about.pl @@ -55,11 +55,25 @@ if ($^O ne 'VMS') { } my $perlVersion = $]; my $mysqlVersion = `mysql -V`; -my $apacheVersion = `httpd -v`; -$apacheVersion = `httpd2 -v` unless $apacheVersion; +my $apacheVersion = `httpd -v 2> /dev/null`; +$apacheVersion = `httpd2 -v 2> /dev/null` unless $apacheVersion; $apacheVersion = (`/usr/sbin/apache2 -V`)[0] unless $apacheVersion; my $zebraVersion = `zebraidx -V`; +# Additional system information for warnings +my $prefNoZebra = C4::Context->preference('nozebra'); +my $prefAutoCreateAuthorities = C4::Context->preference('AutoCreateAuthorities'); +my $prefBiblioAddsAuthorities = C4::Context->preference('BiblioAddsAuthorities'); +my $warnPrefBiblioAddsAuthorities = ( $prefAutoCreateAuthorities && ( !$prefBiblioAddsAuthorities) ); + +my $prefEasyAnalyticalRecords = C4::Context->preference('EasyAnalyticalRecords'); +my $prefUseControlNumber = C4::Context->preference('UseControlNumber'); +my $warnPrefEasyAnalyticalRecords = ( $prefEasyAnalyticalRecords && $prefUseControlNumber ); + +my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode(); + +my $warnIsRootUser = (! $loggedinuser); + $template->param( kohaVersion => $kohaVersion, osVersion => $osVersion, @@ -69,6 +83,13 @@ $template->param( mysqlVersion => $mysqlVersion, apacheVersion => $apacheVersion, zebraVersion => $zebraVersion, + prefNoZebra => $prefNoZebra, + prefBiblioAddsAuthorities => $prefBiblioAddsAuthorities, + prefAutoCreateAuthorities => $prefAutoCreateAuthorities, + warnPrefBiblioAddsAuthorities => $warnPrefBiblioAddsAuthorities, + warnPrefEasyAnalyticalRecords => $warnPrefEasyAnalyticalRecords, + errZebraConnection => $errZebraConnection, + warnIsRootUser => $warnIsRootUser, ); my @components = ();