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