@EXPORT_OK = qw(header menubar idiot eidiot popurl table itable ntable
small_custview);
-@header = ( '-Expires' => '-1',
- '-Pragma' => 'no-cache',
- '-Cache-Control' => 'no-cache' );
-
=head1 NAME
FS::CGI - Subroutines for the web interface
<TITLE>
$title
</TITLE>
+ <META HTTP-Equiv="Cache-Control" Content="no-cache">
+ <META HTTP-Equiv="Pragma" Content="no-cache">
+ <META HTTP-Equiv="Expires" Content="0">
</HEAD>
<BODY BGCOLOR="#e8e8e8"$etc>
<FONT SIZE=7>
This is depriciated. Don't use it.
-Sends headers and an HTML error message.
+Sends an HTML error message.
=cut
sub idiot {
#warn "idiot depriciated";
my($error)=@_;
- my $cgi = &FS::UID::cgi();
+# my $cgi = &FS::UID::cgi();
# if ( $cgi->isa('CGI::Base') ) {
# no strict 'subs';
# &CGI::Base::SendHeaders;
# } else {
- print $cgi->header( @FS::CGI::header );
+# print $cgi->header( @FS::CGI::header );
# }
print <<END;
<HTML>
<HEAD>
<TITLE>Error processing your request</TITLE>
+ <META HTTP-Equiv="Cache-Control" Content="no-cache">
+ <META HTTP-Equiv="Pragma" Content="no-cache">
+ <META HTTP-Equiv="Expires" Content="0">
</HEAD>
<BODY>
<CENTER>
This is depriciated. Don't use it.
-Sends headers and an HTML error message, then exits.
+Sends an HTML error message, then exits.
=cut
$r->content_type('text/html');
#eorar
- # @FS::CGI::headers or some other way to set no-cache headers!!!
+ my $headers = $r->headers_out;
+ $headers->{'Pragma'} = $headers->{'Cache-control'} = 'no-cache';
+ #$r->no_cache(1);
+ $headers->{'Expires'} = '0';
my $status = $ah->handle_request($r);