#!/usr/local/bin/perl # index.cgi # Display a table of icons for cvs server options require './pserver-lib.pl'; &ReadParse(); if (!$cvs_path) { &header($text{'index_title'}, "", undef, 1, 1); print "
\n"; print "

",&text('index_ecvs', "$config{'cvs'}", "$gconfig{'webprefix'}/config.cgi?$module_name"),"

\n"; print "


\n"; &footer("/", $text{'index'}); exit; } $out = `$config{'cvs'} -v`; if ($out !~ /CVS[^0-9\.]*([0-9\.]+)/) { &header($text{'index_title'}, "", undef, 1, 1); print "
\n"; print "

",&text('index_eversion', "$config{'cvs'} -v", "$out"),"

\n"; print "


\n"; &footer("/", $text{'index'}); exit; } $ver = $1; &header($text{'index_title'}, "", undef, 1, 1, undef, &help_search_link("cvs", "man", "doc"), undef, undef, &text('index_version', $ver)); print "
\n"; if (!-d "$config{'cvsroot'}/CVSROOT") { print "

",&text('index_eroot', "$gconfig{'webprefix'}/config.cgi?$module_name"),"

\n"; print "


\n"; &footer("/", $text{'index'}); exit; } # Show configuration icons # Check if run from inetd or xinetd print "
\n"; print "\n"; $inet = &check_inetd(); if (!$inet) { print "\n"; print "\n"; print "\n"; print "\n"; } elsif (!$inet->{'active'}) { print "\n"; print "\n"; print "\n"; print "\n"; } else { print "\n"; print "\n"; print "\n"; print "\n"; } print "
$text{'index_setupdesc'}
",&text('index_actdesc', "$inet->{'type'}"),"
",&text('index_deactdesc', "$inet->{'type'}"),"
\n"; print "
\n"; &footer("/", $text{'index'});