version 1.5, 2003/02/17 17:34:17
|
version 1.7, 2005/04/07 06:56:27
|
Line 45 use strict;
|
Line 45 use strict;
|
use Apache::File; |
use Apache::File; |
use Apache::lontexconvert; |
use Apache::lontexconvert; |
use Apache::Constants qw(:common); |
use Apache::Constants qw(:common); |
|
use Apache::lonnet; |
use tth; |
use tth; |
|
|
# ================================================================ Main Handler |
# ================================================================ Main Handler |
Line 56 sub handler {
|
Line 57 sub handler {
|
|
|
# ----------------------------------------------------------- Set document type |
# ----------------------------------------------------------- Set document type |
|
|
if ($ENV{'browser.mathml'}) { |
if ($env{'browser.mathml'}) { |
$r->content_type('text/xml'); |
&Apache::loncommon::content_type($r,'text/xml'); |
} else { |
} else { |
$r->content_type('text/html'); |
&Apache::loncommon::content_type($r,'text/html'); |
} |
} |
$r->send_http_header; |
$r->send_http_header; |
|
|