diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-07-31 14:56:06 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-07-31 14:56:06 +0000 |
| commit | ef4dfbc6ca9db8fdf5d16ba2c000c3715cfeafb1 (patch) | |
| tree | 6bba690ceb375db0de1b93814aa05d36087797f4 /src | |
| parent | c11819f457da722e1b5e87b52bbb35155fbaa190 (diff) | |
| download | boca-ef4dfbc6ca9db8fdf5d16ba2c000c3715cfeafb1.tar.gz boca-ef4dfbc6ca9db8fdf5d16ba2c000c3715cfeafb1.zip | |
bf
Diffstat (limited to 'src')
| -rw-r--r-- | src/db.php | 7 | ||||
| -rw-r--r-- | src/fextdata.php | 2 | ||||
| -rw-r--r-- | src/site/getsite.php | 3 |
3 files changed, 9 insertions, 3 deletions
@@ -81,6 +81,13 @@ function DB_lo_import($conn, $file) { else return pg_lo_import ($conn, $file); } +function DB_lo_import_text($conn, $text) { + $oid = DB_lo_create($conn); + $handle = DB_lo_open($conn, $oid, "w"); + DB_lo_write($handle, "large object data"); + DB_lo_close($handle); +} + function DB_lo_export($contest, $conn, $oid, $file) { if (strcmp(phpversion(),'4.2.0')<0) $stat= pg_loexport ($oid, $file, $conn); diff --git a/src/fextdata.php b/src/fextdata.php index 731db96..e66073c 100644 --- a/src/fextdata.php +++ b/src/fextdata.php @@ -273,7 +273,7 @@ function getMainXML() { LOGError("xmltransfer: failed (" . $s . ")"); $s = substr($s, strpos($s, "\n") + 1); - LOGError("string: " . substr($s,0,50)); + // LOGError("string: " . substr($s,0,50)); $s = decryptData($s,myhash (trim($sitedata[2])),'xml from main not ok'); if(strtoupper(substr($s,0,5)) != "<XML>") { return false; diff --git a/src/site/getsite.php b/src/site/getsite.php index d2c4bf0..08235a0 100644 --- a/src/site/getsite.php +++ b/src/site/getsite.php @@ -27,8 +27,7 @@ if(($ct = DBContestInfo($_SESSION["usertable"]["contestnumber"])) == null) { } if($ct["contestlocalsite"]==$ct["contestmainsite"]) { $fromsite = $_SESSION["usertable"]["usericpcid"]; - LOGLevel("Connection received from site=$fromsite PHPID=".$_COOKIE['PHPSESSID'].",extra=".$_SESSION['usertable']['usersessionextra']. - ",session=".session_id(),2); + LOGLevel("Connection received from site=$fromsite",2); // PHPID=".$_COOKIE['PHPSESSID'].",extra=".$_SESSION['usertable']['usersessionextra'].",session=".session_id(),2); if($fromsite != '' && is_numeric($fromsite) && $fromsite > 0) { if(isset($_POST)) { $u = DBUserInfo($_SESSION["usertable"]["contestnumber"], $_SESSION["usertable"]["usersitenumber"], $_SESSION["usertable"]["usernumber"],null,false); |