Newer
Older
<?php
$id = (int)$_GET['id'];
$daten = userinfo($id);
// Link zu Avatar
$werber = $datenbank->get_row("SELECT `nickname` FROM ". PREFIX . USER ." WHERE uid=".$daten->werber."",true);
$werber = '<a href="/?content=/nickpage&id='.$daten->werber.'">'.$werber->nickname.'</a>';
$refs = $datenbank->get_row("SELECT COUNT(uid) AS anzahl FROM ".PREFIX . WERBER ." WHERE werber=".$id."",true);
$alter_neu = ageCalculator( date("d", $daten->bdate), date("m", $daten->bdate), date("Y",$daten->bdate) );
<?php head("Nickpage von ".$daten->nickname); ?>
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#user" role="tab" aria-controls="profile" aria-selected="false">Userinfo</a>
</li>
<li class="nav-item">
<a class="nav-link" id="contact-tab" data-toggle="tab" href="#statik" role="tab" aria-controls="contact" aria-selected="false">Statistik</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
<div class="row">
<div class="col-md-4 text-center">
<img src="<?php echo IMGToBase64($avatar);?>" style="max-height:250; max-width:200;">
</div>
<div class="col-md-8">
<table class="table table-striped">
<tr>
<th><b>Nickname</b></th>
<td><?php echo $daten->nickname;?></td>
</tr>
<tr>
<th>UID</th>
<td><?php echo $id;?></td>
</tr>
<tr>
<th><b>Angemeldet seit</th>
<td><?php echo date("d.m.Y",$daten->angemeldet_seit)?></td>
</tr>
<tr>
<th>Werber</th>
<td><?php echo $werber;?></td>
</tr>
<tr>
<th>Geworbene Refs</th>
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
</tr>
<?php if ($daten->sex) { ?>
<tr>
<th>Geschlecht</th>
<td><?php echo $daten->sex;?></td>
</tr>
<?php }
if ($daten->bdate != 0) { ?>
<tr>
<th>Geburtstag</th>
<td><?php echo date("d.m.Y", $daten->bdate);?></td>
</tr>
<?php }
if ($daten->ort != '') { ?>
<tr>
<th>Wohnort</th>
<td><?php echo $daten->ort;?></td>
</tr>
<?php }
if ($daten->land != '') { ?>
<tr>
<th>Land</td>
<td><?php echo $daten->land;?></td>
</tr>
<?php } ?>
<tr>
<td><b>Letzte Aktivität:</b></td>
<td><?php if ($daten->last_active >= 1) {echo date("d.m.Y - H:i:s",$daten->last_active);} else {echo'<i><font color="#800000">User war noch nie aktiv!</font></i>';}?></td>
</tr>
</table>
</div>
</div>
<table align="center">
<?php if ($daten->status == 1) {?>
<?php } else { ?>
<tr>
<td colspan="2">
<?php if ($daten->status == 2) {?>
<font size="2" color="#FF0000"><b>Achtung: User gesperrt!</b></font>
<?php } elseif ($daten->status == 0) {?>
<font size="2" color="#FF6600"><b>Dieser User ist noch nicht freigeschaltet!</b></font>
<?php } ?>
</td>
</tr>
<?php } ?>
</table>
</div>
<div class="tab-pane fade" id="user" role="tabpanel" aria-labelledby="profile-tab">
<table class="table table-striped">
<?php if ($daten->hobbys != '') { ?>
<tr>
<td><b>Hobbys: </b></td>
<td><?php echo $daten->hobbys;?></td>
</tr>
<?php }
if ($daten->beruf != '') { ?>
<tr>
<td><b>Beruf: </b></td>
<td><?php echo $daten->beruf;?></td>
</tr>
<?php }
if ($daten->icq != 0) { ?>
<tr>
<td><b>ICQ: </b></td>
<td><a href="http://web.icq.com/whitepages/add_me/1,,,00.icq?uin=<?php echo $daten->icq;?>&action=add"><?php echo $daten->icq;?></a></td>
</tr>
<?php }
if ($daten->msn != '') { ?>
<tr>
<td><b>MSN: </b></td>
<td><?php echo $daten->msn;?></td>
</tr>
<?php }
if ($daten->aim != '') { ?>
<tr>
<td><b>AIM: </b></td>
<td><?php echo $daten->aim;?></td>
</tr>
<?php }
if ($daten->skype != '') { ?>
<tr>
<td><b>Skype: </b></td>
<td><?php echo $daten->skype;?></td>
</tr>
<?php }
if ($daten->www != '') { ?>
<tr>
<td><b>Homepage: </b></td>
<td><a href="http://<?php echo $daten->www;?>" target="_blank"><?php echo $daten->www;?></a></td>
</tr>
<?php }
if ($daten->www1 != '') { ?>
<tr>
<td valign="top"><b>Lieblingswebsite 1: </b></td>
<td>
<a href="http://<?php echo $daten->www1;?>" target="_blank"><?php echo $daten->www1;?></a></td>
</tr>
<?php }
if ($daten->www2 != '') { ?>
<tr>
<td valign="top"><b>Lieblingswebsite 2: </b></td>
<td><a href="http://<?php echo $daten->www2;?>" target="_blank"><?php echo $daten->www2;?></a></td>
</tr>
<?php }
if ($daten->www3 != '') { ?>
<tr>
<td valign="top"><b>Lieblingswebsite 3: </b></td>
<td><a href="http://<?php echo $daten->www3;?>" target="_blank"><?php echo $daten->www3;?></a></td>
</tr>
<?php } ?>
</table>
</div>
<div class="tab-pane fade" id="statik" role="tabpanel" aria-labelledby="contact-tab">
<table class="table table-striped">
<tr>
<td><b>Paidbanner geklickt: </b></td>
<td><?php echo number_format($daten->klicks,0,",",".")?></td>
</tr>
<tr>
<td><b>Paidlinks geklickt: </b></td>
<td><?php echo number_format($daten->p_klicks,0,",",".")?></td>
</tr>
<tr>
<td><b>Bettelaufrufe: </b></td>
<td><?php echo number_format($daten->angebettelt,0,",",".")?></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
</div>
</div>