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