nouveau module "models" dans l'environnement
[mtweb] / mw / app / out / default / views / footer.php
index 4c1750f..a5f368d 100644 (file)
@@ -1,15 +1,20 @@
 <ul>
-<?php if($this->config("contact_form")) : ?>
+<?php if($this->config("contact_form") && $this->action_allowed("forms/contact")) : ?>
   <li><a href="<?php echo $this->url("forms/contact"); ?>">contact</a></li>
 <?php endif; ?>
 <?php if(!($user = $this->user())) : ?>
-   <li><a href="<?php echo $this->url("users/identification"); ?>">s'identifier</a></li>
+  <li><a href="<?php echo $this->url("users/identification"); ?>">s'identifier</a></li>
 <?php else : ?>
   <li>Bienvenue <strong><?php echo $user["login"]; ?></strong></li>
-  <li><a href="<?php echo $this->url("users"); ?>">compte</a></li>
-<?php if($this->status_ok("admin")) : ?>
+  <?php if($this->action_allowed("users/infos")) : ?>
+  <li><a href="<?php echo $this->url("users/infos"); ?>">compte</a></li>
+  <?php endif; ?>
+<?php if($this->action_allowed("admin")) : ?>
   <li><a href="<?php echo $this->url("admin"); ?>">admin</a></li>
 <?php endif; ?>
+<?php if($this->action_allowed("config")) : ?>
+  <li><a href="<?php echo $this->url("config"); ?>">config</a></li>
+<?php endif; ?>
   <li><a href="<?php echo $this->url("users/identification/logout"); ?>">deconnexion</a></li>
 <?php endif; ?>
   <li><a href="http://mtweb.dj3c1t.com/">mtweb</a></li>