/
profile.php
60 lines (50 loc) · 1.89 KB
/
profile.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
<?php
require_once 'includes/header.php';
$id = $_GET['id'];
if (!$id) $id = $_SESSION['id'];
if (!$id) header('Location: index.php');
$user = new User($id);
$css = 'style_profile.css';
$js = 'profile.js';
include_once 'includes/header.inc';
echo '
<div id="content" class="big_panel">
<ul class="nav_panel">
<li><a href="index.php">Home</a></li>
<li class="current"> » Profile</li>
<li><a href="usercenter.php"> » Control Center</a></li>
</ul>
<div class="avatar_panel">
<img class="avatar_big" src="'.APIGet($user->steamid,avatar).'">';
if ($id != $_SESSION['id']) echo'
<div class="friend_add button">+ Add</div>';
echo '</div>
'.$user->display_profile($id, false).'
<ul class="recentlobby_panel">
'.displayLastLobbies($id).'
</ul>
<dl class="stats_panel">
<dt>Wins</dt><dd>7</dd>
<dt>Losses</dt><dd>10</dd>
<dt>Ratio</dt><dd>0.7</dd>
</dl>
<div class="friends_panel">
<h1>Friends</h1>
<ul>';
echo getfriends($id).'
</ul>
</div>
<div class="team_panel">
<h1>Team</h1>
<ul>
<li>
<img src="http://media.steampowered.com/steamcommunity/public/images/avatars/4b/4be5d08ac4dde632773f3b9f28663cae74d02169.jpg">
<span class="user_name">The Good Guys!</span>
<span class="user_steamid"><a href="http://good.hobbygaming.de/">good.hobbygaming.de</a></span>
</li>
</ul>
</div>
</div>
</body>
</html>';
?>