[Scummvm-cvs-logs] SF.net SVN: scummvm:[40835] web/trunk/include/config.inc.php
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Sat May 23 23:37:54 CEST 2009
Revision: 40835
http://scummvm.svn.sourceforge.net/scummvm/?rev=40835&view=rev
Author: drmccoy
Date: 2009-05-23 21:37:54 +0000 (Sat, 23 May 2009)
Log Message:
-----------
Allowing for running the website on server with a non-standard port
Modified Paths:
--------------
web/trunk/include/config.inc.php
Modified: web/trunk/include/config.inc.php
===================================================================
--- web/trunk/include/config.inc.php 2009-05-23 21:33:22 UTC (rev 40834)
+++ web/trunk/include/config.inc.php 2009-05-23 21:37:54 UTC (rev 40835)
@@ -11,7 +11,12 @@
define('HEROES_NUM', 4);
/* Base URL to the website. */
-$url = "http://{$_SERVER['SERVER_NAME']}" . dirname($_SERVER['PHP_SELF']);
+if ($_SERVER['SERVER_PORT'] == '80') {
+ $url = "http://{$_SERVER['SERVER_NAME']}" . dirname($_SERVER['PHP_SELF']);
+} else {
+ $url = "http://{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}" . dirname($_SERVER['PHP_SELF']);
+}
+
if (substr($url, -1) != '/') {
$url .= '/';
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list