X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fdo-registration.pl;h=6f7b9e3e0fb278472283a8490f581767581dbe69;hp=a81e48a95a581cd5afb1304ec8cc3d7a6a792924;hb=9b92b979d4647472f0beefae30c08855a3284966;hpb=35f6e765d69f966c8b4abc84f25bb0bfa3df9853 diff --git a/html/do-registration.pl b/html/do-registration.pl index a81e48a..6f7b9e3 100755 --- a/html/do-registration.pl +++ b/html/do-registration.pl @@ -4,6 +4,8 @@ use ccbs; use strict; use warnings; +ccbs::admin_only(); + my $dbh = ccbs::db_connect(); my $cgi = new CGI; @@ -14,6 +16,6 @@ my $paid = $cgi->param('paid'); $dbh->do('INSERT INTO tournamentparticipation (tournament, player, paid) VALUES (?,?,?)', undef, $tournament, $player, $paid); -ccbs::print_see_other('registration.pl?id=$tournament'); +ccbs::print_see_other('registration.pl?id=' . $tournament); $dbh->disconnect;