From 7696d90752024fc2a6d5cb6f0158c9e6ca05dc8a Mon Sep 17 00:00:00 2001 From: Sergey Romanenko Date: Mon, 23 Dec 2013 16:44:08 +0200 Subject: [PATCH] Installer: SERVER_PORT issue - fixed by KANekT --- install.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.php b/install.php index 3feb3db..44da50d 100644 --- a/install.php +++ b/install.php @@ -16,8 +16,11 @@ // Get array with the names of all modules compiled and loaded $php_modules = get_loaded_extensions(); + // Get server port + if ($_SERVER["SERVER_PORT"] == "80") $port = ""; else $port = ':'.$_SERVER["SERVER_PORT"]; + // Get site URL - $site_url = 'http://'.$_SERVER["SERVER_NAME"].str_replace(array("index.php", "install.php"), "", $_SERVER['PHP_SELF']); + $site_url = 'http://'.$_SERVER["SERVER_NAME"].$port.str_replace(array("index.php", "install.php"), "", $_SERVER['PHP_SELF']); // Rewrite base $rewrite_base = str_replace(array("index.php", "install.php"), "", $_SERVER['PHP_SELF']);