X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fdo-set-paid.pl;fp=html%2Fdo-set-paid.pl;h=7ac795d55c68c45af01cdccf605e129833bbe871;hp=0000000000000000000000000000000000000000;hb=581c820151f988c2470c03d56dbca071432180ca;hpb=4af8a5f91e1da7ae80a4c86f853c052c01db297f diff --git a/html/do-set-paid.pl b/html/do-set-paid.pl new file mode 100755 index 0000000..7ac795d --- /dev/null +++ b/html/do-set-paid.pl @@ -0,0 +1,19 @@ +#! /usr/bin/perl + +use ccbs; +use strict; +use warnings; + +my $dbh = ccbs::db_connect(); +my $cgi = new CGI; + +my $tournament = $cgi->param('tournament'); +my $player = $cgi->param('player'); +my $paid = $cgi->param('paid'); + +$dbh->do('UPDATE tournamentparticipation SET paid=? WHERE tournament=? AND player=?', + undef, $paid, $tournament, $player); + +ccbs::print_see_other('registration.pl?id=' . $tournament); + +$dbh->disconnect;