/[webpac2]/trunk/vhost/webpac2.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/vhost/webpac2.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1218 by dpavlin, Tue Jun 9 21:34:21 2009 UTC revision 1219 by dpavlin, Tue Jun 9 21:36:22 2009 UTC
# Line 109  my $db = $config->{databases}->{$databas Line 109  my $db = $config->{databases}->{$databas
109  sub read_config_txt {  sub read_config_txt {
110          my ( $file ) = @_;          my ( $file ) = @_;
111          my $input;          my $input;
112          foreach ( split(/[\n\r]+/, read_file( "$dir/$path/$path-$file.txt" ) ) ) {          my $path ="$dir/$path/$path-$file.txt";
113            if ( ! -e $path ) {
114                    warn "missing $path";
115                    return;
116            }
117            foreach ( split(/[\n\r]+/, read_file( $path ) ) ) {
118                  my ( $val,$label ) = split(/\s*\t\s*/,$_,2);                  my ( $val,$label ) = split(/\s*\t\s*/,$_,2);
119                  push @{ $input->{ '-values' } }, $val;                  push @{ $input->{ '-values' } }, $val;
120                                  $input->{ '-labels' }->{$val} = $label;                                  $input->{ '-labels' }->{$val} = $label;

Legend:
Removed from v.1218  
changed lines
  Added in v.1219

  ViewVC Help
Powered by ViewVC 1.1.26