fragger123
Mitglied
Dabei seit: 18.02.05
Beiträge: 86
|
|
einige threads gingen nicht mehr zu öffnen und punkt.
nach dem ausbau gings wieder.
hab es mehrfach versucht->fehler blieb!
|
|
18.06.05 19:48 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
hutzi
fighters-from-hell.de
Dabei seit: 13.03.05
Beiträge: 396
Fähigkeiten: WBB Lite 1 Fortgeschritten Forenversion: Lite 1.0
|
|
[MrMind aufmunter]
Läuft optimal dein "sch.....öner" Hack
[/MrMind aufmunter]
|
|
18.06.05 20:12 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
HCC
Mitglied
Dabei seit: 07.03.05
Beiträge: 64
Herkunft: Rantrum
|
|
Klasse Hack,
ich hab nur eine Fehlermeldung wenn ich auf Themen geh wo anscheind ähnliche Themen vorhanden sind.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, abuse@netclusive.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Gruß
HCC
Ps. wenn ich den Hack im ACP abstelle kommt das Thema
|
|
19.06.05 11:06 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
HCC
Mitglied
Dabei seit: 07.03.05
Beiträge: 64
Herkunft: Rantrum
|
|
Hallo,
wenn ich es aus schalte ist es auch nicht mehr zu sehen. Der Url nützt nun dann nichts weil ich es abgestellt habe.
Hier der Einbau in die thread.php:
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:
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:
|
if($board['closed']==0) eval ("\$newthread = \"".$tpl->get("board_newthread")."\";");
$addreply_link="threadid=$threadid";
if($thread['closed']!=0) eval ("\$addreply = \"".$tpl->get("thread_closed")."\";");
elseif($board['closed']==0) eval ("\$addreply = \"".$tpl->get("thread_addreply")."\";");
if( $activ_similar_threads_view )
{
$bad_words_list = explode("\n",$badsearchwords);
while(list($key,$val) = @each($bad_words_list) ) $bad_words_array[trim($val)] = true;
$topic_words = explode(" ",$thread['topic']);
for($i=0; $i < count($topic_words); $i++)
{
if($bad_words_array[$topic_words[$i]])
{
$topic_words[$i] = "";
}
}
$topic_words = implode(" ",$topic_words);
$result = $db->query("SELECT threadid FROM bb".$n."_threads WHERE threadid != " . $thread['threadid'] . " AND MATCH (topic) AGAINST ('". addslashes($topic_words) ."') ORDER BY lastposttime DESC");
while( $row = $db->fetch_array($result) )
{
$similar_topic_row[] = $row;
}
if( count($similar_topic_row) > 0 )
{
$similar_topic_viewbit = "";
for($i = 0; $i < count($similar_topic_row); $i++)
{
$sql = "SELECT t.*, b.boardid, b.title, b.allowicons, b.hotthread_reply, b.hotthread_view, i.iconpath, i.icontitle, p.boardpermission, p.startpermission, p.replypermission
FROM bb".$n."_boards b, bb".$n."_permissions p, bb".$n."_threads t
LEFT JOIN bb".$n."_icons i USING(iconid)
WHERE t.threadid = " . $similar_topic_row[$i]['threadid'] . "
AND t.boardid = b.boardid
AND t.closed != 3
AND b.boardid = p.boardid
AND p.groupid = " . $wbbuserdata['groupid'] . "
$visible
GROUP BY t.threadid";
$result = $db->query($sql);
while( $similar_topic = $db->fetch_array($result) )
{
if( empty($similar_topic['boardpermission']) || empty($similar_topic['startpermission']) || empty($similar_topic['replypermission']) )
{
continue;
}
$topic_name = $similar_topic['topic'];
$topic_id = $similar_topic['threadid'];
$topic_prefix = $similar_topic['prefix'];
$topic_iconid = $similar_topic['iconid'];
$topic_starter_id = $similar_topic['starterid'];
$topic_starter = $similar_topic['starter'];
$topic_lastposttime = $similar_topic['lastposttime'];
$topic_lastpost_date = formatdate($dateformat,$similar_topic['lastposttime'],1);
$topic_lastpost_time = formatdate($timeformat,$similar_topic['lastposttime']);
$topic_lastposter_id = $similar_topic['lastposterid'];
$topic_lastposter = $similar_topic['lastposter'];
$topic_reply_count = $similar_topic['replycount'];
$topic_closed = $similar_topic['closed'];
$topic_views = $similar_topic['views'];
$topic_important = $similar_topic['important'];
$topic_visible = $similar_topic['visible'];
$topic_voted = $similar_topic['voted'];
$topic_vote_points = $similar_topic['votepoints'];
$topic_poll_id = $similar_topic['pollid'];
$topic_board_id = $similar_topic['boardid'];
$topic_board_name = $similar_topic['title'];
$topic_board_allow_icon = $similar_topic['allowicons'];
$topic_board_hotthread_reply = $similar_topic['hotthread_reply'];
$topic_board_hotthread_view = $similar_topic['hotthread_view'];
$topic_icon_path = $similar_topic['iconpath'];
$topic_icon_title = $similar_topic['icontitle'];
$topic_icon = ($topic_iconid && $topic_board_allow_icon) ? makeimgtag($topic_icon_path,$topic_icon_title) : '';
if( $topic_voted )
{
$topic_avarage=number_format($topic_vote_points/$topic_voted,2);
eval ("\$topic_threadrating = \"" . $tpl->get("similar_topic_threadbit_rating") . "\";");
$topic_threadrating=str_repeat($topic_threadrating, round($topic_avarage));
}
else $topic_threadrating=" ";
$topic_board_hotthread_reply = ( $topic_board_hotthread_reply == 0 ) ? $default_hotthread_reply : $topic_board_hotthread_reply;
$topic_board_hotthread_view = ( $topic_board_hotthread_view == 0 ) ? $default_hotthread_view : $topic_board_hotthread_view;
if( $topic_important == 2 ) $topic_folder_icon="announce";
else $topic_folder_icon=ifelse($wbbuserdata['lastvisit']<$topic_lastposttime && $threadvisit[$topic_id]<$topic_lastposttime,"new").ifelse($topic_reply_count >= $topic_board_hotthread_reply || $topic_views >= $topic_board_hotthread_view,"hot").ifelse($topic_closed!=0,"lock")."folder";
if( $topic_important == 2 ) eval("\$topic_prefix = \"" . $tpl->get("similar_topic_announce") . "\";");
else if( $topic_important == 1 ) eval("\$topic_prefix = \"" . $tpl->get("similar_topic_important") . "\";");
else if( $topic_poll_id != 0 ) eval("\$topic_prefix = \"" . $tpl->get("similar_topic_poll") . "\";");
eval("\$topic_starter = \"" . $tpl->get("similar_topic_starter") . "\";");
if( $topic_reply_count + 1 > $postsperpage && $showmultipages != 0 )
{
$topic_multipage = "";
$topic_multipages = "";
$similar_multipages_lastpage = "";
$topic_xpages=ceil(($topic_reply_count + 1) / $postsperpage);
if( $topic_xpages > $showmultipages )
{
eval ("\$similar_topic_multipages_lastpage = \"" . $tpl->get("similar_topic_multipages_lastpage") . "\";");
$topic_xpages=$showmultipages;
}
for($i = 1; $i <= $topic_xpages; $i++)
{
$topic_multipage .= " ".makehreftag("thread.php?threadid=$topic_id&page=$i&sid=$session[hash]",$i);
}
eval ("\$topic_multipages = \"" . $tpl->get("similar_topic_multipages") . "\";");
}
eval("\$similar_topic_viewbit .= \"" . $tpl->get("similar_topic_threadbit") . "\";");
}
}
if( !empty($similar_topic_viewbit) )
{
eval("\$similar_topic = \"" . $tpl->get("similar_topic") . "\";");
}
}
}
if(strlen($thread['topic'])>60) $thread['topic']=parse::textwrap($thread['topic'],60);
/** Who-read-this-thread (c) Mr Hatch / rellek **/
if($wbbuserdata['userid']==0) $watchlist="";
else eval ("\$watchlist .= \"".$tpl->get("whoreadthisthreadlink")."\";");
$readcount=$db->query_first("SELECT COUNT(*) FROM bb".$n."_threads_users WHERE threadid='$threadid' AND userid='$wbbuserdata[userid]'");
if($readcount[0]==0){
$db->query("INSERT INTO bb".$n."_threads_users (threadid,userid,readtime,timesread) VALUES ('$threadid','$wbbuserdata[userid]','".time()."','1')");
}
else{
$db->query("UPDATE bb".$n."_threads_users SET readtime='".time()."',timesread=timesread+1 WHERE threadid='$threadid' AND userid='$wbbuserdata[userid]'");
}
/** Who-read-this-thread (c) Mr Hatch / rellek **/
require "quickreply.php";
eval("\$tpl->output(\"".$tpl->get("thread")."\");");
?> |
|
Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von HCC: 19.06.05 18:16.
|
|
19.06.05 18:16 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
HCC
Mitglied
Dabei seit: 07.03.05
Beiträge: 64
Herkunft: Rantrum
|
|
Hier der Inhalt:
php: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
|
<tr align="center">
<td id="tablea" bgcolor="{tablecolora}"><img src="{imagefolder}/$topic_folder_icon.gif" border=0></td>
<td id="tableb" bgcolor="{tablecolorb}">$topic_icon</td>
<td id="tablea" bgcolor="{tablecolora}" width="80%" align="left"><normalfont>$topic_prefix<a href="thread.php?threadid=$topic_id&sid=$session[hash]">$topic_name</a></font>$topic_multipages</td>
<td id="tableb" bgcolor="{tablecolorb}"><normalfont><a href="javascript:who($topic_id)">$topic_reply_count</a></font></td>
<td id="tablea" bgcolor="{tablecolora}" width="20%"><normalfont>$topic_starter</font></td>
<td id="tableb" bgcolor="{tablecolorb}"><normalfont>$topic_views</font></td>
<td id="tablea" bgcolor="{tablecolora}">$topic_threadrating</td>
<td id="tableb" bgcolor="{tablecolorb}" align="left"><table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr align="right">
<td align="right" nowrap><smallfont>$topic_lastpost_date <font color="{timecolor}">$topic_lastpost_time</font><br>
von $topic_lastposter</font></td>
<td><smallfont> <a href="thread.php?goto=lastpost&threadid=$topic_id&sid=$session[hash]"><img src="{imagefolder}/lastpost.gif" alt="Zum letzten Beitrag gehen" border=0></a></font></td>
</tr>
</table></td>
</tr> |
|
|
|
19.06.05 18:28 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
HCC
Mitglied
Dabei seit: 07.03.05
Beiträge: 64
Herkunft: Rantrum
|
|
Danke, das ist kein Problem. Der Hack ist es wert zu warten *grins* Ich kann warten.
Gruß
HCC
|
|
19.06.05 19:03 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
HCC
Mitglied
Dabei seit: 07.03.05
Beiträge: 64
Herkunft: Rantrum
|
|
Hallo,
ich hab die PHP geändert und die Install aufgerufen.
Dort bekam ich diese Fehlermeldung:
Parse error: parse error, unexpected $ in /home/www/ncf548/html/Forum/install_similar.php on line 167
Gruß
HCC
|
|
20.06.05 19:25 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
hutzi
fighters-from-hell.de
Dabei seit: 13.03.05
Beiträge: 396
Fähigkeiten: WBB Lite 1 Fortgeschritten Forenversion: Lite 1.0
|
|
der zerstreute Professor *g*
soll heißen, noch mal d/l und die install daraus ist nun ok?
#ich jetzt Schritt-für-schritt alles frag#
Auch nehmer der jüngste bin *g*
|
|
20.06.05 20:15 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
hutzi
fighters-from-hell.de
Dabei seit: 13.03.05
Beiträge: 396
Fähigkeiten: WBB Lite 1 Fortgeschritten Forenversion: Lite 1.0
|
|
nö, passt schon, bin halt `n scherzender User
nun "hauts" wieder hin.
warum war jetzt das Update so wichtig ? Weil bei mir ging der Hack ja.
Das User, die keine Berechtigung hatten, in die ähnlichen reinzugehn, den Zugang zu verweigern?
|
|
20.06.05 20:28 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
|
MrMind
Sklave des Supportes
Dabei seit: 19.01.04
Beiträge: 3.349
Herkunft: Darmstadt/Odw.
Themenstarter
|
|
Zitat: |
Original von hutzi
nö, passt schon, bin halt `n scherzender User
nun "hauts" wieder hin.
warum war jetzt das Update so wichtig ? Weil bei mir ging der Hack ja.
Das User, die keine Berechtigung hatten, in die ähnlichen reinzugehn, den Zugang zu verweigern? |
Das Update ist in sofern auch für dich wichtig, das ein Time Out Error passieren könnte, sobald es zu viele Threads werden die ähnlich sind (daher auch die weitere Option).
Das Abschlanken des Codes hat die Performance nochmal gefördert und die Einstellung ist momentan so: Wer keine Leseberechtigung hat, bekommt den Thread auch erst gar nicht aufgelistet (davor war das auch schon, aber da hatte ich das so gehabt, das egal ob fehlende Lese, Newthread oder Antwortrechte gab, wurde er ignoriert, da aber Newthread und Antwortrechte unrelevant ist gegenüber dem Leserecht, habe ich dies auch rausgenommen)
@HCC
meinst du im ACP????
das geht nur via phpMyAdmin:
in der bbX_options nach dem Eintrag suchen (sollte so ziemlich auf der letzten Seite sein), dann diesen bearbeiten und den Wert einfach ändern.
Mfg
MrMind
__________________
Selbst ist der Coder
Coder under Linux
Ubuntu 5.10 Nutzer.
Meine Hacks
Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von MrMind: 20.06.05 20:38.
|
|
20.06.05 20:34 |
E-Mail
Finden
Als Freund hinzufügen
|
|
|