1 頁 (共 1 頁)

[問題] 沒有登入的會員有問題 ! [麻煩高手幫忙,謝謝]

發表於 : 2003-04-16 16:02
shoko5168
感謝貴站的大大們熱心幫主,讓小弟的論壇能夠架設起來,但是目前還是遇到一個問題!

就是沒有登入的會員,選擇需要登入註冊才能看的討論區的時候,並不會出現需要登入的畫面,而是直接跳出論壇,請問這是哪裡設錯了呢 ?

版面權限設定:

檢視 閱讀 發表 回覆 編輯 刪除
所有會員 註冊會員 註冊會員 註冊會員 註冊會員 註冊會員

範例 (沒有登入會員帳號下進入) :

http://members.lycos.co.uk/lu173398/roo ... /index.php 論壇首頁

選擇 : 軟體推薦分享下載區

http://www.tripod.lycos.co.uk/?redirect ... =2&start=0 就變成這樣(跑出來)

發表於 : 2003-04-16 16:37
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; 
}
~Mac

發表於 : 2003-04-16 20:26
shoko5168
大大!

真的除了感謝還是感謝您!

沒問題了 ^^

發表於 : 2003-04-17 00:21
chenghwa
感謝喔~~
我的問題也解決了~~

ycl6 寫:試試看這個辦法有沒有用吧!

../includes/functions.php

找 function redirect($url)
後面的 redirect 一整段請換成:
~Mac

發表於 : 2003-05-05 22:29
pcsony
是不是在 lycos 才會有此問題?

2.04 版才會有呢?

謝謝 Mac 兄的解答

小弟的 plus 問題解決了。

發表於 : 2003-05-05 22:38
Mac
目前只知道使用 lycos 才會出現這個問題
其他空間則不會(因為 lycos 網站設定的關係)

~Mac