/[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 401 by dpavlin, Tue Sep 8 20:21:25 2009 UTC revision 435 by dpavlin, Wed Sep 16 00:48:53 2009 UTC
# Line 70  sub conf { Line 70  sub conf {
70          my ($ip,$conf,$format) = @_;          my ($ip,$conf,$format) = @_;
71          my @editable = splice(@_,3);          my @editable = splice(@_,3);
72    
73          warn "# conf ",dump( $ip, $conf, $format, [ @editable ] );  #       warn "# conf ",dump( $ip, $conf, $format, [ @editable ] );
74    
75          $format ||= 'inline';          $format ||= 'inline';
76    
# Line 84  sub conf { Line 84  sub conf {
84                  } else {                  } else {
85                          if ( $name eq 'amt' ) {                          if ( $name eq 'amt' ) {
86                                  my $amt_ip = amt::ip($ip,$html);                                  my $amt_ip = amt::ip($ip,$html);
87                                  $html = qq|<a title="$html" href=http://$amt_ip:16992/logon.htm target=$amt_ip>$amt_ip</a>|;                                  # $html contains password!
88                                    $html = qq|<a href=http://$amt_ip:16992/logon.htm target=$amt_ip>$amt_ip</a>|;
89    
90                                  if ( $format ne 'inline' ) {                                  if ( $format ne 'inline' ) {
91                                          my $power = amt::power_on($ip);                                          my $power = amt::power_on($ip);
# Line 98  sub conf { Line 99  sub conf {
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);
102                            } elsif ( $name eq 'kvm' ) {
103                                    $html = qq|<a href="/start_stop/kvm?nr=$html">$html</a>|;
104                          }                          }
105                          $html = qq|<tt>$html</tt>|                          $html = qq|<tt>$html</tt>|
106                          unless                          unless

Legend:
Removed from v.401  
changed lines
  Added in v.435

  ViewVC Help
Powered by ViewVC 1.1.26