private function fetchContent() { $response = $this->driver->getContent(); $this->content = $response->getBody(); if($this->site->getData5() == Gpf::YES) { $this->content = str_replace('%7B', '{', $this->content); $this->content = str_replace('%7D', '}', $this->content); } foreach (explode("\n", $response->getHeadersText()) as $headerLine) { if (strstr($headerLine, 'Transfer-Encoding')) { continue; } if (strstr($headerLine, 'Content-Length')) { continue; } header($headerLine, true); } }
public function getReplicatedSiteRealUrl() { return strrchr($this->site->getData4(), '/') == '/' ? $this->site->getData4() : $this->site->getData4().'/'; }
public function getReplicatedSiteRealUrl() { return Gpf_Paths::getInstance()->getFullAccountServerUrl() . Pap_Features_SiteReplication_Replicator::SITES_DIR . $this->site->getId() . '/'; }