[Scummvm-cvs-logs] scummvm-web master -> 00197a944842e3e915cedb82b8fe4f8d6d653757

sev- sev at scummvm.org
Sun Apr 3 20:27:01 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .

Summary:
00197a9448 WEB: Generate proper https baseurl


Commit: 00197a944842e3e915cedb82b8fe4f8d6d653757
    https://github.com/scummvm/scummvm-web/commit/00197a944842e3e915cedb82b8fe4f8d6d653757
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-04-03T20:26:43+02:00

Commit Message:
WEB: Generate proper https baseurl

Changed paths:
    include/config.inc.php



diff --git a/include/config.inc.php b/include/config.inc.php
index 1e00771..7d0d6ad 100644
--- a/include/config.inc.php
+++ b/include/config.inc.php
@@ -16,6 +16,8 @@ date_default_timezone_set("UTC");
 /* Base URL to the website. */
 if ($_SERVER['SERVER_PORT'] == '80') {
 	$url = "http://{$_SERVER['SERVER_NAME']}" . dirname($_SERVER['PHP_SELF']);
+} else if ($_SERVER['SERVER_PORT'] == '443') {
+	$url = "https://{$_SERVER['SERVER_NAME']}" . dirname($_SERVER['PHP_SELF']);
 } else {
 	$url = "http://{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}" . dirname($_SERVER['PHP_SELF']);
 }






More information about the Scummvm-git-logs mailing list