Changeset 786 for trunk/cgi-bin/main.cgi


Ignore:
Timestamp:
10/08/15 17:25:44 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Update edit page to show backup fields. See #52.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r782 r786  
    982982  } # rDNS availability check
    983983
     984  # backup data
     985  if ($blockinfo->{hasbk}) {
     986    $page->param(hasbackup => $blockinfo->{hasbk});
     987    for my $bkfield (qw(brand model src user vpass epass port)) {
     988      $page->param("bk$bkfield" => $blockinfo->{"bk$bkfield"});
     989    }
     990    $page->param(bktelnet => 1) if $blockinfo->{bktype} eq 'telnet';
     991    $page->param(bkssh => 1) if $blockinfo->{bktype} eq 'SSH';
     992  }
     993
    984994  # consider extending this to show time as well as date
    985995  my ($lastmod,undef) = split /\s+/, $blockinfo->{lastmod};
Note: See TracChangeset for help on using the changeset viewer.