--- loncom/LONCAPA.pm 2011/11/07 20:05:52 1.33 +++ loncom/LONCAPA.pm 2019/08/25 22:29:29 1.35.2.2 @@ -1,7 +1,7 @@ # The LearningOnline Network # Base routines # -# $Id: LONCAPA.pm,v 1.33 2011/11/07 20:05:52 www Exp $ +# $Id: LONCAPA.pm,v 1.35.2.2 2019/08/25 22:29:29 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -138,6 +138,30 @@ sub tempdir { return $result; } +# Return the default engine to use to render content of tags unless +# a domain, course, or user specific value exists. + +sub texengine { + return 'tth'; +} + +# Return the Linux distro where this LON-CAPA instance is running + +sub distro { + my $distro; + if (open(PIPE,"/home/httpd/perl/distprobe |")) { + $distro = ; + 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; +} #---------------------------------------------------------------------- #