File:  [LON-CAPA] / rat / lonwrapper.pm
Revision 1.1: download - view: text, annotated - select for diffs
Thu Jul 5 13:31:53 2001 UTC (22 years, 8 months ago) by www
Branches: MAIN
CVS tags: HEAD
Handler to incorporate external and binary resources

# The LearningOnline Network with CAPA
# Wrapper for external and binary files as standalone resources
#
# (Edit Handler for RAT Maps
# (TeX Content Handler
#
# 05/29/00,05/30 Gerd Kortemeyer)
# 7/1,6/30 Gerd Kortemeyer)
#
# 7/5 Gerd Kortemeyer

package Apache::lonwrapper;

use strict;
use Apache::Constants qw(:common);
use Apache::lonnet;

# ================================================================ Main Handler

sub handler {
  my $r=shift;
  $r->content_type('text/html');
  $r->send_http_header;

  return OK if $r->header_only;

  my $url=$r->uri;

  $r->print(<<ENDDOCUMENT);
<html>
<head>
</head>
<frameset rows="*" border=0>
<frame src="$url">
</frameset>
</html>
ENDDOCUMENT
  return OK;
}

1;
__END__








FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>