ďťż
Podstrony
|
telcocafeRobie sobie portla i napotkałem na taki problem[phpBB Debug][phpBB Debug] PHP Notice: in file /includes/session.php on line 750: Cannot modify header information - headers already sent by (output started at D:/wamp/www/przyklad/index.php:1) [phpBB Debug] PHP Notice: in file /includes/session.php on line 750: Cannot modify header information - headers already sent by (output started at D:/wamp/www/przyklad/index.php:1) [phpBB Debug] PHP Notice: in file /includes/session.php on line 750: Cannot modify header information - headers already sent by (output started at D:/wamp/www/przyklad/index.php:1) [phpBB Debug] PHP Notice: in file /includes/session.php on line 750: Cannot modify header information - headers already sent by (output started at D:/wamp/www/przyklad/index.php:1) [phpBB Debug] PHP Notice: in file /includes/session.php on line 750: Cannot modify header information - headers already sent by (output started at D:/wamp/www/przyklad/index.php:1) [phpBB Debug] PHP Notice: in file /includes/session.php on line 750: Cannot modify header information - headers already sent by (output started at D:/wamp/www/przyklad/index.php:1) [phpBB Debug] PHP Notice: in file D:/wamp/www/przyklad/index.php on line 15: Undefined index: session_admin moj index.php wyglada tak <? require_once('config.php'); require_once('smarty/Smarty.class.php'); $smarty = new Smarty; $smarty->template_dir = 'templates'; $smarty->compile_dir = 'templates_c'; if(!Error::isError($error = data_base::connect_db())) { $smarty->assign('imie', 'wszystko ok'); $smarty->assign('user_nor', $user->data['is_registered']); $smarty->assign('user_admin', $user->data['session_admin']); $smarty->assign('user_nick', $user->data['username']); $smarty->assign('phpbb', $phpbb_root_path); $smarty->assign('tytul', $page_t); $smarty->display('index.tpl'); } else { $smarty->assign('blad', $error->_body); $smarty->display('error.tpl'); } ?> a plik config.php <?php ob_start(); error_reporting(E_ALL ^ E_NOTICE); include ('class/error.class.php'); include ('class/dataBase.class.php'); $page_t = 'tytul'; $prefix = 'art_'; $phpbb_user_tbl = 'phpbb_33_users'; $art_tbl = $prefix.'tbl'; define('DB_HOST', ''); define('DB_USER', ''); define('DB_PASSWD', ''); define('DB_NAME', ''); //to ponizej to od phpBB3 define('IN_PHPBB', true); $phpEx = substr(strrchr(__FILE__, '.'), 1); $phpbb_root_path = './phpBB3/'; require_once($phpbb_root_path . 'common.' . $phpEx); require_once($phpbb_root_path . 'includes/functions_display.' . $phpEx); $user->session_begin(); $auth->acl($user->data); $user->setup('viewforum'); $userdata = $user->session_begin(); ?> w plikach forum phpBB3 nic nie modyfikowałem i tak samo w smartach. Jak to naprawić? skopiuj treść index.php - tylko ręcznie nie przez ctrl+a utworz nowy plik wklej i zapisz jako index.php :) dobra juz sobie poradzilem z tym :) ale dzieki za pomoc:) |
|||
Sitedesign by AltusUmbrae. |