diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-07 10:23:38 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-07 10:23:38 +0000 |
commit | a65cdd21f234c8a07c90e54f9e9a0b1f33a972c2 (patch) | |
tree | a462d06cc0f34b56d547b07c5df3005b10260d1b /mod/logbrowser/index.php | |
parent | f4ac146f927ff75822baadbb15f1beea89eaace6 (diff) | |
download | elgg-a65cdd21f234c8a07c90e54f9e9a0b1f33a972c2.tar.gz elgg-a65cdd21f234c8a07c90e54f9e9a0b1f33a972c2.tar.bz2 |
Initial changes to log browser
git-svn-id: https://code.elgg.org/elgg/trunk@1745 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/logbrowser/index.php')
-rw-r--r-- | mod/logbrowser/index.php | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/mod/logbrowser/index.php b/mod/logbrowser/index.php index c548e450b..d0a6b7852 100644 --- a/mod/logbrowser/index.php +++ b/mod/logbrowser/index.php @@ -14,14 +14,21 @@ admin_gatekeeper(); set_context('admin');
- $limit = get_input('limit', 10); + $limit = get_input('limit', 40); $offset = get_input('offset'); +
+ $user_guid = get_input('user_guid',0);
+ if ($user_guid) {
+ $user = (int) $user_guid;
+ } else {
+ $user = "";
+ }
$title = elgg_view_title(elgg_echo('logbrowser')); // Get log entries - $log = get_system_log("", "","",$limit, $offset); - $count = get_system_log("", "","",$limit, $offset, true); + $log = get_system_log($user, "", "", $limit, $offset); + $count = get_system_log($user, "", "", $limit, $offset, true); $log_entries = array(); foreach ($log as $l) @@ -32,10 +39,10 @@ $log_entries[] = $tmp; } set_context('search'); - $result = elgg_view_entity_list($log_entries, $count, $offset, $limit, false);#
+ $result = elgg_view_entity_list($log_entries, $count, $offset, $limit, false, false);
set_context('admin'); // Display main admin menu - page_draw($title,elgg_view_layout("two_column_left_sidebar", '', $title.$result)); + page_draw(elgg_echo('logbrowser'),elgg_view_layout("two_column_left_sidebar", '', $title.$result)); ?>
\ No newline at end of file |