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


Ignore:
Timestamp:
05/31/05 14:18:35 (19 years ago)
Author:
Kris Deugau
Message:

/trunk

Merge "Last Modified" display from /branches/stable r245
main.cgi did not merge cleanly due to SWIP hack in /branches/stable r244

File:
1 edited

Legend:

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

    r247 r255  
    920920  # because I'm lazy, we'll try to make the SELECT's bring out identical)ish) data
    921921  if ($webvar{block} =~ /\/32$/) {
    922     $sql = "select ip,custid,type,city,circuitid,description,notes from poolips where ip='$webvar{block}'";
     922    $sql = "select ip,custid,type,city,circuitid,description,notes,modifystamp from poolips where ip='$webvar{block}'";
    923923  } else {
    924     $sql = "select cidr,custid,type,city,circuitid,description,notes from allocations where cidr='$webvar{block}'"
     924    $sql = "select cidr,custid,type,city,circuitid,description,notes,modifystamp from allocations where cidr='$webvar{block}'"
    925925  }
    926926
     
    981981    $html =~ s/\$\$NOTES\$\$/$data[6]/g;
    982982  }
     983  my ($lastmod,undef) = split /\s+/, $data[7];
     984  $html =~ s/\$\$LASTMOD\$\$/$lastmod/g;
     985
     986  # Allows us to "correctly" colour backgrounds in table
     987  my $i=1;
    983988
    984989  # More ACL trickery - we can live with forms that don't submit,
     
    986991  # can't leave the submit buttons there.
    987992  my $updok = '';
    988   my $i=2;
    989993  if ($IPDBacl{$authuser} =~ /c/) {
    990994    $updok = qq(<tr class="color$i"><td colspan=2><div class="center">).
    991995        qq(<input type="submit" value=" Update this block " class="regular">).
    992996        "</div></td></tr></form>\n";
    993     $i--;
     997    $i++;
    994998  }
    995999  $html =~ s/\$\$UPDOK\$\$/$updok/g;
Note: See TracChangeset for help on using the changeset viewer.