Changeset 375 for branches/stable


Ignore:
Timestamp:
01/10/08 14:04:58 (16 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Hack-fix db2rwhois.pl export tool so that it doesn't leave critical fields
blank on allocations that have been tagged for "SWIP"ing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/extras/db2rwhois.pl

    r369 r375  
    281281        "IP-Network: $net\n".
    282282        "IP-Network-Block: ".$net->range."\n".
    283         "Org-Name: $name\n".
    284         "Street-Address: $street\n".
    285         "City: $city\n".
    286         "StateProv: $prov\n".
    287         "Postal-Code: $pocode\n".
    288         "Country-Code: $country\n".
    289         "Tech-Contact: $tech\n".
     283        "Org-Name: ".($name ? $name : 'Friendly ISP')."\n".
     284        "Street-Address: ".($street ? $street : '123 4th Street')."\n".
     285        "City: ".($city ? $city : 'Anytown')."\n".
     286        "StateProv: ".($prov ? $prov : 'Ontario')."\n".
     287        "Postal-Code: ".($pocode ? $pocode : 'H0H 0H0')."\n".
     288        "Country-Code: ".($country ? $country : 'CA')."\n".
     289        "Tech-Contact: ".($tech ? $tech : 'ISP-ARIN-HANDLE')."\n".
    290290        "Created: $ctime\n".
    291291        "Updated: $mtime\n".
Note: See TracChangeset for help on using the changeset viewer.