/[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 473 by dpavlin, Tue Jan 5 00:07:35 2010 UTC revision 474 by dpavlin, Tue Jan 5 17:34:07 2010 UTC
# Line 356  warn "XXX pids = ", dump( $daemons::pids Line 356  warn "XXX pids = ", dump( $daemons::pids
356                                                                    
357                                  my $conf = client::all_conf( $ip );                                  my $conf = client::all_conf( $ip );
358                                  my $mac = delete $conf->{mac} || '';                                  my $mac = delete $conf->{mac} || '';
359                                    my $dev = $arp->{$mac};
360    
361                                  next unless $arp->{$mac} || $param->{all};                                  next unless $dev || $param->{all};
362    
363                                  my $style                                  my $style
364                                          = 'style="color:'                                          = 'style="color:'
# Line 369  warn "XXX pids = ", dump( $daemons::pids Line 370  warn "XXX pids = ", dump( $daemons::pids
370                                  my $ip_text = qq|<tt>$ip</tt>|;                                  my $ip_text = qq|<tt>$ip</tt>|;
371                                  $ip_text = qq|<tt><b>$ip</b></tt>| if ip::in_dhcp_range($ip);                                  $ip_text = qq|<tt><b>$ip</b></tt>| if ip::in_dhcp_range($ip);
372    
373                                    $dev = qq|<tt>$dev</tt>| if $dev;
374    
375                                  push @clients                                  push @clients
376                                          , qq|<a $style name=$ip target=client href=/client/$ip>$ip_text</a>|                                          , qq|<a $style name=$ip target=client href=/client/$ip>$ip_text</a>|
377                                          , format::mac( $mac => 'html' )                                          , format::mac( $mac => 'html' )
378                                          , $arp->{$mac}                                          , $dev
379                                          , delete $conf->{hostname}                                          , delete $conf->{hostname}
380                                          , html::conf( $ip, $conf, 'inline' )                                          , html::conf( $ip, $conf, 'inline' )
381                                  ;                                  ;

Legend:
Removed from v.473  
changed lines
  Added in v.474

  ViewVC Help
Powered by ViewVC 1.1.26