X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fdo-add-tournament.pl;h=50efd381a64dc90342aaa5ef83e03d3dcbcba8f0;hp=02d5e167b7713d946bfac3787ba6a8a4c8bef004;hb=bced2892820afbfdd4ead08712e1702fe88ee75d;hpb=24542029c8e4d89a755bf6882e6fbd49df6568fd diff --git a/html/do-add-tournament.pl b/html/do-add-tournament.pl index 02d5e16..50efd38 100755 --- a/html/do-add-tournament.pl +++ b/html/do-add-tournament.pl @@ -4,6 +4,8 @@ use ccbs; use strict; use warnings; +ccbs::admin_only(); + my $dbh = ccbs::db_connect(); my $cgi = new CGI; @@ -16,7 +18,7 @@ my $machine = $cgi->param('machine'); my $scoringsystem = $cgi->param('scoringsystem'); if ($date !~ /^ ( \d{4} - \d\d - \d\d ) $/x) { - ccbs::user_error("Ugyldig dato (må være på YYYY-MM-DD)."); + ccbs::user_error("Ugyldig dato (må være på formen YYYY-MM-DD)."); } $dbh->do('INSERT INTO tournaments (season, tournamentname, country, location, date, machine, scoringsystem) VALUES (?,?,?,?,?,?,?)',