/[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 375 by dpavlin, Sun Aug 30 10:38:13 2009 UTC revision 376 by dpavlin, Sun Aug 30 15:22:41 2009 UTC
# Line 1  Line 1 
1  package html;  package html;
2    
3  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
4    use amt;
5    
6  sub table {  sub table {
7          my $cols = shift;          my $cols = shift;
# Line 84  sub conf { Line 85  sub conf {
85                  } else {                  } else {
86                          if ( $name eq 'amt' ) {                          if ( $name eq 'amt' ) {
87                                  $html = qq|<a title="$html" href=http://$ip:16992/logon.htm>logon</a>|;                                  $html = qq|<a title="$html" href=http://$ip:16992/logon.htm>logon</a>|;
88    
89                                    $html .= qq| power: |
90                                            . ( amt::power_on($ip)
91                                                    ? qq|<a href=/amt/PowerDown/$ip title="turn off">on</a>|
92                                                    : qq|<a href=/amt/PowerUp/$ip   title="turn on" >off</a>|
93                                            ) if $format ne 'inline';
94                          } elsif ( $name eq 'ssh' ) {                          } elsif ( $name eq 'ssh' ) {
95                                  $html =~ s{\s(\S{16}).+(\S{16})\s}{ $1..$2 };                                  $html =~ s{\s(\S{16}).+(\S{16})\s}{ $1..$2 };
96                                  chomp($html);                                  chomp($html);

Legend:
Removed from v.375  
changed lines
  Added in v.376

  ViewVC Help
Powered by ViewVC 1.1.26