\n"; &ui_print_footer("", $text{'index_return'}); exit; } if (!-r $dfile) { # Text file not found print "",&text('domains_efile', "$dfile", "$ddbm", "@{[&get_webprefix()]}/config.cgi?$module_name"),"
\n"; print "",&text('virtusers_createfile', 'create_file.cgi?mode=domains'),"
\n"; &ui_print_footer("", $text{'index_return'}); exit; } @doms = &list_domains($dfile); &domain_form(); if (@doms) { # sort if needed if ($config{'sort_mode'} == 1) { @doms = sort { $a->{'from'} cmp $b->{'from'} } @doms; } # render table of domains print &ui_form_start("delete_domains.cgi", "post"); @links = ( &select_all_link("d", 1), &select_invert_link("d", 1) ); print &ui_links_row(\@links); if ($config{'columns'} == 2) { $mid = int((@doms+1)/2); print "
\n" if ($access{'manual'}); print $text{'domains_desc'},"
\n"; &ui_print_footer("", $text{'index_return'}); sub doms_table { local @tds = ( "width=5" ); print &ui_columns_start([ "", $text{'domains_from'}, $text{'domains_to'}, $config{'show_cmts'} ? ( $text{'virtusers_cmt'} ) : ( ) ], 100, 0, \@tds); foreach $m (@_) { local @cols; push(@cols, "{'num'}\">". &html_escape($m->{'from'}).""); push(@cols, &html_escape($m->{'to'})); push(@cols, &html_escape($m->{'cmt'})) if ($config{'show_cmts'}); print &ui_checked_columns_row(\@cols, \@tds, "d", $m->{'from'}); } print &ui_columns_end(); }