Changeset 135 for trunk


Ignore:
Timestamp:
01/26/05 15:30:30 (20 years ago)
Author:
Kris Deugau
Message:

/trunk

Merge bugfixes from /branches/stable r130:134

Location:
trunk/cgi-bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r130 r135  
    203203##err Need better handling here;  what if there's no free IPs when this sub gets called?
    204204      my @data = $sth->fetchrow_array;
    205       my $cidr = $data[1];
     205      $cidr = $data[1];  # $cidr is already declared when we get here!
    206206
    207207      $sth = $dbh->prepare("update poolips set custid='$custid',".
     
    545545  $mailer->to($recip);
    546546  $mailer->data("From: \"IP Database\" <ipdb\@example.com>\n",
     547        "To: $recip\n",
    547548        "Date: ".strftime("%a, %d %b %Y %H:%M:%S %z",localtime)."\n",
    548549        "Subject: {IPDB} $subj\n",
  • trunk/cgi-bin/main.cgi

    r118 r135  
    317317  }
    318318
    319   foreach my $element (@$rowRef) {
    320     print "<td></td>" if (!defined($element));
     319ELEMENT:  foreach my $element (@$rowRef) {
     320    if (!defined($element)) {
     321      print "<td></td>\n";
     322      next ELEMENT;
     323    }
    321324    $element =~ s|\n|</br>|g;
    322325    print "<td>$element</td>\n";
     
    10801083# this has now been Requested, so here goes.
    10811084
    1082   if ($data[2] =~ /^d[nyc]|cn|ee|ii$/) {
     1085  if ($data[2] =~ /^d[nyc]|cn|ee|in$/) {
    10831086    # Block that can be changed
    10841087    my $blockoptions = "<select name=alloctype><option".
     
    10881091        (($data[2] eq 'cn') ? ' selected' : '') ." value='cn'>Customer netblock</option>\n<option".
    10891092        (($data[2] eq 'ee') ? ' selected' : '') ." value='ee'>End-use netblock</option>\n<option".
    1090         (($data[2] eq 'ii') ? ' selected' : '') ." value='ii'>Internal netblock</option>\n".
     1093        (($data[2] eq 'in') ? ' selected' : '') ." value='in'>Internal netblock</option>\n".
    10911094        "</select>\n";
    10921095    $html =~ s/\$\$TYPESELECT\$\$/$blockoptions/g;
Note: See TracChangeset for help on using the changeset viewer.