quick hack to add extra 'config lines' to svc_www and otherwise enhance svc_www
[freeside.git] / httemplate / pref / pref-process.html
index e66045b..a5e13f0 100644 (file)
@@ -5,7 +5,7 @@
 %           qw(_password new_password new_password2)
 %    ) {
 %
-%   my $access_user = qsearchs( 'access_user', {
+%   $access_user = qsearchs( 'access_user', {
 %     'username'  => getotaker,
 %     '_password' => $cgi->param('_password'),
 %   } );
 %
 % }
 %
+% #XXX autogen
+% my @paramlist = qw( menu_position email_address
+%                     height width availHeight availWidth colorDepth
+%                   );
+%
+% foreach (@paramlist) {
+%   scalar($cgi->param($_)) =~ /^[,.\@\w]*$/ && next;
+%   $error ||= "Illegal value for parameter $_";
+%   last;
+% }
+%
 % $error ||= $access_user->replace( {
-%   map { $_ => scalar($cgi->param($_)) }
-%       #XXX autogen
-%       qw( menu_position
-%           height width availHeight availWidth colorDepth
-%         )
+%   map { $_ => scalar($cgi->param($_)) } @paramlist,
 % } );
 %
 % if ( $error ) {