Es kann auch sein das dieses Problem schon länger besteht, da ich aber erst jetzt auf Grund eines anderen Problems das Debug mal eingeschaltet habe ich das jetzt aber erst sehen kann.
funktions_content.php (Zeile 521-1021):[phpBB Debug] PHP Notice: in file /includes/functions_content.php on line 981: Undefined variable: width
[phpBB Debug] PHP Notice: in file /includes/functions_content.php on line 982: Undefined variable: height
[phpBB Debug] PHP Notice: in file /includes/functions_content.php on line 981: Undefined variable: width
[phpBB Debug] PHP Notice: in file /includes/functions_content.php on line 982: Undefined variable: height
[phpBB Debug] PHP Warning: in file /includes/session.php on line 1035: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3816)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4679: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3816)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4681: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3816)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4682: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3816)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4683: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3816)
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
//$download_link = append_sid("{$phpbb_root_path}download/file.$phpEx", 'id=' . $attachment['attach_id']);
$download_link = "{$phpbb_root_path}download/file.$phpEx?id=" . $attachment['attach_id'];
$comment_clean = preg_replace('`<[^>]*>`Ui', ' ', $comment);
$block_array += array(
'COMMENT_CLEAN' => $comment_clean,
);
if (!empty($phpbb_seo->seo_opt['rewrite_files'])) {
if (empty($phpbb_seo->seo_url['file'][$attachment['attach_id']])) {
if (($_pos = utf8_strpos($comment, '<br')) !== false) {
$comment_url = strip_tags(utf8_substr($comment, 0, $_pos));
} else {
$comment_url = $comment_clean;
}
$comment_url = utf8_strlen($comment_url) > 60 ? utf8_substr($comment_url, 0, 60) : $comment_url;
$phpbb_seo->seo_url['file'][$attachment['attach_id']] = $phpbb_seo->format_url($comment_url, $phpbb_seo->seo_static['file'][$display_cat]);
}
}
// www.phpBB-SEO.com SEO TOOLKIT END
switch ($display_cat)
{
// Images
case ATTACHMENT_CATEGORY_IMAGE:
$l_downloaded_viewed = 'VIEWED_COUNT';
$inline_link = append_sid("{$phpbb_root_path}download/file.$phpEx", 'id=' . $attachment['attach_id']);
$download_link .= '&mode=view';
$block_array += array(
'S_FLASH_FILE' => true,
'WIDTH' => $width,
'HEIGHT' => $height,
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_VIEW_LINK' => append_sid($download_link . '&view=1'),
// www.phpBB-SEO.com SEO TOOLKIT END
);
$update_count[] = $attachment['attach_id'];
break;
// Images, but display Thumbnail
case ATTACHMENT_CATEGORY_THUMB:
$l_downloaded_viewed = 'VIEWED_COUNT';
$thumbnail_link = append_sid("{$phpbb_root_path}download/file.$phpEx", 'id=' . $attachment['attach_id'] . '&t=1');
$download_link .= '&mode=view';
$block_array += array(
'S_THUMBNAIL' => true,
'THUMB_IMAGE' => $thumbnail_link,
);
$update_count[] = $attachment['attach_id'];
break;
// Windows Media Streams
case ATTACHMENT_CATEGORY_WM:
$l_downloaded_viewed = 'VIEWED_COUNT';
// Giving the filename directly because within the wm object all variables are in local context making it impossible
// to validate against a valid session (all params can differ)
// $download_link = $filename;
$block_array += array(
'U_FORUM' => generate_board_url(),
'ATTACH_ID' => $attachment['attach_id'],
'S_WM_FILE' => true,
);
// Viewed/Heared File ... update the download count
$update_count[] = $attachment['attach_id'];
break;
funktions.php (4672-4724):
// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');
header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache');
return;
}
/**
* Generate page footer
*/
function page_footer($run_cron = true)
{
global $db, $config, $template, $user, $auth, $cache, $starttime, $phpbb_root_path, $phpEx;
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo;
if (!empty($phpbb_seo)) {
$phpbb_seo->seo_end();
}
// www.phpBB-SEO.com SEO TOOLKIT END
// Output page creation time
if (defined('DEBUG'))
{
$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $starttime;
if (!empty($_REQUEST['explain']) && $auth->acl_get('a_') && defined('DEBUG_EXTRA') && method_exists($db, 'sql_report'))
{
$db->sql_report('display');
}
$debug_output = sprintf('Time : %.3fs | ' . $db->sql_num_queries() . ' Queries | GZIP : ' . (($config['gzip_compress'] && @extension_loaded('zlib')) ? 'On' : 'Off') . (($user->load) ? ' | Load : ' . $user->load : ''), $totaltime);
if ($auth->acl_get('a_') && defined('DEBUG_EXTRA'))
{
if (function_exists('memory_get_usage'))
{
if ($memory_usage = memory_get_usage())
{
global $base_memory_usage;
$memory_usage -= $base_memory_usage;
$memory_usage = get_formatted_filesize($memory_usage);
$debug_output .= ' | Memory Usage: ' . $memory_usage;
}
}
$debug_output .= ' | <a href="' . build_url() . '&explain=1">Explain</a>';
}
}
session.php (1018-1036):
/**
* Sets a cookie
*
* Sets a cookie of the given name with the specified data for the given length of time. If no time is specified, a session cookie will be set.
*
* @param string $name Name of the cookie, will be automatically prefixed with the phpBB cookie name. track becomes [cookie_name]_track then.
* @param string $cookiedata The data to hold within the cookie
* @param int $cookietime The expiration time as UNIX timestamp. If 0 is provided, a session cookie is set.
*/
function set_cookie($name, $cookiedata, $cookietime)
{
global $config;
$name_data = rawurlencode($config['cookie_name'] . '_' . $name) . '=' . rawurlencode($cookiedata);
$expire = gmdate('D, d-M-Y H:i:s \\G\\M\\T', $cookietime);
$domain = (!$config['cookie_domain'] || $config['cookie_domain'] == 'localhost' || $config['cookie_domain'] == '127.0.0.1') ? '' : '; domain=' . $config['cookie_domain'];
header('Set-Cookie: ' . $name_data . (($cookietime) ? '; expires=' . $expire : '') . '; path=' . $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' : '; secure') . '; HttpOnly', false);
}