Gegen Bilderklau - Das Original (https://www.gegen-bilderklau.net/index.php)
- Design, Website, Copyright (https://www.gegen-bilderklau.net/board.php?boardid=80)
--- Homepagehilfe (https://www.gegen-bilderklau.net/board.php?boardid=27)
---- Homepagehilfe - Archiv (https://www.gegen-bilderklau.net/board.php?boardid=139)
----- [Wbblite] Fehler im Wbblite beim 'Foren erstellen' (https://www.gegen-bilderklau.net/thread.php?threadid=136739)
Geschrieben von Lou am 09.07.2008 um 20:53:
Fehler im Wbblite beim 'Foren erstellen'
Hallo ihr,
ich hoffe ihr könnt uns helfen, denn durch einen Fehler in einem Hack kommt sobald, wir im Admincp auf ein 'Forum erstellen' oder ein 'Forum bearbeiten' drücken, folgende Fehlermeldung.
Habt ihr eine Idee, woran das liegen könnte, also wo der Fehler liegen könnte? Wir wären für Hilfe sehr, sehr dankbar.
Lg,
Lou
Geschrieben von Medic Droid am 09.07.2008 um 21:22:
./ geht vom aktuellen Verzeichnis aus.
../ geht vom übergeordneten Verzeichnis aus (ich vermute mal das war hier gemeint).
Probier mal das hier aus!
code: |
1:
|
require(../acp/lib/class_parse.php); |
|
Geschrieben von Lou am 09.07.2008 um 21:44:
Wo rein muss das denn?
Geschrieben von Medic Droid am 09.07.2008 um 22:00:
In die fettgedruckte Datei, die in der Fehlermeldung angezeigt wird.
Geschrieben von Lou am 09.07.2008 um 22:02:
Nein funktioniert leider auch nicht.
Da steht jetzt folgendes:

Geschrieben von Medic Droid am 09.07.2008 um 22:10:
Magst du mal board.php hier anhängen :>
Geschrieben von Lou am 09.07.2008 um 22:14:
hier als code & als Anhang:
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:
|
<?php
$filename="board.php";
require("./global.php");
require(../acp/lib/class_parse.php);
if(!isset($boardid)) eval("error("".$tpl->get("error_falselink")."");");
if(isset($_COOKIE['hidecats'])) $hidecats=decode_cookie($_COOKIE['hidecats']);
else $hidecats=array();
if(isset($_COOKIE['boardvisit'])) $boardvisit=decode_cookie($_COOKIE['boardvisit']);
else $boardvisit=array();
if(isset($_COOKIE['threadvisit'])) $threadvisit=decode_cookie($_COOKIE['threadvisit']);
else $threadvisit=array();
$boardnavcache=array();
if($board['childlist']!="0") {
$boardcache=array();
$permissioncache=array();
$modcache=array();
$activtime=time()-60*$useronlinetimeout;
$result = $db->query("
SELECT
b.*".ifelse($showlastposttitle==1,", t.topic, i.*")."
FROM bb".$n."_boards b
".ifelse($showlastposttitle==1,"LEFT JOIN bb".$n."_threads t ON (t.threadid=b.lastthreadid)
LEFT JOIN bb".$n."_icons i USING (iconid)")."
ORDER by b.parentid ASC, b.boardorder ASC");
while ($row = $db->fetch_array($result)) {
$boardcache[$row['parentid']][$row['boardorder']][$row['boardid']] = $row;
$boardnavcache[$row['boardid']]=$row;
}
$result = $db->query("SELECT boardid, threadid, lastposttime FROM bb".$n."_threads WHERE visible = 1 AND lastposttime > '$wbbuserdata[lastvisit]' AND closed <> 3");
while($row=$db->fetch_array($result)) $visitcache[$row['boardid']][$row['threadid']]=$row['lastposttime'];
$result = $db->query("SELECT * FROM bb".$n."_permissions WHERE groupid = '$wbbuserdata[groupid]'");
while ($row = $db->fetch_array($result)) $permissioncache[$row['boardid']] = $row;
$result = $db->query("SELECT bb".$n."_moderators.*, username FROM bb".$n."_moderators LEFT JOIN bb".$n."_users USING (userid) ORDER BY username ASC");
while ($row = $db->fetch_array($result)) $modcache[$row['boardid']][] = $row;
$tempboardcache=$boardcache;
$temppermissioncache=$permissioncache;
$index_depth=$board_depth;
$temp_boardid=$boardid;
$boardbit = makeboardbit($boardid);
$boardcache=$tempboardcache;
$permissioncache=$temppermissioncache;
}
if($showboardjump==1) $boardjump=makeboardjump($boardid);
$navbar=getNavbar($board['parentlist']);
eval ("\$navbar .= "".$tpl->get("navbar_boardend")."";");
if(!$board['isboard']) {
eval("\$tpl->output("".$tpl->get("board_cat")."");");
exit();
}
/********** board *********/
if(isset($boardbit) && $boardbit) eval ("\$subboards = "".$tpl->get("board_subboards")."";");
else $subboards="";
if($board['threadsperpage']) $threadsperpage=$board['threadsperpage'];
else $threadsperpage=$default_threadsperpage;
if($wbbuserdata['umaxposts']) $postsperpage=$wbbuserdata['umaxposts'];
elseif($board['postsperpage']) $postsperpage=$board['postsperpage'];
else $postsperpage=$default_postsperpage;
if($board['hotthread_reply']==0) $board['hotthread_reply']=$default_hotthread_reply;
if($board['hotthread_view']==0) $board['hotthread_view']=$default_hotthread_view;
if(isset($_GET['page'])) {
$page=intval($_GET['page']);
if($page==0) $page=1;
}
else $page=1;
$threadbit="";
unset($datecute);
if(isset($_GET['sortfield'])) $sortfield=$_GET['sortfield'];
else $sortfield="lastposttime";
switch ($sortfield) {
case "topic": break;
case "starttime": break;
case "replycount": break;
case "starter": break;
case "views": break;
case "vote": break;
case "lastposttime": break;
case "lastposter": break;
default: $sortfield = "lastposttime"; break;
}
$f_select['topic']="";
$f_select['starttime']="";
$f_select['replycount']="";
$f_select['starter']="";
$f_select['views']="";
$f_select['vote']="";
$f_select['lastposttime']="";
$f_select['lastposter']="";
$f_select[$sortfield]="selected";
if(isset($_GET['sortorder'])) $sortorder=$_GET['sortorder'];
else $sortorder="lastposttime";
switch ($sortorder) {
case "ASC": break;
case "DESC": break;
default: $sortorder = "DESC"; break;
}
$o_select['ASC']="";
$o_select['DESC']="";
$o_select[$sortorder]="selected";
if(isset($_GET['daysprune'])) $daysprune = intval($_GET['daysprune']);
elseif($wbbuserdata['daysprune']!=0) $daysprune = $wbbuserdata['daysprune'];
elseif($board['daysprune']!=0) $daysprune = $board['daysprune'];
else $daysprune = $default_daysprune;
$d_select[1500]="";
$d_select[1000]="";
$d_select[1]="";
$d_select[2]="";
$d_select[5]="";
$d_select[10]="";
$d_select[20]="";
$d_select[30]="";
$d_select[45]="";
$d_select[60]="";
$d_select[75]="";
$d_select[100]="";
$d_select[365]="";
$d_select[$daysprune]="selected";
if($daysprune!=1000) {
if($daysprune==1500) $datecute = " AND (important=1 OR lastposttime >= '".$wbbuserdata['lastvisit']."')";
else {
$tempdate=time()-($daysprune*86400);
$datecute = " AND (important=1 OR lastposttime >= '".$tempdate."')";
}
}
else $datecute="";
/** announcements threads **/
$announcecount=0;
$announceids="";
//$result = $db->query("SELECT threadid FROM bb".$n."_threads WHERE boardid='$boardid' AND important = 2 AND visible = 1");
$result = $db->query("SELECT threadid FROM bb".$n."_announcements WHERE boardid='$boardid'");
while($row = $db->fetch_array($result)) {
$announcecount++;
$announceids .= ",".$row['threadid'];
}
$ownuserid="";
$ownjoin="";
/** count total threads **/
$threadcount = $db->query_first("SELECT COUNT(threadid) FROM bb".$n."_threads WHERE boardid='$boardid' AND important < 2 AND visible = 1 $datecute");
$threadcount = $threadcount[0];
$pages = ceil($threadcount/$threadsperpage);
if($pages>1) $pagelink=makepagelink("board.php?boardid=$boardid&sid=$session[hash]&daysprune=$daysprune&sortfield=$sortfield&sortorder=$sortorder",$page,$pages,$showpagelinks-1);
else $pagelink="";
$threadids="";
$result = $db->query("SELECT threadid, IF(voted>0,votepoints/voted,0) AS vote FROM bb".$n."_threads WHERE boardid='$boardid' AND visible = 1 AND important < 2 $datecute ORDER BY important DESC, $sortfield $sortorder",$threadsperpage,$threadsperpage*($page-1));
while($row=$db->fetch_array($result)) $threadids .= ",".$row['threadid'];
$result = $db->query("SELECT
$ownuserid
bb".$n."_threads.*,
IF(voted>0,votepoints/voted,0) AS vote,
bb".$n."_icons.*
FROM bb".$n."_threads
LEFT JOIN bb".$n."_icons USING (iconid)
$ownjoin
WHERE bb".$n."_threads.threadid IN (0$announceids$threadids)
ORDER BY important DESC, $sortfield $sortorder");
if(isset($boardvisit[$boardid]) && $boardvisit[$boardid]>$wbbuserdata['lastvisit']) $wbbuserdata['lastvisit']=$boardvisit[$boardid];
while($threads=$db->fetch_array($result)) {
$firstnew="";
$multipages="";
$prefix="";
if(strlen($threads['topic'])>60) $threads['topic']=parse::textwrap($threads['topic'],60);
if($threads['starterid']!=0) eval ("\$threads['starter'] = "".$tpl->get("board_threadbit_starter")."";");
if($threads['lastposterid']!=0) eval ("\$threads['lastposter'] = "".$tpl->get("board_threadbit_lastposter")."";");
$lastpostdate=formatdate($dateformat,$threads['lastposttime'],1);
$lastposttime=formatdate($timeformat,$threads['lastposttime']);
if($threads['closed']==3) {
$threads['threadid']=$threads['pollid'];
$threadrating=" ";
eval ("\$prefix .= "".$tpl->get("board_thread_moved")."";");
$foldericon="moved";
if($wbbuserdata['lastvisit']<$threads['lastposttime'] && $threadvisit[$threads['threadid']]<$threads['lastposttime']) eval ("\$firstnew = "".$tpl->get("board_threadbit_firstnew")."";");
if($threads['iconid']) $threadicon=makeimgtag($threads['iconpath'],$threads['icontitle']);
else $threadicon=" ";
$threads['replycount']="-";
$threads['views']="-";
}
else {
if($threads['voted']) {
$avarage=number_format($threads['votepoints']/$threads['voted'],2);
eval ("\$threadrating = "".$tpl->get("board_threadbit_rating")."";");
$threadrating=str_repeat($threadrating, round($avarage));
}
else $threadrating=" ";
if($threads['important']==2) eval ("\$prefix .= "".$tpl->get("board_thread_announce")."";");
if($threads['important']==1) eval ("\$prefix .= "".$tpl->get("board_thread_important")."";");
if($threads['pollid']!=0) eval ("\$prefix .= "".$tpl->get("board_thread_poll")."";");
if($threads['important']==2) $foldericon="announce";
else $foldericon=ifelse($wbbuserdata['lastvisit']<$threads['lastposttime'] && $threadvisit[$threads['threadid']]<$threads['lastposttime'],"new").ifelse($threads['replycount']>=$board['hotthread_reply'] || $threads['views']>=$board['hotthread_view'],"hot").ifelse($threads['closed']!=0,"lock")."folder";
if($wbbuserdata['lastvisit']<$threads['lastposttime'] && $threadvisit[$threads['threadid']]<$threads['lastposttime']) eval ("\$firstnew = "".$tpl->get("board_threadbit_firstnew")."";");
if($threads['pollid']!=0) $threadicon=makeimgtag("{imagefolder}/poll.gif","");
elseif($threads['iconid']) $threadicon=makeimgtag($threads['iconpath'],$threads['icontitle']);
else $threadicon=" ";
if($threads['replycount']+1>$postsperpage && $showmultipages!=0) {
unset($multipage);
unset($multipages_lastpage);
$xpages=ceil(($threads['replycount']+1)/$postsperpage);
if($xpages>$showmultipages) {
eval ("\$multipages_lastpage = "".$tpl->get("board_threadbit_multipages_lastpage")."";");
$xpages=$showmultipages;
}
for($i=1;$i<=$xpages;$i++) {
$multipage.=" ".makehreftag("thread.php?threadid=$threads[threadid]&page=$i&sid=$session[hash]",$i);
}
eval ("\$multipages = "".$tpl->get("board_threadbit_multipages")."";");
}
}
if($threads[closed]==1) $threads[topic] = "<strike>".$threads[topic]."</strike>";
eval ("\$threadbit .= "".$tpl->get("board_threadbit")."";");
}
$threadcount += $pages * $announcecount;
$l_threads = ($page-1) * ($threadsperpage + $announcecount) + 1;
$h_threads = $page * ($threadsperpage + $announcecount);
if($h_threads > $threadcount) $h_threads = $threadcount;
if($board['closed']==0) eval ("\$newthread = "".$tpl->get("board_newthread")."";");
if(!$threadbit) eval("\$tpl->output("".$tpl->get("board_nothreads")."");");
else eval("\$tpl->output("".$tpl->get("board")."");");
?
|
|
Geschrieben von Medic Droid am 09.07.2008 um 22:26:
mach mal hinter das ? ein >
Geschrieben von Lou am 09.07.2008 um 22:32:
Dann kommt das:
Parse error: syntax error, unexpected '.' in /usr/export/www/hosting/dasdorf/wbblite/acp/board.php on line 5
Geschrieben von Lou am 09.07.2008 um 22:50:
funktioniert immer noch nicht:
Fatal error: Call to a member function get() on a non-object in /usr/export/www/hosting/dasdorf/wbblite/acp/board.php on line 7
Geschrieben von Medic Droid am 09.07.2008 um 22:51:
Ich würde einfach die Originaldatei hochladen und ggf. im Forum, wo du den Hack herhast fragen.
Anscheinend ist der totaler Mist :>
Geschrieben von Lou am 09.07.2008 um 22:51:
okay
o.O
Es funktioniert immer noch nicht. Sobald ich jetzt auf Forum erstellen drücke, geht es, aber sobald ich dann das Forum speichern will kommt:
SQL-DATABASE ERROR
Database error in WoltLab Burning Board: Invalid SQL: INSERT INTO bb1_boards (styleid,parentid,parentlist,childlist,boardorder,title,password,descriptio
n,allowbbcode,allowimages,allowhtml,allowsmilies,allowicons,daysprune,threa
dsperpage,postsperpage,postorder,hotthread_reply,hotthread_view,closed,isbo
ard,invisible ,countuserposts,prefixuse,prefix,mustuseprefix) VALUES ('','42','0,42','0','2','Adminecke','','Hier reden die Admins und Mods über alles Wichtige.','1','1','0','1','1','0','0','0','0','0','0','0','1','1' ,'','0','','0')
mysql error: Unknown column 'mustuseprefix' in 'field list'
mysql error number: 1054
Date: 09.07.2008 @ 22:54
Script: /wbblite/acp/board.php
Referer:
http://dasdorf.da.ohost.de/wbblite/acp/board.php?action=add&sid=
Geschrieben von bolop am 10.07.2008 um 00:12:
Was hasten eingebaut?
Geschrieben von Lou am 10.07.2008 um 18:05:
Das kann ich nicht sagen, meine Freundin hat ihn eingebaut und ist mittlerweile kein Admin mehr
Geschrieben von bolop am 11.07.2008 um 01:32:
Fragen. Leider gibt es für das WoltLab Burning Board allg. keinen Board Doctor.
Forensoftware: Burning Board, entwickelt von WoltLab GmbH