PHPNUKE module strips ports
vgfh
Joined: 2007-02-17
Posts: 1 |
Posted: Sat, 2007-02-17 05:13 |
Ok, I searched the forums, and came across a hint of an answer involving $SERVER_PORT but nothing concrete. The problem is this. I've installed gallery, it works fine as standalone, but when trying to access it through phpnuke, it strips my port numbers from the links, causing them to be dead. I have all the URLS in the config file with port numbers, however, this doesn't help one bit. The standalone can be found here: The PHPNUKE integration can be found here: This is driving me mad, as I really want this in phpnuke, however my ISP blocks port 80. Any help people can offer would be greatly appreciated. The following information is required to get an answer: |
|
Posts: 6818
Hello,
you are right, this is a bug in the 1.x series.
Would you mind filing a bug in our Sourceforge pages ?
- Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 6818
Here is the fix:
open lib/url.php
- $urlprefix = $gUrl['scheme'] .'://'. $gUrl['host'];
+
+ if(isset($gUrl['port'])) {
+ $urlprefix = $gUrl['scheme'] .'://'. $gUrl['host'] . ':' . $gUrl['port'];
+ }
+ else {
+ $urlprefix = $gUrl['scheme'] .'://'. $gUrl['host'];
+ }
Jens
--
Last Gallery v1 Developer and v1 translation manager.