diff options
| author | 2013-04-27 21:08:29 +0200 | |
|---|---|---|
| committer | 2013-04-27 21:08:29 +0200 | |
| commit | 0e95494e29353a9ae31fb1196c6c9aaf556ae981 (patch) | |
| tree | da499463fda30157c172d92a1e02e972a6c6d6e5 /app/controllers/feedController.php | |
| parent | 2a52d315bed725d5997a42547673bccfe2409b5d (diff) | |
Fix issue #26 : possibilité de s'abonner à des flux derrière authentification HTTP + correction quelques traductions
Diffstat (limited to 'app/controllers/feedController.php')
| -rwxr-xr-x | app/controllers/feedController.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/controllers/feedController.php b/app/controllers/feedController.php index 1232ddff4..c235e8b0f 100755 --- a/app/controllers/feedController.php +++ b/app/controllers/feedController.php @@ -16,11 +16,20 @@ class feedController extends ActionController { if (Request::isPost ()) { $url = Request::param ('url_rss'); $cat = Request::param ('category'); + $user = Request::param ('username'); + $pass = Request::param ('password'); $params = array (); try { $feed = new Feed ($url); $feed->_category ($cat); + + $httpAuth = ''; + if ($user != '' || $pass != '') { + $httpAuth = $user . ':' . $pass; + } + $feed->_httpAuth ($httpAuth); + $feed->load (); $feedDAO = new FeedDAO (); @@ -31,7 +40,8 @@ class feedController extends ActionController { 'name' => $feed->name (), 'website' => $feed->website (), 'description' => $feed->description (), - 'lastUpdate' => time () + 'lastUpdate' => time (), + 'httpAuth' => $feed->httpAuth (), ); if ($feedDAO->searchByUrl ($values['url'])) { |
