[問題]phpbb2.0.11登入有問題
發表於 : 2004-12-15 15:43
使用windows 2000server + IIS + PHP Version 4.0.6 + phpMyAdmin 2.5.4 + phpBB2 (2.0.11)
問題描述:安裝正常,刪除了install and contrib 後,到index.php,按登入,輸入正確的帳號、密碼,出現了以下四行字
// added at phpBB 2.0.11 to properly format the username
function phpbb_clean_username($username)
{
$username = htmlspecialchars(rtrim(trim($username), "\\\"));
$username = substr(str_replace("\\\'", "'", $username), 0, 25);
$username = str_replace("'", "\\\'", $username);
return $username;
}
463-480的程式碼\r
// Add no-cache control for cookies if they are set
//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';
// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
$template->pparse('overall_header');
首頁的網址http://weather.tp.edu.tw/phpbb2/index.php
帳/密:alice/alice
爬過文章,還是不清楚,那裡錯,因為連root都進不去討論區,麻煩大家,是不是那裡要重設,請幫忙一下,謝謝。
問題描述:安裝正常,刪除了install and contrib 後,到index.php,按登入,輸入正確的帳號、密碼,出現了以下四行字
約480行左右的程式碼\rWarning: Wrong parameter count for rtrim() in D:\wwwroot\ezweather\phpbb2\includes\functions.php on line 80
Warning: Cannot add header information - headers already sent by (output started at D:\wwwroot\ezweather\phpbb2\includes\functions.php:80) in D:\wwwroot\ezweather\phpbb2\includes\page_header.php on line 475
Warning: Cannot add header information - headers already sent by (output started at D:\wwwroot\ezweather\phpbb2\includes\functions.php:80) in D:\wwwroot\ezweather\phpbb2\includes\page_header.php on line 477
Warning: Cannot add header information - headers already sent by (output started at D:\wwwroot\ezweather\phpbb2\includes\functions.php:80) in D:\wwwroot\ezweather\phpbb2\includes\page_header.php on line 478
// added at phpBB 2.0.11 to properly format the username
function phpbb_clean_username($username)
{
$username = htmlspecialchars(rtrim(trim($username), "\\\"));
$username = substr(str_replace("\\\'", "'", $username), 0, 25);
$username = str_replace("'", "\\\'", $username);
return $username;
}
463-480的程式碼\r
// Add no-cache control for cookies if they are set
//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';
// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
$template->pparse('overall_header');
首頁的網址http://weather.tp.edu.tw/phpbb2/index.php
帳/密:alice/alice
爬過文章,還是不清楚,那裡錯,因為連root都進不去討論區,麻煩大家,是不是那裡要重設,請幫忙一下,謝謝。