Differences
This shows you the differences between two versions of the page.
computer:mythweb_fixes_and_mcp_customizations [2011/03/05 20:00] tdobes created |
computer:mythweb_fixes_and_mcp_customizations [2011/03/06 13:47] (current) tdobes |
||
---|---|---|---|
Line 21: | Line 21: | ||
} else { | } else { | ||
$this->fp = @fsockopen($this->host, $this->port, $errno, $errstr, $timeout); | $this->fp = @fsockopen($this->host, $this->port, $errno, $errstr, $timeout); | ||
+ | } | ||
+ | |||
+ | /usr/share/mythtv/mythweb/classes/MythFrontend.php, line 136: | ||
+ | replace this: | ||
+ | $url = "http://{$this->host}:{$this->port_http}/MythFE/{$path}?"; | ||
+ | with this: | ||
+ | if (strpos($this->host, 'satellite-myth') === 0) { | ||
+ | // MCP HACK: multiple frontends on a single host | ||
+ | $url = "http://satellite:{$this->port_http}/MythFE/{$path}?"; | ||
+ | } else { | ||
+ | $url = "http://{$this->host}:{$this->port_http}/MythFE/{$path}?"; | ||
+ | } | ||
+ | |||
+ | /usr/share/mythtv/mythweb/classes/MythFrontend.php, line 72: | ||
+ | after this: | ||
+ | $this->port = $port; | ||
+ | add this: | ||
+ | if (strpos($this->host, 'satellite-myth') === 0) { | ||
+ | // MCP HACK: multiple frontends on a single host | ||
+ | $this->port_http = int($this->host[14].'6547'); | ||
} | } | ||