version 1.246, 2025/03/05 02:27:00
|
version 1.247, 2025/03/05 05:24:42
|
Line 491 sub screennamechanger {
|
Line 491 sub screennamechanger {
|
text => 'Change Screen Name'}); |
text => 'Change Screen Name'}); |
$r->print(Apache::loncommon::start_page('Personal Data')); |
$r->print(Apache::loncommon::start_page('Personal Data')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Change Screen Name')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Change Screen Name')); |
$r->print('<p>' |
$r->print('<div class="LC_landmark" role="main"><p>' |
.&mt('Change the name that is displayed in your posts.') |
.&mt('Change the name that is displayed in your posts.') |
.'</p>' |
.'</p>' |
); |
); |
$r->print('<form name="prefs" action="/adm/preferences" method="post">' |
$r->print('<form name="prefs" action="/adm/preferences" method="post">' |
.'<input type="hidden" name="action" value="verify_and_change_screenname" />' |
.'<input type="hidden" name="action" value="verify_and_change_screenname" />' |
.&Apache::lonhtmlcommon::start_pick_box() |
.&Apache::lonhtmlcommon::start_pick_box() |
.&Apache::lonhtmlcommon::row_title(&mt('Screenname').' '.&mt('(shown if you post anonymously)')) |
.&Apache::lonhtmlcommon::row_title('<label for="screenname">'.&mt('Screenname').'</label> '.&mt('(shown if you post anonymously)')) |
.'<input type="text" size="20" value="'.$screenname.'" name="screenname" />' |
.'<input type="text" size="20" value="'.$screenname.'" name="screenname" id="screenname" />' |
.&Apache::lonhtmlcommon::row_closure() |
.&Apache::lonhtmlcommon::row_closure() |
.&Apache::lonhtmlcommon::row_title(&mt('Nickname').' '.&mt('(shown if you post non-anonymously)')) |
.&Apache::lonhtmlcommon::row_title('<label for="nickname">'.&mt('Nickname').'</label> '.&mt('(shown if you post non-anonymously)')) |
.'<input type="text" size="20" value="'.$nickname.'" name="nickname" />' |
.'<input type="text" size="20" value="'.$nickname.'" name="nickname" id="nickname" />' |
.&Apache::lonhtmlcommon::row_closure() |
.&Apache::lonhtmlcommon::row_closure() |
.&Apache::lonhtmlcommon::row_title() |
.&Apache::lonhtmlcommon::row_title('<span class="LC_visually_hidden">'.&mt('Submit').':</span>','','','',1) |
.'<input type="submit" value="'.&mt('Save').'" />' |
.'<input type="submit" value="'.&mt('Save').'" />' |
.&Apache::lonhtmlcommon::row_closure(1) |
.&Apache::lonhtmlcommon::row_closure(1) |
.&Apache::lonhtmlcommon::end_pick_box() |
.&Apache::lonhtmlcommon::end_pick_box() |
.'</form>' |
.'</form></div>' |
); |
); |
} |
} |
|
|
Line 1192 sub colorschanger {
|
Line 1192 sub colorschanger {
|
my $resetbuttondesc = &mt('Reset All Colors to Default'); |
my $resetbuttondesc = &mt('Reset All Colors to Default'); |
my $colorchooser=&Apache::lonhtmlcommon::color_picker(); |
my $colorchooser=&Apache::lonhtmlcommon::color_picker(); |
$r->print('<script type="text/javascript" language="JavaScript"> |
$r->print('<script type="text/javascript" language="JavaScript"> |
// <![CDATA[' ."\n".' . $colorchooser . '."\n". ' |
// <![CDATA[' ."\n". $colorchooser . "\n". ' |
// ]]> |
// ]]> |
</script> |
</script> |
'); |
'); |
Line 1276 sub passwordchanger {
|
Line 1276 sub passwordchanger {
|
text => 'Change Password'}); |
text => 'Change Password'}); |
unless ($caller eq 'reset_by_email') { |
unless ($caller eq 'reset_by_email') { |
$r->print(Apache::loncommon::start_page('Personal Data')); |
$r->print(Apache::loncommon::start_page('Personal Data')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Change Password')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Change Password'). |
|
'<div class="LC_landmark" role="main">'); |
} |
} |
if ((!defined($caller)) || ($caller eq 'preferences')) { |
if ((!defined($caller)) || ($caller eq 'preferences')) { |
$user = $env{'user.name'}; |
$user = $env{'user.name'}; |
Line 1375 sub passwordchanger {
|
Line 1376 sub passwordchanger {
|
$r->print(<<ENDFORM); |
$r->print(<<ENDFORM); |
$errormessage |
$errormessage |
|
|
<p> |
<p></p> |
<!-- We separate the forms into 'server' and 'client' in order to |
<!-- We separate the forms into 'server' and 'client' in order to |
ensure that unencrypted passwords will not be sent out by a |
ensure that unencrypted passwords will not be sent out by a |
crappy browser --> |
crappy browser --> |
Line 1562 sub client_form {
|
Line 1563 sub client_form {
|
} else { |
} else { |
$output .= &Apache::lonhtmlcommon::row_title( |
$output .= &Apache::lonhtmlcommon::row_title( |
'<label for="currentpass">'.$lt{'currentpass'}.'</label>') |
'<label for="currentpass">'.$lt{'currentpass'}.'</label>') |
.'<input type="password" name="currentpass" size="20"/>' |
.'<input type="password" name="currentpass" id="currentpass" size="20" />' |
.&Apache::lonhtmlcommon::row_closure(); |
.&Apache::lonhtmlcommon::row_closure(); |
} |
} |
$output .= &Apache::lonhtmlcommon::row_title( |
$output .= &Apache::lonhtmlcommon::row_title( |
'<label for="newpass_1">'.$lt{'newpass'}.'</label>') |
'<label for="newpass_1">'.$lt{'newpass'}.'</label>') |
.'<input type="password" name="newpass_1" size="20" />' |
.'<input type="password" name="newpass_1" id="newpass_1" size="20" />' |
.&Apache::lonhtmlcommon::row_closure() |
.&Apache::lonhtmlcommon::row_closure() |
.&Apache::lonhtmlcommon::row_title( |
.&Apache::lonhtmlcommon::row_title( |
'<label for="newpass_2">'.$lt{'confirmpass'}.'</label>') |
'<label for="newpass_2">'.$lt{'confirmpass'}.'</label>') |
.'<input type="password" name="newpass_2" size="20" />' |
.'<input type="password" name="newpass_2" id="newpass_2" size="20" />' |
.&Apache::lonhtmlcommon::row_closure(1) |
.&Apache::lonhtmlcommon::row_closure(1) |
.&Apache::lonhtmlcommon::end_pick_box(); |
.&Apache::lonhtmlcommon::end_pick_box(); |
if ($caller eq 'reset_by_email') { |
if ($caller eq 'reset_by_email') { |
Line 1586 sub client_form {
|
Line 1587 sub client_form {
|
<input type="hidden" name="ukey_npass2" value="$hexkey->{'ukey_npass2'}" /> |
<input type="hidden" name="ukey_npass2" value="$hexkey->{'ukey_npass2'}" /> |
<input type="hidden" name="lkey_npass2" value="$hexkey->{'lkey_npass2'}" /> |
<input type="hidden" name="lkey_npass2" value="$hexkey->{'lkey_npass2'}" /> |
</form> |
</form> |
</p> |
|
|; |
|; |
return $output; |
return $output; |
} |
} |
Line 2618 my @menu=
|
Line 2618 my @menu=
|
permission => $permissions{'aboutme'}, |
permission => $permissions{'aboutme'}, |
#help => 'Prefs_About_Me', |
#help => 'Prefs_About_Me', |
icon => 'system-users.png', |
icon => 'system-users.png', |
|
alttext => 'About Me Icon', |
linktitle => 'Edit information about yourself that should be displayed on your public profile.' |
linktitle => 'Edit information about yourself that should be displayed on your public profile.' |
}, |
}, |
{ linktext => 'Screen Name', |
{ linktext => 'Screen Name', |
Line 2625 my @menu=
|
Line 2626 my @menu=
|
permission => 'F', |
permission => 'F', |
#help => 'Prefs_Screen_Name_Nickname', |
#help => 'Prefs_Screen_Name_Nickname', |
icon => 'preferences-desktop-font.png', |
icon => 'preferences-desktop-font.png', |
|
alttext => 'Nickname Icon', |
linktitle => 'Change the name that is displayed in your posts.' |
linktitle => 'Change the name that is displayed in your posts.' |
}, |
}, |
] |
] |
Line 2636 my @menu=
|
Line 2638 my @menu=
|
permission => 'F', |
permission => 'F', |
#help => 'Prefs_Language', |
#help => 'Prefs_Language', |
icon => 'preferences-desktop-locale.png', |
icon => 'preferences-desktop-locale.png', |
|
alttext => 'Language Icon', |
linktitle => 'Choose the default language for this user.' |
linktitle => 'Choose the default language for this user.' |
}, |
}, |
{ linktext => $role.' Page', |
{ linktext => $role.' Page', |
Line 2643 my @menu=
|
Line 2646 my @menu=
|
permission => 'F', |
permission => 'F', |
#help => '', |
#help => '', |
icon => 'role_hotlist.png', |
icon => 'role_hotlist.png', |
|
alttext => 'Switch Role Icon', |
linktitle => 'Configure the roles hotlist.' |
linktitle => 'Configure the roles hotlist.' |
}, |
}, |
{ linktext => 'Math display settings', |
{ linktext => 'Math display settings', |
Line 2650 my @menu=
|
Line 2654 my @menu=
|
permission => 'F', |
permission => 'F', |
#help => '', |
#help => '', |
icon => 'dismath.png', |
icon => 'dismath.png', |
|
alttext => 'Math Icon', |
linktitle => 'Change how math is displayed.' |
linktitle => 'Change how math is displayed.' |
}, |
}, |
{ |
{ |
Line 2658 my @menu=
|
Line 2663 my @menu=
|
permission => $permissions{'timezone'}, |
permission => $permissions{'timezone'}, |
#help => '', |
#help => '', |
icon => 'timezone.png', |
icon => 'timezone.png', |
|
alttext => 'Clock Icon', |
linktitle => 'Set your time zone.', |
linktitle => 'Set your time zone.', |
} |
} |
] |
] |
Line 2669 my @menu=
|
Line 2675 my @menu=
|
permission => 'F', |
permission => 'F', |
#help => 'Change_Colors', |
#help => 'Change_Colors', |
icon => 'preferences-desktop-theme.png', |
icon => 'preferences-desktop-theme.png', |
|
alttext => 'Colors Icon', |
linktitle => 'Change LON-CAPA default colors.' |
linktitle => 'Change LON-CAPA default colors.' |
}, |
}, |
{ linktext => 'Menu Display', |
{ linktext => 'Menu Display', |
Line 2676 my @menu=
|
Line 2683 my @menu=
|
permission => 'F', |
permission => 'F', |
#help => '', |
#help => '', |
icon => 'preferences-system-windows.png', |
icon => 'preferences-system-windows.png', |
|
alttext => 'Menus Icon', |
linktitle => 'Change whether the menus are displayed with icons or icons and text.' |
linktitle => 'Change whether the menus are displayed with icons or icons and text.' |
} |
} |
] |
] |
Line 2687 my @menu=
|
Line 2695 my @menu=
|
permission => 'F', |
permission => 'F', |
#help => 'Prefs_Messages', |
#help => 'Prefs_Messages', |
icon => 'mail-reply-all.png', |
icon => 'mail-reply-all.png', |
|
alttext => 'Notifications Icon', |
linktitle => 'Change messageforwarding or notifications settings.' |
linktitle => 'Change messageforwarding or notifications settings.' |
}, |
}, |
{ linktext => 'Discussion Display', |
{ linktext => 'Discussion Display', |
Line 2694 my @menu=
|
Line 2703 my @menu=
|
permission => 'F', |
permission => 'F', |
#help => 'Change_Discussion_Display', |
#help => 'Change_Discussion_Display', |
icon => 'chat.png', |
icon => 'chat.png', |
|
alttext => 'Discussions Icon', |
linktitle => 'Set display preferences for discussion posts for both discussion boards and individual resources in all your courses.' |
linktitle => 'Set display preferences for discussion posts for both discussion boards and individual resources in all your courses.' |
}, |
}, |
] |
] |
Line 2708 if (keys(%author_coauthor_roles) > 0) {
|
Line 2718 if (keys(%author_coauthor_roles) > 0) {
|
url => '/adm/preferences?action=authorsettings', |
url => '/adm/preferences?action=authorsettings', |
permission => 'F', |
permission => 'F', |
icon => 'codemirror.png', |
icon => 'codemirror.png', |
|
alttext => 'Coding Icon', |
linktitle => 'Settings for your authoring space.', |
linktitle => 'Settings for your authoring space.', |
}, |
}, |
] |
] |
Line 2720 if (keys(%author_coauthor_roles) > 0) {
|
Line 2731 if (keys(%author_coauthor_roles) > 0) {
|
permission => 'F', |
permission => 'F', |
#help => '', |
#help => '', |
icon => 'system-lock-screen.png', |
icon => 'system-lock-screen.png', |
|
alttext => 'Lock Icon', |
linktitle => 'Restrict domain coordinator access.', |
linktitle => 'Restrict domain coordinator access.', |
}); |
}); |
} |
} |
Line 2732 push(@menu,
|
Line 2744 push(@menu,
|
permission => 'F', |
permission => 'F', |
#help => '', |
#help => '', |
icon => 'network-workgroup.png', |
icon => 'network-workgroup.png', |
|
alttext => 'Clicker Icon', |
linktitle => 'Register your clicker.' |
linktitle => 'Register your clicker.' |
}, |
}, |
] |
] |
Line 2745 push(@menu,
|
Line 2758 push(@menu,
|
permission => 'F', |
permission => 'F', |
#help => 'Change_Password', |
#help => 'Change_Password', |
icon => 'emblem-readonly.png', |
icon => 'emblem-readonly.png', |
|
alttext => 'Secure Icon', |
linktitle => 'Change your password.', |
linktitle => 'Change your password.', |
}); |
}); |
} |
} |
Line 2756 push(@menu,
|
Line 2770 push(@menu,
|
permission => 'F', |
permission => 'F', |
#help => '', |
#help => '', |
icon => 'system-lock-screen.png', |
icon => 'system-lock-screen.png', |
|
alttext => 'Screen Lock Icon', |
linktitle => 'Allow/disallow propagation of name changes from institutional directory service', |
linktitle => 'Allow/disallow propagation of name changes from institutional directory service', |
}); |
}); |
} |
} |
Line 2769 push(@{ $menu[-1]->{items} }, {
|
Line 2784 push(@{ $menu[-1]->{items} }, {
|
permission => 'F', |
permission => 'F', |
#help => '', |
#help => '', |
icon => 'course_ini.png', |
icon => 'course_ini.png', |
|
alttext => 'Course Launch Icon', |
linktitle => 'Set the default page to be displayed when you select a course role.', |
linktitle => 'Set the default page to be displayed when you select a course role.', |
}); |
}); |
|
|
Line 2781 push(@{ $menu[-1]->{items} }, {
|
Line 2797 push(@{ $menu[-1]->{items} }, {
|
permission => 'F', |
permission => 'F', |
#help => '', |
#help => '', |
icon => 'blog.png', |
icon => 'blog.png', |
|
alttext => 'Debugging Icon', |
linktitle => 'Toggle Debug Messages.', |
linktitle => 'Toggle Debug Messages.', |
}); |
}); |
} |
} |
|
|
$r->print(&Apache::loncommon::start_page('My Space')); |
$r->print(&Apache::loncommon::start_page('My Space')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Change Preferences')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Change Preferences')); |
$r->print($message); |
$r->print('<div class="LC_landmark" role="main">'."\n".$message); |
$r->print(Apache::lonhtmlcommon::generate_menu(@menu)); |
$r->print(Apache::lonhtmlcommon::generate_menu(@menu)."\n".'</div>'); |
$r->print(Apache::loncommon::end_page()); |
$r->print(Apache::loncommon::end_page()); |
} |
} |
|
|
Line 2841 sub handler {
|
Line 2858 sub handler {
|
$ended = 1; |
$ended = 1; |
}elsif($env{'form.action'} eq 'changepass'){ |
}elsif($env{'form.action'} eq 'changepass'){ |
&passwordchanger($r); |
&passwordchanger($r); |
|
$r->print('</div>'); |
}elsif($env{'form.action'} eq 'verify_and_change_pass'){ |
}elsif($env{'form.action'} eq 'verify_and_change_pass'){ |
&verify_and_change_password($r,'preferences','','','',\$ended); |
&verify_and_change_password($r,'preferences','','','',\$ended); |
}elsif($env{'form.action'} eq 'changescreenname'){ |
}elsif($env{'form.action'} eq 'changescreenname'){ |