diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-11-01 16:43:10 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-11-01 16:43:10 +0000 |
| commit | e6da9360c43d4aa93a24e25399fd99e7238d12af (patch) | |
| tree | 4693fca468b9c749b5f3412098956b9e47dc45a3 /src | |
| parent | 796a28bc023f6d0fb844ea14f3e95f98205d89f2 (diff) | |
| download | boca-e6da9360c43d4aa93a24e25399fd99e7238d12af.tar.gz boca-e6da9360c43d4aa93a24e25399fd99e7238d12af.zip | |
trans
Diffstat (limited to 'src')
| -rw-r--r-- | src/fcontest.php | 2 | ||||
| -rw-r--r-- | src/fextdata.php | 6 |
2 files changed, 4 insertions, 4 deletions
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'); |