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
140
141
142
143
144
145
146
147
148
149
150
|
<?php /* $Id: v_profile.php,v 1.4 2002/12/29 23:19:10 thetinysteini Exp $ */ /* ThWboard - PHP/MySQL Bulletin Board System ============================================== (c) 2000, 2001 by Paul Baecher <paul@thewall.de> Felix Gonschorek <funner@thewall.de>
download the latest version: http://www.thwboard.de
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
==============================================
*/
include "./inc/header.inc.php";
$r_user = thwb_query("SELECT userid, username, useremail, userhomepage, userlocation, usericq, useraim, usermsn, userbday, useroccupation, userinterests, usersignature, userposts, userjoin, userlastpost, userrating, uservotes, userhideemail, userbday, usertitle, (TO_DAYS(NOW())-TO_DAYS(userbday))/365 AS userage FROM ".$pref."user WHERE userid='$user[userid]'"); if( mysql_num_rows($r_user) < 1 ) { message("Fehler","Benutzer existiert nicht"); }
$user = mysql_fetch_array($r_user);
$Tframe = new Template("templates/" . $style['styletemplate'] . "/frame.html"); $Tprofile = new Template("templates/" . $style['styletemplate'] . "/viewprofile.html");
if( $user['userhomepage'] == "http://" ) { $user['userhomepage'] = ''; } $user['userhomepage'] = "<a href=\"$user[userhomepage]\" target=\"_blank\">".parse_code($user['userhomepage'])."</a>"; $user['userjoin'] = form_date($user['userjoin']); $user['userlastpost'] = form_date($user['userlastpost']); $user['userinterests'] = parse_code($user['userinterests'], 1, 1, 1, $config['smilies']); $user['usersignature'] = parse_code($user['usersignature'], 1, 1, 1, $config['smilies']);
if( $config[userrating] ) { if( $user[uservotes] > 0 ) { $user[userrating] = sprintf("Ø %.1f - %d <a href=\"vote.php?user[userid]=$user[userid]\">Bewertung(en)</a>", ($user[userrating]/10), $user[uservotes]); } else { $user[rating] = "(Noch keine <a href=\"vote.php?id=$us_id\">Bewertung</a>)"; }
// user guckt eigenes profil an => bewertungen anzeigen /* if( $g_user[userid]==$us_id && $user[votes]>0 ) { $result=thwb_query("SELECT user.username as username, rating.rating as rating FROM ".$pref."user as user, ".$pref."rating as rating WHERE rating.ratingto=$g_user[userid] AND rating.ratingfrom=user.userid"); $ratingdetails.="$style[smallfont]<br>Einzelwertungen:<br>"; while( $rating=mysql_fetch_array($result) ) { $ratingdetails.=( $i ? ", " : "" )."$rating[username] (".sprintf("%.1f",$rating[rating]/10).")"; $i = 1; } }*/ } else { $user['userrating'] = "- (Vom Administrator deaktiviert)"; }
if( $user['userbday'] == '0000-00-00' ) { $user['userage'] = ''; } else { $user['userage'] = (int)($user['userage']); }
if( $user['usericq'] == 0 ) { $user['usericq'] = ""; }
if( $config['showpostslevel'] == 0 ) { $user['userposts'] = "- (Vom Administrator deaktiviert)"; } elseif( $config['showpostslevel'] == 1 && ($g_user['userid'] != $user['userid']) ) { if( $g_user['userisadmin'] ) { $user['userposts'] = '- (Versteckt)'.$style['smallfont'].' [Admin: Postcount = '.$user['userposts'].' ]'.$style['smallfontend']; } else { $user['userposts'] = '- (Versteckt)'; } }
$user['useremail'] = get_email( $user );
/*if( $user['userhideemail'] == 1 ) { if( $g_user['userisadmin'] ) { $user['useremail'] = '- (Versteckt) '.$style['smallfont'].' [Admin: '.$user['useremail'].' ]'.$style['smallfontend']; } else { $user['useremail'] = '- (Versteckt)'; } }*/
$user['username'] = parse_code($user['username']); if( $g_user['userisadmin'] ) { $r_online = thwb_query("SELECT onlineip FROM $pref"."online WHERE userid='$user[userid]' AND onlinetime > ".(time() - 300) ); if( mysql_num_rows($r_online) > 0 ) { $online = mysql_fetch_array($r_online); $user['userip'] .= $style['smallfont'].' [Admin: IP = '.$online['onlineip'].', Hostname = '.gethostbyaddr($online['onlineip']).' ]'.$style['smallfontend']; } }
$user['useraim'] = parse_code($user['useraim']); $user['usermsn'] = parse_code($user['usermsn']); $userurlname = rawurlencode($user['username']);
$navpath .= 'Profilansicht';
eval($Tprofile->GetTemplate("CONTENT")); eval($Tframe->GetTemplate());
?>
|