source: branches/htmlform/cgi-bin/CommonWeb.pm@ 502

Last change on this file since 502 was 502, checked in by Kris Deugau, 13 years ago

/branches/htmlform

Remove stale, unused cleanInput(), desanitize() subs in CommonWeb.pm
Quickly hack up search.cgi to remove printAndExit() from CommonWeb.pm
See #15, #26

File size: 686 bytes
Line 
1# ipdb/cgi-bin/CommonWeb.pm
2###
3# SVN revision info
4# $Date$
5# SVN revision $Rev$
6# Last update by $Author$
7###
8
9package CommonWeb;
10
11use strict;
12use warnings;
13use Exporter;
14use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
15
16$VERSION = 1.00;
17@ISA = qw(Exporter);
18@EXPORT_OK = qw( &printError );
19
20@EXPORT = (); #export nothing by default
21%EXPORT_TAGS = ( ALL => [qw( &printError )],
22 lean => [qw( &printError )]
23 );
24
25
26sub printError($)
27{
28 my $errStr = $_[0];
29 print qq(
30 <center><p class="regular"> $errStr </p>
31 <input type="button" value="Back" onclick="history.go(-1)">
32 </center>
33 );
34}
35
36# indicate that the module loaded okay.
371;
Note: See TracBrowser for help on using the repository browser.