version 1.249, 2003/05/01 15:49:26
|
version 1.252, 2003/05/16 18:34:56
|
Line 561 sub inner_xmlparse {
|
Line 561 sub inner_xmlparse {
|
} |
} |
if (($token->[0] eq 'T') || ($token->[0] eq 'C') || ($token->[0] eq 'D') ) { |
if (($token->[0] eq 'T') || ($token->[0] eq 'C') || ($token->[0] eq 'D') ) { |
#Style file definitions should be correct |
#Style file definitions should be correct |
if ($target eq 'tex' && ($Apache::lonxml::usestyle) { |
if ($target eq 'tex' && ($Apache::lonxml::usestyle)) { |
$result=&latex_special_symbols($result,$stack,$parstack); |
$result=&latex_special_symbols($result,$stack,$parstack); |
} |
} |
} |
} |
Line 722 sub init_safespace {
|
Line 722 sub init_safespace {
|
$safeeval->permit("sort"); |
$safeeval->permit("sort"); |
$safeeval->deny(":base_io"); |
$safeeval->deny(":base_io"); |
$safehole->wrap(\&Apache::scripttag::xmlparse,$safeeval,'&xmlparse'); |
$safehole->wrap(\&Apache::scripttag::xmlparse,$safeeval,'&xmlparse'); |
|
$safehole->wrap(\&Apache::outputtags::multipart,$safeeval,'&multipart'); |
$safehole->wrap(\&Apache::lonnet::EXT,$safeeval,'&EXT'); |
$safehole->wrap(\&Apache::lonnet::EXT,$safeeval,'&EXT'); |
|
|
$safehole->wrap(\&Math::Cephes::asin,$safeeval,'&asin'); |
$safehole->wrap(\&Math::Cephes::asin,$safeeval,'&asin'); |
Line 1251 ENDNOTFOUND
|
Line 1252 ENDNOTFOUND
|
|
|
writeallows($request->uri); |
writeallows($request->uri); |
|
|
|
# If we're editing, show the filename of the resource in the frame's main |
|
# title |
|
if ($ENV{'form.editmode'}) { |
|
my $filename = $request->uri; |
|
# Everything after the last / |
|
$filename = substr($filename, rindex($filename, '/') + 1); |
|
$result = substr($result, 0, rindex($result, '</html>')); |
|
$result .= "<script>top.document.title = '$filename - LON-CAPA Construction Space';</script>"; |
|
$result .= "\n</html>\n"; |
|
} |
|
|
|
|
$request->print($result); |
$request->print($result); |
|
|
return OK; |
return OK; |