diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-10-30 15:40:16 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-10-30 15:40:16 +0000 |
| commit | bfb0b23afb0c15a276c5499ad237273b4ea8cd08 (patch) | |
| tree | e7ad3538730e24da5a219548d1d0ac70337dcd3b /src | |
| parent | 44ccbd678ef12be9e0da24e6e371262ccc2ca812 (diff) | |
| download | boca-bfb0b23afb0c15a276c5499ad237273b4ea8cd08.tar.gz boca-bfb0b23afb0c15a276c5499ad237273b4ea8cd08.zip | |
bf
Diffstat (limited to 'src')
| -rw-r--r-- | src/fextdata.php | 4 | ||||
| -rw-r--r-- | src/site/getsite.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/fextdata.php b/src/fextdata.php index 9deb183..93b185e 100644 --- a/src/fextdata.php +++ b/src/fextdata.php @@ -227,7 +227,7 @@ function scoretransfer($putname, $localsite, $timeo=5) { } else { LOGError("scoretransfer: upload full failed (" . $s . ")"); - $logstr .= 'upload of full score to $siteurl failed (' . $s . ')'; + $logstr .= "upload of full score to $siteurl failed (" . $s . ")\n"; } } } @@ -383,7 +383,7 @@ function getMainXML($contest,$timeo=5,$upd=false) { } $logstr .= "Importing data to local server\n"; $resp = importFromXML($s, $contest, $localsite, false, 1+$ct['updatetime']); - echo $resp[1]; + $logstr .= $resp[1]; if($resp[0]) { $str = $sitedata[0] . ' ' . $sitedata[1] . ' ' . $sitedata[2] . ' ' . $ti; $ti = 2+$ct['updatetime']; diff --git a/src/site/getsite.php b/src/site/getsite.php index e285778..bbcd5f1 100644 --- a/src/site/getsite.php +++ b/src/site/getsite.php @@ -39,8 +39,8 @@ if($ct["contestlocalsite"]==$ct["contestmainsite"]) { echo "<!-- <ERROR8> ".session_id() . " -->\n"; } else { $resp = importFromXML($s,$_SESSION["usertable"]["contestnumber"],$fromsite,true); - echo $resp[0]; - if($resp[1]) + echo $resp[1]; + if($resp[0]) echo "<!-- <OK> -->\n"; else echo "<!-- <NOTOK> -->\n"; |