summaryrefslogtreecommitdiff
path: root/admin/user_activity.php
blob: 4c945e03f50fb8b4ce259ae5b7a4f622be3ad5f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

	require_once( '../../bit_setup_inc.php' );
	
	$listHash = array();
	
	if( @BitBase::verifyId( $_REQUEST['user_id'] ) ) {
		$listHash['user_id'] = $_REQUEST['user_id'];
	}

	if( !empty( $_REQUEST['user_agent'] ) ) {
		$listHash['user_agent'] = $_REQUEST['user_agent'];
	}

	if( !empty( $_REQUEST['ip'] ) ) {
		$listHash['ip'] = $_REQUEST['ip'];
	}

	if( @BitBase::verifyId( $_REQUEST['user_id'] ) ) {
		$listHash['user_id'] = $_REQUEST['user_id'];
	}

	$gBitSmarty->assign_by_ref( 'userActivity', $gBitUser->getUserActivity( $listHash ) );

	$gBitSmarty->assign_by_ref( 'listInfo', $listHash['listInfo'] );

	$gBitSystem->display( 'bitpackage:users/user_activity.tpl', 'User Activity' , array( 'display_mode' => 'admin' ));

?>