nuke
25.01.2004, 16:58
Bei diesem Hack kommt immer diese Fehlermeldung bei mir
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web2/html/vb/includes/functions_newpost.php:2) in /var/www/web2/html/vb/newreply.php on line 139
Original Text
Finde:
else if ($postid AND $_POST['do'] != 'postreply')
{
$newpost['title'] = htmlspecialchars_uni(fetch_quote_title('', $threadinfo['title']));
}
After, Add:
//############################################################################
//# START MULTI QUOTE #
//############################################################################
if(isset($_COOKIE[COOKIE_PREFIX . 'mq']))
{
$pids = $_COOKIE[COOKIE_PREFIX . 'mq'];
$pids = urldecode($pids);
if(!empty($pids) && preg_match("/^[0-9,]+$/", $pids))
{
if($_REQUEST['noquote'])
$mq_postid = '';
elseif(!empty($postinfo['postid']))
$mq_postid = "AND postid <> {$postinfo['postid']}";
else
$mq_postid = '';
$q = $DB_site->query("SELECT username, pagetext FROM ".TABLE_PREFIX."post WHERE postid IN($pids) $mq_postid ORDER BY postid ASC LIMIT 20");
while($row = $DB_site->fetch_array($q))
{
$originalposter = fetch_quote_username($row['username']);
$pagetext = htmlspecialchars_uni($row['pagetext']);
$pagetext = trim(strip_quotes($pagetext));
eval('$newpost[\'message\'] .= "' . fetch_template('newpost_quote', 1, 0) . '\n";');
}
}
setcookie(COOKIE_PREFIX . 'mq', '', time() - 3600, $vboptions['cookiepath'], $vboptions['cookiedomain']);
}
//############################################################################
//# END MULTI QUOTE #
//############################################################################
Den Hack Gibt es hier
Zitat Hack (http://www.vbulletin.org/forum/showthread.php?t=59702)
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web2/html/vb/includes/functions_newpost.php:2) in /var/www/web2/html/vb/newreply.php on line 139
Original Text
Finde:
else if ($postid AND $_POST['do'] != 'postreply')
{
$newpost['title'] = htmlspecialchars_uni(fetch_quote_title('', $threadinfo['title']));
}
After, Add:
//############################################################################
//# START MULTI QUOTE #
//############################################################################
if(isset($_COOKIE[COOKIE_PREFIX . 'mq']))
{
$pids = $_COOKIE[COOKIE_PREFIX . 'mq'];
$pids = urldecode($pids);
if(!empty($pids) && preg_match("/^[0-9,]+$/", $pids))
{
if($_REQUEST['noquote'])
$mq_postid = '';
elseif(!empty($postinfo['postid']))
$mq_postid = "AND postid <> {$postinfo['postid']}";
else
$mq_postid = '';
$q = $DB_site->query("SELECT username, pagetext FROM ".TABLE_PREFIX."post WHERE postid IN($pids) $mq_postid ORDER BY postid ASC LIMIT 20");
while($row = $DB_site->fetch_array($q))
{
$originalposter = fetch_quote_username($row['username']);
$pagetext = htmlspecialchars_uni($row['pagetext']);
$pagetext = trim(strip_quotes($pagetext));
eval('$newpost[\'message\'] .= "' . fetch_template('newpost_quote', 1, 0) . '\n";');
}
}
setcookie(COOKIE_PREFIX . 'mq', '', time() - 3600, $vboptions['cookiepath'], $vboptions['cookiedomain']);
}
//############################################################################
//# END MULTI QUOTE #
//############################################################################
Den Hack Gibt es hier
Zitat Hack (http://www.vbulletin.org/forum/showthread.php?t=59702)