aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-01 18:52:43 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-01 18:52:43 +0000
commit8b4ce1421c9f2ce554677c2141e93045b7cc27f0 (patch)
treee2780806b33b7f92674064ca765d4071b509700b /mod
parent614d39825bcc6b78569616128e158b3e7c8a22ce (diff)
downloadelgg-8b4ce1421c9f2ce554677c2141e93045b7cc27f0.tar.gz
elgg-8b4ce1421c9f2ce554677c2141e93045b7cc27f0.tar.bz2
Closes #112
git-svn-id: https://code.elgg.org/elgg/trunk@1262 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/profile/views/default/profile/menu/adminlinks.php25
-rw-r--r--mod/profile/views/default/profile/userdetails.php1
2 files changed, 25 insertions, 1 deletions
diff --git a/mod/profile/views/default/profile/menu/adminlinks.php b/mod/profile/views/default/profile/menu/adminlinks.php
new file mode 100644
index 000000000..c8a71f27a
--- /dev/null
+++ b/mod/profile/views/default/profile/menu/adminlinks.php
@@ -0,0 +1,25 @@
+<?php
+ /**
+ * Profile admin context links
+ *
+ * @package ElggProfile
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ *
+ * @uses $vars['entity'] The user entity
+ */
+
+ // TODO: Add admin console options here
+ if (isadminloggedin()){
+ if ($_SESSION['id']!=$vars['entity']->guid){
+?>
+ <a href="<?php echo $vars['url']; ?>actions/admin/user/ban?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("ban"); ?></a>
+ <a href="<?php echo $vars['url']; ?>actions/admin/user/delete?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("delete"); ?></a>
+ <a href="<?php echo $vars['url']; ?>actions/admin/user/resetpassword?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("resetpassword"); ?></a>
+ <?php if (!$vars['entity']->admin) { ?>&nbsp; <a href="<?php echo $vars['url']; ?>actions/admin/user/makeadmin?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("makeadmin"); ?></a> <?php } ?>
+<?php
+ }
+ }
+?> \ No newline at end of file
diff --git a/mod/profile/views/default/profile/userdetails.php b/mod/profile/views/default/profile/userdetails.php
index e0b6d676e..fba46d048 100644
--- a/mod/profile/views/default/profile/userdetails.php
+++ b/mod/profile/views/default/profile/userdetails.php
@@ -115,7 +115,6 @@
}
- // TODO: Add admin console options here
?>
</p>
</div><!-- /#profile_info_wide -->