version 1.21, 2001/12/25 21:57:54
|
version 1.24, 2002/01/30 17:40:39
|
Line 30
|
Line 30
|
# 12/11,12/12,12/17 Scott Harrison |
# 12/11,12/12,12/17 Scott Harrison |
# 12/21 Gerd Kortemeyer |
# 12/21 Gerd Kortemeyer |
# 12/21 Scott Harrison |
# 12/21 Scott Harrison |
# 12/25 Gerd Kortemeyer |
# 12/25,12/28 Gerd Kortemeyer |
|
# YEAR=2002 |
|
# 1/4 Gerd Kortemeyer |
|
|
# Makes a table out of the previous attempts |
# Makes a table out of the previous attempts |
# Inputs result_from_symbread, user, domain, course_id |
# Inputs result_from_symbread, user, domain, course_id |
Line 39
|
Line 41
|
package Apache::loncommon; |
package Apache::loncommon; |
|
|
use strict; |
use strict; |
|
use Apache::lonnet(); |
use POSIX qw(strftime); |
use POSIX qw(strftime); |
use Apache::Constants qw(:common); |
use Apache::Constants qw(:common); |
use Apache::lonmsg(); |
use Apache::lonmsg(); |
|
|
|
my $readit; |
|
|
# ----------------------------------------------- Filetypes/Languages/Copyright |
# ----------------------------------------------- Filetypes/Languages/Copyright |
my %language; |
my %language; |
my %cprtag; |
my %cprtag; |
Line 61 my $theavecount;
|
Line 66 my $theavecount;
|
|
|
# ----------------------------------------------------------------------- BEGIN |
# ----------------------------------------------------------------------- BEGIN |
BEGIN { |
BEGIN { |
|
|
|
unless ($readit) { |
# ------------------------------------------------------------------- languages |
# ------------------------------------------------------------------- languages |
{ |
{ |
my $fh=Apache::File->new($Apache::lonnet::perlvar{'lonTabDir'}. |
my $fh=Apache::File->new($Apache::lonnet::perlvar{'lonTabDir'}. |
Line 132 BEGIN {
|
Line 139 BEGIN {
|
} |
} |
$theavecount=$thetotalcount/$#thecount; |
$theavecount=$thetotalcount/$#thecount; |
} |
} |
|
&Apache::lonnet::logthis( |
|
"<font color=yellow>INFO: Read file types and thesaurus</font>"); |
|
$readit=1; |
|
} |
|
|
} |
} |
# ============================================================= END BEGIN BLOCK |
# ============================================================= END BEGIN BLOCK |
|
|
Line 356 sub get_unprocessed_cgi {
|
Line 368 sub get_unprocessed_cgi {
|
} |
} |
|
|
sub cacheheader { |
sub cacheheader { |
|
unless ($ENV{'request.method'} eq 'GET') { return ''; } |
my $date=strftime("%a, %d %b %Y %H:%M:%S GMT",gmtime); |
my $date=strftime("%a, %d %b %Y %H:%M:%S GMT",gmtime); |
my $output .='<meta HTTP-EQUIV="Expires" CONTENT="'.$date.'" /> |
my $output .='<meta HTTP-EQUIV="Expires" CONTENT="'.$date.'" /> |
<meta HTTP-EQUIV="Cache-control" CONTENT="no-cache" /> |
<meta HTTP-EQUIV="Cache-control" CONTENT="no-cache" /> |
Line 365 sub cacheheader {
|
Line 378 sub cacheheader {
|
|
|
sub no_cache { |
sub no_cache { |
my ($r) = @_; |
my ($r) = @_; |
my $date=strftime("%a, %d %b %Y %H:%M:%S GMT",gmtime); |
unless ($ENV{'request.method'} eq 'GET') { return ''; } |
|
#my $date=strftime("%a, %d %b %Y %H:%M:%S GMT",gmtime); |
$r->no_cache(1); |
$r->no_cache(1); |
$r->header_out("Pragma" => "no-cache"); |
$r->header_out("Pragma" => "no-cache"); |
$r->header_out("Expires" => $date); |
#$r->header_out("Expires" => $date); |
} |
} |
1; |
1; |
__END__; |
__END__; |