znalazłem gdzieś na forum jak połączyć punbb z własną stroną (formularz logowania)
lecz wywala błąd
Warning: Cannot modify header information - headers already sent by (output started at C:\Documents and Settings\dom\Moje dokumenty\site\forum2.php:6) in C:\Documents and Settings\dom\Moje dokumenty\site\forum\include\functions.php on line 152
Warning: Cannot modify header information - headers already sent by (output started at C:\Documents and Settings\dom\Moje dokumenty\site\forum2.php:6) in C:\Documents and Settings\dom\Moje dokumenty\site\forum\include\functions.php on line 155
kod
<!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>
</head>
<body bgcolor="#1E1E1E">
<?
// Define the path to the forum root
@define('FORUM_ROOT', 'forum/'); require FORUM_ROOT.'include/common.php';
// Where will we go after login?
$forum_page['redirect_url'] = 'http://localhost/forum';
$forum_page['form_action'] = forum_link($forum_url['login']);
$forum_page['hidden_fields'] = array( 'form_sent' => '<input type="hidden" name="form_sent" value="1" />',
'redirect_url' => '<input type="hidden" name="redirect_url" value="'.forum_htmlencode($forum_page['redirect_url']).'" />',
'csrf_token' => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />'
);
?>
<form method="post" action="
<?php echo $forum_page['form_action'] ?>">
<?php echo implode("\n\t\t", $forum_page['hidden_fields'])."\n" ?>
Username:
<input type="text" id="fld1" name="req_username" value="" />
<br />
<input type="hidden" id="fld2" name="req_password" value="asdf" />
<input type="checkbox" id="fld3" name="save_pass" value="1" />
<label for="fld3">Log me in automatically each time I visit.</label>
<br />
<input type="submit" name="login" value="Login" />
</form>
</body>
</html>