Cytat
Pokaż zatem kody plików, bo gdzieś przed nagłówkami musisz coś wyświetlać - stąd informacja.
fifi: proszę zatem kody plików. Jeżeli nic nie wskórasz to i tak jestem Twoim dłużnikiem

lokalizacja docelowa, na którą chcemy includować: /skps/web/www/includujemy.php (http://www.skps.wroclaw.pl/icludujemy.php)
<?php
include("/skps/web/forum/noweposty.php");
?>
lokalizacja pliku includowanego na subdomenie: /skps/web/forum/noweposty.php (http://www.forum.skps.wroclaw.pl/noweposty.php)
<?php
$phpbb_root_path = '';
include($phpbb_root_path . '/skps/web/forum/common.' . $phpEx);
// Start session management
//$user->session_begin();
//$auth->acl($user->data);
//$user->setup();
// Number of posts and grabbing permissions
// Pocet prspevku pro zobrazen a oprvnen
$topic_limit = request_var('topic_limit', 5);
$forums = array_unique(array_keys($auth->acl_getf('f_read', true))); //ignored in sql statement to include all topics despite permissions
// Select the last topics based on user permissions
/* $sql = 'SELECT p.post_id, p.topic_id, p.forum_id, p.post_subject, p.post_time, u.username
FROM ' . POSTS_TABLE . ' p , ' . USERS_TABLE . ' u
WHERE post_approved = 1
AND ' . $db->sql_in_set('forum_id', $forums) . '
AND u.user_id = p.poster_id
ORDER BY post_time DESC
LIMIT 0,' . $topic_limit;
$result = $db->sql_query($sql); */
// Select the last topics ignoring permissions
// Vybrat posledn tmata ke kterm mme oprvnen
$sql = 'SELECT p.post_id, p.topic_id, p.forum_id, p.post_subject, p.post_time, u.username
FROM ' . POSTS_TABLE . ' p , ' . USERS_TABLE . ' u
WHERE post_approved = 1
AND u.user_id = p.poster_id
ORDER BY post_time DESC
LIMIT 0,' . $topic_limit;
$result = $db->sql_query($sql);
// Proper header since output not buffered
// Poslat hlavicky pro sprvn kdovn, protoe vpis obsahu je postupn
// header('Content-Type: text/html; charset=utf-8');
// Now let's output the content
// A ted vypsat obsah
// echo '<!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" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Last Topics</title></head><body><div id="post_content"><strong>Last Topics:</strong><br/><ul>';
while ($row = $db->sql_fetchrow($result))
{
$url = generate_board_url() . "/viewtopic.{$phpEx}?f={$row['forum_id']}&t={$row['topic_id']}&p={$row['post_id']}#p{$row['post_id']}"; //added fedforum to url
//old line $url = generate_board_url() . "viewtopic.{$phpEx}?f={$row['forum_id']}&t={$row['topic_id']}&p={$row['post_id']}#p{$row['post_id']}";
echo '<img src="../index_pliki/dol/strzalka_niebieska.gif"> <a target="_blank" href="' . $url . '">' . $row['post_subject'] . '</a>,<br> autor: ' . ucwords($row['username']) . ',<br> data: ' . date("d.m.Y",$row['post_time']).',<br> godzina: ' . date("H:i", $row['post_time']) . ' <br>'; }
echo '</div></body></html>'; ?>
lokalizacja pliku common.php na subdomenie, do którego odwołuje się błąd : /skps/web/forum/common.php (http://www.forum.skps.wroclaw.pl/common.php)
<?php
/**
*
* @package phpBB3
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license <a href="http://opensource.org/licenses/gpl-license.php" target="_blank">http://opensource.org/licenses/gpl-license.php</a> GNU Public License
*
* Minimum Requirement: PHP 4.3.3
*/
/**
*/
{
}
$starttime = $starttime[1] + $starttime[0];
// Report all errors, except notices and deprecation messages
{
}
/*
* Remove variables created by register_globals from the global scope
* Thanks to Matt Kavanagh
*/
function deregister_globals()
{
'GLOBALS' => true,
'_GET' => true,
'_POST' => true,
'_COOKIE' => true,
'_REQUEST' => true,
'_SERVER' => true,
'_SESSION' => true,
'_ENV' => true,
'_FILES' => true,
'phpEx' => true,
'phpbb_root_path' => true
);
// Not only will array_merge and array_keys give a warning if
// a parameter is not an array, array_merge will actually fail.
// So we check if _SESSION has been initialised.
{
}
// Merge all into one extremely huge array; unset this later
);
foreach ($input as $varname)
{
if (isset($not_unset[$varname])) {
// Hacking attempt. No point in continuing unless it's a COOKIE
if ($varname !== 'GLOBALS' || isset($_GET['GLOBALS']) || isset($_POST['GLOBALS']) || isset($_SERVER['GLOBALS']) || isset($_SESSION['GLOBALS']) || isset($_ENV['GLOBALS']) || isset($_FILES['GLOBALS'])) {
}
else
{
$cookie = &$_COOKIE;
while (isset($cookie['GLOBALS'])) {
foreach ($cookie['GLOBALS'] as $registered_var => $value)
{
if (!isset($not_unset[$registered_var])) {
unset($GLOBALS[$registered_var]); }
}
$cookie = &$cookie['GLOBALS'];
}
}
}
unset($GLOBALS[$varname]); }
}
// If we are on PHP >= 6.0.0 we do not need some code
{
/**
* @ignore
*/
}
else
{
// Be paranoid with passed vars
if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on' || !function_exists
('ini_get')) {
deregister_globals();
}
}
{
$phpbb_root_path = dirname(__FILE__) . DIRECTORY_SEPARATOR
; }
if (file_exists($phpbb_root_path . 'config.' . $phpEx)) {
require($phpbb_root_path . 'config.' . $phpEx);
}
{
// Redirect the user to the installer
// We have to generate a full HTTP/1.1 header here since we can't guarantee to have any of the information
// available as used by the redirect function
$server_name = (!empty($_SERVER['HTTP_HOST'])) ?
strtolower($_SERVER['HTTP_HOST']) : ((!empty($_SERVER['SERVER_NAME'])) ?
$_SERVER['SERVER_NAME'] : getenv('SERVER_NAME')); $server_port = (!empty($_SERVER['SERVER_PORT'])) ?
(int
) $_SERVER['SERVER_PORT'] : (int
) getenv('SERVER_PORT'); $secure = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 1
: 0;
$script_name = (!empty($_SERVER['PHP_SELF'])) ?
$_SERVER['PHP_SELF'] : getenv('PHP_SELF'); if (!$script_name)
{
$script_name = (!empty($_SERVER['REQUEST_URI'])) ?
$_SERVER['REQUEST_URI'] : getenv('REQUEST_URI'); }
// Replace any number of consecutive backslashes and/or slashes with a single slash
// (could happen on some proxy setups and/or Windows servers)
$script_path = trim(dirname($script_name)) . '/install/index.' . $phpEx; $script_path = preg_replace('#[\\\\/]{2,}#', '/', $script_path);
$url = (($secure) ? 'https://' : 'http://') . $server_name;
if ($server_port && (($secure && $server_port <> 443) || (!$secure && $server_port <> 80)))
{
// HTTP HOST can carry a port number...
if (strpos($server_name, ':') === false) {
$url .= ':' . $server_port;
}
}
$url .= $script_path;
}
{
$base_memory_usage = 0;
if (function_exists('memory_get_usage'))
{
}
}
// Load Extensions
// dl() is deprecated and disabled by default as of PHP 5.3.
if (!empty($load_extensions) && function_exists
('dl')) {
$load_extensions = explode(',', $load_extensions);
foreach ($load_extensions as $extension)
{
}
}
// Include files
require($phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.' . $phpEx);
require($phpbb_root_path . 'includes/cache.' . $phpEx);
require($phpbb_root_path . 'includes/template.' . $phpEx);
require($phpbb_root_path . 'includes/session.' . $phpEx);
require($phpbb_root_path . 'includes/auth.' . $phpEx);
require($phpbb_root_path . 'includes/functions.' . $phpEx);
require($phpbb_root_path . 'includes/functions_content.' . $phpEx);
require($phpbb_root_path . 'includes/constants.' . $phpEx);
require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
// Set PHP error handler to ours
// Instantiate some basic classes
$user = new user();
$auth = new auth();
$template = new template();
$cache = new cache();
$db = new $sql_db();
// Connect to DB
$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, defined('PHPBB_DB_NEW_LINK') ? PHPBB_DB_NEW_LINK
: false);
// We do not need this any longer, unset for safety purposes
// Grab global variables, re-cache if necessary
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (empty($phpbb_seo) ) { require_once($phpbb_root_path . 'phpbb_seo/phpbb_seo_class.'.$phpEx);
$phpbb_seo = new phpbb_seo();
@define('PHPBB_USE_BOARD_URL_PATH', true); }
// www.phpBB-SEO.com SEO TOOLKIT END
$config = $cache->obtain_config();
// Add own hook handler
require($phpbb_root_path . 'includes/hooks/index.' . $phpEx);
$phpbb_hook = new phpbb_hook
(array('exit_handler', 'phpbb_user_session_handler', 'append_sid', array('template', 'display')));
foreach ($cache->obtain_hooks() as $hook)
{
@include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
}
?>