diff options
author | Jim Wigginton <terrafrost@phpbb.com> | 2009-07-18 19:19:38 +0000 |
---|---|---|
committer | Jim Wigginton <terrafrost@phpbb.com> | 2009-07-18 19:19:38 +0000 |
commit | b6a1271c3aedab008be367565db9c9713e22e638 (patch) | |
tree | 84c8e5f264d675146f5634b4b550b424370ac1c9 /phpBB/includes/functions_admin.php | |
parent | e9830e5530739f90fa094106fb93f456643afd37 (diff) | |
download | forums-b6a1271c3aedab008be367565db9c9713e22e638.tar forums-b6a1271c3aedab008be367565db9c9713e22e638.tar.gz forums-b6a1271c3aedab008be367565db9c9713e22e638.tar.bz2 forums-b6a1271c3aedab008be367565db9c9713e22e638.tar.xz forums-b6a1271c3aedab008be367565db9c9713e22e638.zip |
- added ability to filter logs by log_operation
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9781 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index b634410afc..dd6378a2b5 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -2278,7 +2278,7 @@ function cache_moderators() /** * View log */ -function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id = 0, $topic_id = 0, $user_id = 0, $limit_days = 0, $sort_by = 'l.log_time DESC') +function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id = 0, $topic_id = 0, $user_id = 0, $limit_days = 0, $sort_by = 'l.log_time DESC', $log_operation = '') { global $db, $user, $auth, $phpEx, $phpbb_root_path, $phpbb_admin_path; @@ -2333,7 +2333,8 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id FROM " . LOG_TABLE . " l, " . USERS_TABLE . " u WHERE l.log_type = $log_type AND u.user_id = l.user_id - " . (($limit_days) ? "AND l.log_time >= $limit_days" : '') . " + " . (($limit_days) ? "AND l.log_time >= $limit_days" : '') . + (!empty($log_operation) ? "AND l.log_operation = '" . $db->sql_escape($log_operation) . "'" : '') . " $sql_forum ORDER BY $sort_by"; $result = $db->sql_query_limit($sql, $limit, $offset); |