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

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

revision 379 by dpavlin, Sun Aug 30 15:54:02 2009 UTC revision 380 by dpavlin, Sun Aug 30 16:36:37 2009 UTC
# Line 84  sub conf { Line 84  sub conf {
84                          ( $name, qq|<input name=$name value="$html" size=$size>| )                          ( $name, qq|<input name=$name value="$html" size=$size>| )
85                  } else {                  } else {
86                          if ( $name eq 'amt' ) {                          if ( $name eq 'amt' ) {
87                                  $html = qq|<a title="$html" href=http://$ip:16992/logon.htm target=$ENV{AMT_HOST}>$ENV{AMT_HOST}</a>|;                                  my $amt_ip = amt::ip($ip,$html);
88                                    $html = qq|<a title="$html" href=http://$amt_ip:16992/logon.htm target=$amt_ip>$amt_ip</a>|;
89    
90                                  $html .= qq| power: |                                  if ( $format ne 'inline' ) {
91                                          . ( amt::power_on($ip)                                          my $power = amt::power_on($ip);
92                                            $html .= qq| power: |
93                                            . ( $power
94                                                  ? qq|<a href=/amt/PowerDown/$ip title="turn off">on</a>|                                                  ? qq|<a href=/amt/PowerDown/$ip title="turn off">on</a>|
95                                                  : qq|<a href=/amt/PowerUp/$ip   title="turn on" >off</a>|                                                  : qq|<a href=/amt/PowerUp/$ip   title="turn on" >off</a>|
96                                          ) if $format ne 'inline';                                          );
97                                            client::conf( $ip, 'power' => $power ? 'on' : 'off' );
98                                    }
99                          } elsif ( $name eq 'ssh' ) {                          } elsif ( $name eq 'ssh' ) {
100                                  $html =~ s{\s(\S{16}).+(\S{16})\s}{ $1..$2 };                                  $html =~ s{\s(\S{16}).+(\S{16})\s}{ $1..$2 };
101                                  chomp($html);                                  chomp($html);

Legend:
Removed from v.379  
changed lines
  Added in v.380

  ViewVC Help
Powered by ViewVC 1.1.26