Gästebuch im Profil 2.3.x |
Iron-Rose
Mitglied
Dabei seit: 16.03.07
Beiträge: 28
Forenversion: 2.3
|
|
Bin auch mal wieder da
Hast du schon etwas gemacht bezüglich meines Wunsches mit den PN's?
|
|
26.03.07 16:16 |
E-Mail
Finden
Als Freund hinzufügen
|
|
Agi
TEAM - PHP Freak
Dabei seit: 22.11.04
Beiträge: 2.628
Fähigkeiten: WBB3 Profi Forenversion: 3.1
Themenstarter
|
|
Sorry Leute, ich kam noch nicht dazu, den Hack entsprechend zu erweitern oder Wünschen nachzukommen, da ich das ganze Wochenende halbtot krank im Bett lag. Kann mich erst im Laufe der Woche bzw des nächsten Wochenendes drum kümmern, da ich diese woche noch ne anstrengende Schulwoche vor mir hab
__________________
|
|
26.03.07 16:49 |
Finden
Als Freund hinzufügen
|
|
Hajö
Mitglied
Dabei seit: 27.11.05
Beiträge: 26
|
|
Mach Dir keinen Stress Agi!!!
Wir freuen uns auch drüber, wenn es noch ein bisschen dauert...
Danke, dass Du Dich darum kümmerst!!!
Gruß
Hajö
|
|
26.03.07 18:52 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
Svenkan
Mitglied
Dabei seit: 16.01.04
Beiträge: 779
Fähigkeiten: WBB2 Profi; WBB Lite 1 Fortgeschritten Herkunft: Bersenbrück Forenversion: 2.3; Lite 1.0
|
|
Ich weiß grad nich, obs schon zur Ansprache kam, aber die Einträge funktionieren mit dem erweiterten Editor nicht.
Es wird kein Content übergeben.
|
|
29.03.07 20:19 |
E-Mail
Finden
Als Freund hinzufügen
|
|
TieU
Mitglied
Dabei seit: 10.10.05
Beiträge: 5
|
|
Hallo Forum,
ich hatte die alte Version von xxlsau unter 2.3.3 installiert.
Nach dem Update auf 2.3.6pl2 erhalte ich eine fehlermeldung wenn ich auf einen Namen von einem User klicke der einen Eintrag gemacht hat.
code: |
1:
2:
|
Sie haben einen ungültigen Verweis angegeben. Wenn Sie einem korrekten Link gefolgt sind, sollten Sie den Administrator benachrichtigen.
Benutzen Sie den Zurück-Button Ihres Browsers oder klicken Sie hier! |
|
Wer kann helfen? Was ist zu tun?
Besten Dank im Voraus
TieU
|
|
30.03.07 15:50 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
Hajö
Mitglied
Dabei seit: 27.11.05
Beiträge: 26
|
|
Hallo TieU,
also mit der aktuellen Version (die hier) hab ich keine Probleme mit 2.3.6, weder unter PL1 noch unter PL2.
Hast Du mal den Link angesehen, auf den gelinkt wird?
Sollte so aussehen: http://www.DEINEDOMAIN.de/profile.php?userid=???
Eben mit Deiner Domain und der entsprechenden User ID dran...
Wenn der nicht so ist, dann poste mal bitte, was da steht, dann sehen wir weiter...
Gruß
Hajö
|
|
30.03.07 17:31 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
Hajö
Mitglied
Dabei seit: 27.11.05
Beiträge: 26
|
|
Hmmmmmmm... Das kann dann sowohl an der PHP Datei liegen als auch an dem Template.
Poste hier mal den Inhalt beider Dateien, dann seh ich es mir mal an...
Oder Du nutzt hier diese Verion des GB. Kann Du nicht ein Update machen?
Denn die hier funktioniert definitiv...
Gruß
Hajö
|
|
31.03.07 00:20 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
TieU
Mitglied
Dabei seit: 10.10.05
Beiträge: 5
|
|
Hallo Hajö,
klar könnte ich ein Update machen - bleiben die bisherigen GB-Einträge dabei erhalten?
Hier die Codes der beiden Dateien:
profile.tpl
code: |
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:
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:
201:
202:
203:
204:
205:
206:
207:
208:
|
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | {$lang->items['LANG_MEMBERS_PROFILE_TITLE']}</title>
$headinclude
<script type="text/javascript">
<!--
function rating(userid) {
window.open("misc.php?action=userrating&userid="+userid+"{$SID_ARG_2ND_UN}", "moo", "toolbar=no,scrollbars=yes,resizable=yes,width=350,height=205");
}
//-->
</script>
<script type="text/javascript">
<!--
var imageMaxWidth = $userpicwidth;
var imageMaxHeight = $userpicheight;
//-->
</script>
<script type="text/javascript" src="js/images.js"></script>
</head>
<body onload="resizeImages();">
$header
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tabletitle" align="left" colspan="2"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tabletitle_fc">
<td style="width:100%" align="left"><span class="smallfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_TITLE']}</b></span></td>
</tr>
</table></td>
</tr>
<tr>
<td class="tablea" style="width:100%" valign="top"><table style="width:100%" class="tablea_fc">
<tr align="left"><br />
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_REGDATE']}</b></span></td>
<td><span class="normalfont">$regdate</span></td>
</tr>
<tr align="left">
<td valign="top"><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_RANK']}</b></span></td>
<td><span class="normalfont">$user_info[ranktitle] $rankimages</span></td>
</tr>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_POSTS']}</b></span></td>
<td><span class="normalfont">$user_info[userposts] ({$lang->items['LANG_MEMBERS_PROFILE_POSTSPERDAY']})</span></td>
</tr>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_LASTACTIVITY']}</b></span></td>
<td><span class="normalfont">$la_date <span class="{time}">$la_time</span></span></td>
</tr>
<if($userlocation!="")>
<then>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_LOCATION']}</b></span></td>
<td><span class="normalfont">$userlocation</span></td>
</tr>
</then>
</if>
<if($showlastpost==1)>
<then>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_LASTPOST']}</b></span></td>
<td><span class="normalfont"><b>» <a href="thread.php?postid=$lastpost[postid]{$SID_ARG_2ND}#post$lastpost[postid]">$lastpost[topic]</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_MEMBERS_PROFILE_POSTED_ON']} $lastpostdate <span class="time">$lastposttime</span><br />
{$lang->items['LANG_MEMBERS_PROFILE_FORUM']} <b><a href="board.php?boardid=$lastpost[boardid]{$SID_ARG_2ND}">$lastpost[title]</a></b></span></td>
</tr>
</then>
</if>
<if($showlanguageinprofile==1)>
<then>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_LANGUAGE']}</b></span></td>
<td><span class="normalfont">$languagepackname</span></td>
</tr>
</then>
</if>
<if($user_info['gb_aktiv']==1)>
<then>
<tr align="left">
<td><span class="normalfont"><b>Gästebuch von $username:</b></span></td>
<td><span class="normalfont"><a href="gaestebuch.php?userid=$user_info[userid]">Gästebuch ansehen</a> / <a href="gaestebuch.php?userid=$user_info[userid]&action=entry">Eintrag hinzufügen</a></span></td>
</tr>
</then>
</if>
<tr>
<td align="left" colspan="2"><hr size="{$style['tableincellspacing']}" class="threadline" /></td>
</tr>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_ICQ']}</b></span></td>
<td><span class="normalfont">$user_info[icq]</span></td>
</tr>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_AIM']}</b></span></td>
<td><span class="normalfont">$user_info[aim]</span></td>
</tr>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_YIM']}</b></span></td>
<td><span class="normalfont">$user_info[yim]</span></td>
</tr>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_MSN']}</b></span></td>
<td><span class="normalfont">$user_info[msn]</span></td>
</tr>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_EMAIL']}</b></span></td>
<td><span class="normalfont">$useremail</span></td>
</tr>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_HOMEPAGE']}</b></span></td>
<td><span class="normalfont">$userhomepage</span></td>
</tr>
<tr>
<td align="left" colspan="2"><hr size="{$style['tableincellspacing']}" class="threadline" /></td>
</tr>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_GENDER']}</b></span></td>
<td><span class="normalfont">$gender</span></td>
</tr>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_BIRTHDAY']}</b></span></td>
<td><span class="normalfont">$birthday</span></td>
</tr>
<if($profilefields)>
<then>
<tr>
<td align="left" colspan="2"><hr size="{$style['tableincellspacing']}" class="threadline" /></td>
</tr>
</then>
</if>
$profilefields
<!-- VGProfil-Galerie by Viktor -->
<if($vgpgal_anz!=0)>
<then>
<tr>
<td align="left" colspan="2" valign="top"><a name="prof_gal" id="prof_gal"><hr size="{$style['tableincellspacing']}" class="threadline" /></td>
</tr>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_VGPROFIL_GAL_USTAT']}</b></span></td>
<td><span class="normalfont">$vgprofilgal_anz</span></td>
</tr>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_VGPROFIL_GAL_MBILDER']}</b></span></td>
<td><span class="normalfont">$pagelink</span></td>
</tr>
<tr align="left">
<td align="left" colspan="2"> $bild</td>
</tr>
<tr align="left">
<td align="left" colspan="2"> $bildmid</td>
</tr>
</then>
</if>
<!-- VGProfil-Galerie by Viktor -->
</table></td>
<td class="tableb" align="center"><br /><span class="normalfont"><b>Avatar</b></span><br /><br />$useravatar<br /><br /><br />
<span class="normalfont"><b>$userpicausgabe_text</b></span><br /><br />$userpicausgabe<br /><br />
<span class="smallfont"><a href="jgs_galerie_userbilder.php?userid={$user_info['userid']}&sid={$session['hash']}"><b>Meine Galerie</b></a><br /><br /></span>
<span class="smallfont"><a href="gaestebuch.php?userid={$user_info['userid']}&sid={$session['hash']}"><b>Mein Gästebuch</b></a><br /><br /></span>
<br />
$mod_map_profile_anz<br />$mod_map_profile_anz_km<br />
<br /><span class="normalfont">$user_text</span>$userrating<br />$userlevel<p><if($user_online==1)>
<then><img src="{$style['imagefolder']}/user_online.gif" border="0" alt="{$lang->items['LANG_MEMBERS_USERONLINE']}" title="{$lang->items['LANG_MEMBERS_USERONLINE']}" /></then>
<else><img src="{$style['imagefolder']}/user_offline.gif" border="0" alt="{$lang->items['LANG_MEMBERS_USEROFFLINE']}" title="{$lang->items['LANG_MEMBERS_USEROFFLINE']}" /></else>
</if></p><img src="{$style['imagefolder']}/spacer.gif" width="159" height="1" border="0" alt="" title="" /></td>
</tr>
<tr>
<td class="tabletitle" colspan="2"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tabletitle_fc">
<td align="left"><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_CONTACT']}</b></span></td>
<td align="right">
<if($vguser_db['userid'])>
<then>
<a href="vguser_db.php?action=show_daten&userid=$vguser_db[userid]{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/top_portrait.gif" border="0" alt="" title="" /></a></then>
</if>
<if($user_info['showemail']==0 && $user_info['usercanemail']==1)>
<then><a href="formmail.php?userid=$user_info[userid]{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/email.gif" border="0" alt="{$lang->items['LANG_MEMBERS_SENDEMAIL']}" title="{$lang->items['LANG_MEMBERS_SENDEMAIL']}" /></a></then>
</if>
<if($user_info['receivepm']==1 && $wbbuserdata['can_use_pms']==1)><then><a href="pms.php?action=newpm&userid=$user_info[userid]{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/pm.gif" border="0" alt="{$lang->items['LANG_MEMBERS_PM']}" title="{$lang->items['LANG_MEMBERS_PM']}" /></a></then></if>
<a href="search.php?action=user&userid=$user_info[userid]{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/search.gif" border="0" alt="{$lang->items['LANG_MEMBERS_SEARCH']}" title="{$lang->items['LANG_MEMBERS_SEARCH']}" /></a>
<a href="usercp.php?action=buddy&add=$user_info[userid]{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/homie.gif" border="0" alt="{$lang->items['LANG_MEMBERS_BUDDY']}" title="{$lang->items['LANG_MEMBERS_BUDDY']}" /></a></td>
</tr>
</table></td>
</tr>
</table>
<if(checkAdminPermissions("a_can_users_edit") || checkAdminPermissions("a_can_users_delete"))>
<then>
<p align="center"><span class="smallfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_ADMINOPTIONS']}</b>
<if(checkAdminPermissions("a_can_users_edit"))><then><a href="acp/forum.php?url=users.php%3Faction%3Dedit%26userid%3D$user_info[userid]" target="_blank">{$lang->items['LANG_MEMBERS_PROFILE_USEREDIT']}</a></then></if>
<if(checkAdminPermissions("a_can_users_edit") && checkAdminPermissions("a_can_users_delete"))><then> | </then></if>
<if(checkAdminPermissions("a_can_users_delete"))><then><a href="acp/forum.php?url=users.php%3Faction%3Ddelete%26userid%5B%5D%3D$user_info[userid]" target="_blank">{$lang->items['LANG_MEMBERS_PROFILE_USERDEL']}</a></then></if></span></p>
</then>
</if>
$footer
</body>
</html> |
|
profil.php
code: |
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:
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:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
|
<?php
// ************************************************************************************//
// * WoltLab Burning Board 2
// ************************************************************************************//
// * Copyright (c) 2001-2004 WoltLab GmbH
// * Web http://www.woltlab.de/
// * License http://www.woltlab.de/products/burning_board/license_en.php
// * http://www.woltlab.de/products/burning_board/license.php
// ************************************************************************************//
// * WoltLab Burning Board 2 is NOT free software.
// * You may not redistribute this package or any of it's files.
// ************************************************************************************//
// * $Date: 2004-10-20 13:24:57 +0200 (Wed, 20 Oct 2004) $
// * $Author: Burntime $
// * $Rev: 1453 $
// ************************************************************************************//
$filename = 'profile.php';
require('./global.php');
require_once('./acp/lib/vghacks.inc.php');
if ($wbbuserdata['can_view_profile'] == 0) access_error();
require('./acp/lib/class_parse.php');
$lang->load('MEMBERS,THREAD');
$userid = intval($_GET['userid']);
$username = $_GET['username'];
if ( (!$userid) && ($username==""))
error ("Internal Error [0111471508] please report to gonz.");
// error($lang->get("LANG_GLOBAL_ERROR_FALSELINK", array('$adminmail' => $adminmail)));
if (!$userid)
{
$userid_info = $db->query_first("SELECT * FROM bb".$n."_users WHERE username='$username'");
$userid = $userid_info['userid'];
}
$user_info = $db->query_first("SELECT ".
"u.*, ".
"uf.*, ".
"r.rankimages, r.ranktitle, ".
"a.avatarextension, a.width, a.height, ".
"s.lastactivity AS s_lastactivity, s.boardid, s.threadid, s.request_uri ".
($showlanguageinprofile == 1 ? ", l.languagepackname " : "").
"FROM bb".$n."_users u ".
"LEFT JOIN bb".$n."_userfields uf USING (userid) ".
"LEFT JOIN bb".$n."_avatars a ON (a.avatarid=u.avatarid) ".
"LEFT JOIN bb".$n."_ranks r ON (r.rankid=u.rankid) ".
"LEFT JOIN bb".$n."_sessions s ON (s.userid=u.userid) ".
($showlanguageinprofile == 1 ? "LEFT JOIN bb".$n."_languagepacks l ON (l.languagepackid=u.langid) " : "").
"WHERE u.userid='$userid'");
if (!$user_info['userid']) error($lang->get("LANG_GLOBAL_ERROR_FALSELINK", array('$adminmail' => $adminmail)));
$user_info['username'] = htmlconverter($user_info['username']);
$lang->items['LANG_MEMBERS_PROFILE_TITLE'] = $lang->get("LANG_MEMBERS_PROFILE_TITLE", array('$username' => $user_info['username']));
/* regdate */
$regdate = formatdate($wbbuserdata['dateformat'], $user_info['regdate']);
/* last activity */
if ($user_info['invisible'] == 0 || $wbbuserdata['a_can_view_ghosts'] == 1) {
$la_date = formatdate($wbbuserdata['dateformat'], $user_info['lastactivity'], 1);
$la_time = formatdate($wbbuserdata['timeformat'], $user_info['lastactivity']);
}
else {
$la_date = $lang->items['LANG_MEMBERS_PROFILE_NODECLARATION'];
$la_time = '';
}
/* posts per day */
$regdays = (time() - $user_info['regdate']) / 86400;
if ($regdays < 1) $postperday = $user_info['userposts'];
else $postperday = $user_info['userposts'] / $regdays;
$postperday = number_format($postperday, 2, $lang->get("LANG_GLOBAL_DEC_POINT"), $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
$lang->items['LANG_MEMBERS_PROFILE_POSTSPERDAY'] = $lang->get("LANG_MEMBERS_PROFILE_POSTSPERDAY", array('$postperday' => $postperday));
/* usertext */
if ($user_info['usertext']) $user_text = nl2br(htmlconverter(textwrap($user_info['usertext'], 40)));
else $user_text = '';
/* Gender Mod by CSchulle & edit fürs Board2.3 by Yve*/
if($user_info['gender']) {
if($user_info['gender']==1) eval ("\$gender = \"".$lang->get4eval("LANG_MEMBERS_PROFILE_MALE")."\";");
if($user_info['gender']==2) eval ("\$gender = \"".$lang->get4eval("LANG_MEMBERS_PROFILE_FEMALE")."\";");
if($user_info['gender']==3) eval ("\$gender = \"".$lang->get4eval("LANG_MEMBERS_PROFILE_PAAR")."\";");
if($user_info['gender']==4) eval ("\$gender = \"".$lang->get4eval("LANG_MEMBERS_PROFILE_TV_TS")."\";");
if($user_info['gender']==0) eval ("\$gender = \"".$lang->get4eval("LANG_MEMBERS_PROFILE_NODECLARATION")."\";");
}
/* usertitle */
if ($user_info['title']) $user_info['ranktitle'] = htmlconverter($user_info['title']);
else $user_info['ranktitle'] = getlangvar($user_info['ranktitle'], $lang);
$rankimages = formatRI($user_info['rankimages']);
/* avatar */
if ($user_info['avatarid'] && $showavatar == 1 && $wbbuserdata['showavatars'] == 1) {
$avatarname = "images/avatars/avatar-$user_info[avatarid].".htmlconverter($user_info['avatarextension']);
$avatarwidth = $user_info['width'];
$avatarheight = $user_info['height'];
if ($user_info['avatarextension'] == "swf" && $allowflashavatar == 1) {
eval("\$useravatar = \"".$tpl->get("avatar_flash")."\";");
}
elseif ($user_info['avatarextension'] != "swf") eval("\$useravatar = \"".$tpl->get("avatar_image")."\";");
}
/* useremail */
if ($user_info['showemail'] == 1) {
$user_info['email'] = getASCIICodeString($user_info['email']);
$useremail = makehreftag("mailto:".$user_info['email'], $user_info['email']);
}
else $useremail = $lang->items['LANG_MEMBERS_PROFILE_NODECLARATION'];
/* homepage */
if ($user_info['homepage']) {
$user_info['homepage'] = htmlconverter($user_info['homepage']);
$userhomepage = makehreftag($user_info['homepage'], $user_info['homepage'], "_blank");
}
else $userhomepage = $lang->items['LANG_MEMBERS_PROFILE_NODECLARATION'];
/* icq, aim, yim, msn */
if (!$user_info['icq']) $user_info['icq'] = $lang->items['LANG_MEMBERS_PROFILE_NODECLARATION'];
if (!$user_info['aim']) $user_info['aim'] = $lang->items['LANG_MEMBERS_PROFILE_NODECLARATION'];
else $user_info['aim'] = htmlconverter($user_info['aim']);
if (!$user_info['yim']) $user_info['yim'] = $lang->items['LANG_MEMBERS_PROFILE_NODECLARATION'];
else $user_info['yim'] = htmlconverter($user_info['yim']);
if (!$user_info['msn']) $user_info['msn'] = $lang->items['LANG_MEMBERS_PROFILE_NODECLARATION'];
else $user_info['msn'] = htmlconverter($user_info['msn']);
/* birthday */
if ($user_info['birthday'] && $user_info['birthday'] != '0000-00-00') {
$birthday_array = explode('-', $user_info['birthday']);
if ($birthday_array[0] == '0000') $birthday = $birthday_array[2].".".$birthday_array[1].".";
else $birthday = $birthday_array[2].".".$birthday_array[1].".".$birthday_array[0];
}
else $birthday = $lang->items['LANG_MEMBERS_PROFILE_NODECLARATION'];
/* profilefields */
$profilefields = '';
$result = $db->unbuffered_query("SELECT profilefieldid, title, fieldtype FROM bb".$n."_profilefields".(($wbbuserdata['a_can_view_hidden'] == 0) ? (" WHERE hidden=0") : (""))." ORDER BY fieldorder ASC");
while ($row = $db->fetch_array($result)) {
$fieldid = "field".$row['profilefieldid'];
if (!$user_info[$fieldid] || $user_info[$fieldid] == "0000-00-00") $user_info[$fieldid] = $lang->items['LANG_MEMBERS_PROFILE_NODECLARATION'];
else {
if ($row['fieldtype'] == "multiselect") $user_info[$fieldid] = htmlconverter(textwrap(str_replace("\n", "; ", $user_info[$fieldid]), 50));
elseif ($row['fieldtype'] == "date") {
$row_datearray = explode("-", $user_info[$fieldid]);
if ($row_datearray[0] == "0000") $user_info[$fieldid] = $row_datearray[2].".".$row_datearray[1].".";
else $user_info[$fieldid] = $row_datearray[2].".".$row_datearray[1].".".$row_datearray[0];
}
else $user_info[$fieldid] = htmlconverter(textwrap($user_info[$fieldid], 50));
}
$row['title'] = getlangvar($row['title'], $lang);
eval("\$profilefields .= \"".$tpl->get("profile_userfield")."\";");
}
/* users lastpost */
$showlastpost = 0;
if ($showlastpostinprofile == 1 && $wbbuserdata['can_enter_board'] == 1) {
$boardids = '';
$permissioncache = getPermissions();
$result = $db->unbuffered_query("SELECT boardid, password, invisible FROM bb".$n."_boards");
while ($row = $db->fetch_array($result)) {
if ($row['password'] != '' || $row['invisible'] == 2) continue;
if (!isset($permissioncache[$row['boardid']]['can_enter_board']) || $permissioncache[$row['boardid']]['can_enter_board'] != 0) $boardids .= ",".$row['boardid'];
}
if ($boardids != '') {
$lastpost = $db->query_first("SELECT p.postid, p.posttime, t.topic, t.boardid, b.title FROM bb".$n."_posts p, bb".$n."_threads t
LEFT JOIN bb".$n."_boards b ON (t.boardid=b.boardid)
WHERE p.threadid=t.threadid AND t.boardid IN (0$boardids) AND p.userid = '$userid' AND p.visible=1
ORDER BY p.posttime DESC", 1);
if ($lastpost['postid']) {
$lastpostdate = formatdate($wbbuserdata['dateformat'], $lastpost['posttime'], 1);
$lastposttime = formatdate($wbbuserdata['timeformat'], $lastpost['posttime']);
$lastpost['topic'] = htmlconverter(textwrap($lastpost['topic']));
$lastpost['title'] = getlangvar($lastpost['title'], $lang);
$showlastpost = 1;
}
}
}
/* buttons for search, buddy, pm, email */
$username = $user_info['username'];
$lang->items['LANG_MEMBERS_SEARCH'] = $lang->get("LANG_MEMBERS_SEARCH", array('$username' => $username));
$lang->items['LANG_MEMBERS_BUDDY'] = $lang->get("LANG_MEMBERS_BUDDY", array('$username' => $username));
if ($user_info['receivepm'] == 1 && $wbbuserdata['can_use_pms'] == 1) $lang->items['LANG_MEMBERS_PM'] = $lang->get("LANG_MEMBERS_PM", array('$username' => $username));
if ($user_info['showemail'] == 0 && $user_info['usercanemail'] == 1) $lang->items['LANG_MEMBERS_SENDEMAIL'] = $lang->get("LANG_MEMBERS_SENDEMAIL", array('$username' => $username));
/* user online */
if (($user_info['invisible'] == 0 || $wbbuserdata['a_can_view_ghosts'] == 1) && $user_info['lastactivity'] >= time() - $useronlinetimeout * 60) {
$user_online = 1;
$lang->items['LANG_MEMBERS_USERONLINE'] = $lang->get("LANG_MEMBERS_USERONLINE", array('$username' => $username));
}
else {
$user_online = 0;
$lang->items['LANG_MEMBERS_USEROFFLINE'] = $lang->get("LANG_MEMBERS_USEROFFLINE", array('$username' => $username));
}
/* wiw */
$userlocation = '';
if ($showuserlocation == 1 && $user_info['s_lastactivity'] >= (time() - 60 * $useronlinetimeout)) {
include('./acp/lib/class_useronline.php');
include('./acp/lib/class_wiw.php');
$lang->load('WIW');
$wiw = &new WIW($wbbuserdata['a_can_view_ghosts']);
$wiw->insert($user_info);
$wiw->cache();
if ($row = $wiw->get()) $userlocation = $row['location'];
}
/* userrating */
if ($userratings == 1) $userrating = userrating($user_info['ratingcount'], $user_info['ratingpoints'], $user_info['userid']);
else $userrating = '';
/* userlevel */
if ($userlevels == 1) $userlevel = userlevel($user_info['userposts'], $user_info['regdate']);
else $userlevel = '';
if ($user_info['userposts'] >= 1000) $user_info['userposts'] = number_format($user_info['userposts'], 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
/* languagepack */
if ($showlanguageinprofile == 1) {
$languagepackname = getlangvar($user_info['languagepackname'], $lang);
}
else $languagepackname = '';
/* VGProfil Galerie by Viktor */
$vgpgal_anz = 0;
$bild = '';
$bildmid = '';
if($wbbuserdata['can_show_vgprofil_gal']==1) {
list($vgpgal_anz) = $db->query_first("SELECT count(id) FROM bb".$n."_vgprofil_gal_user_bilder WHERE userid = '".$user_info['userid']."'");
if($vgpgal_anz!=0) {
$vgprofilgal_anz = '';
$lang->items['LANG_MEMBERS_PROFILE_VGPROFIL_GAL_USTAT_EINZEL'] = $lang->get("LANG_MEMBERS_PROFILE_VGPROFIL_GAL_USTAT_EINZEL", array('$vgprofilgal_ustat' => $vgpgal_anz));
$lang->items['LANG_MEMBERS_PROFILE_VGPROFIL_GAL_USTAT_MEHR'] = $lang->get("LANG_MEMBERS_PROFILE_VGPROFIL_GAL_USTAT_MEHR", array('$vgprofilgal_ustat' => $vgpgal_anz));
if($vgpgal_anz==1) $vgprofilgal_anz = $lang->items['LANG_MEMBERS_PROFILE_VGPROFIL_GAL_USTAT_EINZEL'];
else $vgprofilgal_anz = $lang->items['LANG_MEMBERS_PROFILE_VGPROFIL_GAL_USTAT_MEHR'];
/* Profilbild holen */
$prof_info = $db->query_first("SELECT * FROM bb".$n."_vgprofil_gal_user_bilder WHERE userid = '".$user_info['userid']."' AND defau = '1'");
if($prof_info['id']) {
$id = $prof_info['id'];
$vgprofilwidth = $prof_info['owidth'] + 60;
$vgprofilheight = $prof_info['oheight'] + 100;
eval ("\$bildmid = \"".$tpl->get("vgprofil_gal_pic_show_mid")."\";");
}
/* Anzahl der freigegebenen Bilder ermitteln */
list($bildercount) = $db->query_first("SELECT count(u.id)
FROM bb".$n."_vgprofil_gal_user_bilder u
LEFT JOIN bb".$n."_vgprofil_gal_user_frei uf USING (id)
WHERE u.userid = '".$user_info['userid']."' AND u.frei = '1' AND u.defau = '0'
OR ( u.userid = '".$user_info['userid']."' AND uf.id = u.id AND uf.userid = '".$wbbuserdata['userid']."')");
/* Wie viele Bilder auf einer Seite */
list($bilderperpage) = $db->query_first("SELECT config_value FROM bb".$n."_vgprofil_gal_config WHERE config_name = 'anzahl_prof'");
if(isset($_REQUEST['page'])){
$page = intval($_REQUEST['page']);
if($page == "0") $page = "1";
}
else $page = "1";
$pages = ceil($bildercount / $bilderperpage);
$result = $db->query("SELECT u.* FROM bb".$n."_vgprofil_gal_user_bilder u
LEFT JOIN bb".$n."_vgprofil_gal_user_frei uf USING (id)
WHERE u.userid = '".$user_info['userid']."' AND u.frei = '1' AND u.defau = '0'
OR ( u.userid = '".$user_info['userid']."' AND uf.id = u.id AND uf.userid = '".$wbbuserdata['userid']."' ) ORDER by u.datum ASC",$bilderperpage,$bilderperpage*($page-1));
while($row=$db->fetch_array($result)) {
$id = $row['id'];
$vgprofilwidth = $row['owidth'] + 60;
$vgprofilheight = $row['oheight'] + 100;
eval ("\$bild .= \"".$tpl->get("vgprofil_gal_pic_show_thumbnail")."\";");
}
if($bildercount) $countfrom = 1+$bilderperpage*($page-1);
else $countfrom=0;
$countto = $bilderperpage*$page;
if($countto > $bildercount) $countto = $bildercount;
if($pages > 1) $pagelink = makepagelink_pgal("profile.php?userid=$userid$SID_ARG_2ND",$page,$pages,2);
}
}
/* VGProfil Galerie by Viktor */
// ### Begin User-Pic by Viktor
if($wbbuserdata['can_use_userpicupload_show']) {
$ownuserpic = $db->query_first("SELECT userpicid, userpicextension, width, height, freis FROM bb".$n."_userpic WHERE userid = '".$userid."'");
if ($ownuserpic['userpicid']) {
if($ownuserpic['freis']=='0') {
$lang->load('USERCP');
$userpicid = $ownuserpic['userpicid'];
$userpicname = "userpic/userpic-".$ownuserpic['userpicid'].".".$ownuserpic['userpicextension'];
if($ownuserpic['width']>$wbbuserdata['max_avatar_width'] && $ownuserpic['height']>$wbbuserdata['max_avatar_height']) {
$userpicwidth = $wbbuserdata['max_avatar_width'];
$userpicheight = $wbbuserdata['max_avatar_height'];
} else {
$userpicwidth = $ownuserpic['width'];
$userpicheight = $ownuserpic['height'];
}
$userpicwidth_pop = 640;
$userpicheight_pop = 480;
if ($ownuserpic['userpicextension'] == "swf") {
eval("\$userpic_ausgabe = \"".$tpl->get("userpic_flash")."\";");
}
elseif ($ownuserpic['userpicextension'] != "swf") eval("\$userpic_ausgabe = \"".$tpl->get("userpic_image")."\";");
eval("\$userpicausgabe = \"".$tpl->get("userpic_profile")."\";");
eval("\$userpicausgabe_text = \"".$tpl->get("userpic_profile_text")."\";");
}
}
}
// ### End User-Pic by Viktor
eval("\$tpl->output(\"".$tpl->get("profile")."\");");
?> |
|
|
|
02.04.07 09:29 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
Shinji-kun
Mitglied
Dabei seit: 11.12.06
Beiträge: 5
Forenversion: 2.3
|
|
mal ne frage,
habe schon das GB von Ghostmaster instaliert~ (meins war english, habe es jedoch ins deusche übersetzt...) aber meine frage ist gibt es unterschiede zu der version von Ghost?
|
|
02.04.07 12:40 |
E-Mail
Finden
Als Freund hinzufügen
|
|
\JaN\
Mitglied
Dabei seit: 26.03.06
Beiträge: 7
|
|
Moin jetzt hab ich auch mal ne Frage habe den Hack installiert und ich sage mal einfach nach Anleitung jetzt hab ich folgendes Problem welches ich hier auch schonmal gelesen habe aber keine Antwort gefunden habe soweit im ACP und im Profil ist alles drinne aber sobalt ich eintrag schreiben oder ansehen anklicke kommt nur eine weiße Seite language pack hab ich importiert...
|
|
02.04.07 20:32 |
E-Mail
Finden
Als Freund hinzufügen
|
|
andaluz
Mitglied
Dabei seit: 12.05.04
Beiträge: 33
Herkunft: Baden Forenversion: 2.3.4
|
|
Hi Leute,
möchte ja nicht drängeln, hab mich auch geduldet bis zum Wochenende, jetzt sind sogar schon zwei Wochenende rum.
Erweiterter Editor geht nicht, es wird kein Content übergeben.
Grüße Uwe
__________________ um seine Grenzen zu erfahren muss man sie überschreiten
|
|
02.04.07 21:39 |
E-Mail
Finden
Als Freund hinzufügen
|
|
\JaN\
Mitglied
Dabei seit: 26.03.06
Beiträge: 7
|
|
Habe gerade gesehen jetzt werden mehrere php Seiten von mir weiß angezeigt aber erst seit dem hack hat einer ne ahnung womit das zusammen hängen kann??
|
|
02.04.07 22:07 |
E-Mail
Finden
Als Freund hinzufügen
|
|
TieU
Mitglied
Dabei seit: 10.10.05
Beiträge: 5
|
|
Hallo Hajö,
pardon, da hatte ich dich falsch verstanden.
Hier die "gaestebuch.php"
code: |
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:
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:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
|
<?php
$filename="gaestebuch.php";
require("global.php");
require('./acp/lib/class_parse.php');
$lang->load('GB,POST,POSTINGS');
if (isset($_REQUEST['action'])) $action = $_REQUEST['action'];
else $action = 'index';
$userid = intval($_GET['userid']);
$username = $_GET['username'];
if ( (!$userid) && ($username==""))
error($lang->get("LANG_GLOBAL_ERROR_FALSELINK", array('$adminmail' => $adminmail)));
$db->query("UPDATE bb1_users SET gb_freischalt='0';");
$db->query("UPDATE bb1_gaestebuch SET freischalten='0';");
if (!$userid)
{
$userid_info = $db->query_first("SELECT * FROM bb".$n."_users "."WHERE username='$username'");
$userid = $userid_info['userid'];
}
$user_info = $db->query_first("SELECT ".
"u.*, ".
"uf.*, ".
"r.rankimages, r.ranktitle, ".
"a.avatarextension, a.width, a.height, ".
"s.lastactivity AS s_lastactivity, s.boardid, s.threadid, s.request_uri ".
($showlanguageinprofile == 1 ? ", l.languagepackname " : "").
"FROM bb".$n."_users u ".
"LEFT JOIN bb".$n."_userfields uf USING (userid) ".
"LEFT JOIN bb".$n."_avatars a ON (a.avatarid=u.avatarid) ".
"LEFT JOIN bb".$n."_ranks r ON (r.rankid=u.rankid) ".
"LEFT JOIN bb".$n."_sessions s ON (s.userid=u.userid) ".
($showlanguageinprofile == 1 ? "LEFT JOIN bb".$n."_languagepacks l ON (l.languagepackid=u.langid) " : "").
"WHERE u.userid='$userid'");
if ($user_info['gb_aktiv']==0) {
$error_msg = $lang->get("Das Gästebuch wurde deaktiviert.");
eval("\$tpl->output(\"".$tpl->get("error")."\");");
exit();
}
if ($user_info['gb_gaeste']==0 && $wbbuserdata['userid']==0) {
access_error();
exit();
}
/** Startseite **/
if ($action == 'index') {
$perpage = 10;
$pagecount = $db->query_first("SELECT COUNT(*) FROM bb".$n."_gaestebuch WHERE userid='".$user_info['userid']."' AND freischalten = 0");
$pagecount = $pagecount[0];
if(isset($_GET['page'])) {
$page=intval($_GET['page']);
if($page==0) $page=1;
}
else $page=1;
$pages = ceil($pagecount/$perpage);
if($pages>1) $pagelink=makepagelink("gaestebuch.php?userid=$user_info[userid]",$page,$pages,$showpagelinks-1);
$displayorder = 0;
$result = $db->query("SELECT * FROM bb".$n."_gaestebuch LEFT JOIN bb".$n."_icons USING (iconid) WHERE userid='".$user_info['userid']."' AND freischalten=0 ORDER BY time ".(($displayorder) ? ("ASC") : ("DESC"))." LIMIT ".($perpage*($page-1)).",".$perpage."");
while($showbit = $db->fetch_array($result)) {
if ($showbit['iconid']) $gbicon = makeimgtag($showbit['iconpath'], getlangvar($showbit['icontitle'], $lang), 0);
else $gbicon = ' ';
$parse=new parse($docensor,90,1,"",1);
$message=$parse->doparse($showbit['message'], 1,0,1,1);
$datum = formatdate($wbbuserdata['dateformat'],$showbit['time']);
$time = formatdate($wbbuserdata['timeformat'],$showbit['time']);
$pagecount--;
$counter = (($displayorder) ? (($page-1)*$perpage) : ($pagecount + 1 - ($page-1)*$perpage));
eval ("\$gb_bit .= \"".$tpl->get("gb_show_bit")."\";");
}
eval("\$tpl->output(\"".$tpl->get("gb_show")."\");");
}
/** Gstebucheintrag hinzufügen **/
if ($action== 'entry') {
if ($user_info['gb_freischalt']==1) $freischalten =1;
else $freischalten = 0;
if ($wbbuserdata['userid']==0) {
if(isset($_POST['send'])) {
$time = time();
$db->query("INSERT INTO bb".$n."_gaestebuch (userid,topic,creater,email,iconid,message,time,freischalten) VALUES ('".$userid."','".addslashes($topic)."','".addslashes($name)."','".addslashes($email)."','$iconid','".addslashes($message)."','$time','".$freischalten."')");
header("Location: gaestebuch.php?userid=$user_info[userid]");
exit();
}
}
if(isset($_POST['send'])) {
$time = time();
$db->query("INSERT INTO bb".$n."_gaestebuch (userid,topic,creater,email,iconid,message,time,freischalten) VALUES ('".$userid."','".addslashes($topic)."','".$wbbuserdata['username']."','".$wbbuserdata['email']."','$iconid','".addslashes($message)."','$time','".$freischalten."')");
if ($user_info['gb_freischalt'] == 1) {
$waittime = 5;
$msg = $lang->get("Dein Eintrag wird von $user_info[username] überprüft und gegebenenfalls freigeschalten.");
$url = "gaestebuch.php?userid=$userid";
eval("\$tpl->output(\"".$tpl->get("redirect")."\");");
exit();
}
else {
header("Location: gaestebuch.php?userid=$userid");
exit();
}
}
$bbcode_smilies = getclickysmilies($smilie_table_cols,$smilie_table_rows);
$bbcode_buttons=getcodebuttons();
$gb_icons = getIcons($iconid);
eval("\$headinclude .=\"".$tpl->get("bbcode_script")."\";");
eval("\$tpl->output(\"".$tpl->get("gb_entry")."\");");
}
/** Gstebucheintrag bearbeiten **/
if ($action== 'entryedit') {
if (isset($_REQUEST['entryid'])) $entryid = intval($_REQUEST['entryid']);
else $entryid = 0;
$gbinfo = $db->query_first("SELECT * FROM bb".$n."_gaestebuch WHERE entryid='".$entryid."'");
$userinfo = $db->query_first("SELECT * FROM bb".$n."_users WHERE userid='".$gbinfo['userid']."'");
if (isset($_POST['send2'])) {
if ($_POST['deletegbentry'] == 1) {
$db->query("DELETE FROM bb".$n."_gaestebuch WHERE entryid='".$entryid."'");
}
header("Location: gaestebuch.php?userid=$user_info[userid]");
exit();
}
if(isset($_POST['send'])) {
$db->query("UPDATE bb".$n."_gaestebuch SET topic='".addslashes($topic)."', iconid='$iconid', message='".addslashes($message)."' WHERE entryid='".$entryid."'");
header("Location: gaestebuch.php?userid=$user_info[userid]");
exit();
}
$iconid = $gbinfo['iconid'];
if (!isset($iconid)) $iconid = 0;
$gb_icons = getIcons($iconid);
$bbcode_smilies = getclickysmilies($smilie_table_cols,$smilie_table_rows);
$bbcode_buttons=getcodebuttons();
eval("\$headinclude .=\"".$tpl->get("bbcode_script")."\";");
eval("\$tpl->output(\"".$tpl->get("gb_entry_edit")."\");");
}
/** Gästebucheintrag freischalten **/
if ($action == 'freischalt') {
$pageperpage = 10;
$pagecount = $db->query_first("SELECT COUNT(*) FROM bb".$n."_gaestebuch WHERE userid='".$user_info['userid']."' AND freischalten = 1");
$pagecount = $pagecount[0];
if(isset($_GET['page'])) {
$page=intval($_GET['page']);
if($page==0) $page=1;
}
else $page=1;
$pages = ceil($pagecount/$pageperpage);
if($pages>1) $pagelink=makepagelink("gaestebuch.php?userid=$user_info[userid]&action=freischalt",$page,$pages,$showpagelinks-1);
if($wbbuserdata['userid'] == $user_info['userid']) {
$result = $db->query("SELECT * FROM bb".$n."_gaestebuch LEFT JOIN bb".$n."_icons USING (iconid) WHERE userid='".$user_info['userid']."' AND freischalten='1' ORDER BY time DESC LIMIT ".($pageperpage*($page-1)).",".$pageperpage."");
while($showbit = $db->fetch_array($result)) {
if ($showbit['iconid']) $gbicon = makeimgtag($showbit['iconpath'], getlangvar($showbit['icontitle'], $lang), 0);
else $gbicon = ' ';
$parse=new parse($docensor,90,1,"",1);
$message=$parse->doparse($showbit['message'], 1,0,1,1);
$datum = formatdate($wbbuserdata['dateformat'],$showbit['time']);
$time = formatdate($wbbuserdata['timeformat'],$showbit['time']);
$count++;
$counter = number_format($count+(($page-1)*$pageperpage));
eval ("\$freischalt_bit .= \"".$tpl->get("gb_freischalt_bit")."\";");
}
eval("\$tpl->output(\"".$tpl->get("gb_freischalt")."\");");
}
else {
access_error();
exit;
}
}
/** Freischalten **/
if ($action== 'freischaltung') {
if (isset($_REQUEST['entryid'])) $entryid = intval($_REQUEST['entryid']);
else $entryid = 0;
$gbinfo = $db->query_first("SELECT * FROM bb".$n."_gaestebuch WHERE entryid='".$entryid."'");
$userinfo = $db->query_first("SELECT * FROM bb".$n."_users WHERE userid='".$gbinfo['userid']."'");
$db->query("UPDATE bb".$n."_gaestebuch SET freischalten=0 WHERE entryid='".$entryid."'");
header("Location: gaestebuch.php?userid=$user_info[userid]&action=freischalt");
exit();
}
/** Löschen **/
if ($action== 'del') {
if (isset($_REQUEST['entryid'])) $entryid = intval($_REQUEST['entryid']);
else $entryid = 0;
$gbinfo = $db->query_first("SELECT * FROM bb".$n."_gaestebuch WHERE entryid='".$entryid."'");
$userinfo = $db->query_first("SELECT * FROM bb".$n."_users WHERE userid='".$gbinfo['userid']."'");
$db->query("DELETE FROM bb".$n."_gaestebuch WHERE entryid='".$entryid."'");
header("Location: gaestebuch.php?userid=$user_info[userid]&action=freischalt");
exit();
}
?> |
|
und die templates
"gb_entry"
code: |
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:
|
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | Profil von $user_info[username] | Gästebuch von $user_info[username] | {$lang->items['LANG_GB_ENTRY_ADD']}</title>
$headinclude
</head>
<body onload="resizeImages();">
$header
<form method="post" action="gaestebuch.php?userid=$user_info[userid]" name="bbform" onSubmit="return validate(this)" onreset="resetAppletText()">
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tabletitle" colspan="3" align="left"><span class="smallfont"><b>{$lang->items['LANG_GB_ENTRY_ADD']}<b></span></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_GB_ENTRY_TITLE']}</b></span></td>
<td class="tablea"><input class="input" type="text" name="topic" value="" size="40" maxlength="100" /></td>
</tr>
<if($wbbuserdata[userid]==0)><then>
<tr align="left">
<td class="tableb"><span class="normalfont"><b>{$lang->items['LANG_GB_ENTRY_NAME']}</b></span></td>
<td class="tableb"><input class="input" type="text" name="name" value="" size="40" maxlength="100" /></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_GB_ENTRY_MAIL']}</b></span></td>
<td class="tablea"><input class="input" type="text" name="email" value="" size="40" maxlength="100" /></td>
</tr>
</then></if>
$gb_icons
<tr class="tablea">
<td valign="top">
<p>
<table cellpadding="4" cellspacing="1" border="0" class="tableinborder">
</table></p>
<p>$bbcode_smilies</p></td>
<td><table>
<tr>
<td align="center">$bbcode_buttons</td>
</tr>
<tr>
<td><textarea name="message" rows="20" style="width:100%"></textarea></td>
</tr>
</table>
</table>
<p align="center">
<input type="hidden" name="send" value="send" />
<input type="hidden" name="action" value="$action" />
<input type="hidden" name="userid" value="$user_info[userid]" />
<input type="hidden" name="sid" value="$session[hash]" />
<input type="submit" value="Speichern" class="input" />
<input type="reset" value="Zurücksetzen" class="input" />
</p>
</form>
$footer
</body>
</html> |
|
"gb_entry_edit"
code: |
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:
|
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | Profil von $user_info[username] | Gästebuch von $user_info[username] | {$lang->items['LANG_GB_ENTRY_EDIT']}</title>
$headinclude
</head>
<body>
$header
<form action="gaestebuch.php?userid=$user_info[userid]&action=entryedit" method="post">
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tabletitle" colspan="3" align="left"><span class="normalfont"><b>{$lang->items['LANG_GB_ENTRY_DEL']}</b></span></td>
</tr>
<tr align="left">
<td class="tableb"><span class="normalfont"><input type="checkbox" name="deletegbentry" value="1" /><b> {$lang->items['LANG_GB_ENTRY_DEL_DESC']}</b></span></td>
<td class="tableb"><span class="normalfont"><b> {$lang->items['LANG_GB_ENTRY_DEL_DESC_1']}</b></span></td>
<td class="tableb">
<input type="hidden" name="entryid" value="$entryid">
<input type="hidden" name="userid" value="$user_info[userid]">
<input type="hidden" name="send2" value="send2" />
<input type="submit" value="{$lang->items['LANG_GB_ENTRY_DEL']}" class="input" /></td>
</tr>
</table>
<br />
</form>
<form method="post" action="gaestebuch.php?userid=$user_info[userid]&action=entryedit" name="bbform" onSubmit="return validate(this)">
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tabletitle" colspan="3" align="left"><span class="normalfont"><b>{$lang->items['LANG_GB_ENTRY_EDIT']}<b></span></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_GB_ENTRY_TITLE']}</b></span></td>
<td class="tablea"><input class="input" type="text" name="topic" value="$gbinfo[topic]" size="40" maxlength="100" /></td>
</tr>
$gb_icons
<tr class="tablea">
<td valign="top">
<p>
<table cellpadding="4" cellspacing="1" border="0" class="tableinborder">
</table></p>
<p>$bbcode_smilies</p></td>
<td><table>
<tr>
<td align="center">$bbcode_buttons</td>
</tr>
<tr>
<td><textarea name="message" rows="20" style="width:100%">$gbinfo[message]</textarea></td>
</tr>
</table>
</table>
<p align="center">
<input type="hidden" name="send" value="send" />
<input type="hidden" name="action" value="$action" />
<input type="hidden" name="sid" value="$session[hash]" />
<input type="hidden" name="entryid" value="$entryid">
<input type="hidden" name="userid" value="$user_info[userid]">
<input type="submit" value="Speichern" class="input" />
<input type="reset" value="Zurücksetzen" class="input" />
</p>
</form>
$footer
</body>
</html> |
|
"gb_freischalt"
code: |
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:
|
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | Profil von $user_info[username] | Gästebuch von $user_info[username] | Einträge freischalten</title>
$headinclude
</head>
<body>
$header
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tablea"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tablea_fc">
<td align="left"><span class="smallfont"><b><a href="index.php{$SID_ARG_1ST}">$master_board_name</a> » <a href="profile.php?userid=$user_info[userid]">Profil von $user_info[username]</a> » <a href="gaestebuch.php?userid=$user_info[userid]">Gästebuch von $user_info[username]</a> » Einträge freischalten</b></span></td>
<td align="right"><span class="smallfont"><b>$usercbar</b></span></td>
</tr>
</table></td>
</tr>
</table><br />
<table style="width:{$style['tableinwidth']}">
<tr>
<td align="center"><span class="normalfont"><a href="gaestebuch.php?userid=$user_info[userid]">Zum Gästebuch</a> <if($wbbuserdata[userid]==$user_info[userid])><then>| <a href="gaestebuch.php?userid=$user_info[userid]&action=freischalt">Gästebucheinträge freischalten</a></then></if></span></td>
</tr>
</table>
<br/>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tabletitle" colspan="6" align="center"><span class="normalfont"><b>Einträge freischalten <b></span></td>
</tr>
$freischalt_bit
</table>
<table style="width:{$style['tableinwidth']}">
<tr align="left">
<td><span class="smallfont">$pagelink</span></td>
</tr>
</table>
$footer
</body>
</html> |
|
"gb_freischalt_bit"
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
|
<tr class="tablea">
<td valign="top" width="250" nowrap="nowrap"><table>
<tr>
<td><span class="normalfont"><b>$showbit[creater]</b> <a href="mailto:$showbit[email]"><img src="{$style['imagefolder']}/announce.gif" border="0" /></a><br /><br /></span></td>
<if($wbbuserdata[userid]==$user_info['userid'])><then><td valign="top"><span class="normalfont"><b><a href="gaestebuch.php?userid=$showbit[userid]&action=entryedit&entryid=$showbit[entryid]"><img src="{$style['imagefolder']}/editpost.gif" border="0" title="Eintrag ändern" /></a></b></span></td></then></if>
</tr>
<tr>
<td><br /><br /><span class="smallfont">Eintrag $counter vom $datum um $time</span></td>
</tr>
</table></td>
<td width="100%" valign="top">
<table width="100%" align="left">
<tr>
<td valign="top"><span class="smallfont"><b>$gbicon $showbit[topic]</b></span><br /><br /><span class="normalfont">$message</span></td>
<td align="right" valign="top"><span class="smallfont"><b><a href="gaestebuch.php?userid=$showbit[userid]&action=freischaltung&entryid=$showbit[entryid]"><img src="{$style['imagefolder']}/icon_ok.gif" border="0" alt="" title="" /></a> <a href="gaestebuch.php?userid=$showbit[userid]&action=del&entryid=$showbit[entryid]"><img src="{$style['imagefolder']}/icon_cancel.gif" border="0" alt="" title="" /></a></b></span></td>
</tr>
</table>
</td>
</tr> |
|
"gb_show"
code: |
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:
|
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | Profil von $user_info[username] | Gästebuch von $user_info[username]</title>
$headinclude
</head>
<body>
$header
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tabletitle" colspan="6" ><span class="smallfont"><center><BR><H3>Gästebuch von $user_info[username]</H3></span></td>
</tr>
$gb_bit
</table>
<table style="width:{$style['tableinwidth']}">
<tr>
<td align="left"><span class="smallfont">$pagelink</span></td>
<td align="right" valign="bottom"><span class="normalfont"><a href="gaestebuch.php?userid=$user_info[userid]&action=entry">Neuen Eintrag erstellen</a>
</span></td>
</tr>
</table>
$footer
</body>
</html> |
|
"gb_show_bit"
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
|
<tr class="tablea">
<td valign="top" width="250" nowrap="nowrap"><table>
<tr>
<td><span class="normalfont">
<b>$showbit[creater]</b><BR>
<a href="gaestebuch.php?username=$showbit[creater]">Gästebuch</a> -
<a href="profile.php?username=$showbit[creater]">Profil </a>
<if($wbbuserdata[userid]==$user_info['userid'])><then><td valign="top" align="right" width="25%"><span class="normalfont"><b><a href="gaestebuch.php?userid=$user_info[userid]&action=entryedit&entryid=$showbit[entryid]"><img src="{$style['imagefolder']}/editpost.gif" border="0" title="Eintrag ändern" /></a></b></span></td></then></if>
</tr>
<tr>
<td colspan="2"><br /><br /><span class="smallfont">Eintrag $counter vom $datum um $time</span></td>
</tr>
</table></td>
<td width="100%" valign="top">
<table width="100%" align="left">
<tr>
<td valign="top"><span class="smallfont"><b>$gbicon $showbit[topic]</b></span><br /><br /><span class="normalfont">$message</span></td>
</tr>
</table>
</td>
</tr> |
|
Ich hoffe das nun niemand sauer ist weil ich soviel Code gepostet habe.
Liebe Grüße
TieU
|
|
03.04.07 12:25 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
\JaN\
Mitglied
Dabei seit: 26.03.06
Beiträge: 7
|
|
Ja das habe ich alles mehrfach gemacht das komische ist ja das mehrere PHP seiten nicht mehr angezeigt werden also von anderen Hacks PHP VERS. ist: PHP Version 5.2.0-8+etch1
|
|
03.04.07 16:05 |
E-Mail
Finden
Als Freund hinzufügen
|
|
|