Ignore:
Timestamp:
01/05/18 18:06:47 (6 years ago)
Author:
Kris Deugau
Message:

/trunk/dnsbl

Add exclusion flagging and block-comment handling to IP list tools. Exclusion
flags can be set or unset on each submit; netblock comments can be added,
updated, or removed (or at least "set empty") on each submit.

Note this is focused on the CIDR (rbldnsd) export format, and may produce
excitingly weird results with the default "classful"/tinydns mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dnsbl/templates/report.tmpl

    r65 r66  
    88<table><tr><td valign=top>
    99<table border=1>
    10 <tr>
    11 <td><TMPL_VAR NAME=ip><TMPL_IF NAME=nreports></td>
    12 <td>(reported <TMPL_VAR NAME=nreports> time(s))</TMPL_IF></td>
    13 <td><a href="<TMPL_VAR NAME=dnsblsiteroot>">Back</a></td></tr>
    14 <tr><td colspan="3"><TMPL_VAR NAME=revinfo></td></tr>
    1510
    1611<form action="dnsbl.cgi">
     
    1813<input type=hidden name=ip value=<TMPL_VAR NAME=ip>>
    1914
    20 <tr><td nowrap>Registrar delegation</td></tr>
     15<tr>
     16<td><TMPL_VAR NAME=ip></td>
     17<!-- fixme:  find a way to "grey-ish" the IP exclude checkbox if any of the block exclude boxes are checked - note, we don't care about *disabling* it -->
     18<td><input type="checkbox" name="excludeip"<TMPL_IF ipexclude> checked="checked"</TMPL_IF>>Exclude<TMPL_IF NAME=nreports></td>
     19<td>(reported <TMPL_VAR NAME=nreports> time(s))</TMPL_IF></td>
     20<td><a href="<TMPL_VAR NAME=dnsblsiteroot>">Back</a></td></tr>
     21<tr><td colspan="4"><TMPL_VAR NAME=revinfo></td></tr>
     22
     23<tr><td colspan="4"></td></tr>
     24<tr>
     25<td nowrap>Registrar delegation</td>
     26<td><input type="checkbox" name="exclude0"<TMPL_IF excl0> checked="checked"</TMPL_IF>>Exclude</td>
     27<td>Comment: <input name="comment0" value="<TMPL_VAR NAME=comment0 ESCAPE=HTML>"></td>
     28</tr>
    2129<tr<TMPL_IF autob0> class="auto0"</TMPL_IF>>
    22 <td><span class="<TMPL_IF listb0>b0list</TMPL_IF>">Netblock:</span></td>
    23 <td colspan=2><input name=block0 value="<TMPL_VAR block0>" size=40></td>
     30<td><span class="<TMPL_VAR flag0>">Netblock:</span></td>
     31<td colspan="3"><input name=block0 value="<TMPL_VAR block0>" size=40></td>
    2432</tr>
    2533<tr<TMPL_IF autob0> class="auto0"</TMPL_IF>>
    2634<td><span class="<TMPL_IF listorg0>b0org</TMPL_IF>">Org/Person:</span></td>
    27 <td colspan=2><input name=org0 value="<TMPL_VAR org0 ESCAPE=HTML>" size=40></td>
     35<td colspan="3"><input name=org0 value="<TMPL_VAR org0 ESCAPE=HTML>" size=40></td>
    2836</tr>
    2937
    30 <tr><td>1st subdelegation</td></tr>
     38<tr><td colspan="4"></td></tr>
     39<tr>
     40<td>1st subdelegation</td>
     41<td><input type="checkbox" name="exclude1"<TMPL_IF excl1> checked="checked"</TMPL_IF>>Exclude</td>
     42<td>Comment: <input name="comment1" value="<TMPL_VAR NAME=comment1 ESCAPE=HTML>"></td>
     43</tr>
    3144<tr<TMPL_IF autob1> class="auto1"</TMPL_IF>>
    32 <td><span class="<TMPL_IF listb1>b1list</TMPL_IF>">Netblock:</span></td>
    33 <td colspan=2><input name=block1 value="<TMPL_VAR block1>" size=40></td>
     45<td><span class="<TMPL_VAR flag1>">Netblock:</span></td>
     46<td colspan="3"><input name=block1 value="<TMPL_VAR block1>" size=40></td>
    3447</tr>
    3548<tr<TMPL_IF autob1> class="auto1"</TMPL_IF>>
    3649<td><span class="<TMPL_IF listorg1>b1org</TMPL_IF>">Org/Person:</span></td>
    37 <td colspan=2><input name=org1 value="<TMPL_VAR org1 ESCAPE=HTML>" size=40></td>
     50<td colspan="3"><input name=org1 value="<TMPL_VAR org1 ESCAPE=HTML>" size=40></td>
    3851</tr>
    3952
    40 <tr><td>2nd subdelegation</td></tr>
     53<tr><td colspan="4"></td></tr>
     54<tr>
     55<td>2nd subdelegation</td>
     56<td><input type="checkbox" name="exclude2"<TMPL_IF excl2> checked="checked"</TMPL_IF>>Exclude</td>
     57<td>Comment: <input name="comment2" value="<TMPL_VAR NAME=comment2 ESCAPE=HTML>"></td>
     58</tr>
    4159<tr<TMPL_IF autob2> class="auto2"</TMPL_IF>>
    42 <td><span class="<TMPL_IF listb2>b2list</TMPL_IF>">Netblock:</span></td>
    43 <td colspan=2><input name=block2 value="<TMPL_VAR block2>" size=40></td>
     60<td><span class="<TMPL_VAR flag2>">Netblock:</span></td>
     61<td colspan="3"><input name=block2 value="<TMPL_VAR block2>" size=40></td>
    4462</tr>
    4563<tr<TMPL_IF autob2> class="auto2"</TMPL_IF>>
    4664<td><span class="<TMPL_IF listorg2>b2org</TMPL_IF>">Org/Person:</span></td>
    47 <td colspan=2><input name=org2 value="<TMPL_VAR org2 ESCAPE=HTML>" size=40></td>
     65<td colspan="3"><input name=org2 value="<TMPL_VAR org2 ESCAPE=HTML>" size=40></td>
    4866</tr>
    4967
    50 <tr><td>3rd subdelegation</td></tr>
     68<tr><td colspan="4"></td></tr>
     69<tr>
     70<td>3rd subdelegation</td>
     71<td><input type="checkbox" name="exclude3"<TMPL_IF excl3> checked="checked"</TMPL_IF>>Exclude</td>
     72<td>Comment: <input name="comment3" value="<TMPL_VAR NAME=comment3 ESCAPE=HTML>"></td>
     73</tr>
    5174<tr<TMPL_IF autob3> class="auto3"</TMPL_IF>>
    52 <td><span class="<TMPL_IF listb3>b3list</TMPL_IF>">Netblock:</span></td>
    53 <td colspan=2><input name=block3 value="<TMPL_VAR block3>" size=40></td>
     75<td><span class="<TMPL_VAR flag3>">Netblock:</span></td>
     76<td colspan="3"><input name=block3 value="<TMPL_VAR block3>" size=40></td>
    5477</tr>
    5578<tr<TMPL_IF autob3> class="auto3"</TMPL_IF>>
    5679<td><span class="<TMPL_IF listorg3>b3org</TMPL_IF>">Org/Person:</span></td>
    57 <td colspan=2><input name=org3 value="<TMPL_VAR org3 ESCAPE=HTML>" size=40></td>
     80<td colspan="3"><input name=org3 value="<TMPL_VAR org3 ESCAPE=HTML>" size=40></td>
    5881</tr>
    5982
    60 <tr><td>4th subdelegation</td></tr>
     83<tr><td colspan="4"></td></tr>
     84<tr>
     85<td>4th subdelegation</td>
     86<td><input type="checkbox" name="exclude4"<TMPL_IF excl4> checked="checked"</TMPL_IF>>Exclude</td>
     87<td>Comment: <input name="comment4" value="<TMPL_VAR NAME=comment4 ESCAPE=HTML>"></td>
     88</tr>
    6189<tr<TMPL_IF autob4> class="auto4"</TMPL_IF>>
    62 <td><span class="<TMPL_IF listb4>b4list</TMPL_IF>">Netblock:</span></td>
    63 <td colspan=2><input name=block4 value="<TMPL_VAR block4>" size=40></td>
     90<td><span class="<TMPL_VAR flag4>">Netblock:</span></td>
     91<td colspan="3"><input name=block4 value="<TMPL_VAR block4>" size=40></td>
    6492</tr>
    6593<tr<TMPL_IF autob4> class="auto4"</TMPL_IF>>
    6694<td><span class="<TMPL_IF listorg4>b4org</TMPL_IF>">Org/Person:</span></td>
    67 <td colspan=2><input name=org4 value="<TMPL_VAR org4 ESCAPE=HTML>" size=40></td>
     95<td colspan="3"><input name=org4 value="<TMPL_VAR org4 ESCAPE=HTML>" size=40></td>
    6896</tr>
    6997
Note: See TracChangeset for help on using the changeset viewer.