2 # Show all Foobar webserver websites
4 require 'foobar-lib.pl';
6 ui_print_header(undef, $module_info{'desc'}, "", undef, 1, 1);
9 my @sites = list_foobar_websites();
11 foreach my $s (@sites) {
12 push(@table, [ "<a href='edit.cgi?domain=".urlize($s->{'domain'}).
13 "'>".html_escape($s->{'domain'})."</a>",
14 html_escape($s->{'directory'})
18 # Show the table with add links
19 print ui_form_columns_table(
23 [ [ 'edit.cgi?new=1', $text{'index_add'} ] ],
25 [ $text{'index_domain'}, $text{'index_directory'} ],
34 ui_print_footer('/', $text{'index'});