Changeset 340 for trunk


Ignore:
Timestamp:
07/06/06 18:00:55 (18 years ago)
Author:
Kris Deugau
Message:

/trunk

Make it clear where I'm working for admin tools

Location:
trunk/cgi-bin
Files:
2 edited

Legend:

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

    r331 r340  
    4848if ($IPDBacl{$authuser} !~ /A/) {
    4949  print "Content-Type: text/html\n\n".
    50         "<html><head><title>Access denied</title></head><body>\n".
     50        "<html><head><title>Access denied</title></head>".
     51        qq(<body bgcolor="#ffff00" text="#000000" link="#000000" vlink="#000000" alink="#ff0000">\n).
    5152        'Access to this tool is restricted.  Contact <a href="mailto:kdeugau@vianet.ca">Kris</a> '.
    5253        "for more information.</body></html>\n";
     
    6061        "<html>\n<head>\n\t<title>TEST [IPDB admin tools] TEST</title>\n".
    6162        qq(\t<link rel="stylesheet" type="text/css" href="/ip/ipdb.css">\n).
    62         "</head>\n<body>\n".
     63        qq(</head>\n<body bgcolor="#ffff00" text="#000000" link="#000000" vlink="#000000" alink="#ff0000">\n).
    6364        "<h2>IPDB - Administrative Tools</h2>\n<hr>\n";
    6465
  • trunk/cgi-bin/extras/db2rwhois.pl

    r328 r340  
    4242# Techically, we only need to exclude 204.138.172.0/24, as we "own" all of the other blocks.
    4343# However, 205.207.184.0/23 and 206.130.64.0/24 are, um, awkward.
    44   if ($data[0] =~ /^(192.168.0.0|172.16.0.0|10.0.0.0|20[456])/) {
    45     next GETMASTERS;
    46   }
     44#  if ($data[0] =~ /^(192.168.0.0|172.16.0.0|10.0.0.0|20[456])/) {
     45#    next GETMASTERS;
     46#  }
    4747  $masterblocks[$i] = new NetAddr::IP $data[0];
    4848  my ($ctime,undef) = split /\s/, $data[1];
     
    9898$sth = $dbh->prepare("select cidr,custid,type,city,description,createstamp,modifystamp,swip ".
    9999        "from allocations where ".
    100         "not (cidr <<= '192.168.0.0/16') and ".
    101         "not (cidr <<= '172.16.0.0/12') and ".
    102         "not (cidr <<= '10.0.0.0/8') and ".
     100#       "not (cidr <<= '192.168.0.0/16') and ".
     101#       "not (cidr <<= '172.16.0.0/12') and ".
     102#       "not (cidr <<= '10.0.0.0/8') and ".
    103103        "not (type = 'wr') and ".
    104104        "masklen(cidr) <=30");
Note: See TracChangeset for help on using the changeset viewer.