- Checking of contest time (and per-contestant exceptions)
- Keeping history and pruning status files
- Remember hashes
-- create tmp directory
+- multiple IP ranges per Access rule
- contest: override failed check
- contest: local history
+- contest: task status cache
- utilitka, kterou si po soutezi mohou vsichni pretestovat na souteznich datech
if [ -n "$REMOTE_SUBMIT" ] ; then
mkdir -p submit
- cp $H/submit/{contest,remote-submit,remote-status} submit/
+ cp $H/submit/{contest,remote-submit,remote-status} bin/
mkdir -p submit/lib/perl5/{MO,Sherlock}
cp $H/submit/MO/*.pm submit/lib/perl5/MO/
cp $H/submit/lib/perl5/Sherlock/Object.pm submit/lib/perl5/Sherlock/
mkdir -p solutions/$a
done
-mkdir tmp
+rm -rf tmp
+mkdir -p tmp
chown -R $REMOTE_SUBMIT_USER.$REMOTE_SUBMIT_GROUP $MO_ROOT/eval/submit
my $root = $ENV{"MO_ROOT"} or die "Environment variable MO_ROOT not set\n";
my $self = {
"Contest" => "CPSPC 2007",
- "Server" => "localhost:8888",
+ "Server" => "kamzice.ms.mff.cuni.cz:8888",
"Key" => "$mo/key.pem", # Keys and certificates
"Cert" => "$mo/cert.pem",
"CACert" => "$mo/ca-cert.pem",
Port 8888
# Maximum number of connections allowed
-MaxConn 4
+MaxConn 60
# Time in seconds after which inactive connections are closed (0=none)
SessionTimeout 300
PlainText 0
# Maximum number of connections per IP address allowed
+ MaxConn 16
+}
+
+Access {
+ IP 195.113.18.125
+ Admin 0
+ PlainText 0
+ MaxConn 2
+}
+
+Access {
+ IP 10.10.8.0/24
+ Admin 0
+ PlainText 0
MaxConn 2
}
# Competition tasks
Tasks {
- Task plans
- Task { Name world; OpenData 10; }
+# Task plans
+# Task { Name world; OpenData 10; }
+
+ Task necklace
+ Task nei
+ Task town
Extension c cpp pas
OpenDataExt out
BEGIN {
defined $ENV{"MO_ROOT"} or die "Please set MO_ROOT to the contest root directory first.\n";
}
-use lib $ENV{"MO_ROOT"} . "/submit";
+use lib $ENV{"MO_ROOT"} . "/lib/perl5";
use lib $ENV{"MO_ROOT"} . "/submit/lib/perl5";
use MO::Submit;
my ($go) = @_;
stop_refresh_timer();
refresh() if $go;
- $refresh_timer_id = Glib::Timeout->add($conn->{"RefreshTimer}, \&timed_refresh);
+ $refresh_timer_id = Glib::Timeout->add($conn->{"RefreshTimer"}, \&timed_refresh);
}
sub stop_refresh_timer() {
BEGIN {
defined $ENV{"MO_ROOT"} or die "Please set MO_ROOT to the contest root directory first.\n";
}
-use lib $ENV{"MO_ROOT"} . "/submit";
+use lib $ENV{"MO_ROOT"} . "/lib/perl5";
use lib $ENV{"MO_ROOT"} . "/submit/lib/perl5";
use MO::Submit;
defined $ENV{"MO_ROOT"} or die "Please set MO_ROOT to the contest root directory first.\n";
}
use lib $ENV{"MO_ROOT"} . "/submit";
-use lib $ENV{"MO_ROOT"} . "/submit/lib/perl5";
+use lib $ENV{"MO_ROOT"} . "/lib/perl5";
use MO::Submit;
use Sherlock::Object;