6 use POSIX qw
/strftime/;
8 $SIG{__WARN__
} = sub { cluck
$_[0] };
10 my $ctx = ASR
::Ladder
->new;
12 $ctx->header('Adding user');
14 if ($ctx->param('pwd') ne $ctx->{adminpw
}) {
15 print $ctx->p('Invalid password.');
20 if ($ctx->db_do('INSERT INTO player SET nick=?', {}, $ctx->param('nick'))) {
21 print $ctx->p('KGS nick '.$ctx->param('nick').' added.')
23 print $ctx->p('Insert failed.');