From e6da9360c43d4aa93a24e25399fd99e7238d12af Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Wed, 1 Nov 2017 16:43:10 +0000 Subject: trans --- src/fcontest.php | 2 +- src/fextdata.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/fcontest.php b/src/fcontest.php index d00ce68..2af9ed4 100644 --- a/src/fcontest.php +++ b/src/fcontest.php @@ -327,7 +327,7 @@ function DBDeleteUser($contest, $site, $user) { $n = DBnlines($r); for ($i=0;$i<$n;$i++) { $a = DBRow($r,$i); - DBRunDelete($a["number"],$a["site"],$contestnumber,$_SESSION["usertable"]["usernumber"],$_SESSION["usertable"]["usersitenumber"]); + DBRunDelete($a["number"],$a["site"],$contest,$_SESSION["usertable"]["usernumber"],$_SESSION["usertable"]["usersitenumber"]); } DBExec($c, "commit work"); LOGLevel("User $user (site=$site,contest=$contest) marked as inactive.", 1); diff --git a/src/fextdata.php b/src/fextdata.php index 4673fb4..800b50d 100644 --- a/src/fextdata.php +++ b/src/fextdata.php @@ -444,7 +444,7 @@ function importFromXML($ar,$contest,$site,$tomain=false,$uptime=0,$mainsite=-1) // print_r($values); $conn = DBConnect(); if ($conn==null) return array(false, $logstr); - //DBExec($conn,"begin work","importFromXML(begin)"); + DBExec($conn,"begin work","importFromXML(begin)"); // DBExec($conn,"lock","importFromXML(lock)"); $r = DBExec($conn, "select * from contesttable where contestnumber=$contest"); if (DBnLines($r)==0) { @@ -455,8 +455,8 @@ function importFromXML($ar,$contest,$site,$tomain=false,$uptime=0,$mainsite=-1) } $ct = DBRow($r,0); - DBClose($conn); - $conn=null; + // DBClose($conn); + //$conn=null; $firsttimetime=true; $tables = array('contesttable','answertable','langtable','problemtable','sitetable','sitetimetable','usertable','clartable','runtable','tasktable'); -- cgit v1.2.3