diff options
Diffstat (limited to 'actions/admin/user/ban.php')
-rw-r--r-- | actions/admin/user/ban.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/actions/admin/user/ban.php b/actions/admin/user/ban.php new file mode 100644 index 000000000..188ab9c7a --- /dev/null +++ b/actions/admin/user/ban.php @@ -0,0 +1,31 @@ +<?php + /** + * Elgg ban user + * + * @package Elgg + * @subpackage Core + * @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.org/ + */ + + // block non-admin users + admin_gatekeeper(); + + // Get the user + $guid = get_input('guid'); + $obj = get_entity($guid); + + if ( ($obj instanceof ElggUser) && ($obj->canEdit())) + { + + // TODO: Ban user + + + + + } + else + system_message(elgg_echo('admin:user:ban:no')); +?>
\ No newline at end of file |