From 63abd1225d702f52ae001e8a617206c70b7b8be6 Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Wed, 25 Oct 2017 11:16:26 +0100 Subject: do not propagate colors --- src/admin/problem.php | 8 +++++--- src/fextdata.php | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/admin/problem.php b/src/admin/problem.php index b8a71de..39ce953 100644 --- a/src/admin/problem.php +++ b/src/admin/problem.php @@ -268,9 +268,11 @@ for ($i=0; $i" . $prob[$i]["number"]; } echo "\n"; - echo " "; - echo ""; - echo "\n"; + echo ""; + echo " " . $prob[$i]["name"] . "\n"; + //echo " "; + //echo ""; + //echo "\n"; } else { echo " " . $prob[$i]["number"] . " (fake)\n"; echo " " . $prob[$i]["name"] . "\n"; diff --git a/src/fextdata.php b/src/fextdata.php index 8dfb134..f78c7f9 100644 --- a/src/fextdata.php +++ b/src/fextdata.php @@ -626,7 +626,20 @@ function genSQLs($contest, $site, $updatetime) { $sql['sitetable']="select * from sitetable where contestnumber=$contest and sitenumber=$site and updatetime >= $updatetime"; $sql['answertable']="select * from answertable where contestnumber=$contest and fake='f' and updatetime >= $updatetime"; $sql['langtable']="select * from langtable where contestnumber=$contest and updatetime >= $updatetime"; - $sql['problemtable']="select * from problemtable where contestnumber=$contest and fake='f' and updatetime >= $updatetime"; + $sql['problemtable']="select " . + "contestnumber, " . + "problemnumber, " . + "problemname, " . + "problemfullname, " . + "problembasefilename, " . + "probleminputfilename, " . + "probleminputfile, " . + "probleminputfilehash, " . + "fake, " . + //"problemcolorname, " . + //"problemcolor, " . + "updatetime" . + " from problemtable where contestnumber=$contest and fake='f' and updatetime >= $updatetime"; $sql['sitetimetable']="select * from sitetimetable where contestnumber=$contest and sitenumber=$site and updatetime >= $updatetime"; $sql['usertable']="select * from usertable where contestnumber=$contest and usersitenumber=$site and updatetime >= $updatetime"; $sql['clartable']="select * from clartable where contestnumber=$contest and clarsitenumber=$site and updatetime >= $updatetime"; -- cgit v1.2.3