Когато във всяка папка добавих :
Както беше описано в този урок : http://web-tourist.net/login/login/view.php?st=1103
Вижте какво стана : ( дава ми грешка като си отварям страниците , на сайта ми..
А редовете на "includes\sessions.php" 366 и 367 изглеждат така :
и индекса на моя сайт изглежда така :
Код:
<?php
define('IN_PHPBB', true);
$phpbb_root_path ='forums/';
include($phpbb_root_path . 'config.php');
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
?>
Вижте какво стана : ( дава ми грешка като си отварям страниците , на сайта ми..
Код:
Warning: Cannot modify header information - headers already sent by (output started at D:\RadioServ\www\index.php:1) in D:\RadioServ\www\forums\includes\sessions.php on line 366
Warning: Cannot modify header information - headers already sent by (output started at D:\RadioServ\www\index.php:1) in D:\RadioServ\www\forums\includes\sessions.php on line 367
А редовете на "includes\sessions.php" 366 и 367 изглеждат така :
Код:
setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
и индекса на моя сайт изглежда така :
Код:
<?php
define('IN_PHPBB', true);
$phpbb_root_path ='forums/';
include($phpbb_root_path . 'config.php');
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>DJ Ivo Official Web Site</title>
<link rel="stylesheet" type="text/css" href="template/template.css"/>
</head>
<body>
<?php
require("template/header.html");
?>
<?php
require("menu.php")
?>
<?php
include($p."_home.php");
?>
<?php
require("template/footer.php");
?>
</body>
</html>