1 頁 (共 1 頁)

[問題]會員系統

發表於 : 2004-10-18 11:26
michael1000
各位高手,
本人是一位十分新的新手,希望各高手能幫我解答一下.
我現正編寫一個網站中,個網站有會員系統,
而我download左phpbb,install左,發現了問題:

我個網站個會員系統可唔可以同phpbb個會員註冊系統?

發表於 : 2004-10-20 21:14
michael1000
:oops: :arrow: :arrow: Sorry,

係同phpbb個會員註冊系統相容.

Re: [問題]會員系統

發表於 : 2004-10-20 22:20
大佬
michael1000 寫:各位高手,
本人是一位十分新的新手,希望各高手能幫我解答一下.
我現正編寫一個網站中,個網站有會員系統,
而我download左phpbb,install左,發現了問題:

我個網站個會員系統可唔可以同phpbb個會員註冊系統?
麻煩您用普通話解釋,謝謝~~

Re: [問題]會員系統

發表於 : 2004-10-21 22:01
kp3011
意思是\r
michael1000 寫:各位高手,
本人是一位十分新的新手,希望各高手能幫我解答一下.
我現正編寫一個網站中,網站中有會員系統,
而我下載了phpbb,安裝後,發現了問題:

我的網站中的會員系統可不可以跟phpbb的會員註冊系統並存?
;-)

發表於 : 2004-10-21 23:54
kevinyung
你寫了甚麼會員系統??

Re: [問題]會員系統

發表於 : 2004-10-22 14:21
大佬
kp3011 寫:意思是\r
michael1000 寫:各位高手,
本人是一位十分新的新手,希望各高手能幫我解答一下.
我現正編寫一個網站中,網站中有會員系統,
而我下載了phpbb,安裝後,發現了問題:

我的網站中的會員系統可不可以跟phpbb的會員註冊系統並存?
;-)
應該是可以,我的想法是利用phpbb的會員系統,然後你網站的那個作為鏡像

Re: [問題]會員系統

發表於 : 2004-10-24 22:11
kp3011
大佬 寫:應該是可以,我的想法是利用phpbb的會員系統,然後你網站的那個作為鏡像
我的網站也能和phpbb的系統連接起來,一組登入名稱/密碼通全站!~
[php]<?php
/* Connecting, selecting database */
$link = mysql_connect("localhost", "username", "password")
or die("Could not connect : " . mysql_error());
mysql_select_db("cybtfdb") or die("Could not select database");
$query = "select user_password from phpbb_users where username = '" . $u . "' limit 1"; // $u 是前一版登入的會員名稱\r
/* Performing SQL query */
$result = mysql_query($query) or die("Query failed : " . mysql_error());

/* Printing results in HTML */
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
foreach ($line as $col_value) {
$pw = $col_value;
}
}
$pp = md5($p); // $p是前一版登入的密碼\r
if ($pw == md5($p)){
$auth = true;
} else {
$auth = false;
}
/* Free resultset */
mysql_free_result($result);
/* Closing connection */
mysql_close($link);
?>[/php]

[php]<?php
if ($auth) {

...............

}
?>[/php]

希望幫到您