Changeset 449 for branches/htmlform/cgi-bin/search.cgi
- Timestamp:
- 07/27/10 17:06:18 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/htmlform/cgi-bin/search.cgi
r447 r449 15 15 use CGI::Carp qw(fatalsToBrowser); 16 16 use CGI::Simple; 17 use HTML::Template; 17 18 use DBI; 18 19 use CommonWeb qw(:ALL); … … 53 54 # Global variables 54 55 my $RESULTS_PER_PAGE = 25; 56 ##fixme - need to autofill this somehow 57 $ENV{HTML_TEMPLATE_ROOT} = '/home/kdeugau/dev/ipdb/trunk/templates'; 55 58 56 59 # Set up the CGI object... … … 298 301 # Shut down and clean up. 299 302 finish($ip_dbh); 300 printFooter; 303 304 # We print the footer here, so we don't have to do it elsewhere. 305 my $footer = HTML::Template->new(filename => "footer.tmpl"); 306 # include the admin tools link in the output? 307 $footer->param(adminlink => ($IPDBacl{$authuser} =~ /A/)); 308 309 print $footer->output; 310 301 311 # We shouldn't need to directly execute any code below here; it's all subroutines. 302 312 exit 0;
Note:
See TracChangeset
for help on using the changeset viewer.