diff options
| author | 2013-07-27 13:58:58 +0200 | |
|---|---|---|
| committer | 2013-07-27 13:58:58 +0200 | |
| commit | 22febc135134511b43a8543ea45c49c7aeec6f84 (patch) | |
| tree | e2596663533d36ec017fc1c7e8730245d6de0d19 /app/views/index | |
| parent | c4dcda6b47594a543046602056c5b7c27df70e39 (diff) | |
Fix issue #101 : option interdiction anonymes
Ajout d'une option pour interdire la lecture anonyme (interdit par
défaut)
Correction de l'internationalisation pour la pagination des logs
Diffstat (limited to 'app/views/index')
| -rw-r--r-- | app/views/index/index.phtml | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml index 46ff33b3a..4bf82f9b4 100644 --- a/app/views/index/index.phtml +++ b/app/views/index/index.phtml @@ -2,12 +2,23 @@ $output = Request::param ('output', 'normal'); -if ($output == 'rss') { - $this->renderHelper ('rss_view'); -} elseif($output == 'reader') { - $this->renderHelper ('reader_view'); -} elseif($output == 'global') { - $this->renderHelper ('global_view'); +if(!login_is_conf ($this->conf) || + is_logged() || + $this->conf->anonAccess() == 'yes') { + if($output == 'rss') { + $this->renderHelper ('view/rss_view'); + } elseif($output == 'reader') { + $this->renderHelper ('view/reader_view'); + } elseif($output == 'global') { + $this->renderHelper ('view/global_view'); + } else { + $this->renderHelper ('view/normal_view'); + } } else { - $this->renderHelper ('normal_view'); +?> +<div class="post content"> + <h1><?php echo Translate::t ('forbidden_access'); ?></h1> + <p><?php echo Translate::t ('forbidden_access_description'); ?></p> +</div> +<?php }
\ No newline at end of file |
