From 0c732d6f7f952f0359904bbb752f94aff3d98d98 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 14 Oct 2009 21:09:47 +0000 Subject: Standardized admin/* git-svn-id: http://code.elgg.org/elgg/trunk@3543 36083f99-b078-4883-b0ff-0f9b5a30f544 --- admin/user.php | 79 ++++++++++++++++++++++++++-------------------------------- 1 file changed, 36 insertions(+), 43 deletions(-) (limited to 'admin/user.php') diff --git a/admin/user.php b/admin/user.php index a95bb69ce..47c3786de 100644 --- a/admin/user.php +++ b/admin/user.php @@ -1,45 +1,38 @@ +// Get the Elgg framework +require_once(dirname(dirname(__FILE__)) . "/engine/start.php"); + +// Make sure only valid admin users can see this +admin_gatekeeper(); + +// Are we performing a search +$search = get_input('s'); +$limit = get_input('limit', 10); +$offset = get_input('offset', 0); + +$context = get_context(); + +$title = elgg_view_title(elgg_echo('admin:user')); + +set_context('search'); + +$result = list_entities('user', '', 0, $limit, false); + +set_context('admin'); + +// Display main admin menu +page_draw(elgg_echo("admin:user"), + elgg_view_layout("two_column_left_sidebar", + '', + $title . elgg_view("admin/user") . $result + ) +); -- cgit v1.2.3