#!/usr/local/bin/perl # index.cgi # Display logging search form require './webminlog-lib.pl'; &foreign_require("acl", "acl-lib.pl"); &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1); if (!$gconfig{'log'}) { print &text('index_nolog', '/webmin/edit_log.cgi'),"

\n"; } elsif (!$gconfig{'logfiles'}) { print &text('index_nologfiles', '/webmin/edit_log.cgi'),"

\n"; } print "

\n"; print "\n"; print "\n"; print "
$text{'index_header'}
\n"; @ulist = sort { $a->{'name'} cmp $b->{'name'} } &acl::list_users(); @canulist = grep { &can_user($_->{'name'}) } @ulist; if (@canulist == 1) { # Can only show one user, so skip this field print &ui_hidden("uall", 0),"\n"; print &ui_hidden("user", $canulist[0]->{'name'}),"\n"; } else { # Show user selectors print &ui_radio("uall", 1, [ [ 1, $text{'index_uall'}."
" ], [ 0, $text{'index_user'} ] ]),"\n"; print "
\n"; if ($access_users{'*'}) { print " $text{'index_nuser'}\n"; print "\n"; } print "

\n"; } print " $text{'index_mall'}
\n"; print " $text{'index_module'}\n"; print "

\n"; print " $text{'index_tall'}
\n"; print " $text{'index_today'}
\n"; print " $text{'index_yesterday'}
\n"; print "\n"; print &text('index_time', &time_input('from'), &time_input('to')),"

\n"; if ($gconfig{'logfiles'}) { print " $text{'index_fall'}
\n"; print " $text{'index_file'}\n"; print "

\n"; } if ($config{'host_search'}) { print " $text{'index_wall'}
\n"; print " $text{'index_whost'}\n"; print "

\n"; } print "

\n"; print "
\n"; print "
\n"; print "
\n"; &ui_print_footer("/", $text{'index'}); sub time_input { local $rv = "/"; $rv .= "/"; $rv .= " ".&date_chooser_button("$_[0]_d", "$_[0]_m", "$_[0]_y"); return $rv; }