version 1.366.2.1, 2007/06/20 21:08:15
|
version 1.368, 2007/06/19 20:14:31
|
Line 2047 sub crsenv {
|
Line 2047 sub crsenv {
|
# |
# |
# Deal with the emails |
# Deal with the emails |
if ($name =~ /\.email$/) { |
if ($name =~ /\.email$/) { |
foreach my $specifier (split(',',$value)) { |
my ($user,$domain) = split(/:/,$value); |
my ($user,$sections_or_groups)= |
if (!defined($user) || !defined($domain)) { |
($specifier=~/^([^\(]+)\(([^\)]+)\)/); |
$setoutput.= '<br /> <span class="LC_error">'. |
if (!$sections_or_groups) { |
&mt("Invalid email address specified, address must be of the form username:domain"). |
$user = $specifier; |
'</span>'; |
} |
undef($value); |
my ($name,$domain) = split(':',$user); |
} elsif (&Apache::lonnet::homeserver($user,$domain) eq 'no_host') { |
if (!defined($user) || !defined($domain)) { |
$setoutput.= '<br /> <span class="LC_error">'. |
$setoutput.= '<br /> <span class="LC_error">'. |
&mt("Invalid email address specified, user [_1] is unknown.",$value). |
&mt("Invalid email address specified, address must be of the form username:domain what was specified was ([_1])",$user). |
'</span>'; |
'</span>'; |
undef($value); |
undef($value); |
|
} elsif (&Apache::lonnet::homeserver($user,$domain) eq 'no_host') { |
|
$setoutput.= '<br /> <span class="LC_error">'. |
|
&mt("Invalid email address specified, user [_1] is unknown.",$name). |
|
'</span>'; |
|
undef($value); |
|
} |
|
} |
} |
} |
} |
# Get existing cloners |
# Get existing cloners |
Line 2256 sub crsenv {
|
Line 2249 sub crsenv {
|
'externalsyllabus' |
'externalsyllabus' |
=> '<b>'.&mt('URL of Syllabus (not using internal handler)').'</b>', |
=> '<b>'.&mt('URL of Syllabus (not using internal handler)').'</b>', |
'tthoptions' |
'tthoptions' |
=> '<b>'.&mt('Default set of options to pass to tth/m when converting tex').'</b>' |
=> '<b>'.&mt('Default set of options to pass to tth/m when converting tex').'</b>', |
|
|
|
'texengine' |
|
=> '<b>'.&mt('Force all students in the course to use a specific math rendering engine.').'</b><br />'.&mt('(Valid options are [_1].)','"tth", "jsMath", "mimetex"').'</b>', |
); |
); |
my @Display_Order = ('url','description','courseid','cloners','grading', |
my @Display_Order = ('url','description','courseid','cloners','grading', |
'externalsyllabus', |
'externalsyllabus', |
Line 2283 sub crsenv {
|
Line 2279 sub crsenv {
|
'default_enrollment_start_date', |
'default_enrollment_start_date', |
'default_enrollment_end_date', |
'default_enrollment_end_date', |
'tthoptions', |
'tthoptions', |
|
'texengine', |
'disablesigfigs', |
'disablesigfigs', |
'disableexampointprint', |
'disableexampointprint', |
'task_messages' |
'task_messages' |