From f1e36b3fc8dfcb6aa3340b1a4f4df9f8f567fd1a Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Mon, 30 Oct 2017 16:08:29 +0000 Subject: bf --- src/fextdata.php | 3 ++- src/site/getsite.php | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/fextdata.php b/src/fextdata.php index 59b2f45..187abc5 100644 --- a/src/fextdata.php +++ b/src/fextdata.php @@ -364,7 +364,7 @@ function getMainXML($contest,$timeo=5,$upd=false) { LOGError("getMainXML: timeout at transfer for $siteurl"); return $logstr; } - $chstr = "\n"; + $chstr = "")); // LOGError("string: " . substr($s,0,50)); $s = decryptData($s,myhash (trim($sitedata[2])),'xml from main not ok'); if(strtoupper(substr($s,0,5)) != "") { diff --git a/src/site/getsite.php b/src/site/getsite.php index bbcd5f1..8e9cac1 100644 --- a/src/site/getsite.php +++ b/src/site/getsite.php @@ -41,14 +41,14 @@ if($ct["contestlocalsite"]==$ct["contestmainsite"]) { $resp = importFromXML($s,$_SESSION["usertable"]["contestnumber"],$fromsite,true); echo $resp[1]; if($resp[0]) - echo "\n"; + echo ""; else - echo "\n"; + echo ""; } } if(isset($_POST['updatetime']) && is_numeric($_POST['updatetime'])) { $xml = generateSiteXML($_SESSION["usertable"]["contestnumber"],$fromsite,$_POST['updatetime']); - echo encryptData($xml,$u["userpassword"]); + echo ""; } } else { echo "\n"; -- cgit v1.2.3