-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathactivity.php
139 lines (102 loc) · 2.08 KB
/
activity.php
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
require_once 'includes.php';
$id = $_REQUEST['id'];
print dashboard($user);
$coin_log = $DB->GetArray('select * from coin_log where user_id = ? order by date desc limit 5000', array($id));
$level_log = $DB->GetArray('select * from level_log where user_id = ? order by date desc limit 5000 ', array($id));
//print_r($r);
?>
<center>
<h1>COIN LOG for <fb:userlink uid='<?php echo $id; ?>' /> (last 5000) max miles: <?php echo get_max_miles($id); ?></h1>
<h2>log started on: <?php echo $DB->GetOne('select date from coin_log where user_id = ? order by date asc', array($id)); ?> </h2>
<table border='1' style='margin:5px; padding:5px' cellpadding ='5px' cellspacing='5px' width='90%'>
<tr>
<th>amount</th>
<th>date</th>
<th>action</th>
<th>secondary_user</th>
<th>current coin total</th>
<th>current buried coin total</th>
</tr>
<?php
foreach($coin_log as $key => $value) {
$user_id = $value['user_id'];
$amount = $value['amount'];
$date = $value['date'];
$action = $value['action'];
$secondary_user = $value['secondary_user'];
$current_coin_total = $value['current_coin_total'];
$current_buried_coin_total = $value['current_buried_coin_total'];
?><tr><td>
<?
print_r($amount);
?>
</td>
<td>
<?
print_r($date);
?>
</td>
<td>
<?
print_r($action);
?>
</td>
<td>
<?
print_r($secondary_user);
?>
</td>
<td>
<?
print_r(number_format($current_coin_total));
?>
</td>
<td>
<?
print_r(number_format($current_buried_coin_total));
?>
</td>
</tr>
<?php
}
//$facebook->redirect('index.php?msg=joke-added');
?>
</table>
<br><br>
<h1>LEVEL LOG for <fb:userlink uid='<?php echo $id; ?>' /> (last 5000)</h1>
<center>
<table border='1' style='margin:5px; padding:5px' cellpadding ='1px' cellspacing='5px' width='90%'>
<tr>
<th>date</th>
<th>action</th>
<th>secondary_user</th>
</tr>
<?php
foreach($level_log as $key => $value) {
$user_id = $value['user_id'];
$date = $value['date'];
$action = $value['action'];
$secondary_user = $value['secondary_user'];
?><tr>
<td>
<?
print_r($date);
?>
</td>
<td>
<?
print_r($action);
?>
</td>
<td>
<?
print_r($secondary_user);
?>
</td>
</tr>
<?php
}
?>
</table>
</center>