From 45b2decce03e218fe7ad66479491123ce398ab1f Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 28 Dec 2013 01:24:54 +0100 Subject: HTTP Auth user https://github.com/marienfressinaud/FreshRSS/issues/126 --- lib/lib_rss.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index c7698b5c5..a27ef171a 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -188,3 +188,7 @@ function usernameFromPath($userPath) { function listUsers() { return array_map('usernameFromPath', glob(DATA_PATH . '/*_user.php')); } + +function httpAuthUser() { + return isset($_SERVER['REMOTE_USER']) ? $_SERVER['REMOTE_USER'] : ''; +} -- cgit v1.2.3