From 39dd695cee41f0c9aec773ef5e87661e9524bd7a Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 14 Aug 2008 15:08:43 +0000 Subject: more owner blocks added git-svn-id: https://code.elgg.org/elgg/trunk@1921 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/diagnostics/index.php | 4 ++- mod/logbrowser/index.php | 79 ++++++++++++++++++++++--------------------- mod/reportedcontent/index.php | 5 ++- 3 files changed, 48 insertions(+), 40 deletions(-) diff --git a/mod/diagnostics/index.php b/mod/diagnostics/index.php index 37581a3d9..8bf2b6f25 100644 --- a/mod/diagnostics/index.php +++ b/mod/diagnostics/index.php @@ -13,7 +13,9 @@ admin_gatekeeper(); set_context('admin'); - + // Set admin user for user block + set_page_owner($_SESSION['guid']); + $title = elgg_view_title(elgg_echo('diagnostics')); $body .= elgg_echo('diagnostics:description'); diff --git a/mod/logbrowser/index.php b/mod/logbrowser/index.php index 72d006b0e..6245a257a 100644 --- a/mod/logbrowser/index.php +++ b/mod/logbrowser/index.php @@ -1,21 +1,24 @@ -subtype = 'logwrapper'; - $tmp->entry = $l; - $log_entries[] = $tmp; + + $title = elgg_view_title(elgg_echo('logbrowser')); + + // Get log entries + $log = get_system_log($user, "", "", $limit, $offset, false, $timeupper, $timelower); + $count = get_system_log($user, "", "", $limit, $offset, true, $timeupper, $timelower); + $log_entries = array(); + + foreach ($log as $l) + { + $tmp = new ElggObject(); + $tmp->subtype = 'logwrapper'; + $tmp->entry = $l; + $log_entries[] = $tmp; } $form = elgg_view('logbrowser/form',array('user_guid' => $user, 'timeupper' => $timeupper, 'timelower' => $timelower)); - - set_context('search'); + + set_context('search'); $result = elgg_view_entity_list($log_entries, $count, $offset, $limit, false, false); - set_context('admin'); - -// Display main admin menu - page_draw(elgg_echo('logbrowser'),elgg_view_layout("two_column_left_sidebar", '', $title . $form . $result)); - + set_context('admin'); + +// Display main admin menu + page_draw(elgg_echo('logbrowser'),elgg_view_layout("two_column_left_sidebar", '', $title . $form . $result)); + ?> \ No newline at end of file diff --git a/mod/reportedcontent/index.php b/mod/reportedcontent/index.php index 3ce08e8b6..9f30916e5 100644 --- a/mod/reportedcontent/index.php +++ b/mod/reportedcontent/index.php @@ -13,7 +13,10 @@ admin_gatekeeper(); set_context('admin'); - + // Set admin user for user block + set_page_owner($_SESSION['guid']); + + $title = elgg_view_title(elgg_echo('reportedcontent')); $reported = get_entities("object", "reported_content"); -- cgit v1.2.3