From 7d6bd5670e8743e10c52b745142320a47d0f1cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 2 Apr 2015 11:36:10 +0200 Subject: [PATCH 1/4] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 38866f7af..bded71986 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,11 @@ # what is wallabag ? + +## About development +We are working on a technical rework, using Symfony 2. You can contribute to [this version here](https://github.com/wallabag/wallabag/tree/v2). + +wallabag 1.x is still maintained but we won't develop new features. + +## Description wallabag is a self hostable application allowing you to not miss any content anymore. Click, save, read it when you can. It extracts content so that you can read it when you have time. More informations on our website: [wallabag.org](http://wallabag.org) From 6e22fc17d2df7f7c3636b9064c4016fefb88e7f9 Mon Sep 17 00:00:00 2001 From: Carsten Ringe Date: Tue, 9 Jun 2015 19:51:01 +0200 Subject: [PATCH 2/4] Use config option BASE_URL in getPocheUrl() --- inc/poche/Tools.class.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index d0b31d4f1..d3dddd3ba 100755 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php @@ -72,8 +72,14 @@ final class Tools $serverport = ''; } - return 'http' . ($https ? 's' : '') . '://' - . $host . $serverport . $scriptname; + // check if BASE_URL is configured + if(BASE_URL != null && BASE_URL != '') { + $baseUrl = BASE_URL; + } else { + $baseUrl = 'http' . ($https ? 's' : '') . '://' . $host . $serverport; + } + + return $baseUrl . $scriptname; } /** From 984805649e38c0fc83cde0345ac99b74c8b66e61 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 29 Jun 2015 15:52:55 +0200 Subject: [PATCH 3/4] fix BASE_URL --- inc/poche/Tools.class.php | 18 +++++++++++------- inc/poche/config.inc.default.php | 3 +++ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index 15050aed9..6c176eae5 100755 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php @@ -40,6 +40,8 @@ final class Tools */ public static function getPocheUrl() { + $baseUrl = ""; + $https = (!empty($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on')) || (isset($_SERVER["SERVER_PORT"]) @@ -72,14 +74,16 @@ final class Tools $serverport = ''; } - // check if BASE_URL is configured - if(BASE_URL != null && BASE_URL != '') { - $baseUrl = BASE_URL; - } else { - $baseUrl = 'http' . ($https ? 's' : '') . '://' . $host . $serverport; - } + // check if BASE_URL is configured + if(BASE_URL) { + print_r(BASE_URL); + $baseUrl = BASE_URL; + } else { + $baseUrl = 'http' . ($https ? 's' : '') . '://' . $host . $serverport; + } - return $baseUrl . $scriptname; + return $baseUrl . $scriptname; + } /** diff --git a/inc/poche/config.inc.default.php b/inc/poche/config.inc.default.php index 09d3aa9ae..5d889ffdb 100755 --- a/inc/poche/config.inc.default.php +++ b/inc/poche/config.inc.default.php @@ -31,6 +31,9 @@ // Change this if not using the standart port for SSL - i.e you server is behind sslh @define ('SSL_PORT', 443); +// Define this only if you use wallabag behind a proxy and if you encounter problems +@define ('BASE_URL', ''); + @define ('MODE_DEMO', FALSE); @define ('DEBUG_POCHE', FALSE); From 85fb64c207df60bffef2688ef070bff59a6e6dbe Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 29 Jun 2015 15:57:19 +0200 Subject: [PATCH 4/4] delete the debug call --- inc/poche/Tools.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index 6c176eae5..9c7483918 100755 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php @@ -76,7 +76,6 @@ final class Tools // check if BASE_URL is configured if(BASE_URL) { - print_r(BASE_URL); $baseUrl = BASE_URL; } else { $baseUrl = 'http' . ($https ? 's' : '') . '://' . $host . $serverport;