diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-10-30 17:05:30 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-10-30 17:05:30 +0000 |
| commit | e801af3ad5cee0864229bff8353ca359d3b5f225 (patch) | |
| tree | c36f97195d957751a60aff9914fdfff3784d80ad | |
| parent | 9da64b3bed595d6cb416cf18801209a67a05d9ff (diff) | |
| download | boca-e801af3ad5cee0864229bff8353ca359d3b5f225.tar.gz boca-e801af3ad5cee0864229bff8353ca359d3b5f225.zip | |
bf
| -rw-r--r-- | src/fextdata.php | 6 | ||||
| -rw-r--r-- | src/private/score.sep | 1 | ||||
| -rw-r--r-- | src/site/getsite.php | 3 | ||||
| -rw-r--r-- | src/staff/header.php | 8 |
4 files changed, 10 insertions, 8 deletions
diff --git a/src/fextdata.php b/src/fextdata.php index 835c6cc..e126831 100644 --- a/src/fextdata.php +++ b/src/fextdata.php @@ -355,7 +355,7 @@ function getMainXML($contest,$timeo=5,$upd=false) { $opts['http']['header'] .= "\r\nProxy-Authorization: Basic " . $bocaproxypass; $opts['http']['timeout'] = $timeo; $context = stream_context_create($opts); - $logstr .= "Transferring data\n"; + $logstr .= "Transferring data to main server\n"; try { $s = @file_get_contents($siteurl . "site/getsite.php", 0, $context); } catch(Exception $e) { @@ -376,11 +376,11 @@ function getMainXML($contest,$timeo=5,$upd=false) { $chstr = "<!-- <NOTOK> --><!-- "; } - $logstr .= "Processing received data\n"; + $logstr .= "Processing received data from main server\n"; $s = substr($s, strpos($s, $chstr) + strlen($chstr)); $s = substr($s, 0, strpos(" -->")); // LOGError("string: " . substr($s,0,50)); - $s = decryptData($s,myhash (trim($sitedata[2])),'xml from main not ok'); + $s = decryptData($s,myhash(trim($sitedata[2])),'xml from main not ok'); if(strtoupper(substr($s,0,5)) != "<XML>") { $logstr .= "Data corrupted\n"; return $logstr; diff --git a/src/private/score.sep b/src/private/score.sep index b4798d9..7863dde 100644 --- a/src/private/score.sep +++ b/src/private/score.sep @@ -17,3 +17,4 @@ Peru 108 PuertoRico 123 RepDominicana 121 Venezuela 103 +TEST 99 diff --git a/src/site/getsite.php b/src/site/getsite.php index 8e9cac1..c6f1a16 100644 --- a/src/site/getsite.php +++ b/src/site/getsite.php @@ -48,7 +48,8 @@ if($ct["contestlocalsite"]==$ct["contestmainsite"]) { } if(isset($_POST['updatetime']) && is_numeric($_POST['updatetime'])) { $xml = generateSiteXML($_SESSION["usertable"]["contestnumber"],$fromsite,$_POST['updatetime']); - echo "<!-- " . encryptData($xml,$u["userpassword"]) . " -->"; + echo "<!-- " . $xml . " -->"; + // echo "<!-- " . encryptData($xml,$u["userpassword"]) . " -->"; } } else { echo "<!-- <ERROR3> ".session_id() . " -->\n"; diff --git a/src/staff/header.php b/src/staff/header.php index 21f93f9..10b0338 100644 --- a/src/staff/header.php +++ b/src/staff/header.php @@ -69,11 +69,11 @@ echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=score.php>Score</a></td>\n"; echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=run.php>Runs</a></td>\n"; -echo " <td align=center width=\"20%\"><a href=\"#\" class=menu style=\"font-weight:bold\" onClick=\"window.open('report/stat.php', ". - "'Problem Statistics','width=800,height=600,scrollbars=yes,toolbar=yes,menubar=yes,". - "resizable=yes')\">Statistics</a></td>\n"; +//echo " <td align=center width=\"20%\"><a href=\"#\" class=menu style=\"font-weight:bold\" onClick=\"window.open('report/stat.php', ". +// "'Problem Statistics','width=800,height=600,scrollbars=yes,toolbar=yes,menubar=yes,". +// "resizable=yes')\">Statistics</a></td>\n"; -echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=option.php>Options</a></td>\n"; +//echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=option.php>Options</a></td>\n"; echo " <td align=center width=\"20%\"><a class=menu style=\"font-weight:bold\" href=../index.php>Logout</a></td>\n"; echo " </tr>\n"; echo "</table>\n"; |