aboutsummaryrefslogtreecommitdiff
path: root/src/freport.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-08-29 11:27:40 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-08-29 11:27:40 +0000
commita8f4723c268d3bf0d42bd4a3a79d0d5d5dfd465d (patch)
treece07faec23d807b21b9d5e309b35d455f1b7c256 /src/freport.php
parent7191e76649dbb207db26b59271cb6e16cc427bc6 (diff)
downloadboca-a8f4723c268d3bf0d42bd4a3a79d0d5d5dfd465d.tar.gz
boca-a8f4723c268d3bf0d42bd4a3a79d0d5d5dfd465d.zip
bug fixes and speed up runs
Diffstat (limited to 'src/freport.php')
-rw-r--r--src/freport.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/freport.php b/src/freport.php
index cded59b..6d990ca 100644
--- a/src/freport.php
+++ b/src/freport.php
@@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////////////
-// Last modified 05/aug/2012 by cassio@ime.usp.br
+// Last modified 29/aug/2017 by cassio@ime.usp.br
function DBRunReport($contest,$site) {
$c = DBConnect();
@@ -50,7 +50,8 @@ function DBRunReport($contest,$site) {
$xuserfull[$a['name']] = $a['fullname'];
}
ksort($xusername);
-
+ $xcolor = array();
+
$pr = DBGetProblems($contest);
for($i=0; $i<count($pr); $i++) {
$xproblem[$pr[$i]['problem']]=0;
@@ -63,7 +64,11 @@ function DBRunReport($contest,$site) {
$xanswer = array();
$xtimestamp = array();
$xtimestampyes = array();
-
+ $xpa = array();
+ $xpl = array();
+ $xla = array();
+ $xup = array();
+
$r = DBExec($c, $sql, "DBRunReport(get runs)");
$n = DBnlines($r);