From 6056aaf0769e59944b2d77a3b294f5098a731c3e Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 27 Jul 2015 21:50:28 +0200 Subject: fix #1237, display a message instead of button when connections are not through https --- inc/poche/Poche.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 15d83bfe..ea196ce2 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -450,6 +450,7 @@ class Poche $token = $this->user->getConfigValue('token'); $http_auth = (isset($_SERVER['PHP_AUTH_USER']) || isset($_SERVER['REMOTE_USER'])) ? true : false; $only_user = ($this->store->listUsers() > 1) ? false : true; + $https = substr(Tools::getPocheUrl(), 0, 5) == 'https'; $tpl_vars = array( 'themes' => $themes, 'languages' => $languages, @@ -462,7 +463,8 @@ class Poche 'token' => $token, 'user_id' => $this->user->getId(), 'http_auth' => $http_auth, - 'only_user' => $only_user + 'only_user' => $only_user, + 'https' => $https ); Tools::logm('config view'); break; -- cgit v1.2.3