This repository has been archived by the owner on May 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
steam.php
88 lines (75 loc) · 2.51 KB
/
steam.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
<?php
session_start();
ob_start();
if (!isset($_SESSION['logged'])) {
header('Location: index.php');
die();
}
$user = $_SESSION['user'];
$staffPerms = $_SESSION['perms'];
if ($staffPerms['steamView'] != '1') {
header('Location: lvlError.php');
die();
}
$max = PHP_INT_MAX;
include 'header/header.php';
?>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1 style = "margin-top: 70px">Steam Menu</h1>
<p class="page-header">Steam menu of the panel, allows you to see steam accounts.</p>
<?php
include 'verifyPanel.php';
masterconnect();
$sqlget = 'SELECT * FROM players';
$sqldata = mysqli_query($dbcon, $sqlget) or die('Connection could not be established');
?>
<div class="table-responsive">
<table class="table table-striped" style = "margin-top: -10px">
<thead>
<tr>
<th>Name</th>
<th>Alias</th>
<th>UID</th>
<th>GUID</th>
<th>Steam Account</th>
</tr>
</thead>
<tbody>
<?php
while ($row = mysqli_fetch_array($sqldata, MYSQLI_ASSOC)) {
if ($row['playerid'] != '' || $row['pid'] != '') {
if ($row['playerid'] == '') {
$pid = $row['pid'];
} else {
$pid = $row['playerid'];
}
}
$return = guid($max, $pid);
echo '<tr>';
echo '<td>'.$row['name'].'</td>';
echo '<td>'.$row['aliases'].' </td>';
echo '<td>'.$pid.' </td>';
echo '<td>'.$return.'</td>';
echo "<td><a href='http://steamcommunity.com/profiles/".$pid."' target='_blank' class='btn btn-primary btn-outline' role='button'>Steam Accounts</a></td>";
echo '</tr>';
}
echo '</table></div>';
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
<script src="../dist/js/bootstrap.min.js"></script>
<!-- Just to make our placeholder images work. Don't actually copy the next line! -->
<script src="../../assets/js/vendor/holder.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>