Changeset 36

Show
Ignore:
Timestamp:
02/18/05 11:34:59
Author:
brad
Message:

Changed test lookup feature so results are displayed without the configuration data. Breadcrumb at the top allows for navigation back to configuration screen.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugins/dnsbl/mt-dnsbl.cgi

    r35 r36  
    229229    } 
    230230 
     231    $app->add_breadcrumb('Test Results'); 
    231232    $app->show_form( test_ip => $orig_ip, test_results => \@log ); 
    232233} 
     
    259260    my $app = shift; 
    260261    my($file, $param) = @_; 
     262    $param->{sql} = 1 unless ref(MT::Object->driver) eq 'MT::ObjectDriver::DBM'; 
    261263    $app->SUPER::build_page($file, $param); 
    262264} 
  • trunk/plugins/dnsbl/tmpl/dnsbl.tmpl

    r34 r36  
    1515</script> 
    1616 
     17<TMPL_UNLESS TEST_IP> 
     18 
    1719<TMPL_IF NAME=MESSAGE> 
    1820  <p class="message"><TMPL_VAR NAME=MESSAGE></p> 
    1921</TMPL_IF> 
    2022 
    21 <p>The DNS Blacklist plugin allows you block comments and TrackBack pings from open proxies. The plugin checks the IP address of each submitted comment against your choice of IP blacklists of known open proxies.</p> 
     23<p> 
     24The DNS Blacklist plugin allows you block comments and TrackBack pings 
     25from open proxies. The plugin checks the IP address of each submitted 
     26comment against your choice of IP blacklists of known open proxies. 
     27</p> 
    2228 
    2329 
     
    3844    <input type="checkbox" name="allow_urlless" value="1" <TMPL_IF NAME=ALLOW_URLLESS>checked="checked"</TMPL_IF> /> Only filter comments with hyperlinks (approves comments with no discernable URL).<br /> 
    3945 
     46<TMPL_IF SQL> 
    4047    <input type="checkbox" name="allow_priorurls" value="1" <TMPL_IF NAME=ALLOW_PRIORURLS>checked="checked"</TMPL_IF> /> Allow comments whose URL matches a previously approved commenter URL (only takes effect if no URLs are present in comment body).<br /> 
    4148 
     49</TMPL_IF> 
    4250    <input type="checkbox" name="pingip_check" value="1" <TMPL_IF NAME=PINGIP_CHECK>checked="checked"</TMPL_IF> /> Block TrackBack pings whose IP does not match the IP address for the source URL. 
    4351 
     
    121129</form> 
    122130 
     131</TMPL_UNLESS> 
    123132 
    124133<form method="post"> 
     
    150159</form> 
    151160 
    152  
    153161</div> 
    154162