+sub problem_mark_open{
+ my $r = shift;
+ $r->uri =~ m,/ct/([^/]*)/pb/([^.]*),;
+ $r->log_error("Marking open for contest $1 problem $2 and user " . $r->user);
+ local $Gruntmaster::Data::contest = $1;
+ my $problem = $2;
+ mark_open $problem, $r->user;
+}
+