From: Andrew Dolgov Date: Wed, 27 Mar 2013 14:49:04 +0000 (+0400) Subject: installer: ask for SELF_URL_PATH X-Git-Tag: 1.7.6~236 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=056c537b28b2178d87ac01acc594bb71a0c933be installer: ask for SELF_URL_PATH --- 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"; }