version 1.32, 2011/07/04 09:25:53
|
version 1.36, 2019/08/25 02:43:33
|
Line 138 sub tempdir {
|
Line 138 sub tempdir {
|
return $result; |
return $result; |
} |
} |
|
|
|
# Return the default engine to use to render content of <m></m> tags unless |
|
# a domain, course, or user specific value exists. |
|
|
|
sub texengine { |
|
return 'MathJax'; |
|
} |
|
|
|
# Return the Linux distro where this LON-CAPA instance is running |
|
|
|
sub distro { |
|
my $distro; |
|
if (open(PIPE,"/home/httpd/perl/distprobe |")) { |
|
$distro = <PIPE>; |
|
close(PIPE); |
|
} |
|
return $distro; |
|
} |
|
|
|
# Return the default password length. Can be overridden in a domain |
|
# by specifying a larger value (integer) in the domain configuration. |
|
|
|
sub passwd_min { |
|
return 7; |
|
} |
|
|
#---------------------------------------------------------------------- |
#---------------------------------------------------------------------- |
# |
# |
Line 175 sub unescape {
|
Line 199 sub unescape {
|
return $str; |
return $str; |
} |
} |
|
|
|
$LONCAPA::assess_re = qr{\.(problem|exam|quiz|assess|survey|form|library|task)$}; |
|
$LONCAPA::assess_page_re = qr{\.(problem|exam|quiz|assess|survey|form|library|task|page)$}; |
|
$LONCAPA::assess_page_seq_re = qr{\.(problem|exam|quiz|assess|survey|form|library|task|sequence|page)$}; |
|
$LONCAPA::parse_re = qr{\.(problem|exam|quiz|assess|survey|form|library|page|xml|html|htm|xhtml|xhtm)$}; |
|
$LONCAPA::parse_page_re = qr{\.(problem|exam|quiz|assess|survey|form|library|page|xml|html|htm|xhtml|xhtm|page)$}; |
|
$LONCAPA::parse_page_sty_re = qr{\.(problem|exam|quiz|assess|survey|form|library|page|xml|html|htm|xhtml|xhtm|page|sty)$}; |
|
|
|
|
$match_domain = $LONCAPA::domain_re = qr{[[:alnum:]\-.]+}; |
$match_domain = $LONCAPA::domain_re = qr{[[:alnum:]\-.]+}; |
$match_not_domain = $LONCAPA::not_domain_re = qr{[^[:alnum:]\-.]+}; |
$match_not_domain = $LONCAPA::not_domain_re = qr{[^[:alnum:]\-.]+}; |
sub clean_domain { |
sub clean_domain { |