index.phtml 606 B

123456789101112131415161718192021222324
  1. <?php
  2. $output = Request::param ('output', 'normal');
  3. if(!login_is_conf ($this->conf) ||
  4. is_logged() ||
  5. $this->conf->anonAccess() == 'yes') {
  6. if($output == 'rss') {
  7. $this->renderHelper ('view/rss_view');
  8. } elseif($output == 'reader') {
  9. $this->renderHelper ('view/reader_view');
  10. } elseif($output == 'global') {
  11. $this->renderHelper ('view/global_view');
  12. } else {
  13. $this->renderHelper ('view/normal_view');
  14. }
  15. } else {
  16. ?>
  17. <div class="post content">
  18. <h1><?php echo Translate::t ('forbidden_access'); ?></h1>
  19. <p><?php echo Translate::t ('forbidden_access_description'); ?></p>
  20. </div>
  21. <?php
  22. }