已經順利跟phpbb資料整合,可以從phpbb的登入後再進入4images,但是如果直接由http://xxxx/4images/ 的登入畫面登入則不行~
網址就會變成 http://xxx/phpbb/http://xxxx/4images/in ... xxxxxxxxxx
小弟猜測是整合內的user_loginform.htm有問題,不知道該如何修改...
整合phpbb附的user_loginform.htm
[php]
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr>
<td valign="top" align="left">
<form action="{url_login}" method="post">
{lang_user_name}<br />
<input type="text" size="10" name="username" class="logininput" />
<br />
{lang_password}<br />
<input type="password" size="10" name="password" class="logininput" />
<br />
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td><input type="checkbox" name="autologin" value="1" /></td>
<td><span class="smalltext">{lang_auto_login}</span></td>
</tr>
</table>
<br />
<input type="hidden" name="redirect" value="{self_full}" />
<input type="hidden" name="login" value="1" />
<input type="submit" value="{lang_login}" class="button" />
</form>
» <a href="{url_lost_password}">{lang_lost_password}</a><br />
» <a href="{url_register}">{lang_register}</a></td>
</tr>
</table>
[/php]
未整合附的user_loginform.htm
[php]
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr>
<td valign="top" align="left">
<form action="{url_login}" method="post">
{lang_user_name}<br />
<input type="text" size="10" name="user_name" class="logininput" />
<br />
{lang_password}<br />
<input type="password" size="10" name="user_password" class="logininput" />
<br />
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td><input type="checkbox" name="auto_login" value="1" /></td>
<td><span class="smalltext">{lang_auto_login}</span></td>
</tr>
</table>
<br />
<input type="submit" value="{lang_login}" class="button" />
</form>
» <a href="{url_lost_password}">{lang_lost_password}</a><br />
» <a href="{url_register}">{lang_register}</a></td>
</tr>
</table>
[/php]
還是跟sessions.php內的$url_login = $url_app."login.php";有關呢?


