<& '/widgets/wrappers/sharky/table_top.mc', caption => $lang->maketext('Please log in:') &> <& '/widgets/profile/text.mc', disp => $lang->maketext('Username'), name => 'login|username' &> <& '/widgets/profile/password.mc', disp => $lang->maketext('Password'), name => 'login|password' &> % if (SSL_ENABLE && ! ALWAYS_USE_SSL) { <& '/widgets/profile/checkbox.mc', disp => $lang->maketext('Use SSL'), name => 'login|ssl', value => 1, useTable => 1, checked => $state eq 'ssl' ? 1 : 0 &> % } % if (SSL_ENABLE && ALWAYS_USE_SSL) { <& '/widgets/profile/hidden.mc', disp => $lang->maketext('Use SSL'), name => 'login|ssl', value => 1 &> % } <& '/widgets/profile/button.mc', disp => $lang->maketext('Log in'), widget => 'login', cb => 'login_cb', button => 'login' &> <& /widgets/wrappers/sharky/table_bottom.mc &> <%args> $widget <%init>; my $state = get_state_name($widget) || 'nossl';