Code: Select all
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
Erik Frèrejean wrote:How do you mean this?
Create the same looks: Edit the templates.
Use the sessions: Put the following code on top of the php files of your site:Code: Select all
/** * @ignore */ define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); include($phpbb_root_path . 'includes/functions_display.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); $user->setup('viewforum');
Code: Select all
<!-- IF not S_USER_LOGGED_IN -->
<br clear="all" />
<form method="post" action="{S_LOGIN_ACTION}">
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="cat"><h4><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></h4></td>
</tr>
<tr>
<td class="row1" align="center"><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" /> <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" /> <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" /> <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td>
</tr>
</table>
</form>
<!-- ENDIF -->
With this code I will have a login box , on my site???battye wrote:From index_body.html:
Code: Select all
<!-- IF not S_USER_LOGGED_IN --> <br clear="all" /> <form method="post" action="{S_LOGIN_ACTION}"> <table class="tablebg" width="100%" cellspacing="1"> <tr> <td class="cat"><h4><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></h4></td> </tr> <tr> <td class="row1" align="center"><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" /> <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" /> <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" /> <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td> </tr> </table> </form> <!-- ENDIF -->
Code: Select all
<form action=\"". append_sid("{$phpbb_root_path}ucp.php") . "\" method=\"post\">
<input type="hidden" name="mode" value="login" />
User Name:<input type="text" name="username" />
Password:<input type="password" name="password" />
Hidden:<input type="checkbox" class="radio" name="viewonline" />
<input type="hidden" name="autologin" value="1" />
<input type="submit" value="Submit" name="login" />
<input type="hidden" name="redirect" value="./index.php">
</form>
<form action=\"". append_sid("{$phpbb_root_path}ucp.php") . "\" method=\"post\">
<input type="hidden" name="mode" value="logout" />
Logout: <input type="submit" value="Submit" name="logout" />
</form>