感謝貴站的大大們熱心幫主,讓小弟的論壇能夠架設起來,但是目前還是遇到一個問題!
就是沒有登入的會員,選擇需要登入註冊才能看的討論區的時候,並不會出現需要登入的畫面,而是直接跳出論壇,請問這是哪裡設錯了呢 ?
版面權限設定:
檢視 閱讀 發表 回覆 編輯 刪除
所有會員 註冊會員 註冊會員 註冊會員 註冊會員 註冊會員
範例 (沒有登入會員帳號下進入) :
http://members.lycos.co.uk/lu173398/roo ... /index.php 論壇首頁
選擇 : 軟體推薦分享下載區
http://www.tripod.lycos.co.uk/?redirect ... =2&start=0 就變成這樣(跑出來)
[問題] 沒有登入的會員有問題 ! [麻煩高手幫忙,謝謝]
版主: 版主管理群
版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
[問題] 沒有登入的會員有問題 ! [麻煩高手幫忙,謝謝]
最後由 shoko5168 於 2003-04-16 17:15 編輯,總共編輯了 1 次。
試試看這個辦法有沒有用吧!
../includes/functions.php
找 function redirect($url)
後面的 redirect 一整段請換成:
~Mac
../includes/functions.php
找 function redirect($url)
後面的 redirect 一整段請換成:
代碼: 選擇全部
function redirect($url)
{
global $db, $board_config;
if (!empty($db))
{
$db->sql_close();
}
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? $script_name : '/' . $script_name;
//$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));
// Redirect via an HTML form for PITA webservers
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url);
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $server_protocol . $server_name . $server_port . $script_name . $url . '">HERE</a> to be redirected</div></body></html>';
exit;
}
// Behave as per HTTP/1.1 spec for others
//header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url);
header('Location: ' . $url);
exit;
}

