X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=about.pl;h=ef45340b1c04f533cdad5d0d601dd9f13afecb2d;hb=3a757d939a705f3165e55c08ca54eb943e41b261;hp=daf682950f3992673f632b89a57f3547e6c84574;hpb=374b6f4b9f33a776d04cdaa696b40e8e033dda32;p=koha_fer diff --git a/about.pl b/about.pl index daf682950f..ef45340b1c 100755 --- a/about.pl +++ b/about.pl @@ -55,13 +55,12 @@ 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) ); @@ -69,9 +68,15 @@ my $warnPrefBiblioAddsAuthorities = ( $prefAutoCreateAuthorities && ( !$prefBibl my $prefEasyAnalyticalRecords = C4::Context->preference('EasyAnalyticalRecords'); my $prefUseControlNumber = C4::Context->preference('UseControlNumber'); my $warnPrefEasyAnalyticalRecords = ( $prefEasyAnalyticalRecords && $prefUseControlNumber ); +my $warnPrefAnonymousPatron = ( + C4::Context->preference('OPACPrivacy') + and not C4::Context->preference('AnonymousPatron') +); my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode(); +my $warnIsRootUser = (! $loggedinuser); + $template->param( kohaVersion => $kohaVersion, osVersion => $osVersion, @@ -81,12 +86,13 @@ $template->param( mysqlVersion => $mysqlVersion, apacheVersion => $apacheVersion, zebraVersion => $zebraVersion, - prefNoZebra => $prefNoZebra, prefBiblioAddsAuthorities => $prefBiblioAddsAuthorities, prefAutoCreateAuthorities => $prefAutoCreateAuthorities, warnPrefBiblioAddsAuthorities => $warnPrefBiblioAddsAuthorities, warnPrefEasyAnalyticalRecords => $warnPrefEasyAnalyticalRecords, + warnPrefAnonymousPatron => $warnPrefAnonymousPatron, errZebraConnection => $errZebraConnection, + warnIsRootUser => $warnIsRootUser, ); my @components = (); @@ -142,8 +148,8 @@ $template->param( table => $table ); ## Koha time line code #get file location -my $dir = C4::Context->config('intranetdir'); -open( my $file, "<", "$dir" . "/docs/history.txt" ); +my $docdir = C4::Context->config('docdir'); +open( my $file, "<", "$docdir" . "/history.txt" ); my $i = 0; my @rows2 = ();