-
+
@@ -1554,21 +1544,19 @@ ENDERROR
# Inform the user the password has (not?) been changed
my $message;
if ($result =~ /^ok$/) {
- $message = &mt('The password for [_1] was successfully changed.',$user);
+ $message = &Apache::lonhtmlcommon::confirm_success(&mt('The password for [_1] was successfully changed.',$user));
if ($caller eq 'reset_by_email') {
$r->print($message.' ');
} else {
&print_main_menu($r, $message);
}
-# $r->print("".&mt('The password for [_1] was successfully changed',$user)."");
} else {
# error error: run in circles, scream and shout
- $message = &mt("The password for [_1] was not changed.",$user).' '.&mt('Please make sure your old password was entered correctly.');
+ $message = &Apache::lonhtmlcommon::confirm_success(
+ &mt("The password for [_1] was not changed.",$user).' '.&mt('Please make sure your old password was entered correctly.'),1);
unless ($caller eq 'reset_by_email') {
&print_main_menu($r, $message);
}
-# $r->print("".&mt("The password for [_1] was not changed",$user)."".
-# &mt('Please make sure your old password was entered correctly.'));
return 1;
}
return;
@@ -1698,19 +1686,16 @@ sub verify_and_change_discussion {
if (defined($env{'form.discmark'}) ) {
my $newmark = $env{'form.newmark'};
if ($newmark eq 'ondisp') {
- $message.=&mt('In discussions: new posts will be cease to be identified as "NEW" after display.').' ';
+ $message.=&Apache::lonhtmlcommon::confirm_success(&mt('In discussions: new posts will be cease to be identified as "NEW" after display.')).' ';
&Apache::lonnet::put('environment',{'discmarkread' => $newmark});
&Apache::lonnet::appenv({'environment.discmarkread' => $newmark});
} else {
- $message.=&mt('In discussions: posts will be identified as "NEW" until marked as read by the reader.').' ';
+ $message.=&Apache::lonhtmlcommon::confirm_success(&mt('In discussions: posts will be identified as "NEW" until marked as read by the reader.')).' ';
&Apache::lonnet::del('environment',['discmarkread']);
&Apache::lonnet::delenv('environment.discmarkread');
}
}
-# $r->print(< '/adm/preferences?action=changecourseinit',
text => 'Change Course Init. Pref.'});
$r->print(Apache::loncommon::start_page('Change Course Initialization Preference'));
@@ -1797,11 +1782,7 @@ sub verify_and_change_coursepage {
$refpage.'">'.$lt{'dasp'}.'';
}
}
-# $r->print(<
-#ENDVCSCREEN
- print_main_menu($r, $message);
+ &print_main_menu($r, &Apache::lonhtmlcommon::confirm_success($message));
}
sub print_main_menu {
@@ -1890,7 +1871,7 @@ my @menu=
},
{ categorytitle=>'Message Management',
items =>[
- { linktext => 'Messages & Notifications',
+ { linktext => 'Messages & Notifications',
url => '/adm/preferences?action=changemsgforward',
permission => 'F',
#help => 'Prefs_Messages',
@@ -1908,7 +1889,7 @@ my @menu=
},
{ categorytitle=>'Other',
items =>[
- { linktext => 'Register Response Devices ("Clickers")',
+ { linktext => 'Register Response Devices ("Clickers")',
url => '/adm/preferences?action=changeclicker',
permission => 'F',
#help => '',
@@ -2012,9 +1993,11 @@ sub handler {
Apache::lonhtmlcommon::clear_breadcrumbs();
Apache::lonhtmlcommon::add_breadcrumb
({href => '/adm/preferences',
- text => 'Set User Preferences'});
+ text => 'Set User Preferences',
+ help =>
+ 'Prefs_About_Me,Prefs_Language,Prefs_Screen_Name_Nickname,Change_Colors,Change_Password,Prefs_Messages,Change_Discussion_Display'});
if(!exists $env{'form.action'}) {
- &print_main_menu($r);
+ &print_main_menu($r);
}elsif($env{'form.action'} eq 'changepass'){
&passwordchanger($r);
}elsif($env{'form.action'} eq 'verify_and_change_pass'){
@@ -2072,8 +2055,8 @@ sub handler {
}elsif($env{'form.action'} eq 'verify_and_change_coursepage'){
&verify_and_change_coursepage($r);
}elsif($env{'form.action'} eq 'debugtoggle'){
- toggle_debug();
- print_main_menu($r);
+ &toggle_debug();
+ &print_main_menu($r);
}
return OK;
@@ -2354,7 +2337,8 @@ sub handler2 {
}));
}
- if ($env{'user.name'} =~ /^(albertel|fox|foxr|kortemey|korte|raeburn)$/) {
+ if (($env{'user.name'} =~ /^(albertel|fox|foxr|kortemey|korte|raeburn)$/)
+ && ($env{'user.domain'} =~/^(msu|gerd)$/)){
push (@Options,({ action => 'debugtoggle',
printmenu => 'yes',
subroutine => \&toggle_debug,
|