From 056c537b28b2178d87ac01acc594bb71a0c933be Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 27 Mar 2013 18:49:04 +0400 Subject: [PATCH] installer: ask for SELF_URL_PATH --- install/index.php | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/install/index.php b/install/index.php index b0696ca6..1b5def33 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"; } -- 2.39.5