beanz
Problembeschreibung: Es ist eigentlich kein Problem in dem Sinne. Es wird einfach nur etwas angezeigt, was nicht sein soll.
Fehlermeldung:
| Zitat: |
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /www/htdocs/w006ac16/wbb2/addreply.php(487) : eval()'d code on line 78
|
Was wurde zuletzt geändert oder eingebaut?
Das waren die Sicherheitsupdates von Woltlab fürs 2.3.6
Wisst ihr da vielleicht was?
Es wird aber auch nur bei einem bestimmten Style angezeigt. Ansonsten wirds halt nicht angezeigt.
Son-Goten
Häng mal deine addreply.php an.
Biggi
Der Fehler liegt nicht in der php-Datei, sondern in Zeile 78 des Templates, das in Zeile 487 in der addreply.php aufgerufen wird.
Schau mal in die addreply.php, welches Template dort aufgerufen wird und poste Zeile 78 +-5 Zeilen des Templates, wenn du den Fehler nicht selbst findest.
beanz
Null Problemo
| 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:
|
<?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 | $board[title] | $thread[topic] | {$lang->items['LANG_POST_REPLY']}</title>
$headinclude
<script type="text/javascript">
<!--
var imageMaxWidth = $picmaxwidth;
var imageMaxHeight = $picmaxheight;
//-->
</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="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>$navbar » </b><if($thread['prefix']!="")><then><span class="prefix">$thread[prefix]</span> </then></if><b> <a href="thread.php?threadid=$threadid{$SID_ARG_2ND}">$thread[topic]</a> » {$lang->items['LANG_POST_REPLY']}</b></span></td>
<td align="right"><span class="smallfont"><b>$usercbar</b></span></td>
</tr>
</table></td>
</tr>
</table><br />$preview_window $addreply_error
<form action="addreply.php" method="post" 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" align="left" colspan="2"><span class="normalfont"><b>{$lang->items['LANG_POST_REPLY']}</b></span></td>
</tr>
<tr align="left">
<td class="tableb"><span class="normalfont">{$lang->items['LANG_POST_USERNAME']}</span></td>
<td class="tableb">$newthread_username</td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont">{$lang->items['LANG_POST_TOPIC']}</span></td>
<td class="tablea"><input class="input" type="text" name="topic" value="$topic" size="40" maxlength="100" /></td>
</tr>
$newthread_icons
<tr align="left">
<td class="tablea" valign="top"><span class="normalfont"><b>{$lang->items['LANG_POST_MESSAGE']}</b></span><br /><br />
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder">
<tr>
<td align="left" class="tableb" nowrap="nowrap"><span class="smallfont">$note</span></td>
</tr>
</table><br />
$bbcode_smilies
</td>
<td class="tablea"><table>
<tr>
<td align="center">$bbcode_buttons</td>
</tr>
<tr>
<td align="left">$editor</td>
</tr>
<tr>
<td>
<input type="button" value="{$lang->items['LANG_POSTINGS_OPTIONS']}" class="input" onclick="toggleMenu('newthreadOptions', this);" />
$attachment
$editor_switch
</td>
</tr>
</table></td>
</tr>
</table>
<div id="newthreadOptions" class="hoverMenu">
<ul class="smallfont">
<li><input type="checkbox" id="checkbox1" name="parseurl" value="1" $checked[0] /><label for="checkbox1"> {$lang->items['LANG_POSTINGS_PARSEURL']}</label></li>
<if($wbbuserdata['userid'])><then><li><input type="checkbox" id="checkbox2" name="emailnotify" value="1" $checked[1] /><label for="checkbox2"> {$lang->items['LANG_POST_EMAILNOTIFY']}</label></li></then></if>
<if(checkpermissions("can_use_post_smilies")==1)><then><li><input type="checkbox" id="checkbox3" name="disablesmilies" value="1" $checked[2] /><label for="checkbox3"> {$lang->items['LANG_POSTINGS_DISABLESMILIES']}</label></li></then></if>
<if(checkpermissions("can_use_post_html")==1)><then><li><input type="checkbox" id="checkbox4" name="disablehtml" value="1" $checked[3] /><label for="checkbox4"> {$lang->items['LANG_POSTINGS_DISABLEHTML']}</label></li></then></if>
<if(checkpermissions("can_use_post_bbcode")==1)><then><li><input type="checkbox" id="checkbox5" name="disablebbcode" value="1" $checked[4] /><label for="checkbox5"> {$lang->items['LANG_POSTINGS_DISABLEBBCODE']}</label></li></then></if>
<if(checkpermissions("can_use_post_images")==1)><then><li><input type="checkbox" id="checkbox6" name="disableimages" value="1" $checked[5] /><label for="checkbox6"> {$lang->items['LANG_POSTINGS_DISABLEIMAGES']}</label></li></then></if>
<li><input type="checkbox" id="checkbox7" name="showsignature" value="1" $checked[6] /><label for="checkbox7"> {$lang->items['LANG_POSTINGS_SHOWSIGNATURE']}</label></li>
<if(in_array($boardid, $anonymous_board))><then><li><input type="checkbox" id="checkbox9" name="postanonymous" value="1" /><label for="checkbox9"> {$lang->items['LANG_POSTINGS_POSTANONYMOUS']}</label></li></then></if>
<if(checkmodpermissions("m_can_thread_close") || ($wbbuserdata['userid'] && $wbbuserdata['userid']==$thread['starterid'] && checkpermissions("can_close_own_topic")==1))>
<then>
<li><input type="checkbox" id="checkbox8" name="threadclose" value="1" $checked[7] /><label for="checkbox8"> {$lang->items['LANG_POSTINGS_THREADCLOSE']}</label></li>
</then>
</if>
<li><input type="checkbox" id="checkbox_checklength" onclick="checklength(document.bbform); this.checked = false;" value="0" /><label for="checkbox_checklength"><b> {$lang->items['LANG_POSTINGS_CHECKLENGTH']}</b></label></li>
</ul>
</div>
<p align="center">
<input type="hidden" name="send" value="send" />
<input type="hidden" name="threadid" value="$threadid" />
<input type="hidden" name="change_editor" value="" />
<input type="hidden" name="usewysiwyg" value="$wbbuserdata[usewysiwyg]" />
<if(isset($postid))><then><input type="hidden" name="postid" value="$postid" /></then></if>
<input type="hidden" name="idhash" value="$idhash" />
<input type="hidden" name="attachmentids" value="$attachmentids" />
<input type="hidden" name="sid" value="$session[hash]" />
<input class="input" type="submit" accesskey="S" value="{$lang->items['LANG_POST_REPLY']}" />
<input class="input" type="submit" name="preview" accesskey="P" value="{$lang->items['LANG_POSTINGS_PREVIEW']}" />
<input class="input" type="reset" accesskey="R" value="{$lang->items['LANG_POSTINGS_RESET']}" />
</p></form>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tabletitle" align="left" colspan="2"><span class="normalfont"><b><if($postcount == 1)><then>{$lang->items['LANG_POST_LAST_POST']}</then><else>{$lang->items['LANG_POST_LAST_X_POSTS']}</else></if></b></span></td>
</tr>
$postbit
<if($complete_thread==1)>
<then>
<tr align="left">
<td class="tabletitle" colspan="2"><span class="smallfont">{$lang->items['LANG_POST_MORE_POSTS']}</span></td>
</tr>
</then>
</if>
</table>
$footer
</body>
</html>
|
|
Biggi
Welches Template ist das denn nun?
Poste es bitte nochmal und nutze dazu den Code-Tag. [IMG]http://your-wbb.de/images/port-dark/bbcode_code.gif[/IMG]
Ich habe gerade keine Lust, die Zeilen zu zählen, zumal im Zitat Umbrüche entstehen, wo im Code keine wären.
beanz
da isses doch jetzt...
und natürlich ist es das addreply template
Biggi
Die Zeile 78, die angemeckert wird, gibt es im Original-Template ja auch gar nicht.
| code: |
1:
|
<if(in_array($boardid, $anonymous_board))><then><li><input type="checkbox" id="checkbox9" name="postanonymous" value="1" /><label for="checkbox9"> {$lang->items['LANG_POSTINGS_POSTANONYMOUS']}</label></li></then></if> |
|
Ist die aus einem Hack?
Wenn ja, vergleiche das nochmal mit der Einbauanleitung des Hacks.
Du schreibst ja, das Problem ist nur in einem Style. Dann könntest du auch mal den Style-Ersteller fragen, was die Zeile da soll.
Scheint jedenfalls was mit anonymem Posten zu tun zu haben. Vielleicht hat der Style-Ersteller ja einen Hack drin gehabt und vor dem Veröffentlichen des Styles vergessen, die Templateänderung rückgängig zu machen.