/[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 539 by dpavlin, Thu Aug 26 19:29:18 2010 UTC revision 540 by dpavlin, Sat Oct 9 12:25:41 2010 UTC
# Line 362  warn "XXX pids = ", dump( $daemons::pids Line 362  warn "XXX pids = ", dump( $daemons::pids
362    
363                  if ( $ip && $ip ne $server::ip ) {                  if ( $ip && $ip ne $server::ip ) {
364    
                         my @editable = ( qw/hostname config homepage/ );  
   
                         client::conf( $ip, $_ => $param->{$_} ) foreach @editable;  
   
365                          my $conf = client::all_conf( $ip );                          my $conf = client::all_conf( $ip );
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 );
369                            client::conf( $ip, $_ => $param->{$_} ) foreach @editable;
370    
371                          my $nmap = qq|<a href=/nmap?scan=$ip>nmap</a>|;                          my $nmap = qq|<a href=/nmap?scan=$ip>nmap</a>|;
372                          my @table = (                          my @table = (
373                                  'ping' => ping::host($ip)                                  'ping' => ping::host($ip)

Legend:
Removed from v.539  
changed lines
  Added in v.540

  ViewVC Help
Powered by ViewVC 1.1.26