From daac302e231e2e09b84e771c0413b0f2119c52e8 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 18 Mar 2002 09:10:12 +0000 Subject: new config value `defaultrecords', documentation, javascript config file editor --- httemplate/config/config-process.cgi | 6 +++++ httemplate/config/config-view.cgi | 4 +-- httemplate/config/config.cgi | 51 +++++++++++++++++++++++++----------- httemplate/docs/upgrade8.html | 3 ++- 4 files changed, 46 insertions(+), 18 deletions(-) (limited to 'httemplate') diff --git a/httemplate/config/config-process.cgi b/httemplate/config/config-process.cgi index a296abfe4..38d9af0db 100644 --- a/httemplate/config/config-process.cgi +++ b/httemplate/config/config-process.cgi @@ -32,6 +32,12 @@ } else { $conf->delete($i->key); } + } elsif ( $type eq 'editlist' || $type eq 'selectmultiple' ) { + if ( scalar(@{[ $cgi->param($i->key. $n) ]}) ) { + $conf->set($i->key, join("\n", $cgi->param($i->key. $n) )); + } else { + $conf->delete($i->key); + } } else { } $n++; diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 917cc7316..d40c4dc10 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -8,6 +8,7 @@ shell mail radius apache BIND ), '', 'deprecated') { %> + <% foreach my $nav_section ( qw(required billing username password UI session shell mail radius apache BIND @@ -16,11 +17,10 @@ <% if ( $section eq $nav_section ) { %> [<%= ucfirst($nav_section || 'unclassified') %>] <% } else { %> - [<%= ucfirst($nav_section || 'unclassified') %>] + [<%= ucfirst($nav_section || 'unclassified') %>] <% } %> <% } %>
- <%= table("#cccccc", 2) %> diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index 155dcfdbc..5013de0dc 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -2,25 +2,33 @@ <%= header('Edit Configuration', menubar( 'Main Menu' => $p ) ) %> <% my $conf = new FS::Conf; my @config_items = $conf->config_items; %> -
+ <% foreach my $section ( qw(required billing username password UI session shell mail radius apache BIND ), '', 'deprecated') { %> + <% foreach my $nav_section ( qw(required billing username password UI session shell mail radius apache BIND @@ -29,11 +37,10 @@ function SafeOnload() <% if ( $section eq $nav_section ) { %> [<%= ucfirst($nav_section || 'unclassified') %>] <% } else { %> - [<%= ucfirst($nav_section || 'unclassified') %>] + [<%= ucfirst($nav_section || 'unclassified') %>] <% } %> <% } %>
- <%= table("#cccccc", 2) %> @@ -65,6 +72,7 @@ function SafeOnload() <% if ( $conf->exists($i->key) && $conf->config($i->key) && ! grep { $conf->config($i->key) eq $_ } @{$i->select_enum}) { %>
diff --git a/httemplate/docs/upgrade8.html b/httemplate/docs/upgrade8.html index 2640be419..25e766b1e 100644 --- a/httemplate/docs/upgrade8.html +++ b/httemplate/docs/upgrade8.html @@ -308,8 +308,9 @@ ALTER TABLE cust_refund DROP COLUMN crednum;
  • IMPORTANT: run bin/create-history-tables
  • IMPORTANT: After running bin/create-history-tables, run bin/dbdef-create again.
  • set the user_policy configuration value as appropriate for your site. +
  • the mxmachines, nsmachines, arecords and cnamerecords configuration values have been deprecated. Set the defaultrecords configuration value instead.
  • Create the `/usr/local/etc/freeside/cache.datasrc' directory - (ownded by the freeside user). + (owned by the freeside user).
  • freeside-queued was installed with the Perl modules. Start it now and ensure that is run upon system startup.
  • Set appropriate invoice events for your site. At the very least, you'll want to set some invoice events "After 0 days": a BILL invoice event to print invoices, a CARD invoice event to batch or run cards real-time, and a COMP invoice event to "pay" complimentary customers. If you were using the -i option to freeside-bill it should be removed.
  • Use freeside-daily instead of freeside-bill. -- cgit v1.2.1