",&text('index_ecmd', "$config{'shorewall6'}", "@{[&get_webprefix()]}/config.cgi?$module_name"),"
\n"; } else { # Get the version $shorewall6_version = &get_shorewall6_version(1); &open_tempfile(VERSION, ">$module_config_directory/version"); &print_tempfile(VERSION, $shorewall6_version,"\n"); &close_tempfile(VERSION); &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0, &help_search_link("shorewall6", "doc", "google"), undef, undef, &text('index_version', &get_printable_version($shorewall6_version))); if (!-d $config{'config_dir'}) { # Config dir not found! print "
",&text('index_edir', "$config{'config_dir'}", "@{[&get_webprefix()]}/config.cgi?$module_name"),"
\n"; } else { # Just show the file icons @files = grep { &can_access($_) } @shorewall6_files; @titles = map { $text{&clean_name($_)."_title"}."($_)" } @files; @links = map { "list.cgi?table=".$_ } @files; @icons = map { "images/".$_.".gif" } @files; &icons_table(\@links, \@titles, \@icons, 4); # Check if shorewall6 is running by looking for the 'shorewall6' # chain in the filter table print &ui_hr(); print "