diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-29 12:28:36 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-29 12:28:36 +0000 |
| commit | 8e2300c6b8e672e36e53868a9bf5f72d903306b7 (patch) | |
| tree | b5a856c951966361904aba1e58d2372368b422ad /src/private | |
| parent | 300088f6092c10d5c44059371a3c104f1d103936 (diff) | |
| download | boca-8e2300c6b8e672e36e53868a9bf5f72d903306b7.tar.gz boca-8e2300c6b8e672e36e53868a9bf5f72d903306b7.zip | |
lines to test the system
Diffstat (limited to 'src/private')
| -rwxr-xr-x | src/private/autojudging.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/private/autojudging.php b/src/private/autojudging.php index afe0d05..06d7006 100755 --- a/src/private/autojudging.php +++ b/src/private/autojudging.php @@ -258,6 +258,14 @@ while(42) { file_put_contents($cache . $ds . $run["inputoid"] . "." . $run["inputname"], encryptData($s,$key)); } + // just to test the system, returning yes to every single submission... + if(false) { + @file_put_contents('/tmp/boca.empty','this empty file is for testing'); + DBUpdateRunAutojudging($contest, $site, $number, $ip, 'Always yes', '/tmp/boca.empty', '/tmp/boca.empty', 1); + echo "Autojudging answered 'Always yes' (contest=$contest, site=$site, run=$number)\n"; + continue; + } + if(!isset($limits[$basename][$run["extension"]][0]) || !is_numeric($limits[$basename][$run["extension"]][0]) || !isset($limits[$basename][$run["extension"]][1]) || !is_numeric($limits[$basename][$run["extension"]][1]) || !isset($limits[$basename][$run["extension"]][2]) || !is_numeric($limits[$basename][$run["extension"]][2]) || |