/[pxelator]/lib/PXElator/httpd.pm
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 /lib/PXElator/httpd.pm

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

revision 541 by dpavlin, Sat Oct 9 12:25:41 2010 UTC revision 542 by dpavlin, Sat Oct 9 12:34:44 2010 UTC
# Line 366  warn "XXX pids = ", dump( $daemons::pids Line 366  warn "XXX pids = ", dump( $daemons::pids
366                          my $config = delete $conf->{config};                          my $config = delete $conf->{config};
367    
368                          my @editable = ( qw/hostname config homepage/, grep { m{^\Q$config\E} } keys %$conf );                          my @editable = ( qw/hostname config homepage/, grep { m{^\Q$config\E} } keys %$conf );
369                          client::conf( $ip, $_ => $param->{$_} ) foreach @editable;                          my @update = grep { defined $param->{$_} } @editable;
370                            if ( @update ) {
371                                    client::conf( $ip, $_ => $param->{$_} ) foreach @update;
372                                    print $client redirect("$url/client/$ip");
373                                    return;
374                            }
375    
376                          my $nmap = qq|<a href=/nmap?scan=$ip>nmap</a>|;                          my $nmap = qq|<a href=/nmap?scan=$ip>nmap</a>|;
377                          my @table = (                          my @table = (

Legend:
Removed from v.541  
changed lines
  Added in v.542

  ViewVC Help
Powered by ViewVC 1.1.26