- Timestamp:
- 09/03/10 16:10:14 (14 years ago)
- Location:
- trunk/dnsbl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dnsbl/dnsbl.cgi
r25 r26 34 34 # multiple instances without having to duplicate the code. 35 35 # This file is a Perl fragment to be processed inline. 36 my $cfgname = $ENV{SERVER_NAME}.$ENV{ SCRIPT_NAME};36 my $cfgname = $ENV{SERVER_NAME}.$ENV{REQUEST_URI}; 37 37 $cfgname =~ s|[./-]|_|g; 38 $cfgname =~ s|_dnsbl_cgi||; 38 $cfgname =~ s|_dnsbl_cgi.+||; 39 $cfgname =~ s|_$||; 39 40 if (-e "/etc/dnsbl/$cfgname.conf") { 40 41 my $cfg = `cat /etc/dnsbl/$cfgname.conf`; … … 69 70 70 71 if ($webvar{page} eq 'report') { 72 my $dnsblsiteroot = $ENV{REQUEST_URI}; 73 $dnsblsiteroot =~ s|/dnsbl\.cgi\?.+|/|; 74 $page->param(dnsblsiteroot => $dnsblsiteroot); 75 71 76 $page->param(ip => $webvar{ip}); 72 77 my $count = $dnsbl->ipexists($webvar{ip}); … … 81 86 } 82 87 } elsif ($webvar{page} eq 'dbreport') { 88 my $dnsblsiteroot = $ENV{REQUEST_URI}; 89 $dnsblsiteroot =~ s|/dnsbl\.cgi\?.+|/|; 90 $page->param(dnsblsiteroot => $dnsblsiteroot); 91 83 92 my $err = ''; 84 93 my $count = $dnsbl->report($webvar{ip}); -
trunk/dnsbl/templates/dbreport.tmpl
r25 r26 15 15 <TMPL_IF block2><br>added level 2 block <TMPL_VAR NAME=block2></TMPL_IF> 16 16 <TMPL_IF err><hr><TMPL_VAR NAME=err></TMPL_IF> 17 <hr><a href=" /">Back</a>17 <hr><a href="<TMPL_VAR NAME=dnsblsiteroot>">Back</a> 18 18 <TMPL_IF NAME=browsebits> 19 19 <td valign=top> -
trunk/dnsbl/templates/report.tmpl
r25 r26 9 9 <table border=1><tr><td> 10 10 <TMPL_VAR NAME=ip><TMPL_IF NAME=nreports></td><td>(reported <TMPL_VAR NAME=nreports> time(s)) 11 </TMPL_IF></td><td><a href=" /">Back</a></td></tr>11 </TMPL_IF></td><td><a href="<TMPL_VAR NAME=dnsblsiteroot>">Back</a></td></tr> 12 12 <form action="dnsbl.cgi"> 13 13 <input type=hidden name=page value=dbreport>
Note:
See TracChangeset
for help on using the changeset viewer.