Esempio n. 1
0
    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().'/';
 }
Esempio n. 3
0
 public function getReplicatedSiteRealUrl() {
     return Gpf_Paths::getInstance()->getFullAccountServerUrl() . Pap_Features_SiteReplication_Replicator::SITES_DIR . $this->site->getId() . '/';
 }