Revert change to wrong branch.
[ccbs] / html / do-unregister.pl
1 #! /usr/bin/perl
2
3 use ccbs;
4 use strict;
5 use warnings;
6
7 ccbs::admin_only();
8
9 my $dbh = ccbs::db_connect();
10 my $cgi = new CGI;
11
12 my $tournament = $cgi->param('tournament');
13 my $player = $cgi->param('player');
14
15 $dbh->do('DELETE FROM tournamentparticipation WHERE tournament=? AND player=?',
16         undef, $tournament, $player);
17
18 ccbs::print_see_other('registration.pl?id=' . $tournament);
19
20 $dbh->disconnect;