Habe den Hack eingebaut. Kann aber nichts erkennen bzw. es passiert garnichts. habe ich was Falsch gemacht oder fehlt mir ein Button. ??
www.fribriweber.de/scrappen/
hier sind die nach Installationangaben die veränderten Dateien:
pollvote.php
<?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 = 'pollvote.php';
require('./global.php');
$lang->load('MISC');
if (!isset($pollid)) error($lang->get("LANG_GLOBAL_ERROR_FALSELINK", array('$adminmail' => $adminmail)));
if (!checkpermissions("can_vote_poll")) access_error();
if (!count($_POST['polloptionid'])) error($lang->get("LANG_MISC_POLLVOTE_ERROR1"));
if ($poll['timeout'] && time() > $poll['starttime'] + $poll['timeout'] * 86400) error($lang->get("LANG_MISC_POLLVOTE_ERROR2"));
if (count($_POST['polloptionid']) > $poll['choicecount']) error($lang->get("LANG_MISC_POLLVOTE_ERROR3", array('$choicecount' => $poll['choicecount'])));
if ($wbbuserdata['userid']) $votecheck = $db->query_first("SELECT id AS pollid FROM bb".$n."_votes WHERE id='$pollid' AND votemode='1' AND userid='$wbbuserdata[userid]'");
else $votecheck = $db->query_first("SELECT id AS pollid FROM bb".$n."_votes WHERE id='$pollid' AND votemode='1' AND ipaddress='".addslashes($REMOTE_ADDR)."'");
if ($votecheck['pollid']) error($lang->get("LANG_MISC_POLLVOTE_ERROR4"));
$polloptionsids=implode(",",$_POST['polloptionid']);
$polloptionsids=preg_replace("/[^0-9,]/","",$polloptionsids);
$db->query("INSERT INTO bb".$n."_votes (id,votemode,userid,ipaddress,voteid) VALUES ('$pollid','1','$wbbuserdata[userid]','".addslashes($REMOTE_ADDR)."',$pollo
ptionsids)");
$polloptionsids = implode(",", $_POST['polloptionid']);
$polloptionsids = preg_replace("/[^0-9,]/", "", $polloptionsids);
$db->query("UPDATE bb".$n."_polloptions SET votes=votes+1 WHERE polloptionid IN ($polloptionsids)");
header("Location: thread.php?threadid=".$poll['threadid'].$SID_ARG_2ND_UN);
exit();
?>
thread.php
<?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: 2005-06-16 15:16:14 +0200 (Thu, 16 Jun 2005) $
// * $Author: Burntime $
// * $Rev: 1621 $
// ***************************************************************************
*********//
$filename = 'thread.php';
require('./global.php');
require('./acp/lib/class_parse.php');
$lang->load('THREAD,MEMBERS');
if ((!isset($postid) && !isset($threadid)) || $thread['closed'] == 3) error($lang->get("LANG_GLOBAL_ERROR_FALSELINK", array('$adminmail' => $adminmail)));
if (!checkpermissions("can_read_thread")) access_error();
und
threat_poll_result
<table cellpadding=4 cellspacing=1 border=0 width="{tableinwidth}" bgcolor="{tableinbordercolor}">
<tr bgcolor="{tabletitlecolor}" id="tabletitle">
<td width="100%" colspan=4><normalfont color="{fontcolorsecond}"><b>Umfrage:</b> $poll[question]</font></td>
</tr>
$thread_poll_resultbit
<tr bgcolor="{tabletitlecolor}" id="tabletitle">
<td align="right" colspan=2><normalfont color="{fontcolorsecond}">Insgesamt:</font></td>
<td nowrap><normalfont color="{fontcolorsecond}">$totalvotes Stimmen</font></td>
<td nowrap><normalfont color="{fontcolorsecond}">100%</font></td>
</tr>
</table>
<if(!$totalvotes == "0")><then>
<br />
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tabletitle" style="width:100%" colspan="2" align="left"><center><span class="normalfont"><b>{$lang->items['LANG_THREAD_POLL_USER_VOTET']}</b></sp
an></center></td>
</tr>
<tr>
<td class="tablea" style="width:100%" colspan="2" align="left"><div align="center"><span class="normalfont">$user_votet</span></div></td>
</tr>
<tr>
<td class="tabletitle" colspan="2" align="center"><span class="normalfont"> {$lang->items['LANG_THREAD_POLL_USER_VOTET_COPYRIG
HT']}</span></td>
</tr>
</table>
<br />
</then></if>
<table width="{tableinwidth}">
<tr>
<td align="right"><normalfont> $mod_poll_edit</font></td>
</tr>
</table>
müsste alles richtig sein. Schau mal nach.
oder habe ich was vergessen? Und wie sieht es mit dem Cache aus müssen da nicht auch die dateien geändert werden??