#!/usr/local/bin/perl # edit_logcheck.cgi # Display logcheck configuration menu require './sentry-lib.pl'; # Check if logcheck is installed if (!-x $config{'logcheck'}) { &ui_print_header(undef, $text{'logcheck_title'}, ""); print "
",&text('logcheck_ecommand', "$config{'logcheck'}", "$gconfig{'webprefix'}/config.cgi?$module_name"),"
\n"; &ui_print_footer("", $text{'index_return'}); exit; } # Check if it is the right version $conf = &get_logcheck_config(); $hacking = &find_value("HACKING_FILE", $conf, 1); $hacking = &find_value("CRACKING_FILE", $conf, 1) if (!$hacking); if (!$hacking) { &ui_print_header(undef, $text{'logcheck_title'}, ""); print "
",&text('logcheck_eversion', "$config{'logcheck'}"),"
\n"; &ui_print_footer("", $text{'index_return'}); exit; } &ui_print_header(undef, $text{'logcheck_title'}, "", "logcheck", 0, 0, undef, &help_search_link("logcheck", "man", "doc")); # Show configuration form print "
\n"; &ui_print_footer("", $text{'index_return'});