Skip to content
Permalink
Browse files

Connect updates

* Reverse-proxy optimizing
  • Loading branch information...
sergejey committed Apr 4, 2019
1 parent 47c7f00 commit 2c10daf7c7c3b313479c30ae4684997aa2e7fd35
Showing with 277 additions and 253 deletions.
  1. +2 −0 modules/application.class.php
  2. +23 −1 modules/connect/connect.class.php
  3. +1 −1 modules/objects/objects.class.php
  4. +251 −251 scripts/cycle_connect.php
@@ -319,6 +319,8 @@ function sortFiles($a, $b) {
$out['LAYOUTS'][$i]['NUM']=$i;
}
$out['TOTAL_LAYOUTS']=count($out['LAYOUTS']);
} else {
$out['TOTAL_LAYOUTS']=0;
}
if ($this->doc) $this->doc_id=$this->doc;
@@ -404,6 +404,21 @@ function getConnectStatus() {
return $result;
}
function requestReverseURL($msg) {
ignore_user_abort(1);
$url = BASE_URL.$msg;
if (preg_match('/\?/',$url)) {
$url.='&no_session=1';
} else {
$url.='?no_session=1';
}
//debmes("Sending request $url",'reverse_urls');
$result = getURL($url);
//debmes("Sending result to Connect",'reverse_urls');
$this->sendReverseURL($msg,$result);
//debmes("Sending $msg DONE",'reverse_urls');
}
function sendReverseURL($url_requested, $result)
{
// POST TO SERVER
@@ -867,7 +882,14 @@ function getCurlValue($filename, $contentType, $postname)
*/
function usual(&$out)
{
$this->admin($out);
$this->getConfig();
if ($this->ajax) {
$op = gr('op');
$msg = gr('msg');
if ($op=='reverse_request') {
$this->requestReverseURL($msg);
}
}
}
/**
@@ -1038,7 +1038,7 @@ function dbInstall($data) {
) ENGINE = MEMORY DEFAULT CHARSET=utf8;";
SQLExec($sqlQuery);
$sqlQuery = "ALTER TABLE operations_queue DROP COLUMN `ID`;";
$sqlQuery = "ALTER TABLE operations_queue DROP COLUMN IF EXISTS `ID`;";
SQLExec($sqlQuery,true);
Oops, something went wrong.

0 comments on commit 2c10daf

Please sign in to comment.
You can’t perform that action at this time.