#!/usr/local/bin/perl # edit_auth.cgi # Display authentication settings require './heartbeat-lib.pl'; &ui_print_header(undef, $text{'auth_title'}, ""); $conf = &get_auth_config(); print "
\n"; print "\n"; print "\n"; print "
$text{'auth_header'}
\n"; print "
$text{'auth_mode'} \n"; $i = 1; $n = $conf->{'auth'}->[0]; foreach $k ('crc', 'sha1', 'md5') { printf " %s\n", $i, $conf->{$n}->[0] eq $k ? "checked" : "", $text{"auth_$k"}; if ($k ne 'crc') { ($thisnum) = grep { $conf->{$_}->[0] eq $k } (keys %$conf); printf "\n", $k, $conf->{$thisnum}->[1]; } print "
\n"; $i++; } print "
\n"; print "
\n"; &ui_print_footer("", $text{'index_return'});