aboutsummaryrefslogtreecommitdiff
path: root/src/fproblem.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-11-01 15:22:43 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-11-01 15:22:43 +0000
commitbdcc78997500afd66d78a5308a0bf2ce591c2030 (patch)
treebd03a4783a4df92b0f8f274063e7f061ffc4c443 /src/fproblem.php
parent9583d6ea7bb503fb0094751c5a871b3fb65de84a (diff)
downloadboca-bdcc78997500afd66d78a5308a0bf2ce591c2030.tar.gz
boca-bdcc78997500afd66d78a5308a0bf2ce591c2030.zip
no viewing of prob before main
Diffstat (limited to 'src/fproblem.php')
-rw-r--r--src/fproblem.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fproblem.php b/src/fproblem.php
index a66f62c..c14a61b 100644
--- a/src/fproblem.php
+++ b/src/fproblem.php
@@ -457,6 +457,8 @@ function DBGetProblems($contest,$showanyway=false) {
if ($b["currenttime"] < 0 && !$showanyway)
return array();
+ if(($c = DBContestInfo($contest)) == null) return array();
+ if (time() < $c['conteststartdate'] && !$showanyway) return array();
$c = DBConnect();
$sql = "select distinct p.problemnumber as number, p.problemname as problem, " .