diff options
| author | cassiopc <cassiopc@gmail.com> | 2012-08-08 17:52:19 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2012-08-08 17:52:19 +0000 |
| commit | 5d4eca5257a60c5f1de043fdf3f67e0a9df011f4 (patch) | |
| tree | 6d4ec6ffe1b6490be4120c0f06ae6cdabca41dd8 /boca-1.5.0/src/admin | |
| parent | f8c7c32e3ea6417ccf04309ec521b39a0c20414d (diff) | |
| download | boca-5d4eca5257a60c5f1de043fdf3f67e0a9df011f4.tar.gz boca-5d4eca5257a60c5f1de043fdf3f67e0a9df011f4.zip | |
many small bug fixes
Diffstat (limited to 'boca-1.5.0/src/admin')
| -rw-r--r-- | boca-1.5.0/src/admin/contest.php | 6 | ||||
| -rw-r--r-- | boca-1.5.0/src/admin/problem.php | 1 | ||||
| -rw-r--r-- | boca-1.5.0/src/admin/runedit.php | 4 | ||||
| -rw-r--r-- | boca-1.5.0/src/admin/site.php | 2 |
4 files changed, 8 insertions, 5 deletions
diff --git a/boca-1.5.0/src/admin/contest.php b/boca-1.5.0/src/admin/contest.php index 361b55b..ddffed4 100644 --- a/boca-1.5.0/src/admin/contest.php +++ b/boca-1.5.0/src/admin/contest.php @@ -95,12 +95,16 @@ if (isset($_POST["Submit3"]) && isset($_POST["penalty"]) && is_numeric($_POST["p if($dd > 0) { $param['keys']=implode(',',$ar); MSGError(count($ar) . ' keys are being imported from the file'); + DBClearProblemTmp($_SESSION["usertable"]["contestnumber"]); } } $param['atualizasites']=$at; } DBUpdateContest ($param); - if(strlen($param['unlockkey'])>1) DBGetFullProblemData($_SESSION["usertable"]["contestnumber"],true); + if(strlen($param['unlockkey'])>1) { + DBClearProblemTmp($_SESSION["usertable"]["contestnumber"]); + DBGetFullProblemData($_SESSION["usertable"]["contestnumber"],true); + } } ForceLoad("contest.php"); } diff --git a/boca-1.5.0/src/admin/problem.php b/boca-1.5.0/src/admin/problem.php index d52c429..0b055b6 100644 --- a/boca-1.5.0/src/admin/problem.php +++ b/boca-1.5.0/src/admin/problem.php @@ -53,7 +53,6 @@ if (isset($_POST["Submit3"]) && isset($_POST["problemnumber"]) && is_numeric($_P $param['fake'] = 'f'; $param['colorname'] = $_POST["colorname"]; $param['color'] = $_POST["color"]; - if($param['color']=='') $param['color']=-1; DBNewProblem ($_SESSION["usertable"]["contestnumber"], $param); } ForceLoad("problem.php"); diff --git a/boca-1.5.0/src/admin/runedit.php b/boca-1.5.0/src/admin/runedit.php index 5b995ce..fa691e8 100644 --- a/boca-1.5.0/src/admin/runedit.php +++ b/boca-1.5.0/src/admin/runedit.php @@ -290,9 +290,9 @@ else <td width="83%"> <?php if($a["autostdout"]!="") { - echo "<a href=\"../filedownload.php?".filedownload($a["autostdout"]."stdout") ."\">stdout</a>\n"; + echo "<a href=\"../filedownload.php?".filedownload($a["autostdout"],"stdout") ."\">stdout</a>\n"; echo "<a href=\"#\" class=menu style=\"font-weight:bold\" onClick=\"window.open('../filewindow.php?". - filedownload($a["autostdout"]."stdout") ."', 'View - STDOUT','width=680,height=600,scrollbars=yes,". + filedownload($a["autostdout"],"stdout") ."', 'View - STDOUT','width=680,height=600,scrollbars=yes,". "resizable=yes')\">view</a>\n"; } else echo "unavailable"; diff --git a/boca-1.5.0/src/admin/site.php b/boca-1.5.0/src/admin/site.php index 67a9ebe..84241f3 100644 --- a/boca-1.5.0/src/admin/site.php +++ b/boca-1.5.0/src/admin/site.php @@ -131,7 +131,7 @@ if (isset($_POST["Submit1"]) && $_POST["Submit1"] == "Send" && isset($_POST["nam $param['contestnumber']=$_SESSION["usertable"]["contestnumber"]; $param['sitenumber']=$_POST["site"]; $param['sitename']=$_POST["name"]; - $param['siteip']=$_POST["ip"]; +// $param['siteip']=$_POST["ip"]; $param['siteduration']=$_POST["duration"]*60; $param['sitelastmileanswer']= $_POST["lastmileanswer"]*60; $param['sitelastmilescore']= $_POST["lastmilescore"]*60; |