| Line 61... |
Line 61... |
| 61 |
|
61 |
|
| 62 |
if ($FORM->{'SUB'} eq "Save") {
|
62 |
if ($FORM->{'SUB'} eq "Save") {
|
| 63 |
process_form ($FORM);
|
63 |
process_form ($FORM);
|
| 64 |
} elsif ($FORM->{'SUB'} eq "New User") {
|
64 |
} elsif ($FORM->{'SUB'} eq "New User") {
|
| - |
|
65 |
display_form ("New", "New User"); # blank form
|
| - |
|
66 |
} elsif ($FORM->{'SUB'} eq "Make Current") {
|
| - |
|
67 |
$dbh->do ("update official set last_login = now() where RCid = ?", undef, $FORM->{'RCid'}) unless $FORM->{'RCid'} !~ /^\d+$/;
|
| - |
|
68 |
logit ($FORM->{'RCid'}, "An Admin updated last_login time to current.");
|
| - |
|
69 |
# logit ($ORCUSER->{'RCid'}, "Updated user ($FORM->{'RCid'}) last_login time to current.");
|
| 65 |
display_form ("New", "New User"); # blank form
|
70 |
display_form ($FORM->{'RCid'}, "View");
|
| 66 |
} elsif ($FORM->{'RCid'}) {
|
71 |
} elsif ($FORM->{'RCid'}) {
|
| 67 |
display_form ($FORM->{'RCid'}, $FORM->{'SUB'});
|
72 |
display_form ($FORM->{'RCid'}, $FORM->{'SUB'});
|
| 68 |
} else {
|
73 |
} else {
|
| 69 |
$cookie_string = authenticate (1);
|
74 |
$cookie_string = authenticate (1);
|
| Line 306... |
Line 311... |
| 306 |
$F->{department} = convertDepartments ($F->{department});
|
311 |
$F->{department} = convertDepartments ($F->{department});
|
| 307 |
$F->{access} = $AccessLevel->{$F->{access}};
|
312 |
$F->{access} = $AccessLevel->{$F->{access}};
|
| 308 |
$F->{'password'} = "*******";
|
313 |
$F->{'password'} = "*******";
|
| 309 |
$F->{buttons} = $h->input ({ type=>"hidden", name=>"RCid", value=>$F->{'RCid'} }).$h->input ({ type=>"submit", name=>"submit", value=>"Edit" });
|
314 |
$F->{buttons} = $h->input ({ type=>"hidden", name=>"RCid", value=>$F->{'RCid'} }).$h->input ({ type=>"submit", name=>"submit", value=>"Edit" });
|
| Line -... |
Line 315... |
| - |
|
315 |
|
| - |
|
316 |
if ($ORCUSER->{access} >= RollerCon::SYSADMIN or ($ORCUSER->{department} and $ORCUSER->{department}->{VCI} > 2)) {
|
| - |
|
317 |
$F->{last_login} .= $h->input ({ type=>"submit", name=>"submit", value=>"Make Current" });
|
| - |
|
318 |
}
|
| - |
|
319 |
|
| 310 |
|
320 |
|
| 311 |
if ($ORCUSER->{access} > 2 or ($ORCUSER->{department} and $ORCUSER->{department}->{MVP} >= 2)) {
|
321 |
if ($ORCUSER->{access} > 2 or ($ORCUSER->{department} and $ORCUSER->{department}->{MVP} >= 2)) {
|
| 312 |
if($F->{MVPid}) {
|
322 |
if($F->{MVPid}) {
|
| 313 |
$F->{MVPid} .= ' ' . $h->button ({ onClick=>"window.open('update_mvp_ticket.pl?change=Delete&RCid=$F->{RCid}&MVPid=$F->{MVPid}','Change MVP Ticket','resizable,height=260,width=370'); return false;" }, "Delete Match");
|
323 |
$F->{MVPid} .= ' ' . $h->button ({ onClick=>"window.open('update_mvp_ticket.pl?change=Delete&RCid=$F->{RCid}&MVPid=$F->{MVPid}','Change MVP Ticket','resizable,height=260,width=370'); return false;" }, "Delete Match");
|
| 314 |
} else {
|
324 |
} else {
|