]> git.mxchange.org Git - friendica.git/commitdiff
provide ability to use different port
authorFriendika <info@friendika.com>
Mon, 25 Jul 2011 22:43:28 +0000 (15:43 -0700)
committerFriendika <info@friendika.com>
Mon, 25 Jul 2011 22:43:28 +0000 (15:43 -0700)
boot.php

index e8dccd5f30cba33ec4823465a1240d2506c43d94..a72fbf6734269b63a822757a369696cfc4794fe5 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1,6 +1,6 @@
 <?php
 
-define ( 'FRIENDIKA_VERSION',      '2.2.1051' );
+define ( 'FRIENDIKA_VERSION',      '2.2.1052' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1076      );
 
@@ -270,7 +270,8 @@ class App {
 
                if(x($_SERVER,'SERVER_NAME')) {
                        $this->hostname = $_SERVER['SERVER_NAME'];
-
+                       if(x($_SERVER,'SERVER_PORT') && $_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443)
+                               $this->hostname .= ':' . $_SERVER['SERVER_PORT'];
                        /** 
                         * Figure out if we are running at the top of a domain
                         * or in a sub-directory and adjust accordingly