X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=bafe5a8e7d7dd108c212417fbd84e82df4a98ced;hp=09e535b2f5e407bcbc27435776b1dd8322a3ec2e;hb=e1ef1693e6942bbf82ee088f782d871a3b5eefee;hpb=e6b57805f6b3e76448ab9b6d280f2c53bc1410f3 diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 09e535b2f..bafe5a8e7 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -1,12 +1,26 @@ + <%= header('View Configuration', menubar( 'Main Menu' => $p, 'Edit Configuration' => 'config.cgi' ) ) %> <% my $conf = new FS::Conf; my @config_items = $conf->config_items; %> <% foreach my $section ( qw(required billing username password UI session - apache BIND shell + shell mail apache BIND ), - '', 'depreciated') { %> + '', 'deprecated') { %> + + + <% foreach my $nav_section ( qw(required billing username password UI session + shell mail apache BIND + ), + '', 'deprecated') { %> + <% if ( $section eq $nav_section ) { %> + [<%= ucfirst($nav_section || 'unclassified') %>] + <% } else { %> + [<%= ucfirst($nav_section || 'unclassified') %>] + <% } %> + <% } %> +
<%= table("#cccccc", 2) %> @@ -23,14 +37,18 @@ my $n = 0; %> <% if ( $type eq '' ) { %> no type - <% } elsif ( $type eq 'textarea' ) { %> + <% } elsif ( $type eq 'textarea' + || $type eq 'editlist' + || $type eq 'selectmultiple' ) { %> -
<%= join("\n", $conf->config($i->key) ) %>
+
+<%= encode_entities(join("\n", $conf->config($i->key) ) ) %>
+
<% } elsif ( $type eq 'checkbox' ) { %> YES' : 'ff0000">NO' %> - <% } elsif ( $type eq 'text' ) { %> - <%= $conf->exists($i->key) ? $conf->config($i->key) : '' %> + <% } elsif ( $type eq 'text' || $type eq 'select' ) { %> + <%= $conf->exists($i->key) ? $conf->config($i->key) : '' %> <% } else { %> unknown type <%= $type %>