-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdupers.php
74 lines (66 loc) · 2.56 KB
/
dupers.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
<?php
date_default_timezone_set('Europe/London');
$PageTitle = "Exile Dupe Search:";
$path = dirname($_SERVER['PHP_SELF']);
include 'includes/header.php';
include 'includes/config.php';
include 'includes/functions.php';
// Display trader history
$sql3 = " SELECT steamid64, items_sold, COUNT(*) as amount, poptabs, servername
FROM trader_log
WHERE time_sold > NOW() - INTERVAL 7 DAY
AND steamid64 <> ''
AND (
items_sold = 'Exile_Item_Codelock'
OR items_sold = 'Exile_Item_Defibrillator'
OR items_sold = 'Exile_Item_SafeKit'
OR items_sold = 'Exile_Item_Grinder'
OR items_sold = 'Exile_Item_MetalPole'
OR items_sold = 'Exile_Item_SleepingMat'
OR items_sold = 'Exile_Item_OilCanister'
OR items_sold = 'Exile_Item_Foolbox'
OR items_sold = 'Exile_Item_Screwdriver'
OR items_sold like '%_Remote_Mag'
OR items_sold like '%_Wire_Mag'
OR items_sold like '%_Range_Mag'
)
GROUP BY steamid64,items_sold
ORDER BY COUNT(*) DESC";
$result3 = mysqli_query($db_traders, $sql3);
if (mysqli_num_rows($result3) > 0)
{
echo "<hr><h2>POTENTIAL DUPERS - Expensive Items sold in the last 14 days</h2><hr>";
echo '<table class="tftable" border="1"">
<tr>
<td style="width:250px;">Player</td>
<td style="width:150px;">Server</td>
<td>Items</td>
<td align=right style="width:150px;">Amount</td>
</tr>';
}
else
{
echo "<hr><h2>There is no trader history</h2><hr>";
}
while ($row3 = mysqli_fetch_object($result3))
{
$steamid64 = $row3->steamid64;
$items_sold = str_replace('","', '", "', $row3->items_sold);
$poptabs = $row3->poptabs;
$amount = $row3->amount;
$servername = $row3->servername;
$isBanned = isBanned($steamid64, $servername, $ServerList);
if($isBanned == 'false' && $amount >= 5)
{
// get the players name
$playerName = getPlayersName($steamid64, $servername, $ServerList);
echo '<tr>'
. '<td valign=top style="width:250px;"><a href="playersearch.php?server='.$servername.'&searchtype=uid&searchfield=' . $steamid64 . '">'.$playerName.'</a></td>'
. '<td valign=top>' . ucwords($servername) . '</td>'
. '<td valign=top>' . $items_sold . '</td>'
. '<td valign=top align=right style="width:50px;">' . $amount . '</td>'
. '</tr>';
}
}
echo "</table>";
?>