diff --git a/install/index.php b/install/index.php index b0696ca6d..1b5def331 100644 --- a/install/index.php +++ b/install/index.php @@ -129,6 +129,12 @@ } } + function make_self_url_path() { + $url_path = ($_SERVER['HTTPS'] != "on" ? 'http://' : 'https://') . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH); + + return $url_path; + } + ?> @@ -138,6 +144,7 @@
-

Database settings

-
+

Database settings

+ "/> +

Other settings

+ +

This should be set to the location your Tiny Tiny RSS will be available on.

+ +
+ + +
+ +

@@ -267,6 +288,7 @@ +

@@ -283,6 +305,7 @@ +

@@ -339,7 +362,8 @@ echo "\tdefine('DB_PASS', '$DB_PASS');\n"; } else if (preg_match("/define\('DB_PORT'/", $line)) { echo "\tdefine('DB_PORT', '$DB_PORT');\n"; - + } else if (preg_match("/define\('SELF_URL_PATH'/", $line)) { + echo "\tdefine('SELF_URL_PATH', '$SELF_URL_PATH');\n"; } else { print "$line\n"; }