1 <%= header('View Configuration', menubar( 'Main Menu' => $p,
2 'Edit Configuration' => 'config.cgi' ) ) %>
4 <% my $conf = new FS::Conf; my @config_items = $conf->config_items; %>
6 <% foreach my $section ( qw(required billing username password UI session
7 shell mail radius apache BIND
9 '', 'depreciated') { %>
10 <%= table("#cccccc", 2) %>
12 <th colspan="2" bgcolor="#dcdcdc">
13 <%= ucfirst($section || 'unclassified') %> configuration options
16 <% foreach my $i (grep $_->section eq $section, @config_items) { %>
18 <td><a name="<%= $i->key %>">
19 <b><%= $i->key %></b> - <%= $i->description %>
22 <% foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) {
24 <% if ( $type eq '' ) { %>
25 <tr><td><font color="#ff0000">no type</font></td></tr>
26 <% } elsif ( $type eq 'textarea' ) { %>
27 <tr><td bgcolor="#ffffff">
29 <%= encode_entities(join("\n", $conf->config($i->key) ) ) %>
32 <% } elsif ( $type eq 'checkbox' ) { %>
33 <tr><td bgcolor="#<%= $conf->exists($i->key) ? '00ff00">YES' : 'ff0000">NO' %></td></tr>
34 <% } elsif ( $type eq 'text' ) { %>
35 <tr><td bgcolor="#ffffff"><%= $conf->exists($i->key) ? $conf->config($i->key) : '' %></td></tr>
38 <font color="#ff0000">unknown type <%= $type %></font>