summaryrefslogtreecommitdiffstats
path: root/application/views/header.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-05-10 23:26:13 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-05-10 23:26:13 +0200
commitd575e1bcb35dc228f3851fbf1f9d4a1de0bdecc4 (patch)
tree3485b0aabda72fb468697fd6f6106e621eeb529b /application/views/header.php
parent42695b54153bcee27d2d66bd9d50bcced30d3ec1 (diff)
Hide function not supported by auth driver
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views/header.php')
-rw-r--r--application/views/header.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/application/views/header.php b/application/views/header.php
index be0cffdab..40bb6e6a3 100644
--- a/application/views/header.php
+++ b/application/views/header.php
@@ -41,7 +41,9 @@ if (is_cli_client() && !isset($force_full_html)) {
<li class="dropdown">
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Login <b class="caret"></b></a>
<div class="dropdown-menu" style="padding: 15px;">
- <p><?php echo anchor("user/reset_password", "Forgot your password?"); ?></p>
+ <?php if(auth_driver_function_implemented("can_reset_password")) { ?>
+ <p><?php echo anchor("user/reset_password", "Forgot your password?"); ?></p>
+ <?php } ?>
<?php echo form_open("user/login"); ?>
<input type="text" name="username" placeholder="Username" class="input-medium">
<input type="password" name="password" placeholder="Password" class="input-medium">
@@ -56,7 +58,9 @@ if (is_cli_client() && !isset($force_full_html)) {
<?php if(isset($username) && $username) { ?>
<li><a href="<?php echo site_url("file/index") ?>"><i class="icon-pencil icon-white"></i> New</a></li>
<li><a href="<?php echo site_url("file/upload_history") ?>"><i class="icon-book icon-white"></i> History</a></li>
- <li><a href="<?php echo site_url("user/invite") ?>"><i class="icon-plus icon-white"></i> Invite</a></li>
+ <?php if(auth_driver_function_implemented("can_register_new_users")) { ?>
+ <li><a href="<?php echo site_url("user/invite") ?>"><i class="icon-plus icon-white"></i> Invite</a></li>
+ <?php } ?>
<?php } ?>
</ul>
</div>