aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fcontest.php2
-rw-r--r--src/fextdata.php6
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');